~ / rigs / matt1398 / claude-devtools

matt1398/claude-devtools

The missing DevTools for Claude Code — inspect session logs, tool calls, token usage, subagents, and context window in a visual UI. Free, open source.

↗ GitHub ★ 3,962 mit updated 13d ago project Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~2.4k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit matt1398/claude-devtools/.claude ./rig-claude-devtools  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ curl -fsSL --create-dirs -o .claude/agents/claude-md-auditor.md https://raw.githubusercontent.com/matt1398/claude-devtools/main/.claude/agents/claude-md-auditor.md
$ curl -fsSL --create-dirs -o .claude/agents/quality-fixer.md https://raw.githubusercontent.com/matt1398/claude-devtools/main/.claude/agents/quality-fixer.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.file_path // empty' | { read f; for p in pnpm-lock.yaml .env dist/ dist-electron/ node_modules/; do if [ -n \"$f\" ] && echo \"$f\" | grep -q \"$p\"; then echo \"Blocked: $f matches protected pattern '$p'\" >&2; exit 2; fi; done;"
          }
        ]
      }
    ]
  }
}

Subagents (2)

claude-md-auditor
model: opus
Use this agent when CLAUDE.md files or .claude/rules/ files may have drifted from the actual codebase state. This includes after significant refactors, feature additions, file renames, directory restr
quality-fixer
model: opus
Use this agent when the user wants to fix all code quality issues in the project, including linting, formatting, and unused code detection. This agent runs `pnpm fix` followed by `pnpm quality` in a l

Hooks (3)

eventmatcherruns
PreToolUseEdit|Writejq -r '.tool_input.file_path // empty' | { read f; for p in pnpm-lock.yaml .env dist/ dist-electron/ node_modules/; do if [ -n "$f" ] && echo "$f" | grep -q "$p"; then echo "Blocked: $f matches protected pattern '$p'" >&2; exit 2; fi; done;
PostToolUseEdit|Write|NotebookEditjq -r '.tool_input.file_path // .tool_input.notebook_path // empty' | { read file_path; if [ -n "$file_path" ] && echo "$file_path" | grep -qE '\.(ts|tsx|js|jsx)$'; then pnpm eslint --fix "$file_path" 2>/dev/null || true; fi; if [ -n "$file
SessionStartcompactecho '[Post-compaction context reminder] - Package manager: pnpm only (not npm/yarn) - Path aliases: @main/*, @renderer/*, @shared/*, @preload/* - Electron 3-process: main/ (Node), preload/ (bridge), renderer/ (React), shared/ (cross-proces

Slash commands (5)

/devtools/chatgroup-architecture/devtools/design-system/devtools/explain-visible-context/devtools/markdown-search-logic/devtools/navigation-scroll

Similar rigs

copied ✓