harness-claude
CLAUDE.md2 starsChanged 6 months agoMITView on GitHub
A lean, full-SDLC Claude Code harness. The pipeline is Plan → Implement → Verify → Maintain, with memory persistence cross-cutting and subagent orchestration underneath. This file is the harness's own project context. The rules below are imported so they are active when working inside this repo. To make them active globally (on your other projects), see README → "Make the rules global (opt-in)". † = the conditional discovery entry: /discover fires above /spec only when intent is vague (you want…
In this repositoryOne other file it gives its agents.
- rules/agents.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Phase orchestrators: run a whole phase in one command (thin wrappers that sequence the atomic skills, delegate to subagents, and halt for …
- Distinctive: line 80
Search with mgrep, not grep: Run long commands in tmux.
- Very specific: line 81
Git boundary: never commit or push without an explicit user ask.
- Very specific: line 86
When /ship-ing a release here, reconcile these before committing (the /ship skill states the general principle.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.
Files
harness-claude
A lean, full-SDLC Claude Code harness. The pipeline is Plan → Implement → Verify → Maintain, with memory persistence cross-cutting and subagent orchestration underneath.
This file is the harness's own project context. The rules below are imported so they are active when working inside this repo. To make them active globally (on your other projects), see README → "Make the rules global (opt-in)".
The pipeline
DISCOVER† ─► PLAN ────────────────► IMPLEMENT ─────► VERIFY ─────────────────► MAINTAIN
/discover /spec /research /implement /review /security-review /refactor-clean
/plan /plan-check /build-fix /design-review* /test /onboard
/architect* /design* /verify /ship
memory: /save-session · /resume-session · STATE.md spine (cross-cutting)† = the conditional discovery entry: /discover fires above /spec only when intent is vague
(you want something but can't yet state what) — it frames the problem and converges to one direction
for /spec; an already-clear request skips it. * = the conditional design gate: /architect (system design) for load-bearing
architecture, /design + /design-review (product/UX) for user-facing surfaces. A change
needs one, both, or neither — internal/CLI work (like this harness) skips them.
Move forward only when a phase's exit criteria are met (see rules/workflow.md).
Phase orchestrators run a whole phase in one command (thin wrappers that sequence the
atomic skills, delegate to subagents, and halt for your input at each gate):
/harness-plan · /harness-implement · /harness-verify · /harness-maintain, and
/harness for the full pipeline with a checkpoint between phases. Use atomic skills
(/plan, /review, ...) when you only want one step.
What's here
- rules/ — always-on guidance (engineering, security, testing, typescript, python, workflow, agents, git)
- skills/ — the 19 pipeline drivers you invoke as
/discover,/spec,/plan,/plan-check,/review, ... (incl. the discovery entry:/discoveris the step above/spec— when intent is vague it turns it into a framed problem + one chosen direction, then hands off to/spec; conditional/opt-in, an already-clear request skips it; and the design altitude:/designproduces a product/UX/UI brief in PLAN and/design-reviewgates craft + a11y in VERIFY — both conditional on a user-facing surface, driven by the harness's own self-contained design rubrics underskills/design/references/; plus four opt-in eval skills:/evalcheckpoints a change against its spec's acceptance criteria,/extractturns a repeatable workflow into a staged skill proposal,/benchmarkmeasures whether a component earns its keep via pass@k/pass^k, and/healthtakes the repo's test/lint pass-fail pulse on demand — all off by default), plus/lazy(Phase 3 · L3 generation reduction — the "build the minimum that works" reflex, active by default via a hook, intensitylite|full|ultra), plus/operate(Phase 4 · long-running agents — supervises an unattended/loop//schedulerun with halting guardrails + durable.claude/runs/<id>.jsonstate, self-checkpointing against/health+/eval; opt-in, off by default), plus/orchestrate(Phase 5 · multi-agent orchestration — the third orchestration mode: decomposes a task across 3+ independent files, fans out to parallel workers on the platform Workflow tool with one-writer-per-file by assignment, and reconciles their summaries; opt-in, off by default), plus/fix(bug-fix fast lane — the parallel entry for fixing something already broken: reproduce-as-a-failing-test first, name the root cause, write a minimal fix-plan, then hand off to/implement→ verify → ship; reuses existing agents, no new agent/dep; opt-in), plus/deploy+/observe(release & feedback loop — the step past/shipand the step that brings prod back in, closing the pipeline into a loop:/deployorchestrates the project's own deploy mechanism with an arm-to-fire HALT before any outward action + smoke-tests the deployed artifact + guards a rollback;/observetakes a brought signal — stack trace/log/error/issue URL — locates the failing area, shapes a repro seed, and routes to/fix; both opt-in, no new agent/dep) - agents/ — 8 scoped subagents the skills delegate to
- hooks/ + scripts/hooks/ — runtime automations (tmux, format, typecheck, quality/design gates, strategic compact, build analysis, memory persistence, structural orientation, generation reduction, pipeline routing)
- .mcp.json — memory · sequential-thinking · magic (load only when the plugin is enabled)
Operating principles
- Token optimization: delegate to the cheapest sufficient model; subagents return summaries, not raw dumps. Benchmarking measures value; it is not the runtime strategy.
- Orchestration: sequential phases by default; iterative retrieval (≤3 cycles) when
a subagent's return is insufficient; parallel fan-out in dependency-ordered waves via
/orchestrate(opt-in). See rules/agents.md. - Durable state: a machine-navigable
.claude/STATE.mdspine (phase · status · next_skill) sits above the freeform session narrative; non-trivial features write per-phase artifacts to.claude/planning/<slug>/(SPEC.md→PLAN.md→VERIFICATION.md) so a fresh-context subagent reads a file, not the conversation. Schema:docs/state-and-artifacts.md. Optional — trivial work skips it (lazy reflex). - Modular & lean: files <800 lines, immutable patterns, validated inputs.
- Search with mgrep, not grep. Run long commands in tmux. Use context7 for live docs.
- Git boundary: never commit or push without an explicit user ask; branch creation
for non-trivial work is expected — see
rules/git.md.
Release docs sweep (this repo)
When /ship-ing a release here, reconcile these before committing (the /ship skill states
the general principle; these are the concrete files for this plugin):
- README.md — skill/agent counts and feature tables; the headline count must include any new
skill. Reconcile to the actual
ls skills/total, don't eyeball it. .claude-plugin/plugin.json+.claude-plugin/marketplace.json— bumpversion, and update the skill/agent count in the marketplacedescription.- ROADMAP.md — phase status markers (🔄→✅), the per-version checklist line, and the "next" marker on the following phase.
- CLAUDE.md — skill lists / opt-in notes; docs/HOOKS.md — only if a hook changed.
- The shipped spec status, and the parent spec's acceptance-criteria checkboxes.
Imported rules
@rules/workflow.md @rules/agents.md @rules/engineering.md @rules/security.md @rules/testing.md @rules/typescript.md @rules/python.md @rules/git.md
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
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.

