agent-inspect

Local execution trees for TypeScript AI agents. agent-inspect helps you understand what happened inside an AI agent run — locally. It turns manual steps, tool calls, LLM calls, structured logs, failures, durations, and run metadata into readable execution trees you can inspect from the terminal. It is built for TypeScript/Node.js developers..

294
Stars
89
Forks
TypeScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/rajudandigam/agent-inspect

Getting Started

Guides for using skills like agent-inspect.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

AgentInspect

agent-inspect

Local-first evidence for TypeScript AI agents

See what your agent did.
Catch the wrong path in CI.
Keep the evidence local.

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

Website · Docs · npm · GitHub

npm version MIT license Node.js 20 or newer

npm install agent-inspect

AgentInspect lists a local demo-good run, then you inspect the execution tree from the same JSONL

Agent code rarely fails as one function call. It plans, retrieves, calls tools, invokes a model, retries, and produces side effects. Flat logs show fragments. AgentInspect keeps the run as local JSONL and gives you one evidence loop from the same trace.

Capture one local trace, then debug, prevent, and share from the same evidence loop

One trace. Three jobs.

Debug — read the execution path

See nested steps, tool calls, LLM calls, model and token metadata, durations, errors, and the first causal failure without sending the trace to an AgentInspect service.

npx agent-inspect view <run-id> --dir .agent-inspect --summary
npx agent-inspect report <run-id> --dir .agent-inspect
npx agent-inspect explain <run-id> --dir .agent-inspect

Use manual instrumentation, official adapters, supported standards files, or structured logs you already emit.

Prevent — fail CI on the wrong trajectory

The same deterministic AgentInspect check exits zero for demo-good and one for demo-regression

Checks are deterministic and provider-free: the same trace and rules produce the same result. Start with a preset, then extend it with the expectations that matter to the workflow.

npx agent-inspect check <run-id> --dir .agent-inspect \
  --preset trajectory \
  --required-tool retrieve_policy \
  --fail-on-observation failed

A passing check exits 0; a rule failure exits 1. Invalid configuration and unreadable/unsupported inputs use separate documented exit codes. Use TraceContract, suites, cohorts, Vitest/Jest reporters, or --evidence-on fail when the workflow needs more than one CLI check.

Share — create reviewable offline evidence

AgentInspect writes a share-checked Evidence v2 bundle to ./evidence and verifies the listed file hashes offline

npx agent-inspect verify-safe <run-id> --dir .agent-inspect
npx agent-inspect bundle <run-id> --dir .agent-inspect --profile share --out ./evidence
npx agent-inspect bundle verify ./evidence

verify-safe is a best-effort local assessment and can report SAFE, SAFE WITH WARNINGS, UNSAFE, or UNKNOWN. bundle writes a redacted artifact and manifest; bundle verify rechecks the listed file hashes offline. “Share-checked” is not compliance certification—review the artifact before attaching it to a PR, incident, or support handoff.

First local trace

The generated demo is synthetic, keyless, and local. npm install agent-inspect does not copy repository examples; init writes them into the project.

npm install agent-inspect
npx agent-inspect init --yes
node examples/agent-inspect-demo.mjs
npx agent-inspect list --dir .agent-inspect

Copy the printed run ID, then inspect it:

npx agent-inspect view <run-id> --dir .agent-inspect --summary
npx agent-inspect check <run-id> --dir .agent-inspect --preset trajectory
npx agent-inspect verify-safe <run-id> --dir .agent-inspect

For a fixed good/regression/PII walkthrough with stable run ids (demo-good, demo-regression, demo-pii), use the canonical keyless showcase. The richer blessed starters cover framework-specific paths.

Use it with your stack

StackInstall / commandStart
Custom functions or classesagent-inspectGetting started
LangChain / LangGraphagent-inspect + @agent-inspect/langchainLangGraph guide
AI SDKagent-inspect + @agent-inspect/ai-sdkAI SDK guide
OpenAI Agents JSagent-inspect + @agent-inspect/openai-agentsLocal processor guide
Existing structured logsnpx agent-inspect logs ...Log-to-tree quickstart
OpenInference / OTLP JSONnpx agent-inspect open ...Standards
Vitest / Jest CI@agent-inspect/vitest / @agent-inspect/jestCI artifacts

See support levels for Stable, Supported, Beta, Preview, and Experimental surfaces.

Programmatic trajectory checks

import { openTraceFile } from "agent-inspect/readers";
import {
  defineTraceContract,
  evaluateTraceContractRead,
} from "agent-inspect/checks";

const read = await openTraceFile("./trace.jsonl");
const contract = defineTraceContract({
  run: { requireCompleted: true },
  tools: { required: ["retrieve_policy"] },
});

const result = evaluateTraceContractRead(read, contract);
if (result.status !== "pass") process.exitCode = 1;

The full API also exposes TraceFacts for bounded, logical analysis of supported traces. See programmatic trace analysis.

Where AgentInspect fits

AgentInspect owns the laptop-to-PR evidence loop. It complements hosted observability, production trace retention, and broad eval platforms rather than replacing them.

NeedBest fit
Inspect one local TypeScript agent run immediatelyAgentInspect
Enforce deterministic tool/order/completion expectations in CIAgentInspect
Attach a redacted, hash-verifiable offline artifactAgentInspect
Monitor a production fleet with hosted dashboards and retentionHosted observability / APM
Manage prompts, datasets, and online LLM-judge experimentsEval / prompt platforms

See the factual comparison guide.

Safety and network behavior

  • Traces are local JSONL under .agent-inspect/ or AGENT_INSPECT_TRACE_DIR.
  • Capture is metadata-only by default; raw prompts and outputs require opt-in.
  • Write-time redaction is enabled by default. The redact command creates a separate redacted copy and does not mutate its source.
  • Core capture and inspection do not require an AgentInspect account, collector, or default upload.
  • Redaction and verify-safe are best-effort controls, not privacy, security, or compliance certification.
  • Optional MCP, standards export, and customer-owned Studio surfaces are explicit and have their own network boundaries.
  • AgentInspect is not a chain-of-thought recorder.

Read network behavior, no-egress policy, and safe trace sharing.

Optional coding-agent loop

@agent-inspect/mcp-server exposes configured local evidence to an MCP client through bounded, read-only tools. It is optional and currently Preview; the core debug/check/evidence loop does not require it.

npx agent-inspect mcp configure --client cursor

Review the generated dry-run configuration and the coding-agent loop guide before enabling it.

Package family (18-package fixed release group)
GroupPackages
Core productagent-inspect, @agent-inspect/redact
Framework integrations@agent-inspect/ai-sdk, @agent-inspect/openai-agents, @agent-inspect/langchain
Testing and evaluation@agent-inspect/harness, @agent-inspect/eval, @agent-inspect/vitest, @agent-inspect/jest
Safety analysis@agent-inspect/guardrails, @agent-inspect/circuit
Developer surfaces@agent-inspect/viewer, @agent-inspect/tui, @agent-inspect/mcp, @agent-inspect/mcp-server
Local/team optional surfaces@agent-inspect/index-sqlite, @agent-inspect/studio
Extension SDK@agent-inspect/adapter-sdk

The root package is enough for custom capture, the CLI, checks, and Evidence workflows. Install optional packages only for the integration or surface you use. agent-inspect-vscode is currently in the repository and is not presented as a published Marketplace extension.

What it is not

  • A maintainer-hosted SaaS or production APM replacement
  • Hosted trace retention, a team dashboard service, or a prompt registry
  • An LLM-as-judge or dataset platform by default
  • A replay engine, automatic remediation system, or compliance certification

Status and documentation

Current published baseline: 6.17.2 · persisted schema 1.0 · Node.js >=20 · MIT.

Legacy v0.1 and v0.2 traces remain readable. Check the npm badge and changelog for the current published version.

Contributing

See CONTRIBUTING.md, good first issues, and GitHub Discussions.

Redact and review traces before posting them in issues or pull requests.

Frequently Asked Questions

What is agent-inspect?

agent-inspect is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by rajudandigam. Local execution trees for TypeScript AI agents. agent-inspect helps you understand what happened inside an AI agent run — locally. It turns manual steps, tool calls, LLM calls, structured logs, failures, durations, and run metadata into readable execution trees you can inspect from the terminal. It is built for TypeScript/Node.js developers. It has 294 GitHub stars.

Is agent-inspect safe to use?

agent-inspect failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install agent-inspect?

Clone the repository with "git clone https://github.com/rajudandigam/agent-inspect" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is agent-inspect written in?

agent-inspect is primarily written in TypeScript. It is open-source under rajudandigam on GitHub, so you can review or fork the full source.

Are there alternatives to agent-inspect?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-inspect against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

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

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details