RepositoryTypeScriptUSUnited States
rajudandigam

rajudandigam/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.

214stars
57forks
14issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: evidence

#1 Repository of the week

2
TINIX TRENDING·Topic: jsonl

#2 Repository of the week

10
TINIX TRENDING·Topic: debugging

#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 version License: MIT

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

PathWhenStart here
AI SDKVercel AI SDK generateText / streamText@agent-inspect/ai-sdk · guide
OpenAI AgentsOpenAI Agents JS local tracing@agent-inspect/openai-agents · guide
LangChainCallback adapter, LangGraph-via-LangChain@agent-inspect/langchain
ObserveExisting class with run / executeGetting started § observe
ManualCustom control flowinspectRun + step in API
LogsStructured logs already emittedLog-to-tree
CI / testsFailed test artifacts@agent-inspect/vitest · @agent-inspect/jest
Real projectsFixture 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 — diff two 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/mcp client tracing
  • VS Code — in-repo extension (packages/vscode); dev guide — Marketplace listing manual

Real-world scenarios

ScenarioDoc
Local debuggingUSE-CASES.md
CI failure reviewUSE-CASES.md § CI trace artifact
Team adoptionTEAM-WORKFLOWS.md · Design partners

Package map

PackagePurpose
agent-inspectCore + CLI
@agent-inspect/ai-sdkAI SDK telemetry
@agent-inspect/openai-agentsOpenAI Agents processor
@agent-inspect/langchainLangChain callbacks
@agent-inspect/harnessFixture runner for real projects
@agent-inspect/redactDeterministic redaction
@agent-inspect/evalLocal eval heuristics
@agent-inspect/vitestVitest reporter
@agent-inspect/jestJest reporter
@agent-inspect/mcpMCP client tracing
@agent-inspect/mcp-serverRead-only trace MCP server
@agent-inspect/guardrailsDeterministic guardrail rules
@agent-inspect/circuitLoop/retry/timeout analyzers
@agent-inspect/viewerLocalhost viewer
@agent-inspect/adapter-sdkThird-party adapters
@agent-inspect/tuiOptional terminal UI
agent-inspect-vscodeVS Code extension (in-repo, not on Marketplace yet)

Safety model

  • Traces are local JSONL files under .agent-inspect/ (or AGENT_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 / strict via @agent-inspect/redact or CLI
  • scan / verify-safe — check artifacts before sharing
  • Not a chain-of-thought recorder or compliance engine

Details: Safe trace sharing · Security

Documentation

StartReferenceAdoption
Getting startedAPIAdoption
First trace in 5 minCLIDemo script
Use casesAdaptersTechnical guide
ExamplesPerformancePitch

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.

RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryTypeScript
heygen-com/hyperframes

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.

94.6k
Dec 2, 2026
RepositoryPython
bytedance/deer-flow

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.

86.0k
Nov 30, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
google-gemini/gemini-cli

An open-source AI agent that brings the power of Gemini directly into your terminal.

109.5k
Dec 2, 2026
RepositoryRust
herdrdev/herdr

the runtime your coding agents live on

53.9k
Dec 1, 2026
RepositoryTypeScript
deepseek-ai/deepseek-harness

DeepSeek Harness: Everything is a Plugin.

290.1k
Nov 28, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

150.1k
Nov 29, 2026