~ / rigs / thomas-lecocq / software-clone-factory

thomas-lecocq/software-clone-factory

A factory for verified clones of closed-source software: agents build, code judges

↗ GitHub ★ 1 MIT updated 1mo ago project Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~861 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 36/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit thomas-lecocq/software-clone-factory/.claude ./rig-software-clone-factory  # 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.

$ npx degit thomas-lecocq/software-clone-factory/.claude/skills/replicate-slice .claude/skills/replicate-slice
$ curl -fsSL --create-dirs -o .claude/agents/analyst.md https://raw.githubusercontent.com/thomas-lecocq/software-clone-factory/main/.claude/agents/analyst.md
$ curl -fsSL --create-dirs -o .claude/agents/breaker.md https://raw.githubusercontent.com/thomas-lecocq/software-clone-factory/main/.claude/agents/breaker.md
$ curl -fsSL --create-dirs -o .claude/agents/builder.md https://raw.githubusercontent.com/thomas-lecocq/software-clone-factory/main/.claude/agents/builder.md
$ curl -fsSL --create-dirs -o .claude/agents/recorder.md https://raw.githubusercontent.com/thomas-lecocq/software-clone-factory/main/.claude/agents/recorder.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": "Read|Write|Edit|MultiEdit|NotebookEdit|Bash|Grep|Glob|WebFetch|WebSearch",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/harness/hooks/guard-oracle.sh"
          }
        ]
      }
    ]
  }
}

Skills (1)

Subagents (4)

analyst
model: opus
Analyses why a clone failed cases of a spent holdout batch, without changing anything but its report. Proposes rules and dev probes; never fixes the clone.
breaker
model: opus
Read-only skeptic. Looks for target behaviour that the recorded fixtures do not pin down, and proposes new probes to record. Never judges pass or fail.
builder
model: opus
Implements a target's clone under targets/<t>/clone/ until the dev fixtures pass. Cannot touch the evaluator and cannot see the holdout.
recorder
model: opus
Owns the specification side of a slice - rules.json and probes.ts - and runs recordings on the real target. The only role allowed to add fixtures.

Hooks (1)

eventmatcherruns
PreToolUseRead|Write|Edit|MultiEdit|NotebookEdit|Bash|Grep|Glob|WebFetch|WebSearch"$CLAUDE_PROJECT_DIR"/harness/hooks/guard-oracle.sh

Similar rigs

copied ✓