Tamper-Proof Observability
Every agent action, recorded and provable
Wrap any AI agent CLI. Record every event — thoughts, tool calls, file edits, token counts, costs — into tamper-proof NucleusDB traces. Every trace event is a content-addressed blob with a SHA-512 Merkle proof. If any event is modified after the fact, the proof chain breaks.
agenthalo run claude -p "explain this function" --allowedTools ""Zero config. Zero telemetry. Nothing leaves your machine.
Recording Pipeline
Detect Agent Type
Identifies Claude, Codex, or Gemini from the command name
Inject Output Flags
Adds structured output flags automatically (unless already present)
Spawn & Tee
Agent runs as subprocess — you see everything in real time
Parse Events
Structured output stream parsed into typed trace events
Record to NucleusDB
Events stored as content-addressed blobs with Merkle proofs
Signal Forwarding
SIGINT/SIGTERM forwarded to child process for clean shutdown
Supported Agent CLIs
Auto-injects the right flags for structured output. If you already pass these flags, AgentHALO won't duplicate them.
| Agent | Flags Injected | Purpose |
|---|---|---|
| Claude Code | --output-format stream-json --verbose | NDJSON event stream |
| Codex | --json | JSON output mode |
| Gemini CLI | --output-format stream-json | NDJSON event stream |
agenthalo run claude ...Record a Claude Code session
agenthalo run codex ...Record a Codex session
agenthalo run gemini ...Record a Gemini CLI session
Trace Event Types
ThoughtInternal reasoning and planning text
ToolCallTool name, arguments, and result
FileEditPath, old content hash, new content hash
MessageUser/assistant message exchange
TokenUsageInput/output/cache tokens per turn
CostEventPer-turn dollar cost with pricing model
ErrorRuntime errors and tool failures
SessionStartAgent type, model, working directory
SessionEndTotal tokens, cost, duration, exit code
Precise Cost Tracking
Per-Turn Tracking
Every API turn records input tokens, output tokens, cache tokens, and computed cost using the pricing table.
Session Rollup
Aggregate cost per session with model breakdown. See exactly what each agent run cost.
Monthly Dashboard
Daily and per-agent cost charts. Identify spending patterns and optimize model selection.
Multi-Model Pricing
Built-in pricing tables for Claude, GPT-4, Gemini, Codex, and local models. Custom pricing support.
Shell Wrapping
Add to your shell profile and every agent invocation is automatically recorded. No behavior change required.
eval "$(agenthalo shell-wrap)"
Creates shell functions that transparently wrap claude, codex, and gemini commands.
Inspecting Traces
Query recorded sessions from the CLI or the web dashboard.
agenthalo sessionsList all recorded sessions
agenthalo inspect <session_id>View full trace timeline
agenthalo costsCost summary across sessions
agenthalo export <session_id>Export trace as JSON
Start Recording Your Agent Sessions
One command to install. Zero config. Every action provable.
