Autobot / templates
CLAUDE.md0 starsChanged 10 months agoMITView on GitHub
Autobot enables Claude Code to autonomously complete long-running development tasks by: 1. Decomposing large tasks into context-window-sized subtasks 2. Persisting state and learnings across iterations 3. Enforcing quality gates through hooks (tests must pass before continuing) 4. Recovering gracefully from failures (pause after 3 consecutive failures) Auto-detected by project type: - Node.js: npm test - Python: pytest -x --tb=short - Rust: cargo test - Go: go test ./... The autonomous loop stops when: 1. All subtasks in plan.json are marked…
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- quality-gatesSkill
- task-decompositionSkill
- test-firstSkill
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- Distinctive: line 15
Tests are first-class citizens: - Write tests before implementation (TDD)
- Distinctive: line 17
Quality gates are mandatory: - All tests must pass before marking complete
- Distinctive: line 19
Fail fast, recover gracefully: - Stop on blocking issues, not minor failures
- Distinctive: line 57
Run tests after every code change (automatic via hooks)
- Distinctive: line 58
All tests must pass before marking subtask complete
- Distinctive: line 59
No linting errors before commits
- Distinctive: line 61
Follow existing code patterns in the codebase
- Very specific: line 108
Never edit .autobot/ files directly - use the provided commands
- Very specific: line 109
Always check .autobot/progress.md for learned patterns before starting
- Distinctive: line 110
If tests fail 3 times consecutively, the loop pauses for human review
- Very specific: line 117
All subtasks in plan.json are marked completed
≈ “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
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What is Autobot?
Autobot enables Claude Code to autonomously complete long-running development tasks by:
- Decomposing large tasks into context-window-sized subtasks
- Persisting state and learnings across iterations
- Enforcing quality gates through hooks (tests must pass before continuing)
- Recovering gracefully from failures (pause after 3 consecutive failures)
Philosophy
- Tests are first-class citizens - Write tests before implementation (TDD)
- Small, verifiable steps - Each subtask must fit in one context window
- Quality gates are mandatory - All tests must pass before marking complete
- Learn and adapt - Observations persist in
.autobot/progress.md - Fail fast, recover gracefully - Stop on blocking issues, not minor failures
Architecture
.autobot/ # Runtime state (preserved across iterations)
├── task.json # Current task definition
├── plan.json # Decomposed subtasks with status
├── progress.md # Append-only learning log
├── observations.jsonl # Structured queryable logs
└── metrics.json # Quantitative tracking
.claude/ # Claude Code customization
├── settings.json # Hooks, permissions
├── hooks/ # Node.js scripts for automation
├── agents/ # Specialized subagent definitions
├── commands/ # User-invoked slash commands
└── skills/ # Auto-invoked capabilitiesCommands
| Command | Description |
/init-task <description> | Start new autonomous task |
/status | View progress dashboard |
/pause | Pause autonomous loop |
/resume | Resume paused loop |
/abort | Emergency stop with state preservation |
Hooks (Automatic)
- Stop - Checks for incomplete subtasks, re-injects prompt to continue
- PostToolUse (Edit/Write) - Runs tests after code changes
- SessionStart - Loads
.autobot/state into context
Quality Standards
- Run tests after every code change (automatic via hooks)
- All tests must pass before marking subtask complete
- No linting errors before commits
- Public APIs require documentation
- Follow existing code patterns in the codebase
Test Commands
Auto-detected by project type:
- Node.js:
npm test - Python:
pytest -x --tb=short - Rust:
cargo test - Go:
go test ./...
State Files
task.json
{
"id": "task-{timestamp}",
"title": "Short title",
"description": "Full description",
"status": "in_progress"
}plan.json
{
"subtasks": [
{
"id": "st-001",
"title": "Subtask title",
"status": "pending|in_progress|completed",
"acceptance_criteria": ["..."]
}
]
}metrics.json
{
"current_iteration": 5,
"max_iterations": 50,
"consecutive_test_failures": 0
}Key Gotchas
- Never edit
.autobot/files directly - use the provided commands - Always check
.autobot/progress.mdfor learned patterns before starting - If tests fail 3 times consecutively, the loop pauses for human review
- Max 50 iterations by default (configurable in metrics.json)
- Each subtask should be completable in ~30 minutes of focused work
Exit Conditions
The autonomous loop stops when:
- All subtasks in
plan.jsonare markedcompleted progress.mdcontainsEXIT_SIGNAL: COMPLETE- Max iterations reached (safety limit)
- 3+ consecutive test failures (requests human review)
- User runs
/pauseor/abort
Subagents
| Agent | Model | Purpose |
| planner | Opus | Task decomposition |
| builder | Sonnet | Implementation with TDD |
| reviewer | Sonnet | Code review |
| fixer | Sonnet | Debug test failures |
Quick Start
# Start a new task
/init-task "Add user authentication with OAuth support"
# Check progress at any time
/status
# Pause if needed
/pause
# Resume when ready
/resume@.autobot/progress.md for learned patterns @.autobot/plan.json for current subtask status
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.

