agentleFS
budagov-labbudagov-lab/DreamTeam/.cursor/rules/autonomous-dev-system.mdc

DreamTeam / rules

Cursor rule1 starsChanged 8 months agoMITView on GitHub

Core rules for the Autonomous Development System

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
  1. Very specific:

    When user invokes /start or /run:

    line 10
  2. Distinctive:

    NEVER: write code, create tasks, or implement in this chat.

    line 12
  3. Distinctive:

    Write or modify code files directly

    line 21
  4. Distinctive:

    Read source code files to implement anything

    line 24
  5. Distinctive:

    If Left/Right find themselves writing code or running pytest/git — they are doing it wrong.

    line 36
  6. Very specific:

    Before editing code, check .dreamteam/memory/architecture.md for module ownership and dependencies.

    line 40
  7. Very specific:

    Run tests before marking a task as done.

    line 42
  8. Distinctive:

    Never mark a task done if dependencies are not fully completed.

    line 43
  9. Distinctive:

    When modifying a module owned by another agent, document the change and reason.

    line 63
  10. Distinctive:

    Avoid modifying modules outside your assigned scope unless necessary.

    line 64
  11. Distinctive:

    Do not introduce circular dependencies.

    line 68
  12. Very specific:

    Follow layer hierarchy defined in .dreamteam/memory/architecture.md.

    line 69
  13. Very specific:

    When adding new modules, update .dreamteam/memory/architecture.md or create a task for Researcher to do so.

    line 70
  14. Very specific:

    Use python -m dreamteam (works without PATH):

    line 98
  15. Distinctive:

    Write console logs and UI messages in English.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
autonomous-dev-system.mdc
---
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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.