~ / rigs / fredrikolis / annotated-tree

fredrikolis/annotated-tree

Extends Unix tree so every file shows its one-line concern and boundary, giving a separation-of-concerns overview of the whole workspace at a glance. A fast, enforceable map for AI agents.

↗ GitHub ★ 7 MIT updated 15d ago project Claude Code
share on X
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
CONTEXT TAX · EVERY TURN
~0 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit fredrikolis/annotated-tree/.claude ./rig-annotated-tree  # 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.

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": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "annotated-tree bash-annotator --rewrite-tool-call"
          }
        ]
      }
    ]
  }
}

Hooks (3)

eventmatcherruns
PostToolUseWrite|Edit|MultiEdit|NotebookEditannotated-tree edit-hook --claude
PreToolUseBashannotated-tree bash-annotator --rewrite-tool-call
SessionStartstartup|resume|clear|compact|forkannotated-tree bash-annotator --session-announcement

Similar rigs

copied ✓