United Statesrajudandigam/agent-inspect
Local evidence debugger and trajectory-test toolkit for TypeScript AI agents: inspect causal runs, catch wrong tool paths in CI, and share safe offline evidence.
Featured achievements
The project's latest awards
#1 Repository of the week
#2 Repository of the week
#10 Repository of the week
agent-inspect
Local-first TypeScript toolkit: trace what happened, check what should have happened, redact what must not leave your machine.
No account · no upload · no hosted dashboard · metadata-only by default
npm install agent-inspect
60-second quickstart
npx agent-inspect init --yes
node examples/agent-inspect-demo.mjs
npx agent-inspect list --dir .agent-inspect
npx agent-inspect view <run-id> --dir .agent-inspect
npx agent-inspect report <run-id> --dir .agent-inspect
npx agent-inspect verify-safe --dir .agent-inspect
North star: install → one trace → one failure check → one share-safe artifact in under five minutes. See First trace in 5 minutes.
Choose your path
| Path | When | Start here |
|---|---|---|
| AI SDK | Vercel AI SDK generateText / streamText | @agent-inspect/ai-sdk · guide |
| OpenAI Agents | OpenAI Agents JS local tracing | @agent-inspect/openai-agents · guide |
| LangChain | Callback adapter, LangGraph-via-LangChain | @agent-inspect/langchain |
| Observe | Existing class with run / execute | Getting started § observe |
| Manual | Custom control flow | inspectRun + step in API |
| Logs | Structured logs already emitted | Log-to-tree |
| CI / tests | Failed test artifacts | @agent-inspect/vitest · @agent-inspect/jest |
| Real projects | Fixture harness | @agent-inspect/harness |
Blessed starters (no API keys): examples/starters
What it helps with
- Wrong tool call — see tool steps, args metadata, and parent run in the tree
- Baseline vs candidate —
difftwo runs locally - Eval / test failures —
check,eval, Vitest/Jest reporters - PR artifacts — CI artifacts +
redact --profile share - Multi-agent / sessions —
sessions,search, handoff metadata - MCP tools —
@agent-inspect/mcpclient tracing - VS Code — in-repo extension (
packages/vscode); dev guide — Marketplace listing manual
Real-world scenarios
| Scenario | Doc |
|---|---|
| Local debugging | USE-CASES.md |
| CI failure review | USE-CASES.md § CI trace artifact |
| Team adoption | TEAM-WORKFLOWS.md · Design partners |
Package map
| Package | Purpose |
|---|---|
agent-inspect | Core + CLI |
@agent-inspect/ai-sdk | AI SDK telemetry |
@agent-inspect/openai-agents | OpenAI Agents processor |
@agent-inspect/langchain | LangChain callbacks |
@agent-inspect/harness | Fixture runner for real projects |
@agent-inspect/redact | Deterministic redaction |
@agent-inspect/eval | Local eval heuristics |
@agent-inspect/vitest | Vitest reporter |
@agent-inspect/jest | Jest reporter |
@agent-inspect/mcp | MCP client tracing |
@agent-inspect/mcp-server | Read-only trace MCP server |
@agent-inspect/guardrails | Deterministic guardrail rules |
@agent-inspect/circuit | Loop/retry/timeout analyzers |
@agent-inspect/viewer | Localhost viewer |
@agent-inspect/adapter-sdk | Third-party adapters |
@agent-inspect/tui | Optional terminal UI |
agent-inspect-vscode | VS Code extension (in-repo, not on Marketplace yet) |
Safety model
- Traces are local JSONL files under
.agent-inspect/(orAGENT_INSPECT_TRACE_DIR) - Metadata-only by default — no raw prompts/outputs unless you opt in
- No hidden upload — AgentInspect does not send traces to the cloud
- Redaction profiles —
local/share/strictvia@agent-inspect/redactor CLI scan/verify-safe— check artifacts before sharing- Not a chain-of-thought recorder or compliance engine
Details: Safe trace sharing · Security
Documentation
| Start | Reference | Adoption |
|---|---|---|
| Getting started | API | Adoption |
| First trace in 5 min | CLI | Demo script |
| Use cases | Adapters | Technical guide |
| Examples | Performance | Pitch |
Full index: docs/README.md · Visual demos: SCREENSHOTS.md
What AgentInspect is not
- Hosted SaaS or dashboard product
- Production APM replacement (use LangSmith, Langfuse, OTel, etc. alongside)
- Eval dataset platform or LLM-as-judge service
- Prompt registry or pricing engine
- Default telemetry uploader or replay engine
Install details
Current release: 3.5.3 (sixteen linked npm packages). Persisted trace schema 1.0.
pnpm add agent-inspect
npx agent-inspect doctor
Monorepo development: pnpm install && pnpm build && pnpm test
Contributing
CONTRIBUTING.md · Good first issues · Discussions · Changelog
Redact traces before posting issues or PRs.
Similar Projects
Discover other similar projects and AI models.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Open-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.
Reverse engineer anything with agents, from app behavior down to native binaries.
Python tool for converting files and office documents to Markdown.
An open-source AI agent that brings the power of Gemini directly into your terminal.