CC Harness Studio — Sharpen Your Harness Design. Visual topology, bounded loops, context budgets & deterministic hooks.
Rust Core · React 19 · XYFlow · Git-Native

Sharpen Your Harness Design.

Write longer AGENTS.md prompts and hope the AI listens.

Engineer a harness that runs autonomously—and stops before breaking things.

Tired of hand-editing scattered AGENTS.md, skills, and fragile hooks? CC Harness Studio reads your repository's Markdown, JSON, and scripts into a single Unified Harness Graph IR. Wire agents visually, simulate context token budgets, compile bounded autonomous loops, and test deterministic hooks locally—zero lock-in.

Free and open source (MIT). Works 100% locally with Claude Code, AGENTS.md, and SKILL.md.

CC Harness Studio System Topology Canvas showing 5 swimlanes and live diagnostics
1. System Topology Canvas — inspect all 5 harness gears, drag to wire @imports / Skills / MCPs, and spot broken references at a glance.
Star on GitHub

From scattered Markdown to a verified autonomous loop.

Stop managing AI behavior through guesswork. CC Harness Studio turns your repository's harness files into an inspectable, compilable, testable control system.

  1. See every broken wire in milliseconds.

    The Rust scanner walks your repository honoring .gitignore, expands recursive @import chains, parses skills with bundled scripts, inspects hook commands, and flags concrete structural defects.

  2. Wire capabilities visually, lock down subagents.

    Drag edges between contexts, agents, skills, and MCP servers. Use the Subagent Role Matrix to replace unrestricted tool inheritance with explicit Read, Grep, Glob, and scoped Bash(...).

  3. Turn flowcharts into executable autonomous loops.

    Wrap implementation, tests, and read-only critic reviews inside a first-class LoopFrame. One click compiles it into a Claude Code /run-* slash command and an executable shell verification gate.

  4. Replace polite prose with deterministic guardrails.

    The Soft-to-Hard Compiler turns "never edit generated SQL" into a real PreToolUse shell script that reads stdin JSON, exits with code 2, and feeds corrective instructions straight back to the AI.

  5. Every write is validated, diffed, and reversible.

    Nothing touches disk without a multi-file Hunk Diff preview, syntax validation (sh -n / JSON schema), and an automatic off-repo snapshot for instant 1-click rollback.

1. Scan into Unified Harness IR examples/pocket-ledger
2 Blockers

        
Ready Unified IR

Try the Context & Guardrail Simulator.

Test how the bundled examples/pocket-ledger harness resolves layered context tokens and evaluates deterministic PreToolUse / permissions.deny guardrails — right in your browser.

BLOCKED — Stopped by PreToolUse hook exit 2

        
Token Budget Waterfall 1,507 / 12,000 tokens

A studio that can never touch your application code or secrets.

Every write goes through the Rust Scoped Harness Sandbox, and optional AI tasks run inside strict read-only isolation.

Allowed Harness Scope

  • +writeAGENTS.md, CLAUDE.md, GEMINI.md, .claude/rules/**
  • +writeSKILL.md + bundled scripts/, references/, examples/
  • +write.claude/{agents,commands}/**, .harness/**, .mcp.json
  • +merge.claude/settings.json (only hooks & permissions, keeping unknown keys)

Strictly Blocked

  • −writeapplication source code (src/**, packages/*/src/**)
  • −touch.env*, CLAUDE.local.md, *.pem, *.key, .git/**, symlink escapes
  • −grantWrite, Edit, or Bash to background claude -p runs
  • −sendtelemetry or analytics — everything stays local on 127.0.0.1

Pre-write validation

Every .sh script is checked with sh -n and auto-marked +x. Every .json file is syntax- and schema-validated before disk writes, and snapshots are saved automatically for 1-click rollback.

Read-only AI isolation

Optional AI audit/design runs launch claude -p in an empty temp directory with --restricted --strict-mcp-config --tools Read,Grep,Glob and LOCKDOWN_SETTINGS blocking secrets.

Built for real engineering workflows.

Questions.

Do I need Claude Code installed to use CC Harness Studio?

No. Static diagnostics, Topology Canvas, Loop Studio & Compiler, Context Stack Simulator, Skill Bundle Editor, and the Hook Testbench all work 100% locally offline without an API key or Claude CLI. Only the optional AI Audit / Co-Design Lab invokes your local claude -p.

Does it work only with Claude Code, or also AGENTS.md / Codex / Cursor?

Both. It natively supports Claude Code (CLAUDE.md, .claude/{rules,skills,agents,commands,settings.json}, .mcp.json) as well as cross-agent standards (AGENTS.md, GEMINI.md, SKILL.md, .cursor/rules/, .github/copilot-instructions.md, and .harness/).

Will it overwrite my custom keys in .claude/settings.json?

Never. hc_core::sandbox::merge_settings_json structurally merges only the hooks and permissions objects, preserving every other key untouched—and shows a unified Hunk Diff before writing.

Can I run harness checks in CI?

Yes. cc-harness-studio check --json runs the exact same Rust diagnostic engine headlessly and exits with code 2 whenever a Blocker issue (like a broken @import or invalid hook variable) is detected.

What if I don't like a change I applied?

Every transaction automatically saves a timestamped snapshot outside your Git working tree. Open the bottom Snapshots drawer and restore any previous generation in one click.

Get CC Harness Studio.

  1. Clone & build UI

    Install Node 20+ and Rust stable, then build the React 19 Studio UI once via npm run build.

  2. Build macOS .app

    Run scripts/bundle.sh to create the self-contained ~6.7 MB target/CC Harness Studio.app.

  3. Open any repo

    Launch the native app, run studio in your browser, or integrate check into CI.

git clone https://github.com/karamage/cc-harness-studio.git
cd cc-harness-studio
cd ui && npm install && npm run build && cd ..
scripts/bundle.sh
open "target/CC Harness Studio.app"