devtools

Reviewed at commit 5015f53

Breakpoints on tools, shell commands, file paths and failures that hold a call in Claude Code's question dialog for Continue, Step or Reject, with a dim…

Made by
NMenzel
What we checked

Adds a debugger pane for Claude's tool calls: breakpoints pause a matching call and ask you to continue, step or reject it; it keeps a timeline, explains failed and refused calls, and shows your permission rules. Recorded commands and errors are redacted. It makes no network calls, runs no programs, saves only your breakpoint rules, and writes trace files, including your permission rules, only when you export.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since 29b1f8c; the rest carries over from the review at that commit. Changes in 0.2.1: session.append on tool results still returns the stored result unchanged, and when a call was refused above DevTools it now also calls $.session.messages (only then, also for a subagent's conversation) and keeps only that call's tool input as the same redacted, truncated summary the timeline keeps, not the prompts or other rows; the mod's own .catch guard refusals are now recorded too. command.run now refuses every DevTools command unless the run's origin is composer, bridge, sdk, slack-ping or auto-continuation, so another session, a channel, a schedule or another mod cannot run them. Hit counts are written atomically before planning, and the .catch guard answers from the call's own plan, its counted rules or the last snapshot; in headless runs with headlessPause record-only it lets through what the hook would have let through. Exports (schema 3) now also hold the refused calls and the permission rules, read again at export time and redacted; they go through the unchanged path checks and are still written only on /devtools-export or the Export button. Redaction gained Stripe, Slack refresh and Twilio key shapes, MCP tool summaries are now redacted by argument name, settings read errors are redacted before being cut, and long text is cut at 64 KB before redaction. The rest is a REFUSED dashboard panel, times labeled UTC and small refactors. No new host, file location, process, permission or setting write; hooks.json is unchanged. Carried over: registers tool.call (records each call, holds a call matching an active pause breakpoint or an armed pause-next/step in a $.ui.ask dialog; Reject or a dismissed dialog returns a deny to Claude, Continue passes it to the normal permission chain; the .catch handler denies only calls a breakpoint would have held and otherwise passes them through), tool.check (passes the verdict through unchanged and only reads it from the chain trace), session.start, classic.SessionStart, command.run for /devtools, /devtools-* and the aliases /bp, /bpl, /bpn, /bpc, /bpe, /bpp, and ui.render for its Pane, the ToolUse and ToolGroup rows (a break-on gutter) and AbovePrompt (a bar). Runtime calls: $.state, $.store (breakpoint rules, mode and recording flag only, when persistBreakpoints is on), $.ui.toast/status/log/open/ask, $.tool.check (permission preview without running), $.settings.read for user, project, local, flag and policy settings (only permissions allow/ask/deny, defaultMode and additionalDirectories are kept, redacted, never written), $.fs.stat (Error Lens probe mode, default on: metadata of up to 5 paths from a failed call's arguments or error text, skipping UNC paths, globs and redacted text; never contents), $.fs.exists and $.fs.write (only for export: default .claude-devtools/trace-<time>.json in the working directory; a user path must end in .json or .md, no .., ~, env vars, hidden folders or CLAUDE.md/AGENTS.md/GEMINI.md, and an existing file outside .claude-devtools is never replaced; absolute paths are accepted). The timeline lives in session state, bounded to 500 events, with inputs truncated and redacted by pattern (tokens, keys, env assignments, secret flags and headers) and Write/Edit contents omitted; the opt-in captureRaw option (off by default) keeps up to 20,000 characters of raw input and output. Simulated results are opt-in (off by default), allowlisted and labeled. In headless runs (claude -p, SDK) a matching pause breakpoint rejects the call by default (headlessPause option); breakpoints persist across sessions. The pane opens on start in wide terminals (openOnStart). No fetch, sockets, processes, eval or model calls, confirmed again by search of the loaded code at this commit. Every hunk of the diff was read, with the tool.call handler, settings loading and export path checks read in the clone; unchanged UI files and the unchanged parts of breakpoints.ts and lens.ts carry over from the previous review.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

A debugger for Claude Code tool calls: breakpoints, pause/continue/reject/step, a timeline, an inspector, Error Lens failure diagnosis and sanitized trace exports.

Made this mod? Add a badge to your README

modsforClaude badge for devtools

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/devtools.svg)](https://modsforclaude.com/mods/devtools/)

← All mods