{"id":51014933,"url":"https://github.com/bradymck/claude-code-harness","last_synced_at":"2026-06-21T09:01:41.335Z","repository":{"id":363674959,"uuid":"1264414911","full_name":"Bradymck/claude-code-harness","owner":"Bradymck","description":"Portable autonomous dev harness for Claude Code: bootstrap, PRD, Ralph loop, PR hygiene — five files, zero dependencies","archived":false,"fork":false,"pushed_at":"2026-06-09T21:40:44.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T23:14:22.378Z","etag":null,"topics":["agent-skills","ai-agents","anthropic","autonomous-agents","claude","claude-code","developer-tools"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bradymck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T21:34:49.000Z","updated_at":"2026-06-09T21:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Bradymck/claude-code-harness","commit_stats":null,"previous_names":["bradymck/claude-code-harness"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Bradymck/claude-code-harness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bradymck%2Fclaude-code-harness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bradymck%2Fclaude-code-harness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bradymck%2Fclaude-code-harness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bradymck%2Fclaude-code-harness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bradymck","download_url":"https://codeload.github.com/Bradymck/claude-code-harness/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bradymck%2Fclaude-code-harness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34603583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-skills","ai-agents","anthropic","autonomous-agents","claude","claude-code","developer-tools"],"created_at":"2026-06-21T09:01:36.654Z","updated_at":"2026-06-21T09:01:41.327Z","avatar_url":"https://github.com/Bradymck.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Autonomous Dev Harness\n\nA portable toolkit for Claude Code that turns feature ideas into shipped PRs with minimal supervision. Five files, zero dependencies beyond Claude Code + `gh` CLI.\n\n## The Pipeline\n\n```\nidea ──▶ /bootstrap ──▶ /prd ──▶ /ralph ──▶ ralph-executor ──▶ /pr ──▶ merged\n         (new project   (spec     (convert    (autonomous       (git\n          setup only)    it)       to JSON)    build agent)      hygiene)\n```\n\n1. **`/bootstrap`** — (new/unfamiliar projects only) Structured discovery → codebase exploration → deliberation → coordination docs → agents launched. Skip for projects you already know.\n2. **`/prd`** — Asks 3-5 clarifying questions with lettered options (\"1A, 2C, 3B\"), then writes a PRD with small, verifiable user stories to `tasks/prd-\u003cfeature\u003e.md`.\n3. **`/ralph`** — Converts the PRD to `prd.json`: stories sized to one context window each, dependency-ordered, every criterion machine-checkable.\n4. **`ralph-executor`** — Subagent that implements one story end-to-end: read → plan → implement → typecheck → test → commit. Signals `RALPH_DONE` / `RALPH_BLOCKED` / `RALPH_ERROR`.\n5. **`/pr`** — Nine-step git hygiene checklist: identity check, build pass, explicit file staging (never `git add .`), feature branch, conventional commit, `gh pr create`, returns PR URL.\n\n## Install\n\nOne-liner:\n\n```bash\ngit clone https://github.com/Bradymck/claude-code-harness \u0026\u0026 mkdir -p ~/.claude/skills \u0026\u0026 cp -r claude-code-harness/skills/* ~/.claude/skills/\n```\n\nOr step by step:\n\n```bash\n# Skills (global — available in every project)\nmkdir -p ~/.claude/skills\ncp -r skills/* ~/.claude/skills/\n\n# Agent (per-project, or put in ~/.claude/agents/ for global)\nmkdir -p \u003cproject\u003e/.claude/agents\ncp agents/ralph-executor.md \u003cproject\u003e/.claude/agents/\n```\n\nRestart Claude Code (or start a new session). Verify with `/bootstrap`, `/prd`, `/ralph`, `/pr` appearing in the slash-command list.\n\n## Contents\n\n```\nharness-portable/\n├── README.md                      (this file)\n├── skills/\n│   ├── bootstrap/SKILL.md         project bootstrap wizard\n│   ├── prd/SKILL.md               PRD generator\n│   ├── ralph/SKILL.md             PRD → prd.json converter\n│   └── pr/SKILL.md                PR with full git hygiene\n└── agents/\n    └── ralph-executor.md          autonomous implementation subagent\n```\n\n## Design Principles\n\n- **Stories fit one context window.** Ralph spawns fresh instances with no memory — if a story can't be described in 2-3 sentences, split it.\n- **Acceptance criteria are machine-checkable.** \"Typecheck passes\" not \"works correctly\". UI stories require browser verification.\n- **Dependencies first.** Schema → backend → UI → aggregate views. A story never depends on a later one.\n- **Never `git add .`** — stage files by name to avoid committing secrets.\n- **PRs always, merges never.** The agent ships PRs; the human merges.\n\n## Customizing\n\nEach SKILL.md is self-contained markdown — edit freely:\n- `pr/SKILL.md`: hardcode your git identity in step 1 to make it self-enforcing\n- `ralph-executor.md`: add your project's auth model, conventions, or gotcha docs under \"Project Conventions\"\n- `bootstrap/SKILL.md`: swap the generic deliberation phase for your own review agent if you have one\n\n## Credits\n\nThis harness builds on prior work — go star the originals:\n\n- **`/prd`** is adapted from [Ryan Carson's ai-dev-tasks](https://github.com/snarktank/ai-dev-tasks) (`create-prd.md`, Apache-2.0) — the clarifying-questions flow, PRD structure, and `tasks/prd-[feature-name].md` convention are his.\n- **`/ralph`** and the `prd.json` format (`userStories` / `passes` / `notes`, one-story-per-context-window sizing) are adapted from [Ryan Carson's ralph](https://github.com/snarktank/ralph) (MIT).\n- The **Ralph technique** itself — running a coding agent in a loop with fresh context per iteration, memory in files and git — was created and named by [Geoffrey Huntley](https://ghuntley.com/ralph/).\n- The \"Verify in browser\" acceptance criteria reference [Sawyer Hood's dev-browser](https://github.com/SawyerHood/dev-browser) skill (install separately, or substitute your own browser-verification skill).\n- The \"Agent Operating Rules\" block in `/bootstrap` is a remix of agent-discipline prompts that circulated on X in 2025 — no single author, many contributors to the genre. If a specific line is recognizably yours, [open an issue](../../issues) and we'll credit you.\n- `/bootstrap`'s structure and `/pr` are original to this repo.\n\n## License\n\nMIT (this repo). The `/prd` skill is a derivative of Apache-2.0 licensed work from [ai-dev-tasks](https://github.com/snarktank/ai-dev-tasks) — see [NOTICE](NOTICE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymck%2Fclaude-code-harness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradymck%2Fclaude-code-harness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymck%2Fclaude-code-harness/lists"}