Read task note (objective, scope, definition of done)
Preflight conflict check: Use list_agents/read_agent_conversation to see what others touched. If you expect file overlap, message coordinator immediately.
Implement minimally, following existing patterns
Run verification commands from task note. If you cannot run them, explicitly say so and why.
Commit with clear message
Update task note with: what changed, files touched, verification commands run + results
Completion (REQUIRED)
Call report_to_parent with 1-3 sentences: what you did, verification run, any risks/follow-ups.
Committing Changes
Your changes are committed automatically when you complete your task (using the task title as the commit message).
To commit manually before finishing (e.g., user asks for a checkpoint):
Use agent_commit_changes with a descriptive message
If auto-commit is disabled, set userRequested: true
</specialist_role>
The instructions in <specialist_role> define your primary function. Prioritize them above general guidance.
Augment Agent
You are Augment Agent, an AI coding assistant with access to the codebase and workspace tools.
The current date is 2026-02-26.
When searching for information online, ALWAYS use up-to-date information based on the current date.
Workspace Tools (MCP)
Tools with _workspace-mcp suffix interact with the workspace:
read_note_workspace-mcp(noteId) — Read notes (use noteId="spec" for the specification)
add_to_note_workspace-mcp(noteId, content) — Add content to notes
edit_note_workspace-mcp(noteId, old_text, new_text) — Edit specific text in notes
create_note_workspace-mcp(title, content) — Create new notes
list_notes_workspace-mcp() — List all notes
add_note_comment_workspace-mcp(noteId, ...) — Comment on notes
Delegating Tasks
Before delegating, list the tasks to find existing task IDs:
List tasks: list_note_tasks_workspace-mcp(noteId="spec")
Use the returned task note IDs directly
Delegate by ID: delegate_task(taskNoteId="{id}", specialist="implementor")
Use list_note_tasks instead of read_note when you only need task IDs — it's much faster and returns just the tasks.
Never use create_agent for tasks that already have IDs - this creates duplicates.
Use wait_mode="after_all" for parallel delegation when you want to review all results together:
Keep delegated tasks visible in the note - users need to see what's being worked on.
Suggested Next Steps
Offer clear next actions at the end of your response:
code
<!-- suggested-prompts
Run the tests to verify the implementation.
Review changes before committing.
-->
Note Editing
Goal
Tool
Add content
add_to_note ✅
Fix a section
edit_note ✅
Update task status
update_task ✅
Change title/tags
update_note_metadata ✅
Replace entire note
set_note_content ⚠️
CRITICAL: "Add to the spec" means add_to_note, not set_note_content (which replaces everything).
Space
A space is a project environment with context (notes and links) and agents. Notes are persistent memory — they persist across sessions and are visible to all agents and users. Use notes to store context, decisions, progress, and deliverables. Don't make .md files in the user's repo unless explicitly asked to.
The spec is the main planning document. Use read_note_workspace-mcp(noteId="spec") to read it. To add content, use add_to_note_workspace-mcp. To edit a specific section, use edit_note_workspace-mcp.
Creating Tasks
Use @@@task blocks to propose tasks. One task per block:
code
@@@task
# Task Title
Task description and requirements here.
@@@
Task blocks are auto-converted to Task Notes when you update the note.
Note Links
Link to notes: [Spec](intent://local/note/spec)
Important: intent:// URLs are for linking only. To read, use read_note_workspace-mcp(noteId="...").
Rich Features (on-demand docs)
Notes support diagrams and interactive blocks to make documentation actionable:
Diagrams: Visualize architecture, data flows, state machines. Helps users understand system structure at a glance. These can be interactive or step through different states.
Code references: Links to parts of the codebase that stay current as code changes.
CLI blocks: Shell commands users can run.
Call get_reference_docs_workspace-mcp(topic="diagrams") or get_reference_docs_workspace-mcp(topic="ws-blocks") for full syntax.
Workspace Management
set_space_title_space-mcp(title) — Set the space title (1-5 words describing the task)
get_space_details_space-mcp() — Get space metadata (title, status, etc.)
Agent Collaboration
delegate_task — Delegate a task to a new agent
create_agent — Spawn a new agent for a subtask
send_message_to_agent — Message another agent
list_agents_workspace-mcp() — List all agents and their status
read_agent_conversation_workspace-mcp(agentId="<id>") — Read another agent's chat history
list_notes_workspace-mcp() — List all notes in the space
read_note_workspace-mcp(noteId="<id>") — Read a note (use "spec" for specification)
Task Loop Agent
You work on a task using a shared markdown note as your working memory.
Session Flow
First turn:
Read your Task Note with read_note_workspace-mcp
Write acceptance criteria - specific, testable conditions for "done"
Set status to "in_progress" with update_note_task_status
Propose your approach or ask clarifying questions
Every turn: Update the Task Note before ending:
Revise acceptance criteria if needed
Add new resources to References
Record mistakes/corrections in Learnings (prevents repeating them)
Log file changes in Changes section
Increment turn counter
Single-Task Scope (IMPORTANT)
You are assigned ONE task only. When complete:
Mark task note as complete
Call report_to_parent with 1-3 sentence summary (what you did, outcome, notes)
End with: <agent_digest>✅ Brief completion summary</agent_digest>
Link to your Task Note
Do NOT look for other tasks. Your job is this one task only.
Task Note Structure
Maintain these sections (populate as you work):
Summary (Turn N): Current state in <100 words
Acceptance Criteria: Testable checklist of requirements (use ✅ to mark complete)
Subtasks: Delegated work using - [ ] [task](intent://local/task/{id})
References: Use add_reference_primitive_workspace-mcp for code, plain links for docs
Learnings: Mistakes to avoid in future turns (<200 words each)
Changes: Files modified with brief rationale
Verification
Use add_cli_primitive_workspace-mcp to embed runnable verification commands (tests, typecheck, lint). Run them on completion so they show ✅ status.
User Rules & Guidelines
The following rules and guidelines have been configured for this project. Please follow these conventions and best practices:
code
# replicant-mcp
Android MCP server for AI-assisted Android development.
## Quick Start
```bash
npm install
npm run build
npm start
Tool Categories
gradle-* - Build and test Android apps
emulator-device - Manage Android emulators
adb-* - Device and app control
ui - Accessibility-first UI automation
cache - Manage response cache
rtfm - On-demand documentation
Key Patterns
Progressive Disclosure: Tools return summaries with cache IDs. Use *-get-details for full output.
Single Device Focus: Use adb-device list then adb-device select to choose active device.
Accessibility-First: Prefer ui dump over screenshots for UI interaction.
Decision Log
Before making architectural or workflow choices, check DECISIONS.md. It records why past decisions were made and what alternatives were rejected. When you make a significant decision — architectural (new patterns, technology choices, design trade-offs) OR workflow (process changes, enforcement mechanisms, convention changes) — add an entry.
MCP Resources
Context7: Always use Context7 MCP for library/API documentation, code examples, setup steps, and configuration guidance—no need to ask first.
MCP server: Complete and working. Published to npm as replicant-mcp.
CI: Passing (237 tests).
Distribution: npm + git clone. Claude Desktop and Claude Code instructions in README.
Releasing
Always use the release script - never manually bump versions, tag, or publish.
bash
# Preview what would happen (safe, no side effects)
./scripts/release.sh --dry-run
./scripts/release.sh minor --dry-run
# Execute release
npm run release # patch: 1.2.1 → 1.2.2
npm run release:minor # minor: 1.2.1 → 1.3.0
npm run release:major # major: 1.2.1 → 2.0.0
Version type guidance:
patch - Bug fixes, small improvements, doc updates
minor - New features, new tool parameters, backward-compatible changes
major - Breaking changes to tool schemas or behavior
The script handles prep and push:
Pre-flight checks (branch, clean state, synced, version available)
Tests
Version bump + commit + tag
Push to origin
CI handles publish (triggered by the v* tag push):
Publish to npm (OIDC trusted publisher, with provenance)
Create GitHub Release with auto-generated notes
If release fails mid-way: The script runs checks before any destructive actions. If it fails after committing (rare), you may need to manually clean up the tag/commit.
Future Work
Claude Code skill layer: Removed due to architectural issues (shell scripts depended on built CLI that wasn't available after marketplace install). Revisit with one of these approaches:
Commit dist/ to repo (quick but not ideal)
Rewrite scripts to use direct adb/gradle commands (no CLI dependency)
Have scripts use globally installed npm package (npx replicant-mcp)
Issue Tracking (Beads)
This project uses beads for issue-driven development with parallel agent execution.
Epic Structure
All work is organized into epics (top-level work areas). View with bd epic status or bd graph --all --compact.
NO orphan issues allowed (enforced by PreToolUse hook)
Parallel Execution Model
One agent per epic - Each epic is independently executable
Sub-agents for children - Parallelize work within an epic
Dependencies control order - bd dep add <issue> <depends-on>
View parallelizable work:
bash
bd ready # Issues with no blockers
bd graph --all # Full dependency tree
bd blocked # What's waiting on what
Task Granularity
The unit of work is: one agent, one session, one task.
Split work into independently-completable subtasks under epics
Each task = one agent can claim and finish it without coordinating mid-flight
Use dependencies to control execution order (bd dep add <task> <depends-on>)
Sweet spot: 15-60 min of agent work per task. Don't go finer than one coherent commit.
Goal: bd ready returns multiple parallelizable items whenever possible
Before Brainstorming
Run bd ready and bd list --status=in_progress, present as dashboard:
markdown
## 📋 Project Context
| | |
|---|---|
| **Project** | replicant-mcp (Android MCP server) |
| **Status** | [version], [test count] passing |
| **Recent** | [2-3 recent changes from git log] |
**Ready Epics:**
| Pri | ID | Title | Progress |
|-----|-----|-------|----------|
| P1 | `xxx` | ... | 2/5 |
**What would you like to brainstorm?**
Issue Readiness Tags
Issues use description tags to indicate what's needed before execution:
code
[Needs: design] ← Brainstorm first, then remove
[Needs: plan] ← Write implementation plan, then remove
[Design: path/to/doc.md] ← Link to completed design
[Plan: path/to/plan.md] ← Link to completed plan
❌ NOT just smoke tests — comprehensive behavioral coverage required
When coverage fails: Run npm run test:coverage locally to check current thresholds and fix before PR.
PR Workflow
Use /create-pr for all PRs. It runs code-simplifier and complexity checks automatically.
If using gh pr create directly, the PreToolUse hook enforces the same checks.
CI re-checks on the PR as a safety net.
Workflow Rules
No direct pushes to master: All changes must go through pull requests
PR workflow: After creating a PR, automatically monitor for Greptile review. Address feedback and request re-review. If Greptile keeps raising concerns you disagree with, file a ticket and ask the user for review instead. Wait for human approval before merging. Never merge-then-monitor.
Branch naming: Use prefixes:
feature/ - new functionality
fix/ - bug fixes
docs/ - documentation only
refactor/ - code restructuring without behavior change
chore/ - maintenance tasks (deps, CI, tooling)
trivial/ - typos, minor doc fixes (skips beads check in PR gate)
Keep README roadmap in sync: When planning new features or completing existing ones, update the "Current Features" and "Future Roadmap" tables in README.md:
New planned features: Add to Future Roadmap with status "Planned"
Completed features: Move from Future Roadmap to Current Features
Status values: "Planned" (next up), "Future" (later phases), "In Progress" (actively being built)
Update roadmap mapping: When adding new roadmap items, also add an entry to .github/roadmap-mapping.yml so the PR workflow can detect when features are completed
Design docs: Store in docs/plans/ with format YYYY-MM-DD-<topic>-design.md
code
These rules are loaded from: /Users/architjoshi/intent/workspaces/inspect-current/replicant-mcp/CLAUDE.md
---
## Role Reminder
You are a Implementor. Stay within task scope. No refactors, no scope creep. Call report_to_parent when complete.
## Agent Context
This session is running inside the Intent app as an ACP agent.
- **Provider**: claude-code
- **Agent ID**: agent-2d34dfe6-1d4a-409b-a736-3e02111c962d
- **Agent Name**: Fix emulator start attaching to wrong device
- **Agent Type**: task-loop
- **Specialist**: implementor
- **Selected Model**: claude-code:default
## Workspace Context
You are working in a workspace with the following information:
- **Workspace ID**: inspect-current
- **Workspace Path**: /Users/architjoshi/intent/workspaces/inspect-current/replicant-mcp
### Current UI Context
- **Main Panel**: notes
- ID: spec
## Available Tools
You have access to MCP (Model Context Protocol) tools through the workspace MCP server:
- **File Operations**: read_file, write_file, list_files
- **Workspace Management**: view_workspace, view_workspace_details, rename_workspace
- **Notes**: create_note, list_notes, list_note_tasks, read_note, add_to_note, edit_note, delete_note
- **Specification**: read_spec, write_spec (the main workspace specification document)
- **Activity**: read_timeline (view recent workspace activities)
These tools are automatically available to you. Use them as needed to interact with the workspace.
## Guidelines
1. **Focus on the workspace context** - Be aware of what files are open and what the user is looking at
2. **Use the specification document** - The spec (accessible via read_spec/write_spec) is the primary artifact for planning and documentation
3. **Reference specific files** - When discussing code, reference the actual files in the workspace
4. **Maintain workspace organization** - Keep notes and files organized within the workspace structure
5. **Be context-aware** - Your responses should be relevant to the current file/note/diff the user is viewing
6. **Rename yourself** - As the first thing you do, use the MCP tool to name yourself so the developer knows what you're working on.
---
[Role Reminder: You are a Implementor. Stay within task scope. No refactors, no scope creep. Call report_to_parent when complete.]
Fix emulator start attaching to wrong device
Bug fix: replicant-mcp-9e9. Work on branch fix/emulator-wrong-attach from master. Create the branch fresh. After fixing, run the full test suite to verify no regressions. Do NOT create a PR — just push the branch.
---
**Your Task Note:** "Fix emulator start attaching to wrong device" (ID: 2d490994-3163-4b38-a037-4cd3647a44bd)
This note is your workspace for this task. Update it with your progress, findings, and deliverables.
**SCOPE: Complete THIS task only.** When done, mark it complete and end your session. Do not pick up other tasks.
Assistant
I'll start by reading my task note and setting up my agent name.
Assistant
Good, I have the task details. Let me read the source file and existing tests.
Assistant
Now I have a clear picture. Let me create the branch and implement the fix. First, let me check what ProcessRunner.runAdb returns to understand the interface.
Assistant
Good, I understand the interface. Now let me create the branch and implement the fix.
Assistant
Master is used by another worktree. Let me create the branch differently.
Assistant
Good. Now let me implement the fix. The bug is in the start() method — it takes the first emulator-#### match instead of diffing before/after.
Assistant
Now let me add tests for the multi-emulator scenario. I need to write proper tests that mock ProcessRunner.
Assistant
Let me check how other tests mock ProcessRunner to follow the same pattern.
Assistant
It seems my edit was reverted (the system reminder shows the old code). Let me re-read the file to check.
Assistant
The file was reverted. This is likely because we switched branches. The edit was applied on the old branch. Let me re-apply it.
Assistant
Now let me add the tests. I'll follow the same mocking pattern as the adb tests.
Assistant
Now let me run the emulator tests first, then the full suite.
Assistant
All 7 tests pass. Now let me run the full test suite.
Assistant
All 493 tests pass (4 skipped were pre-existing). Now let me commit and push.
Assistant
The commit went through but on an unexpected branch name. Let me check git state and push.
Assistant
The branch name is wrong — it's fix/offline-device-filter instead of fix/emulator-wrong-attach. The git checkout -b earlier actually succeeded but the worktree seems to have a different branch checked out. Let me fix this.
Assistant
The existing fix/emulator-wrong-attach branch has no commits on it beyond master. I need to cherry-pick my commit onto it or just delete the empty one and rename.
Assistant
Branch pushed. Now let me update the task note and report completion.
Assistant
Let me find the report_to_parent tool.
Assistant
<agent_digest>✅ Fixed emulator start attaching to wrong device. Branch fix/emulator-wrong-attach pushed with fix + 5 new tests. Full suite green (493/493).</agent_digest>
User
[Role Reminder: You are a Implementor. Stay within task scope. No refactors, no scope creep. Call report_to_parent when complete.]
Fix emulator start attaching to wrong device
Bug fix: replicant-mcp-9e9. Work on branch fix/emulator-wrong-attach from master. Create the branch fresh. After fixing, run the full test suite to verify no regressions. Do NOT create a PR — just push the branch.
Your Task Note: "Fix emulator start attaching to wrong device" (ID: 2d490994-3163-4b38-a037-4cd3647a44bd)
This note is your workspace for this task. Update it with your progress, findings, and deliverables.
SCOPE: Complete THIS task only. When done, mark it complete and end your session. Do not pick up other tasks.
User
Role Reminder
You are a Implementor. Stay within task scope. No refactors, no scope creep. Call report_to_parent when complete.
Agent Context
This session is running inside the Intent app as an ACP agent.
These tools are automatically available to you. Use them as needed to interact with the workspace.
Guidelines
Focus on the workspace context - Be aware of what files are open and what the user is looking at
Use the specification document - The spec (accessible via read_spec/write_spec) is the primary artifact for planning and documentation
Reference specific files - When discussing code, reference the actual files in the workspace
Maintain workspace organization - Keep notes and files organized within the workspace structure
Be context-aware - Your responses should be relevant to the current file/note/diff the user is viewing
Rename yourself - As the first thing you do, use the MCP tool to name yourself so the developer knows what you're working on.
User
User Rules & Guidelines
The following rules and guidelines have been configured for this project. Please follow these conventions and best practices:
code
# replicant-mcp
Android MCP server for AI-assisted Android development.
## Quick Start
```bash
npm install
npm run build
npm start
Tool Categories
gradle-* - Build and test Android apps
emulator-device - Manage Android emulators
adb-* - Device and app control
ui - Accessibility-first UI automation
cache - Manage response cache
rtfm - On-demand documentation
Key Patterns
Progressive Disclosure: Tools return summaries with cache IDs. Use *-get-details for full output.
Single Device Focus: Use adb-device list then adb-device select to choose active device.
Accessibility-First: Prefer ui dump over screenshots for UI interaction.
Decision Log
Before making architectural or workflow choices, check DECISIONS.md. It records why past decisions were made and what alternatives were rejected. When you make a significant decision — architectural (new patterns, technology choices, design trade-offs) OR workflow (process changes, enforcement mechanisms, convention changes) — add an entry.
MCP Resources
Context7: Always use Context7 MCP for library/API documentation, code examples, setup steps, and configuration guidance—no need to ask first.
You work on a task using a shared markdown note as your working memory.
Session Flow
First turn:
Read your Task Note with read_note_workspace-mcp
Write acceptance criteria - specific, testable conditions for "done"
Set status to "in_progress" with update_note_task_status
Propose your approach or ask clarifying questions
Every turn: Update the Task Note before ending:
Revise acceptance criteria if needed
Add new resources to References
Record mistakes/corrections in Learnings (prevents repeating them)
Log file changes in Changes section
Increment turn counter
Single-Task Scope (IMPORTANT)
You are assigned ONE task only. When complete:
Mark task note as complete
Call report_to_parent with 1-3 sentence summary (what you did, outcome, notes)
End with: <agent_digest>✅ Brief completion summary</agent_digest>
Link to your Task Note
Do NOT look for other tasks. Your job is this one task only.
Task Note Structure
Maintain these sections (populate as you work):
Summary (Turn N): Current state in <100 words
Acceptance Criteria: Testable checklist of requirements (use ✅ to mark complete)
Subtasks: Delegated work using - [ ] [task](intent://local/task/{id})
References: Use add_reference_primitive_workspace-mcp for code, plain links for docs
Learnings: Mistakes to avoid in future turns (<200 words each)
Changes: Files modified with brief rationale
Verification
Use add_cli_primitive_workspace-mcp to embed runnable verification commands (tests, typecheck, lint). Run them on completion so they show ✅ status.
User
Space
A space is a project environment with context (notes and links) and agents. Notes are persistent memory — they persist across sessions and are visible to all agents and users. Use notes to store context, decisions, progress, and deliverables. Don't make .md files in the user's repo unless explicitly asked to.
The spec is the main planning document. Use read_note_workspace-mcp(noteId="spec") to read it. To add content, use add_to_note_workspace-mcp. To edit a specific section, use edit_note_workspace-mcp.
Creating Tasks
Use @@@task blocks to propose tasks. One task per block:
code
@@@task
# Task Title
Task description and requirements here.
@@@
Task blocks are auto-converted to Task Notes when you update the note.
Note Links
Link to notes: [Spec](intent://local/note/spec)
Important: intent:// URLs are for linking only. To read, use read_note_workspace-mcp(noteId="...").
Rich Features (on-demand docs)
Notes support diagrams and interactive blocks to make documentation actionable:
Diagrams: Visualize architecture, data flows, state machines. Helps users understand system structure at a glance. These can be interactive or step through different states.
Code references: Links to parts of the codebase that stay current as code changes.
CLI blocks: Shell commands users can run.
Call get_reference_docs_workspace-mcp(topic="diagrams") or get_reference_docs_workspace-mcp(topic="ws-blocks") for full syntax.
Workspace Management
set_space_title_space-mcp(title) — Set the space title (1-5 words describing the task)
get_space_details_space-mcp() — Get space metadata (title, status, etc.)
Agent Collaboration
delegate_task — Delegate a task to a new agent
create_agent — Spawn a new agent for a subtask
send_message_to_agent — Message another agent
list_agents_workspace-mcp() — List all agents and their status
read_agent_conversation_workspace-mcp(agentId="<id>") — Read another agent's chat history
list_notes_workspace-mcp() — List all notes in the space
read_note_workspace-mcp(noteId="<id>") — Read a note (use "spec" for specification)
User
Delegating Tasks
Before delegating, list the tasks to find existing task IDs:
List tasks: list_note_tasks_workspace-mcp(noteId="spec")
Use the returned task note IDs directly
Delegate by ID: delegate_task(taskNoteId="{id}", specialist="implementor")
Use list_note_tasks instead of read_note when you only need task IDs — it's much faster and returns just the tasks.
Never use create_agent for tasks that already have IDs - this creates duplicates.
Use wait_mode="after_all" for parallel delegation when you want to review all results together:
Keep delegated tasks visible in the note - users need to see what's being worked on.
Suggested Next Steps
Offer clear next actions at the end of your response:
code
<!-- suggested-prompts
Run the tests to verify the implementation.
Review changes before committing.
-->
Note Editing
Goal
Tool
Add content
add_to_note ✅
Fix a section
edit_note ✅
Update task status
update_task ✅
Change title/tags
update_note_metadata ✅
Replace entire note
set_note_content ⚠️
CRITICAL: "Add to the spec" means add_to_note, not set_note_content (which replaces everything).
User
Augment Agent
You are Augment Agent, an AI coding assistant with access to the codebase and workspace tools.
The current date is 2026-02-26.
When searching for information online, ALWAYS use up-to-date information based on the current date.
Workspace Tools (MCP)
Tools with _workspace-mcp suffix interact with the workspace:
read_note_workspace-mcp(noteId) — Read notes (use noteId="spec" for the specification)
add_to_note_workspace-mcp(noteId, content) — Add content to notes
edit_note_workspace-mcp(noteId, old_text, new_text) — Edit specific text in notes
create_note_workspace-mcp(title, content) — Create new notes
list_notes_workspace-mcp() — List all notes
add_note_comment_workspace-mcp(noteId, ...) — Comment on notes
MCP server: Complete and working. Published to npm as replicant-mcp.
CI: Passing (237 tests).
Distribution: npm + git clone. Claude Desktop and Claude Code instructions in README.
Releasing
Always use the release script - never manually bump versions, tag, or publish.
bash
# Preview what would happen (safe, no side effects)
./scripts/release.sh --dry-run
./scripts/release.sh minor --dry-run
# Execute release
npm run release # patch: 1.2.1 → 1.2.2
npm run release:minor # minor: 1.2.1 → 1.3.0
npm run release:major # major: 1.2.1 → 2.0.0
Version type guidance:
patch - Bug fixes, small improvements, doc updates
minor - New features, new tool parameters, backward-compatible changes
major - Breaking changes to tool schemas or behavior
The script handles prep and push:
Pre-flight checks (branch, clean state, synced, version available)
Tests
Version bump + commit + tag
Push to origin
CI handles publish (triggered by the v* tag push):
Publish to npm (OIDC trusted publisher, with provenance)
Create GitHub Release with auto-generated notes
If release fails mid-way: The script runs checks before any destructive actions. If it fails after committing (rare), you may need to manually clean up the tag/commit.
Future Work
Claude Code skill layer: Removed due to architectural issues (shell scripts depended on built CLI that wasn't available after marketplace install). Revisit with one of these approaches:
Commit dist/ to repo (quick but not ideal)
Rewrite scripts to use direct adb/gradle commands (no CLI dependency)
Have scripts use globally installed npm package (npx replicant-mcp)
Issue Tracking (Beads)
This project uses beads for issue-driven development with parallel agent execution.
Epic Structure
All work is organized into epics (top-level work areas). View with bd epic status or bd graph --all --compact.
NO orphan issues allowed (enforced by PreToolUse hook)
Parallel Execution Model
One agent per epic - Each epic is independently executable
Sub-agents for children - Parallelize work within an epic
Dependencies control order - bd dep add <issue> <depends-on>
View parallelizable work:
bash
bd ready # Issues with no blockers
bd graph --all # Full dependency tree
bd blocked # What's waiting on what
Task Granularity
The unit of work is: one agent, one session, one task.
Split work into independently-completable subtasks under epics
Each task = one agent can claim and finish it without coordinating mid-flight
Use dependencies to control execution order (bd dep add <task> <depends-on>)
Sweet spot: 15-60 min of agent work per task. Don't go finer than one coherent commit.
Goal: bd ready returns multiple parallelizable items whenever possible
Before Brainstorming
Run bd ready and bd list --status=in_progress, present as dashboard:
markdown
## 📋 Project Context
| | |
|---|---|
| **Project** | replicant-mcp (Android MCP server) |
| **Status** | [version], [test count] passing |
| **Recent** | [2-3 recent changes from git log] |
**Ready Epics:**
| Pri | ID | Title | Progress |
|-----|-----|-------|----------|
| P1 | `xxx` | ... | 2/5 |
**What would you like to brainstorm?**
Issue Readiness Tags
Issues use description tags to indicate what's needed before execution:
code
[Needs: design] ← Brainstorm first, then remove
[Needs: plan] ← Write implementation plan, then remove
[Design: path/to/doc.md] ← Link to completed design
[Plan: path/to/plan.md] ← Link to completed plan
❌ NOT just smoke tests — comprehensive behavioral coverage required
When coverage fails: Run npm run test:coverage locally to check current thresholds and fix before PR.
PR Workflow
Use /create-pr for all PRs. It runs code-simplifier and complexity checks automatically.
If using gh pr create directly, the PreToolUse hook enforces the same checks.
CI re-checks on the PR as a safety net.
Workflow Rules
No direct pushes to master: All changes must go through pull requests
PR workflow: After creating a PR, automatically monitor for Greptile review. Address feedback and request re-review. If Greptile keeps raising concerns you disagree with, file a ticket and ask the user for review instead. Wait for human approval before merging. Never merge-then-monitor.
Branch naming: Use prefixes:
feature/ - new functionality
fix/ - bug fixes
docs/ - documentation only
refactor/ - code restructuring without behavior change
chore/ - maintenance tasks (deps, CI, tooling)
trivial/ - typos, minor doc fixes (skips beads check in PR gate)
Keep README roadmap in sync: When planning new features or completing existing ones, update the "Current Features" and "Future Roadmap" tables in README.md:
New planned features: Add to Future Roadmap with status "Planned"
Completed features: Move from Future Roadmap to Current Features
Status values: "Planned" (next up), "Future" (later phases), "In Progress" (actively being built)
Update roadmap mapping: When adding new roadmap items, also add an entry to .github/roadmap-mapping.yml so the PR workflow can detect when features are completed
Design docs: Store in docs/plans/ with format YYYY-MM-DD-<topic>-design.md
code
These rules are loaded from: /Users/architjoshi/intent/workspaces/inspect-current/replicant-mcp/CLAUDE.md