AgentInspect Local Trace Toolkit
Inspect TypeScript agent runs locally and catch incorrect execution paths with deterministic CI checks.
- Source repo
- rajudandigam/agent-inspect
- Stars
- ★ 213
- Last updated
- 3d ago @agent-inspect/[email protected]
- FARS reviewed
- Nov 08, 2026 +30 new
- License
- MIT
- Primary language
- TypeScript
- FA score
- 79/100 · Good
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API (Partial support)
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A TypeScript agent developer reproducing a failed tool call locally and using the execution tree to find the first causal error.
- Not a fit if
- Teams that need hosted production monitoring and long-term trace retention
- Teams that need a prompt registry or online LLM evaluation platform
- Website
- agentinspect.vercel.app ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-25latest release @agent-inspect/[email protected] (2026-11-18)
- Source review
- 79/100 · Good
What does this agent do, and when should you use it?
AgentInspect is a local-first toolkit for TypeScript AI agents that stores run traces as JSONL and provides a CLI, importable reader and checking APIs, and framework adapters. It renders nested steps, tool and LLM calls, durations, and errors as execution trees and reports to help locate causal failures. Trajectory presets, TraceContract, and suites let teams check recorded runs deterministically and fail CI on unmet rules. It can also write redacted Evidence v2 artifacts with a manifest and verify their file hashes offline. Core debugging, checking, and evidence workflows need no AgentInspect account or default upload; the runtime requirement is Node.js 20 or newer.
Install agent-inspect, use init to write examples, and run a demo to create a local trace; use list to find runs and view, report, or explain to inspect execution paths. The CLI check command evaluates runs against rules such as --preset trajectory and --required-tool; programmatic checks can read JSONL with openTraceFile and evaluate contracts with defineTraceContract and evaluateTraceContractRead. For sharing, run verify-safe to assess the trace, create an Evidence v2 artifact with bundle, and use bundle verify to check manifest hashes offline. Optional adapters cover LangChain/LangGraph, AI SDK, and OpenAI Agents JS; Vitest and Jest reporters and a Preview-stage MCP server are also available as optional packages.
- A TypeScript agent developer reproducing a failed tool call locally and using the execution tree to find the first causal error.
- An engineering team adding checks for required tools, workflow steps, or run completion to CI.
- A team using LangGraph, AI SDK, or OpenAI Agents JS instrumenting its framework with the corresponding adapter to inspect traces.
- An engineer attaching run evidence to a pull request, incident, or support handoff after creating a redacted, offline-verifiable Evidence v2 bundle.
- A team with structured logs or OpenInference/OTLP JSON bringing those records into a local inspection workflow with the
logsoropencommand.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install agent-inspectnpx agent-inspect init --yesnpx agent-inspect list --dir .agent-inspectnpx agent-inspect view <run-id> --dir .agent-inspect --summary
- Runtime
- Node.js 20+
How do you install or deploy this agent?
Requires Node.js >=20. Install the core CLI:
npm install agent-inspectCreate and run the local demo:
npx agent-inspect init --yes
node examples/agent-inspect-demo.mjs
npx agent-inspect list --dir .agent-inspectThe core workflow does not require an account or API key. For framework integrations, install the relevant adapter package listed in the README, such as @agent-inspect/langchain or @agent-inspect/openai-agents.
How do you use this agent?
Copy a run ID from list, inspect its summary, and run a trajectory check:
npx agent-inspect view <run-id> --dir .agent-inspect --summary
npx agent-inspect check <run-id> --dir .agent-inspect --preset trajectoryCreate and verify shareable offline evidence:
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 ./evidenceFor programmatic checks, read JSONL and evaluate a TraceContract:
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;Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- data-flow disclosure
- sensitive-data handling
- disclosed external effects
What are this agent's strengths and limitations?
- Traces stay in local JSONL by default, and core capture and inspection need no account, collector, or default upload.
- One trace supports execution-tree debugging, deterministic CI trajectory checks, and the Evidence v2 sharing workflow.
- Reader APIs, TraceContract, framework adapters, and Vitest/Jest reporters provide integration paths for TypeScript workflows.
- Requires Node.js >=20 and comfort with CLI commands or calling the APIs from code.
- Redaction and
verify-safeare best-effort controls, not privacy, security, or compliance certification; artifacts still need review before sharing. - Trajectory checks use recorded traces and rules; failure-based gating requires explicit OUTCOME events.
- The optional MCP server is currently Preview, which limits its suitability for teams requiring a stable MCP surface.
How does this agent compare with similar options?
The README positions AgentInspect as a laptop-to-PR evidence workflow that complements hosted observability/APM and eval/prompt platforms. Hosted observability suits production fleet monitoring and retention; eval/prompt platforms suit prompt and dataset management and online LLM-judge experiments.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AgentInspect Local Trace Toolkit This agent | 79 · Good | CLIFree | ★ 213 | 3d ago | TypeScript | — |
| Open Generative UI | 74 · Some gaps | CLIFree + model costs | ★ 4.3k | 1mo ago | TypeScript | Claude API |
| LangChain | 62 · Some gaps | Library / SDKFree + model costs | ★ 150k | today | Python | OpenAI API |
| Open Multi-Agent Canvas | 35 · Major gaps | Web appFree + model costs | ★ 566 | 5mo ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The README, SECURITY.md, and adapter code describe local, read-only, or metadata-only defaults, with previews requiring explicit selection and redaction; the README also discloses optional network surfaces and asks users to review artifacts before sharing. Deductions: redaction can be explicitly disabled, custom metadata may still contain sensitive data, and the static packet does not cover every optional package implementation. Publisher identity is unknown, so attribution evidence is limited.
The packet shows layered CI, type checking, coverage gates, offline integration scripts, adapter parity tests, diagnostics, and documented failure exit codes. Deductions: no actual execution results are provided, and the framework integrations and optional packages add dependency availability and compatibility burdens.
The README, skill, and install kits cover custom TypeScript code, LangChain, AI SDK, OpenAI Agents, structured logs, OTLP/OpenInference, CI, and optional MCP; they clearly exclude hosted APM replacement, compliance certification, and automatic replay. Deductions: Node.js >=20 and TypeScript/Node module settings impose environment requirements, and maturity varies across adapters and optional surfaces.
The repository presents a clear documentation entry point, scenario-based install guidance, copyable examples, known limitations, security guidance, an MIT license, and a version baseline/changelog path. AGENTS.md reads as maintainer development guidance rather than product instructions. Deductions: the 18-package release group and multiple support tiers increase naming and version coordination complexity; the packet does not identify a specific accountable maintainer or maintenance responsibility.
Local execution trees, deterministic trajectory rules, and verifiable offline evidence support a reusable debugging-to-CI workflow with reports, trees, and evidence bundles. Deductions: users must instrument or adopt an adapter, configure rules, and review shared artifacts; the package family adds setup and maintenance cost.
Most product claims have corresponding explanations across the README, security docs, package metadata, and supplied code/tests; the docs distinguish best-effort safety assessment from certification and treat trace content as untrusted data. Deductions: the packet is a sample, omits many core implementations and the changelog body, and test source is not execution output or independent verification.
- Review evidence bundles before sharing; redaction and verify-safe are best-effort controls, not privacy, security, or compliance certification.
- Metadata may be user-controlled; disabling redaction or using custom fields can persist sensitive information locally.
- Node.js 20 or newer is required; check dependency and support details for each optional framework adapter you install.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Patch Changes - Updated dependencies [aad070b] - [email protected] - @agent-inspect/[email protected] - @agent-inspect/[email protected]View on GitHub ↗
FAQ
Do I need an account or API key for the core workflow?
Does it capture prompts and model outputs?
What happens when a CI check fails?
Does the safety check certify a bundle for compliance?
verify-safe is a best-effort local assessment, and the Evidence artifact should be reviewed before sharing.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.