TraceBack

agent
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Fail
  • process.env — Environment variable access in demo/capture.run.ts
  • rm -rf — Recursive force deletion command in demo/feed.mjs
  • fs.rmSync — Destructive file system operation in demo/feed.mjs
  • process.env — Environment variable access in demo/feed.mjs
  • network request — Outbound network request in demo/feed.mjs
  • spawnSync — Synchronous process spawning in demo/lib.mjs
  • fs.rmSync — Destructive file system operation in demo/lib.mjs
  • process.env — Environment variable access in demo/lib.mjs
  • spawnSync — Synchronous process spawning in demo/live.mjs
  • process.env — Environment variable access in demo/live.mjs
  • network request — Outbound network request in demo/live.mjs
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

360+ downloads | Local-first AI coding agent observability and interactive control plane. Features multi-session multiplexing, real-time loop heuristics, deterministic payload parsing, and human-in-the-loop breakpoint redirection.

README.md

TraceBack

The control panel for your coding agents.

You direct. The agents do the work. TraceBack tells you which work you can trust,
holds the risky steps for your OK, and shows every change down to the line.

CI
License: MIT
VS Code

TraceBack: three agents at once, a risky install held for approval, and a test edit caught

▶ Watch the full 55-second demo


You run Claude Code in two or three places at once. Each one finishes with "Done, all tests pass."
Some of that is true. TraceBack checks what each agent actually did, not what it says, and puts the
answer in one place:

  • A verdict for every request. Looks good, Worth a check, Needs fixing, or Answered, for every agent, at a glance.
  • What needs your OK, in plain words. "Made the tests pass by changing a test, not the code." "Edited db.js, which you said not to touch." "decodeCursor() was never tested." "Got stuck repeating the same step." Each comes with the code and a ready message to send back to the agent.
  • Checks on every request, shown even when they pass: tests re-ran after the last change, the new code actually executed, tests weren't weakened, your limits were respected, the summary matches what happened, no loops, nothing half-done, no new packages, nothing deleted.
  • Ask me first. Installing packages, pushing, migrations, deleting files: the agent pauses at that step until you approve or deny it, with a note it reads. One inbox for every agent, plus a VS Code notification.
  • Revert one request. Undo exactly what it changed, after a confirmation. Anything edited since is left alone.
  • Down to the line. Every edit, in order, with Open in editor landing on the changed line.

It runs locally, needs no account or API key, and works with the Claude Code you already use.

Try it in a minute: install it and click Try it with a demo. Three agents work on a small
startup API, and one of them will ask for your OK.


What you get

Agents and requests Every running agent with what it's on now and its state: Working, Needs your OK, Looks good, Looks stuck. Each agent shows how many earlier requests are still to fix or review.
The report For each request: the verdict, what needs your OK, the checks, what the agent decided without asking you, what changed (with test status per file), and every step. Pick anything to see its code on the right.
Rules Ask me first (held for your approval), Before saying done (agents must re-check changed code before finishing), and Never allowed (blocked on the spot: deleting files, editing outside the project, touching .env, pushing to main, your own patterns).
Coverage-aware If your tests write a coverage report (istanbul, lcov, coverage.py), TraceBack names the new lines that never ran.
Loops and stalls Repeated failing steps and error streaks are caught live, with a Pause button, and recorded on the request.
Inbox The status bar shows 2 need your OK · 1 to fix. A request that finishes needing attention raises one notification.
Keyboard j/k requests, ↑/↓ findings, o open at the line, c copy the message for Claude, a/d approve or deny, r mark reviewed.
Export Copy a PR description written from what the agent actually ran, or export JSON, Markdown, HTML, or PNG.

Install

From the VS Code Marketplace: search TraceBack, install, then click Try it with a demo in the TraceBack panel.
TraceBack adds its hooks to Claude Code on activation; your next Claude Code session shows up on its own.

From source:

git clone https://github.com/madiyarzm/TraceBack
cd TraceBack
npm install && cd webview && npm install && cd ..
npm run compile && npm run build:webview
npm run package                       # builds traceback-ai-<version>.vsix
code --install-extension traceback-ai-*.vsix

To work on it, open the repo in VS Code and press F5. The dev build listens on port 7778 and leaves your
Claude Code hooks alone, so it runs side by side with an installed TraceBack. Feed it with
FAST=1 node demo/feed.mjs startup (see demo/README.md).


How it works

On activation, TraceBack adds lightweight curl hooks to ~/.claude/settings.json. Every Claude Code lifecycle event (UserPromptSubmit, PreToolUse, PostToolUse, Stop) is POSTed to a local server, parsed into a session timeline, and streamed into a React webview.

Claude Code CLI
   │  hook fires → curl POST 127.0.0.1:7777/event
   ▼
TraceBack server (in-process Node) → TraceStore → AnomalyDetector
   │  postMessage
   ▼
Webview (React) — prompt chapters, net-change review, controls

The server binds 127.0.0.1 only and refuses any request carrying an Origin header, so a browser can't reach it. Extension ↔ webview talk over VS Code's postMessage — no sockets, no polling. Hooks are removed again when the extension is disabled or uninstalled.


Tip — teach your agent to narrate

A trace is only as rich as what the agent says out loud. TraceBack reads the sentence written just before each tool call and shows it as that step's intent — so the more your agent narrates its thinking, the more the trace reads like a decision log than a list of tool names. Make it a standing habit with a few lines in your ~/.claude/CLAUDE.md (global) or a project CLAUDE.md:

## Working style
- Before each tool call, say in one sentence what you're about to do and why.
  No filler — skip "Perfect!" and a bare "Now let me…".
- When you make a judgment call — an assumption, a trade-off, picking one
  approach over another — state it plainly in prose.

The first rule feeds the reason shown under each step; the second feeds Decided without asking you. A handful of tokens per step turns the trace from what the agent did into why.


Configuration

All settings live under traceback.*. The essentials:

Setting Default Description
traceback.port 7777 Port the hook server listens on
traceback.autoInstallHooks true Auto-install hooks on activation
traceback.autoOpen "never" When TraceBack opens by itself: never, onAnomaly, firstSession, everySession. The status bar always shows what's waiting on you.
traceback.askFirst {} Ask me first: install_packages, git_push, migrations, delete_files. Easiest from the Rules view.
traceback.verifyBeforeStop false Before saying done: when Claude tries to finish with changed code that was never checked after the edit (or failing), send it back to run the checks
traceback.promptNudge "narration" What TraceBack adds to substantial prompts: narration (one sentence per step), plan (also a todo list), off
traceback.llmProvider "disabled" Narrative Engine: "disabled", "groq", or "ollama"
traceback.guards {} Toggles for built-in guards
traceback.customGuards [] Custom deny regexes, e.g. `["rm -rf
Enabling the Narrative Engine (Groq or Ollama)

The AI summary + chat helper is opt-in. Configure it via VS Code settings or a .env file at the repo root.

Groq (cloud, free tier): sign up at console.groq.com, create an API key (gsk_…), then:

# .env  (git-ignored)
GROQ_API_KEY=gsk_your_key_here

Reload the window (Cmd+R in the dev host). The VS Code equivalent is "traceback.llmProvider": "groq" + "traceback.groqApiKey": "gsk_..."; settings override .env.

Ollama (fully local): install from ollama.com, pull a model, then set "traceback.llmProvider": "ollama" and "traceback.ollamaModel": "llama3.2".


Development

npm run watch          # tsc -w (extension host)
npm run dev:webview    # vite dev server (webview HMR)
npm run compile        # full extension build
npm run build:webview  # full webview build
npm test               # vitest (300+ tests)
npm run eval           # checks over your own past sessions
npm run demo:capture   # record the demo session
npm run demo:film      # render the product film (needs ffmpeg + Python Playwright)
npm run lint           # eslint

The review logic (signals.ts, verify.ts, report.ts, chapters.ts) is pure functions over the recorded steps, which is why it is cheap to test and to run over real past sessions. Tests run on Node 20 and 22 via GitHub Actions on every push.


Roadmap

  • Codex CLI support — bring the same chapters, review, and guards to OpenAI's Codex CLI, not just Claude Code.
  • Any agent, one view — a generic OTLP-shaped adapter so LangGraph, the OpenAI Agents SDK, or MCP servers can stream into the same chapter/review views.
  • LLM-assisted ledger — an optional offline pass to catch judgment calls the regex miner misses.

License

MIT — built by Madiyar Zhunussov.

Reviews (0)

No results found