AgentInspect is a local-first debugging tool. It does not upload your traces or logs anywhere, and it does not include vendor sink integrations in the core package.
This document describes how to report vulnerabilities and how to think about data safety when using AgentInspect.
AgentInspect is in active development. Security fixes are accepted and prioritized based on impact and exploitability.
There is no formal SLA. If a fix is needed, it should land as a patch release once verified.
- If GitHub Security Advisories are enabled for this repository, please report via a private advisory.
- Otherwise, open a GitHub issue with minimal sensitive detail and request a private contact path for the full report.
- A clear description of the issue and expected impact
- Steps to reproduce (prefer a small repro repo or minimized snippet)
- Affected package(s) and version(s)
- Platform info (Node version, OS)
- Any mitigations/workarounds you found
- real API keys or tokens
- production log files
- customer/user PII
- full unredacted traces
If you need to include sample data, use synthetic placeholders (for example, example.test emails and fake tokens).
In scope:
- vulnerabilities in trace/log parsing that could lead to code execution, path traversal, or data disclosure
- unsafe redaction defaults (obvious secrets displayed where the product promises safety)
- package supply-chain / dependency boundary issues that cause heavy or unsafe dependencies to be pulled into the main
agent-inspectinstall
- production monitoring SLAs or uptime guarantees (AgentInspect is not a production observability platform)
- vendor sink behavior (not implemented in core)
- network upload security (AgentInspect does not upload)
- replay sandboxing (replay is not implemented)
- cost calculation correctness (cost engine is not implemented)
- Manual tracing writes local JSONL files (see
docs/SCHEMA.md). - The CLI reads and renders local files.
- Exports generate local strings/files only (Markdown/HTML/OpenInference/OTLP JSON); they do not upload anywhere.
AgentInspect aims to be safe-by-default for log-derived attributes and exported payloads:
- Log ingestion applies redaction to parsed attributes using configured rules (with conservative defaults).
- Exporters default to redacted output and bounded attribute previews.
Important limitations:
- Manual trace metadata is user-controlled. By default,
inspectRun()andstep()redact common sensitive keys before writing JSONL (authorization,cookie,token,apiKey,password,secret,email— case-insensitive). Passredact: falseto persist metadata as-is (explicit opt-out). - Non-sensitive metadata and custom keys are still written locally. Do not attach secrets you are unwilling to store on disk, even with redaction enabled (custom key names may bypass defaults).
- Size bounds truncate long metadata values and cap serialized event size (default 64 KiB per line). Oversized events are truncated further or replaced with a
{ truncated: true, reason: "maxEventBytes" }marker — instrumentation never throws into your app because of payload size. @agent-inspect/langchainwithpersist: truewrites the same local JSONL format as manual traces. Defaultcapture: "metadata-only"does not persist full prompts/outputs; usecapture: "preview"only when you accept truncated previews on disk.- Always review exported files before sharing them externally.
- Avoid committing trace directories (
.agent-inspect-runs/) to source control.
For a practical pre-share workflow, see docs/SAFE-TRACE-SHARING.md. For schema-level redaction notes, see docs/SCHEMA.md (redaction section) and docs/API.md.
- Prefer Node.js built-ins over new dependencies.
- Do not add vendor SDKs, OpenTelemetry SDKs, or framework dependencies to the main
agent-inspectpackage. - Keep optional integrations (
@agent-inspect/langchain,@agent-inspect/tui,@agent-inspect/viewer,@agent-inspect/mcp-server) separate so users do not pull them in by default.
- Binds localhost by default (
127.0.0.1). Binding to all interfaces exposes local traces on the network. - Read-only HTTP routes — no trace mutation APIs.
- Does not upload data. Review traces before sharing screenshots or exported copies.
- Exposes read-only MCP tools over a configured trace directory.
- Default tool output redaction profile is
share(notlocal). - Does not invoke user agent tools or mutate traces.
- Configure via
AGENT_INSPECT_TRACE_DIRandAGENT_INSPECT_MCP_REDACTION_PROFILEwhen documented.
IDE extension: see VSCODE.md (in-repo; Marketplace deferred).