~ / rigs / lookfree / cc-harness

lookfree/cc-harness

Desktop workbench for Claude Code — live subagent topology, token cost breakdown with drill-down, hook sandbox, config audit. Reads your session files locally. Electron, MIT.

↗ GitHub ★ 48 mit updated 2mo ago personal setup Claude Code
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~2.0k tokens
Moderate · 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 lookfree/cc-harness/.claude ./rig-cc-harness  # 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": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "prettier --write \\\\\"$CLAUDE_FILE_PATHS\\\\\" || true"
          }
        ]
      },
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/safety_check.sh"
          }
        ]
      }
    ]
  }
}

Hooks (4)

eventmatcherruns
SessionStart*.claude/hooks/session_context.sh
PreToolUseWrite|Editprettier --write \\"$CLAUDE_FILE_PATHS\\" || true
PreToolUse*.claude/hooks/safety_check.sh
PostToolUseWrite|Edit.claude/hooks/format.sh

Slash commands (3)

/greet/greet/hello/hello/smart-commit/smart-commit

Similar rigs

copied ✓