by rajudandigam
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.
npm install agent-inspectGuides and resources related to developer tooling like agent-inspect.
Last scanned: 8/29/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@vitest/coverage-v8: Vulnerability found",
"severity": "critical"
},
{
"type": "npm-audit",
"message": "@vitest/mocker: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "esbuild: esbuild enables any website to send any requests to the development server and read the response",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "vite: Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vite-node: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "vitest: Vulnerability found",
"severity": "critical"
}
],
"status": "FAILED",
"scannedAt": "2026-08-29T17:35:49.993Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how agent-inspect compares with popular alternatives.
AgentInspect is an open-source TypeScript developer library and CLI for debugging and testing AI-agent execution traces, built by rajudandigam. 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. It has 387 GitHub stars.
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.
Install AgentInspect with "npm install agent-inspect". The optional read-only MCP integration is available separately as "@agent-inspect/mcp-server".
agent-inspect is primarily written in TypeScript. It is open-source under rajudandigam on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists other developer tools, CLI tools, and AI-agent tooling you can browse and compare. Use the category badge and Related Skills section on this page to explore alternatives.
No comments yet. Be the first to share your thoughts!
Top projects in this category by stars
⚠️ Third-Party Software Notice
This project is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party software. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
npm install agent-inspect
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.
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.
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.
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.
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.
| Stack | Install / command | Start |
|---|---|---|
| Custom functions or classes | agent-inspect |
Getting started |
| LangChain / LangGraph | agent-inspect + @agent-inspect/langchain |
LangGraph guide |
| AI SDK | agent-inspect + @agent-inspect/ai-sdk |
AI SDK guide |
| OpenAI Agents JS | agent-inspect + @agent-inspect/openai-agents |
Local processor guide |
| Existing structured logs | npx agent-inspect logs ... |
Log-to-tree quickstart |
| OpenInference / OTLP JSON | npx agent-inspect open ... |
Standards |
| Vitest / Jest CI | @agent-inspect/vitest / @agent-inspect/jest |
CI artifacts |
See support levels for Stable, Supported, Beta, Preview, and Experimental surfaces.
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.
AgentInspect owns the laptop-to-PR evidence loop. It complements hosted observability, production trace retention, and broad eval platforms rather than replacing them.
| Need | Best fit |
|---|---|
| Inspect one local TypeScript agent run immediately | AgentInspect |
| Enforce deterministic tool/order/completion expectations in CI | AgentInspect |
| Attach a redacted, hash-verifiable offline artifact | AgentInspect |
| Monitor a production fleet with hosted dashboards and retention | Hosted observability / APM |
| Manage prompts, datasets, and online LLM-judge experiments | Eval / prompt platforms |
See the factual comparison guide.
.agent-inspect/ or AGENT_INSPECT_TRACE_DIR.redact command creates a separate redacted copy and does not mutate its source.verify-safe are best-effort controls, not privacy, security, or compliance certification.Read network behavior, no-egress policy, and safe trace sharing.
@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