028bff5ef1
Strip all filesystem pipeline references that were causing agents to waste turns searching for story files on disk. The README now points agents at MCP tools exclusively and documents the async run_tests workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Huskies: Story-Driven Development
Target Audience: LLM agents working as engineers. Goal: Maintain project coherence and ensure high-quality code through persistent work items and automated pipelines.
0. First Steps (For New Agent Sessions)
- Read CLAUDE.md in the worktree root for project-specific rules.
- Check MCP Tools: Your
.mcp.jsonconnects you to the huskies server. Use MCP tools for all pipeline operations — never manipulate files directly. - Check your story: Call
status(story_id)orget_story_todos(story_id)to see what needs doing.
1. Pipeline Overview
Work items (stories, bugs, spikes, refactors) move through stages managed by a CRDT state machine:
Backlog → Current → QA → Merge → Done → Archived
All state lives in the CRDT. There are no filesystem pipeline directories to read or write. Use MCP tools to query and manipulate pipeline state.
2. Your Workflow as a Coder Agent
- Read the story via
status(story_id)— understand the acceptance criteria. - Implement the feature/fix in your worktree. Commit as you go using
git_addandgit_commitMCP tools. - Run tests via the
run_testsMCP tool (starts tests in the background). Pollget_test_resultto check completion. Never runcargo testorscript/testdirectly via Bash. - Check off acceptance criteria as you complete them using
check_criterion(story_id, criterion_index). - Commit and exit. The server runs acceptance gates automatically when your process exits and advances the pipeline based on the results.
Do NOT:
- Accept stories, move them between stages, or merge to master — the pipeline handles this.
- Run tests via Bash — use the MCP tools.
- Create summary documents or write terminal output to files.
3. Work Item Types
- Story: New functionality → implement and test
- Bug: Broken functionality → fix with minimal surgical change
- Spike: Research/uncertainty → investigate, document findings, no production code
- Refactor: Code improvement → restructure without changing behaviour
4. Bug Workflow
When working on bugs:
- Read the story description first. If it specifies exact files and locations, go directly there.
- If not specified, investigate with targeted grep.
- Fix with a surgical, minimal change.
- Commit early. Don't spend turns on unnecessary verification.
5. Code Quality
Before exiting, ensure your code compiles and tests pass. Use run_tests MCP tool to verify. Fix all errors and warnings — zero tolerance.
Consult specs/tech/STACK.md for project-specific quality gates.
6. Key MCP Tools
| Tool | Purpose |
|---|---|
status |
Get story details, ACs, git state |
get_story_todos |
List unchecked acceptance criteria |
check_criterion |
Mark an AC as done |
run_tests |
Start test suite (async, returns immediately) |
get_test_result |
Poll for test completion |
git_status |
Worktree git status |
git_add |
Stage files |
git_commit |
Commit staged changes |
git_diff |
View changes |
git_log |
View commit history |