01
Debug
Read nested steps, tools, model metadata, and the first causal failure from local JSONL.
AgentInspect turns TypeScript agent runs into readable execution trees, deterministic trajectory checks, and portable Evidence v2—without requiring an account, collector, or default upload.
Capture once. Debug, prevent, and share from the same local trace.
No account · no collector · no default upload · metadata-only by default
1. Capture one local run 2. Debug the execution tree 3. Prevent the wrong trajectory in CI 4. Share-checked Evidence v2 5. Optional: inspect the same facts over read-only MCP
npm install agent-inspectActively maintained · schema 1.0 · Node.js 20+ · MIT
List a local run, then inspect the execution tree.
Capture once. Debug, prevent, and share from the same local trace.
Three jobs
Capture once. Debug the tree, prevent the wrong trajectory, and share-checked Evidence v2. Optional read-only MCP stays below the fold.
01
Read nested steps, tools, model metadata, and the first causal failure from local JSONL.
02
Deterministic check presets, TraceContract, suites, and CI gates — no LLM judge required.
03
Share-checked Evidence v2 with integrity verification. Not a compliance certification.
Five-minute path
init scaffolds files; the demo writes the trace. Then report, check, bundle, verify-safe, and optionally mcp configure / bundle verify with real targets.
Deterministic starter path — no API keys required.
npm install agent-inspect
npx agent-inspect init --yes
node examples/agent-inspect-demo.mjs
npx agent-inspect list --dir .agent-inspect
# copy <run-id> from list, then:
npx agent-inspect report <run-id> --dir .agent-inspect
npx agent-inspect check <run-id> --dir .agent-inspect
npx agent-inspect bundle <run-id> --dir .agent-inspect --profile share
npx agent-inspect verify-safe <run-id> --dir .agent-inspect
# Evidence v2 integrity (path from bundle output):
npx agent-inspect bundle verify .agent-inspect/bundles/<run-id>
# Optional coding-agent loop (dry-run by default):
npx agent-inspect mcp configure --client cursorCode
Real install lines and CLI targets—copy, run, then attach share-checked evidence. No collector account.
import { inspectRun, step } from "agent-inspect";
await inspectRun("support-agent", async () => {
const intent = await step("classify intent", () =>
classifyIntent(ticket)
);
const docs = await step.tool("search knowledge base", () =>
searchKnowledgeBase(intent)
);
return step.llm("draft-model", () =>
generateResponse(docs)
);
});Hero flow
The flagship loop is local evidence—not a hosted dashboard. Studio is optional Tier C, never the product story.
Manual steps, adapters, logs, harness, or standards files → local JSONL under `.agent-inspect/`.
init → demo → list
Trees, reports, and a conservative first-causal-failure engine surface what failed first—not just the last error.
report <run-id>
Read-only MCP Preview tools (`get_first_causal_failure`, trees, evidence) over local traces—stdio only.
mcp configure --client cursor
Deterministic `check`, TraceContract (Beta), suites, cohorts, and CI gates so the bug stays fixed.
check <run-id>
Redact → verify-safe → Evidence v2 bundle + `bundle verify`. Studio Beta stays optional (customer-owned).
bundle … --profile share
Proven mechanisms
Conservative ordered engine points at what failed first—not just the last stack frame.
Read-only Preview MCP tools over local traces (`mcp configure`, stdio server).
`bundle` + `bundle verify` produce offline share-profile artifacts you can attach to a PR.
`check`, TraceContract (Beta), suites/cohorts, and Vitest/Jest reporters for PR gates.
Own runs as files under `.agent-inspect/`. No account, no default upload.
Nested steps, tool/LLM types, durations, and status in a readable tree and timeline.
Safe defaults keep prompts and outputs out of traces unless you opt in.
`local`, `share`, and `strict` before issues, PRs, or partner threads—then `verify-safe`.
Real needs
Configure MCP (dry-run), ask for get_first_causal_failure, fix in the app, re-inspect, then create share-checked evidence.
See the tool step, siblings, and parent run without leaving your terminal or uploading traces.
Redact with the share profile, verify-safe, bundle, then bundle verify before you attach the artifact.
Use deterministic checks for completion and stalls on fixture traces—no LLM judge required.
Diff two local runs when a prompt, tool, or model change lands.
CLI, TUI, localhost viewer, or the in-repo VS Code extension—files stay on disk.
The problem
Agent runs are nested, parallel, tool-heavy, and privacy-sensitive. Flat logs tell you something happened. They rarely show what happened in order, where it branched, or what is safe to share.
You see a tool name, not the parent run, siblings, or where the branch went wrong.
Concurrent work collapses into a stream of lines without step boundaries.
Without a causal tree and read-only tools, chat agents guess from logs instead of inspecting the run.
Without redaction, verify-safe, and share-checked Evidence v2, PR attachments can expose more than you intended.
Boundaries
Compare
Use AgentInspect for the local developer loop. Use hosted platforms or OpenTelemetry for production observability. They can complement each other.
| Capability | agent-inspect | console.log | Hosted observability | Raw OpenTelemetry |
|---|---|---|---|---|
| Local-first | Yes — traces on disk | Yes | Usually account + ingestion | Depends on collector/backend |
| Account required | No | No | Usually yes | No for SDK; yes for many backends |
| Upload required | No by default | No | Usually yes | Exporter/collector dependent |
| Execution tree | Built-in | Flat stream | Often yes | Spans/traces with setup |
| CI checks | Deterministic CLI checks | Manual | Platform-specific | Custom pipelines |
| Safe redaction flow | Profiles + verify-safe + Evidence v2 bundle verify | Manual | Varies | Custom |
| Coding-agent inspect | Read-only MCP Preview (stdio, local traces) | No | Usually chat-only or remote tools | Custom tooling |
| Team dashboard | No maintainer-hosted dashboard; optional customer-owned Studio Beta | No | Yes | Via backend/viewer |
| Production monitoring | Not the goal | No | Yes | Yes, with platform setup |
| Best for | Local debugging, deterministic trajectory regression, safe evidence, customer-owned review | Tiny scripts | Production fleets and hosted collaboration | Platform observability foundation |
Open source trust
AgentInspect is MIT-licensed, dependency-light at the root, and explicit about network behavior: no upload by default.
FAQ
No default upload and no hidden telemetry. Traces stay on disk unless you explicitly share a file, enable customer-owned Studio ingest, or configure a standards export.
Optional Studio GitHub/HTTP ingest (off by default), MCP clients talking to your servers, MCP server exposing local evidence to a connected client, and any standards/collector path you configure. See Network behavior docs.
No. Studio Beta is customer-owned and binds to localhost by default. There is no AgentInspect-hosted cloud dashboard.
No. Use hosted platforms or OpenTelemetry for production fleets. AgentInspect is for local debugging, deterministic trajectory regression, and safe evidence.
Support levels describe maturity. Core schema/checks/redaction are Stable; TraceContract/suites/index/Studio are Beta; MCP server and some ingest paths are Preview. See SUPPORT-LEVELS.md on GitHub.
Capture is metadata-only by default. It does not record chain-of-thought. Opt into content capture only when you intentionally need it.
TraceContract and checks are deterministic trajectory expectations. Eval helpers are local heuristics. Neither is an LLM judge by default.
Use `agent-inspect mcp configure --client cursor` (dry-run by default) and `@agent-inspect/mcp-server` over a local trace dir. Flagship read-only tools include get_trace_facts, get_first_causal_failure, and create_share_checked_evidence. Preview maturity—see CODING-AGENT-LOOP.md.
Yes, as Experimental exports: toPassTraceContract and toHaveRequiredTool via agentInspectVitestMatchers / agentInspectJestMatchers. Reporters remain the primary CI artifact path.
This site summarizes the product. Canonical deep reference lives on GitHub under docs/.
Install AgentInspect, run the deterministic demo, and keep traces on your machine.