{"id":44438703,"url":"https://github.com/rikdc/reeds","last_synced_at":"2026-02-12T14:29:41.675Z","repository":{"id":335171119,"uuid":"1142555049","full_name":"rikdc/reeds","owner":"rikdc","description":"Autonomous multi-task development loops powered by the Ralph technique and Beads issue tracking.","archived":false,"fork":false,"pushed_at":"2026-01-28T21:27:06.000Z","size":19,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-29T12:12:33.420Z","etag":null,"topics":["agentic-ai","claude-code"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikdc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-26T15:06:30.000Z","updated_at":"2026-01-27T14:00:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"244203a6-5ac9-463a-b6bf-e3ae227cf83d","html_url":"https://github.com/rikdc/reeds","commit_stats":null,"previous_names":["rikdc/reeds"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rikdc/reeds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikdc%2Freeds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikdc%2Freeds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikdc%2Freeds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikdc%2Freeds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikdc","download_url":"https://codeload.github.com/rikdc/reeds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikdc%2Freeds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29368632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agentic-ai","claude-code"],"created_at":"2026-02-12T14:29:41.010Z","updated_at":"2026-02-12T14:29:41.663Z","avatar_url":"https://github.com/rikdc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reeds\n\nAutonomous multi-task development loops powered by Beads issue tracking and subagent isolation.\n\n## What is Reeds?\n\nReeds connects [Beads](https://github.com/steveyegge/beads) (git-based issue tracker) with Claude's Task tool for autonomous task execution. It provides:\n\n- **Task Orchestration**: Main agent queries Beads for ready tasks\n- **Subagent Isolation**: Each task is implemented by a fresh subagent (no context pollution)\n- **Iteration Control**: Own stop hook handles looping\n- **Dependency Awareness**: Respects Beads' dependency system\n\n## Architecture\n\n```\nMain Agent (orchestrator)\n  │\n  ├─→ bd ready --limit 1 (get next task)\n  │\n  ├─→ bd show \u003ctask-id\u003e (get details)\n  │\n  ├─→ Task tool → task-implementer agent\n  │     │\n  │     └─→ Implements task in isolated context\n  │         Returns summary when done\n  │\n  ├─→ bd close \u003ctask-id\u003e --reason \"summary\"\n  │\n  ├─→ Output: \u003cpromise\u003eTASK COMPLETE: \u003cid\u003e\u003c/promise\u003e\n  │\n  └─→ Claude attempts to stop...\n        │\n        └─→ Stop Hook intercepts\n              │\n              ├─→ Parses transcript for promises\n              ├─→ Increments iteration counter\n              ├─→ Re-injects prompt: \"Get next task\"\n              │\n              └─→ Loop continues until REEDS COMPLETE\n```\n\n## Prerequisites\n\n- Claude Code CLI installed\n- [Beads](https://github.com/steveyegge/beads) initialized in your project (`bd init`)\n- `bd` CLI available in PATH\n- `jq` for JSON processing\n\n## Installation\n\n```bash\ncd ~/.claude/plugins\ngit clone https://github.com/rikdc/reeds\n```\n\nRestart Claude Code to load the plugin.\n\n## Usage\n\n### Start a Loop\n\n```text\n/reeds:reeds-start [--max-iterations N]\n```\n\nThis will:\n1. Validate Beads is initialized\n2. Show ready task count\n3. Start the autonomous task loop\n\nOptions:\n- `--max-iterations N` - Stop after N iterations (default: 30)\n\n### Check Status\n\n```text\n/reeds:reeds-status\n```\n\nShows Reeds loop state and Beads task statistics.\n\n### Cancel Loop\n\n```text\n/reeds:reeds-cancel\n```\n\nStops the autonomous loop by setting the state file to inactive.\n\n## How It Works\n\n1. **Setup**: `/reeds:reeds-start` creates `.claude/reeds-state.local.md` with iteration tracking\n2. **Orchestration**: Main agent runs `bd ready` to get tasks\n3. **Delegation**: Each task is passed to the `task-implementer` subagent\n4. **Isolation**: Subagent runs in clean context, implements task, returns summary\n5. **Closure**: Main agent runs `bd close` with the summary\n6. **Iteration**: Stop hook detects when Claude tries to stop, re-injects loop prompt\n7. **Completion**: Loop ends when `bd ready` returns nothing\n\n## How Iteration Control Works\n\nReeds uses a **promise protocol** and a **stop hook** to maintain the autonomous loop across multiple agent turns.\n\n### Promise Markers\n\nThe orchestrator outputs special markers that the stop hook detects:\n\n| Marker | Meaning |\n|--------|---------|\n| `\u003cpromise\u003eTASK COMPLETE: \u003cid\u003e\u003c/promise\u003e` | Current task finished, get next task |\n| `\u003cpromise\u003eREEDS COMPLETE\u003c/promise\u003e` | No more tasks, terminate loop |\n\n### Stop Hook Behavior\n\nWhen Claude attempts to stop, the stop hook (`scripts/stop-hook.sh`) intercepts:\n\n1. **Parses the transcript** for promise markers\n2. **If TASK COMPLETE**: Clears current task, re-injects prompt to get next task\n3. **If REEDS COMPLETE**: Sets state to inactive, allows exit\n4. **If neither**: Re-injects prompt to continue current task\n5. **Increments iteration counter** and checks against max\n\n### State Machine\n\n```\n┌─────────────┐\n│  No Task    │◄───────────────────────────────┐\n└──────┬──────┘                                │\n       │ bd ready returns task                 │\n       ▼                                       │\n┌─────────────┐                                │\n│ Implementing│──── TASK COMPLETE ────────────►│\n└──────┬──────┘                                │\n       │ bd ready returns nothing              │\n       ▼                                       │\n┌─────────────┐                                │\n│   Complete  │ REEDS COMPLETE → exit          │\n└─────────────┘\n```\n\n## Example Workflow\n\n```bash\n# Initialize a project with Beads\ncd my-project\nbd init\n\n# Create some tasks\nbd create \"Set up project structure\" --priority 1\nbd create \"Implement core feature\" --priority 2\nbd create \"Add tests\" --priority 3\n\n# Open in Claude Code\nclaude\n\n# Start the autonomous loop\n/reeds:reeds-start --max-iterations 20\n```\n\nClaude will work through each task using subagents, closing them as completed, until no ready tasks remain.\n\n## Skills\n\n### /prd-to-beads\n\nConvert a PRD (Product Requirements Document) to Beads tasks:\n\n```text\n/prd-to-beads path/to/prd.md\n```\n\nCreates an epic with child tasks for each user story, with proper dependencies.\n\n## Project Structure\n\n```text\nreeds/\n├── .claude-plugin/\n│   └── plugin.json       # Plugin manifest\n├── agents/\n│   └── task-implementer.md  # Subagent for task implementation\n├── commands/\n│   ├── reeds-start.md    # Start command\n│   ├── reeds-status.md   # Status command\n│   └── reeds-cancel.md   # Cancel command\n├── skills/\n│   └── prd-to-beads/     # PRD to Beads conversion skill\n├── hooks/\n│   └── hooks.json        # Stop hook for iteration control\n├── scripts/\n│   ├── setup-reeds.sh       # Prerequisites validation \u0026 state setup\n│   ├── stop-hook.sh         # Iteration control hook\n│   └── set-current-task.sh  # Updates state with current task ID\n└── README.md\n```\n\n## State File Format\n\nReeds maintains state in `.claude/reeds-state.local.md` with YAML frontmatter:\n\n```yaml\n---\nactive: true                          # Loop is running (true/false)\niteration: 5                          # Current iteration count\nmax_iterations: 30                    # Stop after this many iterations\ncurrent_task_id: \"reeds-123\"          # Task currently being worked on\nstarted_at: 2024-01-15T10:30:00Z      # When the loop started (ISO 8601)\n---\n```\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `active` | boolean | Whether the loop is running |\n| `iteration` | integer | Current iteration (incremented by stop hook) |\n| `max_iterations` | integer | Safety limit to prevent runaway loops |\n| `current_task_id` | string | Beads task ID being implemented (empty between tasks) |\n| `started_at` | ISO 8601 | Timestamp when `/reeds:reeds-start` was invoked |\n\n## Troubleshooting\n\n### Loop won't start\n\n- Ensure Beads is initialized: `bd init`\n- Check for ready tasks: `bd ready`\n- Verify `bd` is in PATH: `which bd`\n\n### Tasks not being picked up\n\n- Ensure tasks are in `open` status: `bd list`\n- Check for dependency blocks: `bd blocked`\n\n### Loop stops unexpectedly\n\n- Check Reeds state: `cat .claude/reeds-state.local.md`\n- Max iterations may have been reached\n- Run `/reeds:reeds-status` for diagnostics\n\n### Task fails verification\n\nIf a subagent reports test or build failures:\n\n1. The task remains open in Beads (not closed)\n2. Run `/reeds:reeds-cancel` to stop the loop\n3. Manually fix the issue\n4. Resume with `/reeds:reeds-start`\n\n### Loop gets stuck\n\nIf the loop keeps iterating on the same task:\n\n1. Check if `current_task_id` is set: `cat .claude/reeds-state.local.md`\n2. Manually close the problematic task: `bd close \u003ctask-id\u003e --reason \"manually resolved\"`\n3. Resume with `/reeds:reeds-start`\n\n### Manual state recovery\n\nTo reset Reeds state completely:\n\n```bash\nrm .claude/reeds-state.local.md\n```\n\nTo manually adjust iteration count:\n\n```bash\n# Edit the state file directly\nvim .claude/reeds-state.local.md\n# Change iteration: N to a lower number\n```\n\n## Acknowledgments\n\n- [ralph-tui](https://github.com/human-ui/ralph-tui) - PRD to Beads skill adapted from here (MIT License)\n- [Beads](https://github.com/steveyegge/beads) - Git-based issue tracking\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikdc%2Freeds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikdc%2Freeds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikdc%2Freeds/lists"}