agentleFS
theodo-grouptheodo-group/debug-that/CLAUDE.md

debug-that

CLAUDE.md158 starsChanged 9 months agoMITView on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Bun APIs over Node.js equivalents (WebSocket, Bun.serve, Bun.$, etc.)

    line 56
  2. Distinctive:

    No ANSI colors by default (token efficiency for AI agents)

    line 57
  3. Distinctive:

    Every error should suggest the next valid command

    line 58
  4. Distinctive:

    Keep output compact — one entity per line where possible

    line 59
  5. Distinctive:

    Use @refs for all inspectable entities in output

    line 60
  6. Very specific:

    Use parseIntFlag() from src/cli/parse-flag.ts for integer CLI flags (NaN-safe)

    line 61
  7. Very specific:

    Use parseFileLine() / parseFileLineColumn() from src/cli/parse-target.ts for file:line:column parsing

    line 62
  8. Very specific:

    Use escapeRegex() from src/util/escape-regex.ts for CDP urlRegex patterns

    line 63
  9. Very specific:

    Use formatTimestamp() from src/formatter/timestamp.ts for time display

    line 64
  10. Very specific:

    Import timeout/limit values from src/constants.ts — do not hardcode magic numbers

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

debug-that — Debugger CLI for AI Agents

Project Overview

CLI debugger built with Bun, optimized for AI agent consumption. Supports Node.js (CDP), Bun (JSC/WebKit), and native code via LLDB (DAP).

Tech Stack

  • Runtime: Bun
  • Language: TypeScript
  • Linting/Formatting: Biome
  • Testing: bun:test
  • Validation: Zod v4 (mini)
  • Dependencies: Minimal — leverage Bun built-ins (WebSocket, test runner, file I/O)

Project Structure

src/
  cli/          # CLI argument parsing, command routing, flag utilities
  session/      # Shared session abstractions
    session.ts    # Session interface + SessionCapabilities
    base-session.ts # BaseSession abstract class (shared state, refs, console)
    types.ts      # Shared types (PauseInfo, StateSnapshot, ConsoleMessage, etc.)
    factory.ts    # createSession() + isDapRuntime()
  daemon/       # Background daemon process, Unix socket server
  cdp/          # Chrome DevTools Protocol (Node.js / Bun)
    session.ts    # CdpSession (extends BaseSession)
    session-*.ts  # CDP method modules (breakpoints, execution, inspection, etc.)
    dialect.ts    # CdpDialect interface (V8 vs JSC strategy)
    adapters/     # NodeAdapter, BunAdapter (CdpDialect implementations)
    client.ts     # CdpClient WebSocket wrapper
  dap/          # Debug Adapter Protocol (LLDB, Python, etc.)
    session.ts    # DapSession (extends BaseSession)
    client.ts     # DapClient stdin/stdout wrapper
  refs/         # @ref system (mapping short refs to V8 IDs)
  formatter/    # Output formatting (variables, source, stack traces)
  commands/     # Command implementations (break, step, eval, etc.)
  protocol/     # CLI-to-daemon JSON protocol types
  sourcemap/    # Source map resolution
  util/         # Shared utilities (escapeRegex, etc.)
  constants.ts  # Centralized timeout/limit constants
tests/
  unit/         # Unit tests
  integration/  # Integration tests (node/, bun/, lldb/, shared/)
  fixtures/     # Test fixture scripts

Commands

  • bun run dev — run in development
  • bun test — run all tests
  • bun run build — compile standalone binary
  • bun run lint — lint with biome
  • bun run format — format with biome
  • bun run typecheck — type check source files

Guidelines

  • Use Bun APIs over Node.js equivalents (WebSocket, Bun.serve, Bun.$, etc.)
  • No ANSI colors by default (token efficiency for AI agents)
  • Every error should suggest the next valid command
  • Keep output compact — one entity per line where possible
  • Use @refs for all inspectable entities in output
  • Use parseIntFlag() from src/cli/parse-flag.ts for integer CLI flags (NaN-safe)
  • Use parseFileLine() / parseFileLineColumn() from src/cli/parse-target.ts for file:line:column parsing
  • Use escapeRegex() from src/util/escape-regex.ts for CDP urlRegex patterns
  • Use formatTimestamp() from src/formatter/timestamp.ts for time display
  • Import timeout/limit values from src/constants.ts — do not hardcode magic numbers
  • Adding a command: create src/commands/<name>.ts, register in src/main.ts, handle in src/daemon/entry.ts, add to help in src/cli/parser.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.