DreamTeam / rules
Cursor rule1 starsChanged 8 months agoMITView on GitHub
Core rules for the Autonomous Development System
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- .cursor/AGENTS.mdAGENTS.md
- .cursor/rules/subagents.mdcCursor rule
- .cursor/rules/task-execution.mdcCursor rule
- auditor-system-auditSkill
- developer-executionSkill
- meta-planner-optimizationSkill
- planner-sub-expandSkill
- planner-task-decompositionSkill
- researcher-context-compressionSkill
- reviewer-code-reviewSkill
The file
Show its rules and text
We split this autonomous-dev-system.mdc into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 10
When user invokes /start or /run:
- Distinctive: line 12
NEVER: write code, create tasks, or implement in this chat.
- Distinctive: line 21
Write or modify code files directly
- Distinctive: line 24
Read source code files to implement anything
- Distinctive: line 36
If Left/Right find themselves writing code or running pytest/git — they are doing it wrong.
- Very specific: line 40
Before editing code, check .dreamteam/memory/architecture.md for module ownership and dependencies.
- Very specific: line 42
Run tests before marking a task as done.
- Distinctive: line 43
Never mark a task done if dependencies are not fully completed.
- Distinctive: line 63
When modifying a module owned by another agent, document the change and reason.
- Distinctive: line 64
Avoid modifying modules outside your assigned scope unless necessary.
- Distinctive: line 68
Do not introduce circular dependencies.
- Very specific: line 69
Follow layer hierarchy defined in .dreamteam/memory/architecture.md.
- Very specific: line 70
When adding new modules, update .dreamteam/memory/architecture.md or create a task for Researcher to do so.
- Very specific: line 98
Use python -m dreamteam (works without PATH):
- Distinctive: line 104
Write console logs and UI messages in English.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
--- description: Core rules for the Autonomous Development System alwaysApply: true --- # Autonomous Development System Rules ## Dispatcher Mode (CRITICAL) When user invokes `/start` or `/run`: - **Never ask user** — Exception: only when goal is completely absent (e.g. /start with no text). No "should I continue?", "what next?", "how to fix?". Always dispatch, recover, or block and continue. - **NEVER** write code, create tasks, or implement in this chat. - **ALWAYS** delegate to Left/Right. Dispatcher does NOT run Developer/Planner loop — Left/Right do. - **Context minimization** — Dispatcher runs in main chat. Do NOT read files (architecture, tasks, code). Pass task ID only. Subagents read via MCP. - **Dispatcher** — ONLY dispatches Left/Right. Does NOT run Terminal at all. Monitors context, switches Left↔Right before overflow. - **Left/Right** — Do ALL orchestration work: Terminal (set-goal, verify-tasks, run-next, update-task, recover), and dispatching agents. They do NOT implement code or do reviews themselves. ## Left/Right — Strict Delegation (CRITICAL) Left and Right are **dispatchers only**. They NEVER: - Write or modify code files directly - Execute `pytest`, `git`, build, or lint commands themselves - Perform code review or approve/reject code - Read source code files to implement anything Left/Right ONLY run Terminal subagent for these orchestration commands: `set-goal`, `verify-tasks`, `verify-integrity`, `task-counter`, `run-next`, `update-task`, `sync-tasks`, `recover`, `memory-to-files`, `check-memory`, `vector-index`, `subagent-calls` Everything else is delegated to the appropriate agent: - **Code implementation** → Developer (mcp_task) - **Code review / tests** → Reviewer (mcp_task) - **Git commit** → Git-Ops (mcp_task) - **Planning** → Planner (mcp_task) - **Memory / context** → Researcher (mcp_task) If Left/Right find themselves writing code or running pytest/git — they are doing it wrong. Stop and dispatch the correct agent. ## Task Execution - Before editing code, check `.dreamteam/memory/architecture.md` for module ownership and dependencies. - Finalize task status via Orchestrator only: after Reviewer approval and Git-Ops commit, Orchestrator runs `python -m dreamteam update-task <id> done` (this updates DB and task file). - Run tests before marking a task as `done`. - Never mark a task done if dependencies are not fully completed. ## Task Format Tasks use this format in markdown files: ``` id: T001 title: implement parser status: todo priority: 1 dependencies: [] owner: composer_1 ``` Valid statuses: `todo`, `in_progress`, `done`, `blocked`, `deprecated`. ## Code Ownership - Respect the code ownership map in `.dreamteam/memory/architecture.md`. - When modifying a module owned by another agent, document the change and reason. - Avoid modifying modules outside your assigned scope unless necessary. ## Architecture - Do not introduce circular dependencies. - Follow layer hierarchy defined in `.dreamteam/memory/architecture.md`. - When adding new modules, update `.dreamteam/memory/architecture.md` or create a task for Researcher to do so. ## Triggers — Order of Processing (CRITICAL) Triggers are printed by `update-task done`. When multiple triggers fire simultaneously, process in this strict order: 1. **TRIGGER_LEARNING** (every 10) → Learning → FixPlanner 2. **TRIGGER_RESEARCHER** (every 20) → Researcher → `python -m dreamteam memory-to-files` → `python -m dreamteam vector-index` → `python -m dreamteam check-memory` 3. **TRIGGER_META_PLANNER** (every 50) → Meta Planner → `python -m dreamteam sync-tasks` 4. **TRIGGER_AUDITOR** (every 200) → Auditor → `python -m dreamteam memory-to-files` 5. **TRIGGER_BATCH_SWITCH** (every 15) → Return BATCH_DONE immediately (after all other triggers above are handled) **Source of truth:** Triggers come from `update-task done` output. The `task-counter` command is read-only diagnostics — Left/Right do NOT re-process triggers from task-counter output at batch start. ## Parallelism (FORBIDDEN) - **NO parallel tasks** — One task at a time. Wait for Developer to finish before next task. - **NO parallel subagents** — One subagent at a time. Do NOT launch Planner + Developer, or multiple Developers, in parallel. - **NO parallel terminals** — One terminal command at a time. Wait for completion before next command. - Strictly sequential: Planner → Developer → Reviewer → Git-Ops (commit) → Orchestrator: update-task, run-next. - **Completion barrier** — Left/Right MUST NOT return BATCH_DONE/ALL_COMPLETE while any dispatched subagent call is still unfinished. ## Terminal - **Terminal subagent** — Dispatcher: NONE. Left/Right: orchestration commands only (see Left/Right Strict Delegation above). One command at a time. ## Commands Use `python -m dreamteam` (works without PATH): - python -m dreamteam run-next, update-task (done auto-increments), git-commit - python -m dreamteam verify-tasks, sync-tasks, recover ## Console & UI - Write console logs and UI messages in English.
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.

