[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADHKCGS3E1JXSNVREZRRBZ":3,"skill-same:01M7ADHKCGS3E1JXSNVREZRRBZ":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ADHKCGS3E1JXSNVREZRRBZ","dispatching-parallel-agents",null,"Use when facing two or more independent tasks with no shared state or ordering, OR when executing a multi-task plan by dispatching a fresh subagent per task.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dispatching-parallel-agents\ndescription: Use when facing two or more independent tasks with no shared state or ordering, OR when executing a multi-task plan by dispatching a fresh subagent per task.\ntriggers: [user, model]\n---\n# Dispatching Parallel Agents\n\n## Overview\n\nYou delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.\n\nWhen you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.\n\n**Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.\n\n## Early Exit: When NOT to Dispatch\n\nBefore dispatching any subagent, classify the task:\n\n- **Simple** (single file, \u003C50 lines, clear path, no research needed):\n  Controller handles inline. Dispatching overhead exceeds value.\n  Signal: you can describe the change in one sentence and know the exact file.\n\n- **Medium** (multiple files, needs some investigation, scoped changes):\n  Dispatch a single subagent with the right profile.\n\n- **Complex** (multi-system, needs research + design + implementation):\n  Dispatch multiple subagents in sequence: researcher → architect → implementer → reviewer.\n\n40-60% of tasks are simple enough for inline handling. Dispatching a subagent\nfor a 10-line fix costs more in coordination overhead than it saves in context\npreservation. Reserve subagent dispatch for tasks where context isolation or\nparallelism genuinely helps.\n\n## Default stance — single agent beats orchestration for most coding\n\nParallel and multi-agent dispatch is for **genuinely independent** work only.\nFor the common coding task — where steps depend on each other and share state\n— a single capable agent with tests and review beats a committee of\nsubagents. The plan-execution loop below (5-round fix loops, task reviewers,\nre-reviews, breakers, ledgers) is heavy machinery; reach for it only when a\nplan is already written, its tasks are mostly independent, and the cost of\ncontext pollution across tasks is real.\n\nVerified evidence (primary sources):\n\n- Cognition, \"Don't Build Multi-Agents\" (2025-06-12): every action carries\n  implicit decisions the other agents cannot see; subagents diverge even with\n  shared context. \u003Chttps:\u002F\u002Fcognition.com\u002Fblog\u002Fdont-build-multi-agents>\n- Anthropic multi-agent research (2025-06-13): multi-agent uses ~15x more\n  tokens than chat; \"most coding tasks involve fewer truly parallelizable\n  tasks than research.\"\n  \u003Chttps:\u002F\u002Fwww.anthropic.com\u002Fengineering\u002Fmulti-agent-research-system>\n- MAP study (arXiv:2512.04123, ICML 2026 oral): 68% of 86 production agents\n  across 26 domains execute at most 10 steps before human intervention —\n  simple supervised loops, not orchestrated constellations.\n  \u003Chttps:\u002F\u002Farxiv.org\u002Fabs\u002F2512.04123>\n- DeepSeek \"Super-agent\" harness eval (2025-10-31 article + released\n  prototype, ~20 work requests queued): a neutral prompt delegated in 0\u002F5\n  runs; a delegate-first prompt in 4\u002F5, cutting median task time 20.4 ->\n  13.8 min (p95 unchanged ~29). Under a multi-request queue the failure\n  mode flips: the single agent under-delegates because interruptions keep\n  re-entering the main session. Delegate-first beats neutral when the\n  queue is deep; it does not rescue slow-tail tasks.\n- Cooper Bench (arXiv paper, Jan): paired agents editing one task succeed\n  ~30% less often than solo agents, favoring one-ticket-one-worker splits\n  over co-editing.\n\nIf the failures are related, or agents would edit the same files, or the task\nis a single cohesive build — stay inline. The plan-execution mode earns its\ncost only on a plan of mostly-independent tasks where each task's context\nwould otherwise pollute the next.\n\n## When to Use\n\n```dot\ndigraph when_to_use {\n    \"Multiple failures?\" [shape=diamond];\n    \"Are they independent?\" [shape=diamond];\n    \"Single agent investigates all\" [shape=box];\n    \"One agent per problem domain\" [shape=box];\n    \"Can they work in parallel?\" [shape=diamond];\n    \"Sequential agents\" [shape=box];\n    \"Parallel dispatch\" [shape=box];\n\n    \"Multiple failures?\" -> \"Are they independent?\" [label=\"yes\"];\n    \"Are they independent?\" -> \"Single agent investigates all\" [label=\"no - related\"];\n    \"Are they independent?\" -> \"Can they work in parallel?\" [label=\"yes\"];\n    \"Can they work in parallel?\" -> \"Parallel dispatch\" [label=\"yes\"];\n    \"Can they work in parallel?\" -> \"Sequential agents\" [label=\"no - shared state\"];\n}\n```\n\n**Use when:**\n- 3+ test files failing with different root causes\n- Multiple subsystems broken independently\n- Each problem can be understood without context from others\n- No shared state between investigations\n\n**Don't use when:**\n- Failures are related (fix one might fix others)\n- Need to understand full system state\n- Agents would interfere with each other\n\n## The Pattern\n\n### 1. Identify Independent Domains\n\nGroup failures by what's broken:\n- File A tests: Tool approval flow\n- File B tests: Batch completion behavior\n- File C tests: Abort functionality\n\nEach domain is independent - fixing tool approval doesn't affect abort tests.\n\n### 2. Create Focused Agent Tasks\n\nEach agent gets:\n- **Specific scope:** One test file or subsystem\n- **Clear goal:** Make these tests pass\n- **Constraints:** Don't change other code\n- **Expected output:** Summary of what you found and fixed\n\n### 3. Dispatch in Parallel\n\nIssue all three subagent dispatches in the same response — they run in parallel:\n\n```text\nSubagent (subagent_general): \"Fix agent-tool-abort.test.ts failures\"\nSubagent (subagent_general): \"Fix batch-completion-behavior.test.ts failures\"\nSubagent (subagent_general): \"Fix tool-approval-race-conditions.test.ts failures\"\n# All three run concurrently.\n```\n\nMultiple dispatch calls in one response = parallel execution. One per response = sequential.\n\n### 4. Review and Integrate\n\nWhen agents return:\n- Read each summary\n- Verify fixes don't conflict\n- Run full test suite\n- Integrate all changes\n\n## Profile Selection by Cost and Capability\n\nWhen dispatching, match the profile to the task's capability needs AND cost\nsensitivity:\n\n| Task type | Profile | Why |\n|---|---|---|\n| Codebase research, doc lookup | `researcher` (`swe-2-max`) | Read-only, free, fast |\n| Code review, spec compliance | `reviewer` (`swe-2-max`) | Needs judgment, free |\n| Bounded implementation | `implementer` (`swe-2-flash-high`) | Needs full tools + coding strength; fast lane suffices for spec'd work |\n| Architecture, trade-offs | `architect` (`swe-2-max`) | Needs judgment, read-only, free |\n| Debugging, root cause | `debugger` (`swe-2-flash-high`) | Needs exec + iterative hypothesis testing |\n| Complex reasoning, context isolation | `subagent_general` (parent model) | Inherits parent model (`BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`), free, for tasks needing the parent model's reasoning mode |\n\nDon't dispatch `implementer` for a research task — `researcher` is 10x cheaper\nand read-only. Don't dispatch `architect` for a typo fix — handle inline.\n\nCost rule: if two profiles can handle the task, pick the cheaper one. The\ncontroller can override by switching the parent session model before dispatch\nwhen a task needs more capability than the profile's default model provides.\n\n## Agent Prompt Structure\n\nGood agent prompts are:\n1. **Focused** - One clear problem domain\n2. **Self-contained** - All context needed to understand the problem\n3. **Specific about output** - What should the agent return?\n\n```markdown\nFix the 3 failing tests in src\u002Fagents\u002Fagent-tool-abort.test.ts:\n\n1. \"should abort tool with partial output capture\" - expects 'interrupted at' in message\n2. \"should handle mixed completed and aborted tools\" - fast tool aborted instead of completed\n3. \"should properly track pendingToolCount\" - expects 3 results but gets 0\n\nThese are timing\u002Frace condition issues. Your task:\n\n1. Read the test file and understand what each test verifies\n2. Identify root cause - timing issues or actual bugs?\n3. Fix by:\n   - Replacing arbitrary timeouts with event-based waiting\n   - Fixing bugs in abort implementation if found\n   - Adjusting test expectations if testing changed behavior\n\nDo NOT just increase timeouts - find the real issue.\n\nReturn: Summary of what you found and what you fixed.\n```\n\n### Process over persona\n\nWhen delegating, the persona label (\"you are a senior reviewer\") is not\nthe contract - the process is. Specify the steps to follow and the\nacceptance criteria to hit: what to read first, which commands verify\nthe work, what the return must contain. A prompt that only names a role\nlets the agent invent its own bar; a prompt that names the process makes\nthe bar checkable. Persona sets posture, process sets the done-line.\n\n## Common Mistakes\n\n**❌ Too broad:** \"Fix all the tests\" - agent gets lost\n**✅ Specific:** \"Fix agent-tool-abort.test.ts\" - focused scope\n\n**❌ No context:** \"Fix the race condition\" - agent doesn't know where\n**✅ Context:** Paste the error messages and test names\n\n**❌ No constraints:** Agent might refactor everything\n**✅ Constraints:** \"Do NOT change production code\" or \"Fix tests only\"\n\n**❌ Vague output:** \"Fix it\" - you don't know what changed\n**✅ Specific:** \"Return summary of root cause and changes\"\n\n## When NOT to Use\n\n**Related failures:** Fixing one might fix others - investigate together first\n**Need full context:** Understanding requires seeing entire system\n**Exploratory debugging:** You don't know what's broken yet\n**Shared state:** Agents would interfere (editing same files, using same resources)\n\n## Real Example from Session\n\n**Scenario:** 6 test failures across 3 files after major refactoring\n\n**Failures:**\n- agent-tool-abort.test.ts: 3 failures (timing issues)\n- batch-completion-behavior.test.ts: 2 failures (tools not executing)\n- tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)\n\n**Decision:** Independent domains - abort logic separate from batch completion separate from race conditions\n\n**Dispatch:**\n```\nAgent 1 → Fix agent-tool-abort.test.ts\nAgent 2 → Fix batch-completion-behavior.test.ts\nAgent 3 → Fix tool-approval-race-conditions.test.ts\n```\n\n**Results:**\n- Agent 1: Replaced timeouts with event-based waiting\n- Agent 2: Fixed event structure bug (threadId in wrong place)\n- Agent 3: Added wait for async tool execution to complete\n\n**Integration:** All fixes independent, no conflicts, full suite green\n\n## Verification\n\nAfter agents return:\n1. **Review each summary** - Understand what changed\n2. **Check for conflicts** - Did agents edit same code?\n3. **Run full suite** - Verify all fixes work together\n4. **Spot check** - Agents can make systematic errors\n\n## Background subagent discipline\n\nWhen dispatching with `is_background=true`, act as a scheduler, not a\nworker:\n\n- Record each dispatch's agent ID and ownership boundary in the ledger, so\n  background state survives compaction.\n- Do not block the controller lane waiting on a background job. Pick the\n  next independent task; if none remains, stop briefly and let the\n  completion notification resume the workflow.\n- Never advance a dependent phase while background jobs it consumes are\n  still running or their results are unreconciled.\n- When splitting work into phases, split on dependencies and natural\n  delivery boundaries; never split merely to shrink a review's scope.\n\n## Dispatch trace and abort contract\n\nEvery dispatch leaves a record so burn and status survive compaction, and\na human can kill a runaway subagent. The helper is\n`scripts\u002Fsubagent-trace.py` (fail-open, JSON envelopes, state under\n`.devin\u002F`):\n\n- **At launch:** record the dispatch before\u002Fwhile dispatching —\n  `echo '{\"agent\":\"implementer\",\"title\":\"...\",\"profile\":\"swe-2-medium\"}' | python scripts\u002Fsubagent-trace.py record`\n  It appends a line to `.devin\u002Fsubagent-trace.jsonl`\n  (`{id, ts, agent, title, profile, status, notes}`, status starts\n  `running`). Reuse the dispatch's real ID via `--id` when you have one.\n- **On return:** update the same record in place —\n  `... record --id \u003Cid> --status done --notes \"summary\"` (also `killed` \u002F\n  `timeout`). Records update, never duplicate.\n- **Between polls:** check the abort flag —\n  `python scripts\u002Fsubagent-trace.py check-abort \u003Cid>` exits 0 when a kill\n  was requested (`.devin\u002Fsubagent-abort\u002F\u003Cid>` exists); stop polling that\n  dispatch and mark it `killed`.\n- **Human side:** `--abort \u003Cid>` sets the flag, `--clear-abort \u003Cid>`\n  clears it, `--pending` lists open dispatches, `--list` lists all.\n\n## Cross-skills\n\n- If fanning out many subagents, invoke `context-hygiene` to keep the parent context lean.\n- If work spans sessions, invoke `handoff` to capture state before ending.\n- For parallel implementation lanes, use `git-workflows` lane orchestration (per-lane worktrees + file ownership).\n\n## Plan execution mode\n\nThe sections above cover dispatching parallel agents for independent problems.\nThis section covers a related but distinct mode: executing a multi-task plan by\ndispatching a fresh subagent per task, with a task review after each and a broad\nwhole-branch review at the end. This is subagent-driven development.\n\nExecute plan by dispatching a fresh `subagent_general` subagent per task, a task review (spec compliance + code quality) after each, and a broad whole-branch review at the end.\n\n**Devin CLI setup:** Locate this skill's directory:\n- Windows: `%APPDATA%\\devin\\skills\\dispatching-parallel-agents`\n- macOS\u002FLinux: `~\u002F.config\u002Fdevin\u002Fskills\u002Fdispatching-parallel-agents`\n\nThe helper scripts and prompt templates live there. If you cannot access that path, fall back to doing the equivalent steps with `git`, `read`, and `write` tools.\n\n**Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.\n\n**Core principle:** Fresh subagent per task + task review (spec + quality) + broad final review = high quality, fast iteration\n\n**Narration:** between tool calls, narrate at most one short line — the\nledger and the tool results carry the record.\n\n**Continuous execution:** Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, or all tasks complete. \"Should I continue?\" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it.\n\n### When to Use (plan execution)\n\n```dot\ndigraph when_to_use {\n    \"Have implementation plan?\" [shape=diamond];\n    \"Tasks mostly independent?\" [shape=diamond];\n    \"Stay in this session?\" [shape=diamond];\n    \"dispatching-parallel-agents (plan execution mode)\" [shape=box];\n    \"execution\" [shape=box];\n    \"Manual execution or brainstorm first\" [shape=box];\n\n    \"Have implementation plan?\" -> \"Tasks mostly independent?\" [label=\"yes\"];\n    \"Have implementation plan?\" -> \"Manual execution or brainstorm first\" [label=\"no\"];\n    \"Tasks mostly independent?\" -> \"Stay in this session?\" [label=\"yes\"];\n    \"Tasks mostly independent?\" -> \"Manual execution or brainstorm first\" [label=\"no - tightly coupled\"];\n    \"Stay in this session?\" -> \"dispatching-parallel-agents (plan execution mode)\" [label=\"yes\"];\n    \"Stay in this session?\" -> \"execution\" [label=\"no - parallel session\"];\n}\n```\n\n**vs. Executing Plans (parallel session):**\n- Same session (no context switch)\n- Fresh subagent per task (no context pollution)\n- Review after each task (spec compliance + code quality), broad review at the end\n- Faster iteration (no human-in-loop between tasks)\n\n### The Process\n\n```dot\ndigraph process {\n    rankdir=TB;\n\n    subgraph cluster_per_task {\n        label=\"Per Task\";\n        \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" [shape=box];\n        \"Implementer asks questions?\" [shape=diamond];\n        \"Answer questions, provide context\" [shape=box];\n        \"Implementer implements, tests, commits, self-reviews\" [shape=box];\n        \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\" [shape=box];\n        \"Spec ✅ and quality approved?\" [shape=diamond];\n        \"Finding conflicts with plan text?\" [shape=diamond];\n        \"Ask human partner which governs\" [shape=box];\n        \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [shape=box];\n        \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\" [shape=box];\n        \"All findings addressed?\" [shape=diamond];\n        \"R = 5?\" [shape=diamond];\n        \"Adjudicate each open finding\" [shape=box];\n        \"Any load-bearing finding?\" [shape=diamond];\n        \"STOP: report BLOCKED to human partner\" [shape=box];\n        \"Park findings in ledger with rulings\" [shape=box];\n        \"Append completion to ledger, mark todo complete\" [shape=box];\n    }\n\n    \"Setup: worktree, ledger check, read plan, pre-flight review\" [shape=box];\n    \"More tasks remain?\" [shape=diamond];\n    \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" [shape=box];\n    \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\" [shape=box];\n    \"Final review clean: delete this plan's workspace\" [shape=box];\n    \"Use \u002Ffinishing-a-development-branch\" [shape=box style=filled fillcolor=lightgreen];\n\n    \"Setup: worktree, ledger check, read plan, pre-flight review\" -> \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\";\n    \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" -> \"Implementer asks questions?\";\n    \"Implementer asks questions?\" -> \"Answer questions, provide context\" [label=\"yes\"];\n    \"Answer questions, provide context\" -> \"Implementer implements, tests, commits, self-reviews\";\n    \"Implementer asks questions?\" -> \"Implementer implements, tests, commits, self-reviews\" [label=\"no\"];\n    \"Implementer implements, tests, commits, self-reviews\" -> \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\";\n    \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\" -> \"Spec ✅ and quality approved?\";\n    \"Spec ✅ and quality approved?\" -> \"Append completion to ledger, mark todo complete\" [label=\"yes\"];\n    \"Spec ✅ and quality approved?\" -> \"Finding conflicts with plan text?\" [label=\"no\"];\n    \"Finding conflicts with plan text?\" -> \"Ask human partner which governs\" [label=\"yes\"];\n    \"Ask human partner which governs\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\";\n    \"Finding conflicts with plan text?\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [label=\"no\"];\n    \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" -> \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\";\n    \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\" -> \"All findings addressed?\";\n    \"All findings addressed?\" -> \"Append completion to ledger, mark todo complete\" [label=\"yes\"];\n    \"All findings addressed?\" -> \"R = 5?\" [label=\"no\"];\n    \"R = 5?\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [label=\"no - next round\"];\n    \"R = 5?\" -> \"Adjudicate each open finding\" [label=\"yes - breaker trips\"];\n    \"Adjudicate each open finding\" -> \"Any load-bearing finding?\";\n    \"Any load-bearing finding?\" -> \"STOP: report BLOCKED to human partner\" [label=\"yes\"];\n    \"Any load-bearing finding?\" -> \"Park findings in ledger with rulings\" [label=\"no\"];\n    \"Park findings in ledger with rulings\" -> \"Append completion to ledger, mark todo complete\";\n    \"Append completion to ledger, mark todo complete\" -> \"More tasks remain?\";\n    \"More tasks remain?\" -> \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" [label=\"yes\"];\n    \"More tasks remain?\" -> \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" [label=\"no\"];\n    \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" -> \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\";\n    \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\" -> \"Final review clean: delete this plan's workspace\";\n    \"Final review clean: delete this plan's workspace\" -> \"Use \u002Ffinishing-a-development-branch\";\n}\n```\n\n### Setup\n\nEnsure the work happens in an isolated workspace: use\n\u002Fgit-workflows to create one or verify the existing one.\nNever start implementation on a main\u002Fmaster branch without your human\npartner's explicit consent.\n\nConversation memory does not survive compaction. In real sessions,\ncontrollers that lost their place have re-dispatched entire completed task\nsequences — the single most expensive failure observed. Track progress in\na ledger file, not only in todos.\n\n- Each plan owns a workspace: at skill start, run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Fsdd-workspace.py (or run the equivalent with git\u002Fread\u002Fwrite if the skill directory is not accessible) PLAN_FILE` — it prints the plan's git-ignored\n  directory (`\u003Crepo-root>\u002F.devin\u002Fsdd\u002F\u003Cplan-basename>\u002F`), home to\n  every artifact for THIS plan: ledger, briefs, reports, review packages.\n  Another plan's directory is never yours to read or write.\n- Check for this plan's ledger at `\u003Cworkspace>\u002Fprogress.md`. If its first\n  line names your plan file, tasks with a `Task \u003CN>: complete` line are DONE\n  — do not re-dispatch them; resume at the first task without one. A task\n  whose last line is a fix round is mid-loop: resume the loop at the next\n  round. A ledger whose first line names a different plan file — or a stray\n  ledger at the old flat path `.devin\u002Fsdd\u002Fprogress.md` — is another\n  plan's progress: leave it in place and start your own, fresh.\n- Create the ledger with its identity as the first line:\n  `# SDD ledger — plan: \u003Cplan file path>`. Structure it with an Index section\n  at the top for fast context reconstruction after compaction, and a Commit\n  Boundaries section marking safe recovery points:\n\n  ```\n  # SDD ledger — plan: \u003Cplan file path>\n\n  ## Index\n  - Task 1: complete (commits a1b..d4e, review clean)\n  - Task 2: fix round 1\u002F5 → complete (commits d4e..b7c, 2 addressed)\n  - Task 3: in progress (dispatched, awaiting review)\n\n  ## Commit Boundaries\n  - a1b2c3d: Task 1 complete — safe recovery point\n  - d4e5f6a: Task 2 fix round 1 — safe recovery point\n\n  ## Detail Log\n  Task 1: complete (commits a1b2c3d..d4e5f6a, review clean)\n  Task 2: fix round 1\u002F5 (2 addressed, 0 open — magic number, missing progress; commits d4e5f6a..b7c8d9e)\n  Task 2: complete (commits d4e5f6a..b7c8d9e, review clean)\n  ```\n\n  The Index lets you reconstruct task status at a glance after compaction.\n  Commit Boundaries mark points where `git reset --hard \u003CSHA>` is safe.\n  The Detail Log is the append-only record of every action.\n- The ledger is your recovery map: the commits it names exist in git even\n  when your context no longer remembers creating them. After compaction,\n  trust the ledger and `git log` over your own recollection.\n- `git clean -fdx` will destroy the workspace (it's git-ignored scratch); if\n  that happens, recover from `git log`.\n\nRead the plan once, note its context and Global Constraints, and create a\ntodo per task.\n\nBefore dispatching Task 1, scan the plan once for conflicts:\n\n- tasks that contradict each other or the plan's Global Constraints\n- anything the plan explicitly mandates that the review rubric treats as a\n  defect (a test that asserts nothing, verbatim duplication of a logic block)\n\nPresent everything you find to your human partner as one batched question —\neach finding beside the plan text that mandates it, asking which governs —\nbefore execution begins, not one interrupt per discovery mid-plan. If the\nscan is clean, proceed without comment. The review loop remains the net for\nconflicts that only emerge from implementation.\n\n### Model Selection\n\nIn Devin CLI, a `subagent_general` subagent inherits the parent session's model (`BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`, free by default). The built-in `subagent_explore` runs on the CLI default router (possibly paid). **When parent is FREE (default): never use `subagent_explore`** — use the custom `researcher` profile (`agents\u002Fresearcher.md`, `model: swe-2-max`, free) instead. When parent is PAID (user switched via `\u002Fmodel`), `subagent_explore` is permitted. You cannot name a model directly in a `run_subagent` call; the profile determines the model. Custom profiles in `agents\u002F*.md` pin SWE-2 effort variants to stay within the bundle's free tier.\n\n**Effort-level routing:** pick the effort level that matches the task shape (see `context-hygiene`): **Fast** (`swe-2-flash-high` bounded \u002F `swe-2-flash-medium` mechanical) for bounded execution, **High** (`swe-2-high`) for multi-file work, **Max** (`swe-2-max`) for open-ended or judgment-heavy work.\n\n**Use `subagent_general` (inherits parent `BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`, free) for:**\n- Final whole-branch review — the judgment task that needs the most capability.\n- High-stakes architecture that needs the parent model's reasoning (routine architecture → `architect` at Max effort).\n- Rounds 4-5 fix-loop escalation (the parent can switch effort via `\u002Fmodel` before dispatching).\n- Complex reasoning tasks that benefit from context isolation but need the parent model's effort level.\n\n**Use custom profiles (free, context per `data\u002Fbundle-models.json`) for:**\n- `researcher` — codebase research and fact-finding (read-only, `swe-2-max`).\n- `implementer`: bounded coding tasks (`swe-2-flash-high`).\n- `debugger`: root cause analysis and debugging (`swe-2-flash-high`).\n- `architect` — routine architecture and trade-off analysis (read-only, `swe-2-max`).\n- `reviewer` — code review and spec compliance (read-only + exec for tests, `swe-2-max`).\n\n**To run a different model for a subagent:**\n1. Switch the parent session model with `\u002Fmodel \u003Cmodel>` before dispatching (affects all `subagent_general` dispatches from this session).\n2. Or create a custom subagent profile in `~\u002F.config\u002Fdevin\u002Fagents\u002F` or `%APPDATA%\\devin\\agents\\` with a `model:` field, and pass that profile name as `profile` in `run_subagent`.\n\n**Turn count beats token price.** Wall-clock and context cost scale with how\nmany turns a subagent takes. SWE-2 variants are fast enough that turn\ncount rarely causes wall-clock issues. When the task's plan text contains the complete code to\nwrite, the implementation is transcription plus testing, and Medium effort is\nsufficient. For rounds 4-5 escalation, switch to `subagent_general`\n(inherits the parent model from `BUNDLE_DEFAULT_MODEL`) or raise the parent's\neffort via `\u002Fmodel`.\n\n**Task complexity signals (implementation tasks):**\n- Touches 1-2 files with a complete spec → `implementer` (Medium effort)\n- Touches multiple files with integration concerns → `implementer` (Medium effort)\n- Requires design judgment or broad codebase understanding → `architect` (Max effort) for design, then `implementer` (Medium effort) for code\n- Rounds 4-5 fix-loop failure → `subagent_general` (parent `BUNDLE_DEFAULT_MODEL`) for fresh eyes + reasoning\n\n### The Task Loop\n\nEverything you paste into a dispatch prompt — and everything a subagent\nprints back — stays resident in your context for the rest of the session\nand is re-read on every later turn. Hand artifacts over as files.\n\n#### 1. use `run_subagent` with `profile: \"implementer\"` and the filled implementer prompt as `task`\n\nRecord BASE (`git rev-parse HEAD`) before dispatching — the review package\nand fix-round diffs need it.\n\n- **Task brief:** before dispatching an implementer, run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Ftask-brief.py PLAN_FILE N` — it extracts the task's full text to a\n  uniquely named file and prints the path. Compose the dispatch so the\n  brief stays the single source of\n  requirements. Your dispatch should contain: (1) one line on where this\n  task fits in the project; (2) the brief path, introduced as \"read this\n  first — it is your requirements, with the exact values to use verbatim\";\n  (3) interfaces and decisions from earlier tasks that the brief cannot\n  know; (4) your resolution of any ambiguity you noticed in the brief;\n  (5) the report-file path and report contract. Exact values (numbers,\n  magic strings, signatures, test cases) appear only in the brief. Never\n  make a subagent read the whole plan file.\n- **Done-when contract:** every task should carry a runnable acceptance\n  check (`Done when:`\u002F`Acceptance:`\u002F`Verify:`\u002F`Check:` section). Pass\n  `--require-done-when` to `task-brief.py` to reject briefs missing one\n  (exit 4); without the flag the extractor warns but proceeds. When the\n  implementer returns, re-run the brief's check yourself before accepting\n  the report - never trust the worker's self-declared \"done\" alone.\n- **Report file:** name the implementer's report file after the brief\n  (brief `…\u002Ftask-N-brief.md` → report `…\u002Ftask-N-report.md`) and put it in\n  the dispatch prompt. The implementer writes the full report there and\n  returns only status, commits, a one-line test summary, and concerns.\n- A dispatch prompt describes one task, not the session's history. Do not\n  paste accumulated prior-task summaries (\"state after Tasks 1-3\") into\n  later dispatches — a real session's dispatch hit 42k chars of which 99%\n  was pasted history. A fresh subagent needs its task, the interfaces it\n  touches, and the global constraints. Nothing else.\n- If an earlier task parked a finding in the area this task touches, carry\n  a pointer to that ledger entry in the dispatch.\n- Record the implementer's agent identity from the dispatch result —\n  fix-loop rounds 1-3 resume this agent.\n- Never dispatch multiple implementation subagents in parallel (conflicts).\n\nTemplate: [implementer-prompt.md](implementer-prompt.md)\n\n#### 2. Handle the report\n\nImplementer subagents report one of four statuses. Handle each appropriately:\n\n**DONE:** Generate the review package (`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE BASE HEAD`, from this skill's directory — it prints the unique file path it wrote; BASE is the commit you recorded before dispatching the implementer — never `HEAD~1`, which silently drops all but the last commit of a multi-commit task), then use `run_subagent` with `profile: \"reviewer\"` and the filled task-reviewer prompt as `task` with the printed path.\n\n**DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., \"this file is getting large\"), note them and proceed to review.\n\n**NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.\n\n**BLOCKED:** The implementer cannot complete the task. Assess the blocker:\n1. If it's a context problem, provide more context and re-dispatch with the same model\n2. If the task requires more reasoning, re-dispatch with a more capable model\n3. If the task is too large, break it into smaller pieces\n4. If the plan itself is wrong, escalate to the human\n5. If a specific subtask within the task failed (not the whole task), re-dispatch\n   ONLY the failed subtask with targeted context. Don't re-run the entire task\n   pipeline when one piece failed — this wastes 50-70% of retry cost.\n\n**Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.\n\nIf the implementer asks questions — before starting or mid-task — answer\nclearly and completely, provide additional context if needed, and don't\nrush it into implementation.\n\n#### 3. Review the task\n\nPer-task reviews are task-scoped gates. The broad review happens once, at the\nfinal whole-branch review. Never skip the task review, and never accept a\nreport missing either verdict — spec compliance AND task quality are both\nrequired. Implementer self-review never replaces the task review; both are\nneeded.\n\n- Hand the reviewer its diff as a file: run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE BASE HEAD` and pass the reviewer the file path\n  it prints (or, without bash: `git log --oneline`, `git diff --stat`,\n  and `git diff -U10` for the range, redirected to one uniquely named\n  file). The output never enters your own context, and the reviewer sees\n  the commit list, stat summary, and full diff with context in one Read\n  call. Use the BASE you recorded before dispatching the implementer —\n  never `HEAD~1`, which silently truncates multi-commit tasks. Never\n  use `run_subagent` for a task reviewer without a diff file.\n- **Reviewer inputs:** the task reviewer gets three paths — the same brief\n  file, the report file, and the review package — plus the global\n  constraints that bind the task.\n- The global-constraints block you hand the reviewer is its attention\n  lens. Copy the binding requirements verbatim from the plan's Global\n  Constraints section or the spec: exact values, exact formats, and the\n  stated relationships between components (\"same layout as X\", \"matches\n  Y\"). The reviewer's template already carries the process rules (YAGNI,\n  test hygiene, review method) — the constraints block is for what THIS\n  project's spec demands.\n- Do not add open-ended directives like \"check all uses\" or \"run race tests\n  if useful\" without a concrete, task-specific reason\n- Do not ask a reviewer to re-run tests the implementer already ran on the\n  same code — the implementer's report carries the test evidence\n- Do not pre-judge findings for the reviewer — never instruct a reviewer to\n  ignore or not flag a specific issue. If you believe a finding would be a\n  false positive, let the reviewer raise it and adjudicate it in the review\n  loop. If the prompt you are writing contains \"do not flag,\" \"don't treat X\n  as a defect,\" \"at most Minor,\" or \"the plan chose\" — stop: you are\n  pre-judging, usually to spare yourself a review loop.\nThe task reviewer may report \"⚠️ Cannot verify from diff\" items — requirements\nthat live in unchanged code or span tasks. These do not block the rest of the\nreview, but you must resolve each one yourself before marking the task\ncomplete: you hold the plan and cross-task context the reviewer\nlacks. If you confirm an item is a real gap, treat it as a failed spec\nreview — it enters the fix loop with the other findings.\n\nTemplate: [task-reviewer-prompt.md](task-reviewer-prompt.md)\n\n#### 4. The fix loop\n\nThe loop triggers when the review reports spec ❌, any Critical or Important\nfinding, or a ⚠️ item you confirmed as a real gap.\n\nBefore the loop starts, two routes leave it immediately:\n\n- Record Minor findings in the progress ledger as you go\n  (`Task \u003CN>: minor (deferred): \u003Cone-liner>`), and point the final\n  whole-branch review at that list so it can triage which must be fixed\n  before merge. A roll-up nobody reads is a silent discard. Minor findings\n  never enter the loop.\n- A finding labeled plan-mandated — or any finding that conflicts with\n  what the plan's text requires — is the human's decision, like any plan\n  contradiction: present the finding and the plan text, ask which governs.\n  Do not dismiss the finding because the plan mandates it, and do not\n  run a fix via `run_subagent` that contradicts the plan without asking.\nEverything else enters the loop. A fix round is one `run_subagent` fix dispatch plus one\nscoped re-review. Exit conditions (checked in order after each re-review):\n\n1. **PRIMARY:** zero Critical\u002FImportant findings remain → exit clean\n2. **SECONDARY:** convergence — no new findings for 2 consecutive rounds → exit clean\n3. **HARD CAP:** 5 rounds (safety net — adjudicate as below)\n4. **ESCALATION:** not converged after round 3 → switch to more capable model (rounds 4-5 already do this)\n\n**Rounds 1-3 — resume the original implementer.** Send it the open findings\nverbatim. Its context is intact: it knows the task, the code, and its own\nchoices. If you prefer a fresh context over resuming the same subagent,\nuse `run_subagent` with `profile: \"implementer\"` for a fresh implementer carrying the brief path, the report-file path,\nand the findings — the report file is the persistent memory either way.\n\n**Rounds 4-5 — use `run_subagent` with `profile: \"implementer\"` for a fresh implementer on a more capable model** (per\nModel Selection), with the brief path, the report-file path, the open\nfindings, and this framing: \"A prior implementer attempted this task\n[N] times; you own it now. Read the report file for what was tried.\" A loop\nthat survives three resumes usually means the implementer cannot see its\nown problem — fresh eyes and a capability bump in one move.\n\n**Every round, either way:** the implementer fixes, re-runs the tests\ncovering the amended code, appends its fix report to the same report file,\nand returns the short contract. Before re-dispatching the reviewer, confirm\nthe fix report contains the covering tests, the command run, and the\noutput; use `run_subagent` with `profile: \"reviewer\"` for the re-review once all three are present. Name the\ncovering test files in the fix message — a one-line fix does not need the\nwhole suite.\n\n**The re-review is scoped.** Run `\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD`\nwhere FIX_BASE is the head the previous review saw, and dispatch\n[re-review-prompt.md](re-review-prompt.md) with the findings list, the\nbrief, the report file, and the printed diff path. The re-reviewer verdicts\neach finding ADDRESSED or NOT ADDRESSED and flags new breakage in the fix\ndiff only. New Critical\u002FImportant breakage in the fix diff joins the open\nfindings list. Out-of-scope observations go to the ledger as deferred\nminors — they never extend the loop.\n\n**After each round,** append to the ledger:\n`Task \u003CN>: fix round \u003CR>\u002F5 (\u003CX> addressed, \u003CY> open — \u003Cfinding one-liners>; commits \u003Ca7>..\u003Cb7>)`\n\nNever fix findings yourself in the controller session — your context stays\nclean for coordination, and controller fixes skip review.\n\n**The breaker.** When round 5's re-review still leaves findings open, stop\ndispatching. Adjudicate each open finding yourself — you hold the plan and\nthe cross-task context the reviewer lacks:\n\n- **The reviewer is wrong, or the point is contestable:** park it —\n  `Task \u003CN>: parked — \u003Cfinding> — ruling: \u003Cwhy the code stands>`. The final\n  review sees both sides.\n- **Real, but nothing downstream builds on it:** park it the same way, with\n  a ruling that says it's real and deferred.\n- **Real and load-bearing** — a later task builds on it, or it reveals a\n  plan defect: STOP. Append `Task \u003CN>: BLOCKED — \u003Creason>` and report to\n  your human partner with the finding, the plan text it collides with, and\n  the fix history. Parking a structural failure lets every dependent task\n  build on it and hands the final review a problem it cannot fix either.\n\nAdjudicate only at the cap. Adjudicating earlier to end a loop is\npre-judging with a different name. Every adjudication is a ledger entry —\na silent discard is forbidden.\n\n#### 5. Complete the task\n\nWhen the review comes back clean — or every open finding is parked with a\nruling at the cap — append the completion line to the ledger in the same\nmessage as your other bookkeeping:\n\n- `Task \u003CN>: complete (commits \u003Cbase7>..\u003Chead7>, review clean)`\n- `Task \u003CN>: complete (commits \u003Cbase7>..\u003Chead7>, \u003CK> parked)` after a\n  tripped breaker\n\nThen mark the todo complete and move on. Never move to the next task while\nthe review has open Critical\u002FImportant issues that are neither fixed nor\nparked-with-ruling at the cap.\n\n### Final Review\n\nThe final whole-branch review gets a package too: run\n`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE MERGE_BASE HEAD` (MERGE_BASE = the commit the\nbranch started from, e.g. `git merge-base main HEAD`) and include the\nprinted path in the final review dispatch, so the final reviewer reads\none file instead of re-deriving the branch diff with git commands. Dispatch\non the most capable available model (see Model Selection), using\n\u002Fcode-review's\n[code-reviewer.md](..\u002Fcode-review\u002Fcode-reviewer.md). Point it at\nthe ledger's deferred-minor and parked lines so it can triage which must be\nfixed before merge.\n\nIf the final whole-branch review returns findings, use `run_subagent` with `profile: \"implementer\"` to dispatch one fix subagent\nwith the complete findings list — not one fixer per finding.\nPer-finding fixers each rebuild context and re-run suites; a real\nsession's final-review fix wave cost more than all its tasks combined.\nThen run exactly one scoped re-review of the fix wave\n(`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD` over the fix range,\n[re-review-prompt.md](re-review-prompt.md)).\nAdjudicate any residual findings as in the task loop's breaker: park with\nrulings, or stop on load-bearing ones. There is no second fix wave —\nresidual load-bearing findings surface to your human partner when\nfinishing-a-development-branch presents the options.\n\n### Finish\n\nWhen the final whole-branch review is clean and its fixes are merged,\ndelete this plan's workspace (`rm -rf \u003Cworkspace>`) — the git history is\nthe record now. Sibling directories belong to other plans; leave them\nalone.\n\nUse \u002Ffinishing-a-development-branch.\n\n### Common Rationalizations\n\n| Excuse | Reality |\n|--------|---------|\n| \"Close enough on spec compliance\" | Reviewer found spec gaps = not done. Fix or hit the cap and adjudicate — those are the only exits. |\n| \"I'll fix it myself, dispatching is overhead\" | Controller fixes pollute your context and skip review. Resume the implementer. |\n| \"One more round will converge\" | Past the cap, rounds don't converge — the failure is structural. Adjudicate and route. |\n| \"The reviewer will just find something new anyway\" | Scoped re-reviews verify fixes; they cannot wander. New findings on untouched code go to the ledger, not the loop. |\n| \"This finding is obviously wrong, I'll drop it\" | You adjudicate only at the cap, and every ruling is a ledger entry. Silent discards are forbidden. |\n| \"The fix was small, skip the re-review\" | Unreviewed fixes are how regressions land. Every round ends with a scoped re-review. |\n| \"Reviews slow the loop down\" | The loop without reviews is just unverified churn. Reviews are the loop's brakes and steering. |\n| \"Ledger bookkeeping is overhead\" | The ledger is what survives compaction. Controllers without one have re-dispatched entire completed task sequences. |\n\n### Example Workflow\n\n```\nYou: I'm using Subagent-Driven Development to execute this plan.\n\n[Setup: worktree verified]\n[Read plan file once: .devin\u002Fplans\u002Ffeature-plan.md]\n[Resolve workspace: \u003Cskill-dir>\u002Fscripts\u002Fsdd-workspace.py (or run the equivalent with git\u002Fread\u002Fwrite if the skill directory is not accessible) .devin\u002Fplans\u002Ffeature-plan.md — no ledger inside, fresh start]\n[Create todos for all tasks]\n\nTask 1: Hook installation script\n\n[Run python scripts\u002Ftask-brief.py for Task 1; dispatch implementer with brief + report paths + context]\n\nImplementer: \"Before I begin - should the hook be installed at user or system level?\"\n\nYou: \"User level (~\u002F.config\u002Fdevin\u002Fhooks\u002F)\"\n\nImplementer: [Later]\n  - Implemented install-hook command\n  - Added tests, 5\u002F5 passing\n  - Self-review: Found I missed --force flag, added it\n  - Committed\n\n[Run python scripts\u002Freview-package.py PLAN_FILE BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the task-reviewer prompt for the printed path]\nTask reviewer: Spec ✅ - all requirements met, nothing extra.\n  Strengths: Good test coverage, clean. Issues: None. Task quality: Approved.\n\n[Ledger: Task 1: complete (commits a1b2c3d..d4e5f6a, review clean)]\n\nTask 2: Recovery modes\n\n[Run python scripts\u002Ftask-brief.py for Task 2; dispatch implementer with brief + report paths + context]\n\nImplementer: [No questions]\n  - Added verify\u002Frepair modes\n  - 8\u002F8 tests passing\n  - Committed\n\n[Run python scripts\u002Freview-package.py PLAN_FILE BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the task-reviewer prompt for the printed path]\nTask reviewer: Spec ❌:\n  - Missing: Progress reporting (spec says \"report every 100 items\")\n  Issues (Important): Magic number (100)\n\n[Fix round 1: resume the implementer with both findings]\nImplementer: Added progress reporting, extracted PROGRESS_INTERVAL constant.\n  Re-ran test\u002Frecovery.test.js — 10\u002F10 passing. Fix report appended.\n\n[Run python scripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the re-review prompt]\nRe-reviewer: Missing progress reporting — ADDRESSED (src\u002Frecovery.js:41).\n  Magic number — ADDRESSED (src\u002Frecovery.js:7). New breakage: none.\n  Verdict: all findings addressed.\n\n[Ledger: Task 2: fix round 1\u002F5 (2 addressed, 0 open; commits d4e5f6a..b7c8d9e)]\n[Ledger: Task 2: complete (commits d4e5f6a..b7c8d9e, review clean)]\n\n...\n\n[After all tasks]\n[Run python scripts\u002Freview-package.py PLAN_FILE MERGE_BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the code-review template]\nFinal reviewer: All requirements met. Deferred minors triaged: none block merge.\n\n[Delete this plan's workspace — the record now lives in git]\n\nDone! Using \u002Ffinishing-a-development-branch.\n```\n","# Dispatching Parallel Agents\n\n## Overview\n\nYou delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.\n\nWhen you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.\n\n**Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.\n\n## Early Exit: When NOT to Dispatch\n\nBefore dispatching any subagent, classify the task:\n\n- **Simple** (single file, \u003C50 lines, clear path, no research needed):\n  Controller handles inline. Dispatching overhead exceeds value.\n  Signal: you can describe the change in one sentence and know the exact file.\n\n- **Medium** (multiple files, needs some investigation, scoped changes):\n  Dispatch a single subagent with the right profile.\n\n- **Complex** (multi-system, needs research + design + implementation):\n  Dispatch multiple subagents in sequence: researcher → architect → implementer → reviewer.\n\n40-60% of tasks are simple enough for inline handling. Dispatching a subagent\nfor a 10-line fix costs more in coordination overhead than it saves in context\npreservation. Reserve subagent dispatch for tasks where context isolation or\nparallelism genuinely helps.\n\n## Default stance — single agent beats orchestration for most coding\n\nParallel and multi-agent dispatch is for **genuinely independent** work only.\nFor the common coding task — where steps depend on each other and share state\n— a single capable agent with tests and review beats a committee of\nsubagents. The plan-execution loop below (5-round fix loops, task reviewers,\nre-reviews, breakers, ledgers) is heavy machinery; reach for it only when a\nplan is already written, its tasks are mostly independent, and the cost of\ncontext pollution across tasks is real.\n\nVerified evidence (primary sources):\n\n- Cognition, \"Don't Build Multi-Agents\" (2025-06-12): every action carries\n  implicit decisions the other agents cannot see; subagents diverge even with\n  shared context. \u003Chttps:\u002F\u002Fcognition.com\u002Fblog\u002Fdont-build-multi-agents>\n- Anthropic multi-agent research (2025-06-13): multi-agent uses ~15x more\n  tokens than chat; \"most coding tasks involve fewer truly parallelizable\n  tasks than research.\"\n  \u003Chttps:\u002F\u002Fwww.anthropic.com\u002Fengineering\u002Fmulti-agent-research-system>\n- MAP study (arXiv:2512.04123, ICML 2026 oral): 68% of 86 production agents\n  across 26 domains execute at most 10 steps before human intervention —\n  simple supervised loops, not orchestrated constellations.\n  \u003Chttps:\u002F\u002Farxiv.org\u002Fabs\u002F2512.04123>\n- DeepSeek \"Super-agent\" harness eval (2025-10-31 article + released\n  prototype, ~20 work requests queued): a neutral prompt delegated in 0\u002F5\n  runs; a delegate-first prompt in 4\u002F5, cutting median task time 20.4 ->\n  13.8 min (p95 unchanged ~29). Under a multi-request queue the failure\n  mode flips: the single agent under-delegates because interruptions keep\n  re-entering the main session. Delegate-first beats neutral when the\n  queue is deep; it does not rescue slow-tail tasks.\n- Cooper Bench (arXiv paper, Jan): paired agents editing one task succeed\n  ~30% less often than solo agents, favoring one-ticket-one-worker splits\n  over co-editing.\n\nIf the failures are related, or agents would edit the same files, or the task\nis a single cohesive build — stay inline. The plan-execution mode earns its\ncost only on a plan of mostly-independent tasks where each task's context\nwould otherwise pollute the next.\n\n## When to Use\n\n```dot\ndigraph when_to_use {\n    \"Multiple failures?\" [shape=diamond];\n    \"Are they independent?\" [shape=diamond];\n    \"Single agent investigates all\" [shape=box];\n    \"One agent per problem domain\" [shape=box];\n    \"Can they work in parallel?\" [shape=diamond];\n    \"Sequential agents\" [shape=box];\n    \"Parallel dispatch\" [shape=box];\n\n    \"Multiple failures?\" -> \"Are they independent?\" [label=\"yes\"];\n    \"Are they independent?\" -> \"Single agent investigates all\" [label=\"no - related\"];\n    \"Are they independent?\" -> \"Can they work in parallel?\" [label=\"yes\"];\n    \"Can they work in parallel?\" -> \"Parallel dispatch\" [label=\"yes\"];\n    \"Can they work in parallel?\" -> \"Sequential agents\" [label=\"no - shared state\"];\n}\n```\n\n**Use when:**\n- 3+ test files failing with different root causes\n- Multiple subsystems broken independently\n- Each problem can be understood without context from others\n- No shared state between investigations\n\n**Don't use when:**\n- Failures are related (fix one might fix others)\n- Need to understand full system state\n- Agents would interfere with each other\n\n## The Pattern\n\n### 1. Identify Independent Domains\n\nGroup failures by what's broken:\n- File A tests: Tool approval flow\n- File B tests: Batch completion behavior\n- File C tests: Abort functionality\n\nEach domain is independent - fixing tool approval doesn't affect abort tests.\n\n### 2. Create Focused Agent Tasks\n\nEach agent gets:\n- **Specific scope:** One test file or subsystem\n- **Clear goal:** Make these tests pass\n- **Constraints:** Don't change other code\n- **Expected output:** Summary of what you found and fixed\n\n### 3. Dispatch in Parallel\n\nIssue all three subagent dispatches in the same response — they run in parallel:\n\n```text\nSubagent (subagent_general): \"Fix agent-tool-abort.test.ts failures\"\nSubagent (subagent_general): \"Fix batch-completion-behavior.test.ts failures\"\nSubagent (subagent_general): \"Fix tool-approval-race-conditions.test.ts failures\"\n# All three run concurrently.\n```\n\nMultiple dispatch calls in one response = parallel execution. One per response = sequential.\n\n### 4. Review and Integrate\n\nWhen agents return:\n- Read each summary\n- Verify fixes don't conflict\n- Run full test suite\n- Integrate all changes\n\n## Profile Selection by Cost and Capability\n\nWhen dispatching, match the profile to the task's capability needs AND cost\nsensitivity:\n\n| Task type | Profile | Why |\n|---|---|---|\n| Codebase research, doc lookup | `researcher` (`swe-2-max`) | Read-only, free, fast |\n| Code review, spec compliance | `reviewer` (`swe-2-max`) | Needs judgment, free |\n| Bounded implementation | `implementer` (`swe-2-flash-high`) | Needs full tools + coding strength; fast lane suffices for spec'd work |\n| Architecture, trade-offs | `architect` (`swe-2-max`) | Needs judgment, read-only, free |\n| Debugging, root cause | `debugger` (`swe-2-flash-high`) | Needs exec + iterative hypothesis testing |\n| Complex reasoning, context isolation | `subagent_general` (parent model) | Inherits parent model (`BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`), free, for tasks needing the parent model's reasoning mode |\n\nDon't dispatch `implementer` for a research task — `researcher` is 10x cheaper\nand read-only. Don't dispatch `architect` for a typo fix — handle inline.\n\nCost rule: if two profiles can handle the task, pick the cheaper one. The\ncontroller can override by switching the parent session model before dispatch\nwhen a task needs more capability than the profile's default model provides.\n\n## Agent Prompt Structure\n\nGood agent prompts are:\n1. **Focused** - One clear problem domain\n2. **Self-contained** - All context needed to understand the problem\n3. **Specific about output** - What should the agent return?\n\n```markdown\nFix the 3 failing tests in src\u002Fagents\u002Fagent-tool-abort.test.ts:\n\n1. \"should abort tool with partial output capture\" - expects 'interrupted at' in message\n2. \"should handle mixed completed and aborted tools\" - fast tool aborted instead of completed\n3. \"should properly track pendingToolCount\" - expects 3 results but gets 0\n\nThese are timing\u002Frace condition issues. Your task:\n\n1. Read the test file and understand what each test verifies\n2. Identify root cause - timing issues or actual bugs?\n3. Fix by:\n   - Replacing arbitrary timeouts with event-based waiting\n   - Fixing bugs in abort implementation if found\n   - Adjusting test expectations if testing changed behavior\n\nDo NOT just increase timeouts - find the real issue.\n\nReturn: Summary of what you found and what you fixed.\n```\n\n### Process over persona\n\nWhen delegating, the persona label (\"you are a senior reviewer\") is not\nthe contract - the process is. Specify the steps to follow and the\nacceptance criteria to hit: what to read first, which commands verify\nthe work, what the return must contain. A prompt that only names a role\nlets the agent invent its own bar; a prompt that names the process makes\nthe bar checkable. Persona sets posture, process sets the done-line.\n\n## Common Mistakes\n\n**❌ Too broad:** \"Fix all the tests\" - agent gets lost\n**✅ Specific:** \"Fix agent-tool-abort.test.ts\" - focused scope\n\n**❌ No context:** \"Fix the race condition\" - agent doesn't know where\n**✅ Context:** Paste the error messages and test names\n\n**❌ No constraints:** Agent might refactor everything\n**✅ Constraints:** \"Do NOT change production code\" or \"Fix tests only\"\n\n**❌ Vague output:** \"Fix it\" - you don't know what changed\n**✅ Specific:** \"Return summary of root cause and changes\"\n\n## When NOT to Use\n\n**Related failures:** Fixing one might fix others - investigate together first\n**Need full context:** Understanding requires seeing entire system\n**Exploratory debugging:** You don't know what's broken yet\n**Shared state:** Agents would interfere (editing same files, using same resources)\n\n## Real Example from Session\n\n**Scenario:** 6 test failures across 3 files after major refactoring\n\n**Failures:**\n- agent-tool-abort.test.ts: 3 failures (timing issues)\n- batch-completion-behavior.test.ts: 2 failures (tools not executing)\n- tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)\n\n**Decision:** Independent domains - abort logic separate from batch completion separate from race conditions\n\n**Dispatch:**\n```\nAgent 1 → Fix agent-tool-abort.test.ts\nAgent 2 → Fix batch-completion-behavior.test.ts\nAgent 3 → Fix tool-approval-race-conditions.test.ts\n```\n\n**Results:**\n- Agent 1: Replaced timeouts with event-based waiting\n- Agent 2: Fixed event structure bug (threadId in wrong place)\n- Agent 3: Added wait for async tool execution to complete\n\n**Integration:** All fixes independent, no conflicts, full suite green\n\n## Verification\n\nAfter agents return:\n1. **Review each summary** - Understand what changed\n2. **Check for conflicts** - Did agents edit same code?\n3. **Run full suite** - Verify all fixes work together\n4. **Spot check** - Agents can make systematic errors\n\n## Background subagent discipline\n\nWhen dispatching with `is_background=true`, act as a scheduler, not a\nworker:\n\n- Record each dispatch's agent ID and ownership boundary in the ledger, so\n  background state survives compaction.\n- Do not block the controller lane waiting on a background job. Pick the\n  next independent task; if none remains, stop briefly and let the\n  completion notification resume the workflow.\n- Never advance a dependent phase while background jobs it consumes are\n  still running or their results are unreconciled.\n- When splitting work into phases, split on dependencies and natural\n  delivery boundaries; never split merely to shrink a review's scope.\n\n## Dispatch trace and abort contract\n\nEvery dispatch leaves a record so burn and status survive compaction, and\na human can kill a runaway subagent. The helper is\n`scripts\u002Fsubagent-trace.py` (fail-open, JSON envelopes, state under\n`.devin\u002F`):\n\n- **At launch:** record the dispatch before\u002Fwhile dispatching —\n  `echo '{\"agent\":\"implementer\",\"title\":\"...\",\"profile\":\"swe-2-medium\"}' | python scripts\u002Fsubagent-trace.py record`\n  It appends a line to `.devin\u002Fsubagent-trace.jsonl`\n  (`{id, ts, agent, title, profile, status, notes}`, status starts\n  `running`). Reuse the dispatch's real ID via `--id` when you have one.\n- **On return:** update the same record in place —\n  `... record --id \u003Cid> --status done --notes \"summary\"` (also `killed` \u002F\n  `timeout`). Records update, never duplicate.\n- **Between polls:** check the abort flag —\n  `python scripts\u002Fsubagent-trace.py check-abort \u003Cid>` exits 0 when a kill\n  was requested (`.devin\u002Fsubagent-abort\u002F\u003Cid>` exists); stop polling that\n  dispatch and mark it `killed`.\n- **Human side:** `--abort \u003Cid>` sets the flag, `--clear-abort \u003Cid>`\n  clears it, `--pending` lists open dispatches, `--list` lists all.\n\n## Cross-skills\n\n- If fanning out many subagents, invoke `context-hygiene` to keep the parent context lean.\n- If work spans sessions, invoke `handoff` to capture state before ending.\n- For parallel implementation lanes, use `git-workflows` lane orchestration (per-lane worktrees + file ownership).\n\n## Plan execution mode\n\nThe sections above cover dispatching parallel agents for independent problems.\nThis section covers a related but distinct mode: executing a multi-task plan by\ndispatching a fresh subagent per task, with a task review after each and a broad\nwhole-branch review at the end. This is subagent-driven development.\n\nExecute plan by dispatching a fresh `subagent_general` subagent per task, a task review (spec compliance + code quality) after each, and a broad whole-branch review at the end.\n\n**Devin CLI setup:** Locate this skill's directory:\n- Windows: `%APPDATA%\\devin\\skills\\dispatching-parallel-agents`\n- macOS\u002FLinux: `~\u002F.config\u002Fdevin\u002Fskills\u002Fdispatching-parallel-agents`\n\nThe helper scripts and prompt templates live there. If you cannot access that path, fall back to doing the equivalent steps with `git`, `read`, and `write` tools.\n\n**Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.\n\n**Core principle:** Fresh subagent per task + task review (spec + quality) + broad final review = high quality, fast iteration\n\n**Narration:** between tool calls, narrate at most one short line — the\nledger and the tool results carry the record.\n\n**Continuous execution:** Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, or all tasks complete. \"Should I continue?\" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it.\n\n### When to Use (plan execution)\n\n```dot\ndigraph when_to_use {\n    \"Have implementation plan?\" [shape=diamond];\n    \"Tasks mostly independent?\" [shape=diamond];\n    \"Stay in this session?\" [shape=diamond];\n    \"dispatching-parallel-agents (plan execution mode)\" [shape=box];\n    \"execution\" [shape=box];\n    \"Manual execution or brainstorm first\" [shape=box];\n\n    \"Have implementation plan?\" -> \"Tasks mostly independent?\" [label=\"yes\"];\n    \"Have implementation plan?\" -> \"Manual execution or brainstorm first\" [label=\"no\"];\n    \"Tasks mostly independent?\" -> \"Stay in this session?\" [label=\"yes\"];\n    \"Tasks mostly independent?\" -> \"Manual execution or brainstorm first\" [label=\"no - tightly coupled\"];\n    \"Stay in this session?\" -> \"dispatching-parallel-agents (plan execution mode)\" [label=\"yes\"];\n    \"Stay in this session?\" -> \"execution\" [label=\"no - parallel session\"];\n}\n```\n\n**vs. Executing Plans (parallel session):**\n- Same session (no context switch)\n- Fresh subagent per task (no context pollution)\n- Review after each task (spec compliance + code quality), broad review at the end\n- Faster iteration (no human-in-loop between tasks)\n\n### The Process\n\n```dot\ndigraph process {\n    rankdir=TB;\n\n    subgraph cluster_per_task {\n        label=\"Per Task\";\n        \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" [shape=box];\n        \"Implementer asks questions?\" [shape=diamond];\n        \"Answer questions, provide context\" [shape=box];\n        \"Implementer implements, tests, commits, self-reviews\" [shape=box];\n        \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\" [shape=box];\n        \"Spec ✅ and quality approved?\" [shape=diamond];\n        \"Finding conflicts with plan text?\" [shape=diamond];\n        \"Ask human partner which governs\" [shape=box];\n        \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [shape=box];\n        \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\" [shape=box];\n        \"All findings addressed?\" [shape=diamond];\n        \"R = 5?\" [shape=diamond];\n        \"Adjudicate each open finding\" [shape=box];\n        \"Any load-bearing finding?\" [shape=diamond];\n        \"STOP: report BLOCKED to human partner\" [shape=box];\n        \"Park findings in ledger with rulings\" [shape=box];\n        \"Append completion to ledger, mark todo complete\" [shape=box];\n    }\n\n    \"Setup: worktree, ledger check, read plan, pre-flight review\" [shape=box];\n    \"More tasks remain?\" [shape=diamond];\n    \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" [shape=box];\n    \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\" [shape=box];\n    \"Final review clean: delete this plan's workspace\" [shape=box];\n    \"Use \u002Ffinishing-a-development-branch\" [shape=box style=filled fillcolor=lightgreen];\n\n    \"Setup: worktree, ledger check, read plan, pre-flight review\" -> \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\";\n    \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" -> \"Implementer asks questions?\";\n    \"Implementer asks questions?\" -> \"Answer questions, provide context\" [label=\"yes\"];\n    \"Answer questions, provide context\" -> \"Implementer implements, tests, commits, self-reviews\";\n    \"Implementer asks questions?\" -> \"Implementer implements, tests, commits, self-reviews\" [label=\"no\"];\n    \"Implementer implements, tests, commits, self-reviews\" -> \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\";\n    \"Generate review package, dispatch task reviewer (.\u002Ftask-reviewer-prompt.md)\" -> \"Spec ✅ and quality approved?\";\n    \"Spec ✅ and quality approved?\" -> \"Append completion to ledger, mark todo complete\" [label=\"yes\"];\n    \"Spec ✅ and quality approved?\" -> \"Finding conflicts with plan text?\" [label=\"no\"];\n    \"Finding conflicts with plan text?\" -> \"Ask human partner which governs\" [label=\"yes\"];\n    \"Ask human partner which governs\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\";\n    \"Finding conflicts with plan text?\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [label=\"no\"];\n    \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" -> \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\";\n    \"Dispatch scoped re-review (.\u002Fre-review-prompt.md)\" -> \"All findings addressed?\";\n    \"All findings addressed?\" -> \"Append completion to ledger, mark todo complete\" [label=\"yes\"];\n    \"All findings addressed?\" -> \"R = 5?\" [label=\"no\"];\n    \"R = 5?\" -> \"Fix round R of 5: R≤3 resume implementer; R≥4 fresh implementer, more capable model\" [label=\"no - next round\"];\n    \"R = 5?\" -> \"Adjudicate each open finding\" [label=\"yes - breaker trips\"];\n    \"Adjudicate each open finding\" -> \"Any load-bearing finding?\";\n    \"Any load-bearing finding?\" -> \"STOP: report BLOCKED to human partner\" [label=\"yes\"];\n    \"Any load-bearing finding?\" -> \"Park findings in ledger with rulings\" [label=\"no\"];\n    \"Park findings in ledger with rulings\" -> \"Append completion to ledger, mark todo complete\";\n    \"Append completion to ledger, mark todo complete\" -> \"More tasks remain?\";\n    \"More tasks remain?\" -> \"Dispatch implementer subagent (.\u002Fimplementer-prompt.md)\" [label=\"yes\"];\n    \"More tasks remain?\" -> \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" [label=\"no\"];\n    \"Dispatch final code reviewer (..\u002Fcode-review\u002Fcode-reviewer.md)\" -> \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\";\n    \"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals\" -> \"Final review clean: delete this plan's workspace\";\n    \"Final review clean: delete this plan's workspace\" -> \"Use \u002Ffinishing-a-development-branch\";\n}\n```\n\n### Setup\n\nEnsure the work happens in an isolated workspace: use\n\u002Fgit-workflows to create one or verify the existing one.\nNever start implementation on a main\u002Fmaster branch without your human\npartner's explicit consent.\n\nConversation memory does not survive compaction. In real sessions,\ncontrollers that lost their place have re-dispatched entire completed task\nsequences — the single most expensive failure observed. Track progress in\na ledger file, not only in todos.\n\n- Each plan owns a workspace: at skill start, run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Fsdd-workspace.py (or run the equivalent with git\u002Fread\u002Fwrite if the skill directory is not accessible) PLAN_FILE` — it prints the plan's git-ignored\n  directory (`\u003Crepo-root>\u002F.devin\u002Fsdd\u002F\u003Cplan-basename>\u002F`), home to\n  every artifact for THIS plan: ledger, briefs, reports, review packages.\n  Another plan's directory is never yours to read or write.\n- Check for this plan's ledger at `\u003Cworkspace>\u002Fprogress.md`. If its first\n  line names your plan file, tasks with a `Task \u003CN>: complete` line are DONE\n  — do not re-dispatch them; resume at the first task without one. A task\n  whose last line is a fix round is mid-loop: resume the loop at the next\n  round. A ledger whose first line names a different plan file — or a stray\n  ledger at the old flat path `.devin\u002Fsdd\u002Fprogress.md` — is another\n  plan's progress: leave it in place and start your own, fresh.\n- Create the ledger with its identity as the first line:\n  `# SDD ledger — plan: \u003Cplan file path>`. Structure it with an Index section\n  at the top for fast context reconstruction after compaction, and a Commit\n  Boundaries section marking safe recovery points:\n\n  ```\n  # SDD ledger — plan: \u003Cplan file path>\n\n  ## Index\n  - Task 1: complete (commits a1b..d4e, review clean)\n  - Task 2: fix round 1\u002F5 → complete (commits d4e..b7c, 2 addressed)\n  - Task 3: in progress (dispatched, awaiting review)\n\n  ## Commit Boundaries\n  - a1b2c3d: Task 1 complete — safe recovery point\n  - d4e5f6a: Task 2 fix round 1 — safe recovery point\n\n  ## Detail Log\n  Task 1: complete (commits a1b2c3d..d4e5f6a, review clean)\n  Task 2: fix round 1\u002F5 (2 addressed, 0 open — magic number, missing progress; commits d4e5f6a..b7c8d9e)\n  Task 2: complete (commits d4e5f6a..b7c8d9e, review clean)\n  ```\n\n  The Index lets you reconstruct task status at a glance after compaction.\n  Commit Boundaries mark points where `git reset --hard \u003CSHA>` is safe.\n  The Detail Log is the append-only record of every action.\n- The ledger is your recovery map: the commits it names exist in git even\n  when your context no longer remembers creating them. After compaction,\n  trust the ledger and `git log` over your own recollection.\n- `git clean -fdx` will destroy the workspace (it's git-ignored scratch); if\n  that happens, recover from `git log`.\n\nRead the plan once, note its context and Global Constraints, and create a\ntodo per task.\n\nBefore dispatching Task 1, scan the plan once for conflicts:\n\n- tasks that contradict each other or the plan's Global Constraints\n- anything the plan explicitly mandates that the review rubric treats as a\n  defect (a test that asserts nothing, verbatim duplication of a logic block)\n\nPresent everything you find to your human partner as one batched question —\neach finding beside the plan text that mandates it, asking which governs —\nbefore execution begins, not one interrupt per discovery mid-plan. If the\nscan is clean, proceed without comment. The review loop remains the net for\nconflicts that only emerge from implementation.\n\n### Model Selection\n\nIn Devin CLI, a `subagent_general` subagent inherits the parent session's model (`BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`, free by default). The built-in `subagent_explore` runs on the CLI default router (possibly paid). **When parent is FREE (default): never use `subagent_explore`** — use the custom `researcher` profile (`agents\u002Fresearcher.md`, `model: swe-2-max`, free) instead. When parent is PAID (user switched via `\u002Fmodel`), `subagent_explore` is permitted. You cannot name a model directly in a `run_subagent` call; the profile determines the model. Custom profiles in `agents\u002F*.md` pin SWE-2 effort variants to stay within the bundle's free tier.\n\n**Effort-level routing:** pick the effort level that matches the task shape (see `context-hygiene`): **Fast** (`swe-2-flash-high` bounded \u002F `swe-2-flash-medium` mechanical) for bounded execution, **High** (`swe-2-high`) for multi-file work, **Max** (`swe-2-max`) for open-ended or judgment-heavy work.\n\n**Use `subagent_general` (inherits parent `BUNDLE_DEFAULT_MODEL` \u002F `data\u002Fbundle-models.json`, free) for:**\n- Final whole-branch review — the judgment task that needs the most capability.\n- High-stakes architecture that needs the parent model's reasoning (routine architecture → `architect` at Max effort).\n- Rounds 4-5 fix-loop escalation (the parent can switch effort via `\u002Fmodel` before dispatching).\n- Complex reasoning tasks that benefit from context isolation but need the parent model's effort level.\n\n**Use custom profiles (free, context per `data\u002Fbundle-models.json`) for:**\n- `researcher` — codebase research and fact-finding (read-only, `swe-2-max`).\n- `implementer`: bounded coding tasks (`swe-2-flash-high`).\n- `debugger`: root cause analysis and debugging (`swe-2-flash-high`).\n- `architect` — routine architecture and trade-off analysis (read-only, `swe-2-max`).\n- `reviewer` — code review and spec compliance (read-only + exec for tests, `swe-2-max`).\n\n**To run a different model for a subagent:**\n1. Switch the parent session model with `\u002Fmodel \u003Cmodel>` before dispatching (affects all `subagent_general` dispatches from this session).\n2. Or create a custom subagent profile in `~\u002F.config\u002Fdevin\u002Fagents\u002F` or `%APPDATA%\\devin\\agents\\` with a `model:` field, and pass that profile name as `profile` in `run_subagent`.\n\n**Turn count beats token price.** Wall-clock and context cost scale with how\nmany turns a subagent takes. SWE-2 variants are fast enough that turn\ncount rarely causes wall-clock issues. When the task's plan text contains the complete code to\nwrite, the implementation is transcription plus testing, and Medium effort is\nsufficient. For rounds 4-5 escalation, switch to `subagent_general`\n(inherits the parent model from `BUNDLE_DEFAULT_MODEL`) or raise the parent's\neffort via `\u002Fmodel`.\n\n**Task complexity signals (implementation tasks):**\n- Touches 1-2 files with a complete spec → `implementer` (Medium effort)\n- Touches multiple files with integration concerns → `implementer` (Medium effort)\n- Requires design judgment or broad codebase understanding → `architect` (Max effort) for design, then `implementer` (Medium effort) for code\n- Rounds 4-5 fix-loop failure → `subagent_general` (parent `BUNDLE_DEFAULT_MODEL`) for fresh eyes + reasoning\n\n### The Task Loop\n\nEverything you paste into a dispatch prompt — and everything a subagent\nprints back — stays resident in your context for the rest of the session\nand is re-read on every later turn. Hand artifacts over as files.\n\n#### 1. use `run_subagent` with `profile: \"implementer\"` and the filled implementer prompt as `task`\n\nRecord BASE (`git rev-parse HEAD`) before dispatching — the review package\nand fix-round diffs need it.\n\n- **Task brief:** before dispatching an implementer, run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Ftask-brief.py PLAN_FILE N` — it extracts the task's full text to a\n  uniquely named file and prints the path. Compose the dispatch so the\n  brief stays the single source of\n  requirements. Your dispatch should contain: (1) one line on where this\n  task fits in the project; (2) the brief path, introduced as \"read this\n  first — it is your requirements, with the exact values to use verbatim\";\n  (3) interfaces and decisions from earlier tasks that the brief cannot\n  know; (4) your resolution of any ambiguity you noticed in the brief;\n  (5) the report-file path and report contract. Exact values (numbers,\n  magic strings, signatures, test cases) appear only in the brief. Never\n  make a subagent read the whole plan file.\n- **Done-when contract:** every task should carry a runnable acceptance\n  check (`Done when:`\u002F`Acceptance:`\u002F`Verify:`\u002F`Check:` section). Pass\n  `--require-done-when` to `task-brief.py` to reject briefs missing one\n  (exit 4); without the flag the extractor warns but proceeds. When the\n  implementer returns, re-run the brief's check yourself before accepting\n  the report - never trust the worker's self-declared \"done\" alone.\n- **Report file:** name the implementer's report file after the brief\n  (brief `…\u002Ftask-N-brief.md` → report `…\u002Ftask-N-report.md`) and put it in\n  the dispatch prompt. The implementer writes the full report there and\n  returns only status, commits, a one-line test summary, and concerns.\n- A dispatch prompt describes one task, not the session's history. Do not\n  paste accumulated prior-task summaries (\"state after Tasks 1-3\") into\n  later dispatches — a real session's dispatch hit 42k chars of which 99%\n  was pasted history. A fresh subagent needs its task, the interfaces it\n  touches, and the global constraints. Nothing else.\n- If an earlier task parked a finding in the area this task touches, carry\n  a pointer to that ledger entry in the dispatch.\n- Record the implementer's agent identity from the dispatch result —\n  fix-loop rounds 1-3 resume this agent.\n- Never dispatch multiple implementation subagents in parallel (conflicts).\n\nTemplate: [implementer-prompt.md](implementer-prompt.md)\n\n#### 2. Handle the report\n\nImplementer subagents report one of four statuses. Handle each appropriately:\n\n**DONE:** Generate the review package (`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE BASE HEAD`, from this skill's directory — it prints the unique file path it wrote; BASE is the commit you recorded before dispatching the implementer — never `HEAD~1`, which silently drops all but the last commit of a multi-commit task), then use `run_subagent` with `profile: \"reviewer\"` and the filled task-reviewer prompt as `task` with the printed path.\n\n**DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., \"this file is getting large\"), note them and proceed to review.\n\n**NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.\n\n**BLOCKED:** The implementer cannot complete the task. Assess the blocker:\n1. If it's a context problem, provide more context and re-dispatch with the same model\n2. If the task requires more reasoning, re-dispatch with a more capable model\n3. If the task is too large, break it into smaller pieces\n4. If the plan itself is wrong, escalate to the human\n5. If a specific subtask within the task failed (not the whole task), re-dispatch\n   ONLY the failed subtask with targeted context. Don't re-run the entire task\n   pipeline when one piece failed — this wastes 50-70% of retry cost.\n\n**Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.\n\nIf the implementer asks questions — before starting or mid-task — answer\nclearly and completely, provide additional context if needed, and don't\nrush it into implementation.\n\n#### 3. Review the task\n\nPer-task reviews are task-scoped gates. The broad review happens once, at the\nfinal whole-branch review. Never skip the task review, and never accept a\nreport missing either verdict — spec compliance AND task quality are both\nrequired. Implementer self-review never replaces the task review; both are\nneeded.\n\n- Hand the reviewer its diff as a file: run this skill's\n  `\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE BASE HEAD` and pass the reviewer the file path\n  it prints (or, without bash: `git log --oneline`, `git diff --stat`,\n  and `git diff -U10` for the range, redirected to one uniquely named\n  file). The output never enters your own context, and the reviewer sees\n  the commit list, stat summary, and full diff with context in one Read\n  call. Use the BASE you recorded before dispatching the implementer —\n  never `HEAD~1`, which silently truncates multi-commit tasks. Never\n  use `run_subagent` for a task reviewer without a diff file.\n- **Reviewer inputs:** the task reviewer gets three paths — the same brief\n  file, the report file, and the review package — plus the global\n  constraints that bind the task.\n- The global-constraints block you hand the reviewer is its attention\n  lens. Copy the binding requirements verbatim from the plan's Global\n  Constraints section or the spec: exact values, exact formats, and the\n  stated relationships between components (\"same layout as X\", \"matches\n  Y\"). The reviewer's template already carries the process rules (YAGNI,\n  test hygiene, review method) — the constraints block is for what THIS\n  project's spec demands.\n- Do not add open-ended directives like \"check all uses\" or \"run race tests\n  if useful\" without a concrete, task-specific reason\n- Do not ask a reviewer to re-run tests the implementer already ran on the\n  same code — the implementer's report carries the test evidence\n- Do not pre-judge findings for the reviewer — never instruct a reviewer to\n  ignore or not flag a specific issue. If you believe a finding would be a\n  false positive, let the reviewer raise it and adjudicate it in the review\n  loop. If the prompt you are writing contains \"do not flag,\" \"don't treat X\n  as a defect,\" \"at most Minor,\" or \"the plan chose\" — stop: you are\n  pre-judging, usually to spare yourself a review loop.\nThe task reviewer may report \"⚠️ Cannot verify from diff\" items — requirements\nthat live in unchanged code or span tasks. These do not block the rest of the\nreview, but you must resolve each one yourself before marking the task\ncomplete: you hold the plan and cross-task context the reviewer\nlacks. If you confirm an item is a real gap, treat it as a failed spec\nreview — it enters the fix loop with the other findings.\n\nTemplate: [task-reviewer-prompt.md](task-reviewer-prompt.md)\n\n#### 4. The fix loop\n\nThe loop triggers when the review reports spec ❌, any Critical or Important\nfinding, or a ⚠️ item you confirmed as a real gap.\n\nBefore the loop starts, two routes leave it immediately:\n\n- Record Minor findings in the progress ledger as you go\n  (`Task \u003CN>: minor (deferred): \u003Cone-liner>`), and point the final\n  whole-branch review at that list so it can triage which must be fixed\n  before merge. A roll-up nobody reads is a silent discard. Minor findings\n  never enter the loop.\n- A finding labeled plan-mandated — or any finding that conflicts with\n  what the plan's text requires — is the human's decision, like any plan\n  contradiction: present the finding and the plan text, ask which governs.\n  Do not dismiss the finding because the plan mandates it, and do not\n  run a fix via `run_subagent` that contradicts the plan without asking.\nEverything else enters the loop. A fix round is one `run_subagent` fix dispatch plus one\nscoped re-review. Exit conditions (checked in order after each re-review):\n\n1. **PRIMARY:** zero Critical\u002FImportant findings remain → exit clean\n2. **SECONDARY:** convergence — no new findings for 2 consecutive rounds → exit clean\n3. **HARD CAP:** 5 rounds (safety net — adjudicate as below)\n4. **ESCALATION:** not converged after round 3 → switch to more capable model (rounds 4-5 already do this)\n\n**Rounds 1-3 — resume the original implementer.** Send it the open findings\nverbatim. Its context is intact: it knows the task, the code, and its own\nchoices. If you prefer a fresh context over resuming the same subagent,\nuse `run_subagent` with `profile: \"implementer\"` for a fresh implementer carrying the brief path, the report-file path,\nand the findings — the report file is the persistent memory either way.\n\n**Rounds 4-5 — use `run_subagent` with `profile: \"implementer\"` for a fresh implementer on a more capable model** (per\nModel Selection), with the brief path, the report-file path, the open\nfindings, and this framing: \"A prior implementer attempted this task\n[N] times; you own it now. Read the report file for what was tried.\" A loop\nthat survives three resumes usually means the implementer cannot see its\nown problem — fresh eyes and a capability bump in one move.\n\n**Every round, either way:** the implementer fixes, re-runs the tests\ncovering the amended code, appends its fix report to the same report file,\nand returns the short contract. Before re-dispatching the reviewer, confirm\nthe fix report contains the covering tests, the command run, and the\noutput; use `run_subagent` with `profile: \"reviewer\"` for the re-review once all three are present. Name the\ncovering test files in the fix message — a one-line fix does not need the\nwhole suite.\n\n**The re-review is scoped.** Run `\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD`\nwhere FIX_BASE is the head the previous review saw, and dispatch\n[re-review-prompt.md](re-review-prompt.md) with the findings list, the\nbrief, the report file, and the printed diff path. The re-reviewer verdicts\neach finding ADDRESSED or NOT ADDRESSED and flags new breakage in the fix\ndiff only. New Critical\u002FImportant breakage in the fix diff joins the open\nfindings list. Out-of-scope observations go to the ledger as deferred\nminors — they never extend the loop.\n\n**After each round,** append to the ledger:\n`Task \u003CN>: fix round \u003CR>\u002F5 (\u003CX> addressed, \u003CY> open — \u003Cfinding one-liners>; commits \u003Ca7>..\u003Cb7>)`\n\nNever fix findings yourself in the controller session — your context stays\nclean for coordination, and controller fixes skip review.\n\n**The breaker.** When round 5's re-review still leaves findings open, stop\ndispatching. Adjudicate each open finding yourself — you hold the plan and\nthe cross-task context the reviewer lacks:\n\n- **The reviewer is wrong, or the point is contestable:** park it —\n  `Task \u003CN>: parked — \u003Cfinding> — ruling: \u003Cwhy the code stands>`. The final\n  review sees both sides.\n- **Real, but nothing downstream builds on it:** park it the same way, with\n  a ruling that says it's real and deferred.\n- **Real and load-bearing** — a later task builds on it, or it reveals a\n  plan defect: STOP. Append `Task \u003CN>: BLOCKED — \u003Creason>` and report to\n  your human partner with the finding, the plan text it collides with, and\n  the fix history. Parking a structural failure lets every dependent task\n  build on it and hands the final review a problem it cannot fix either.\n\nAdjudicate only at the cap. Adjudicating earlier to end a loop is\npre-judging with a different name. Every adjudication is a ledger entry —\na silent discard is forbidden.\n\n#### 5. Complete the task\n\nWhen the review comes back clean — or every open finding is parked with a\nruling at the cap — append the completion line to the ledger in the same\nmessage as your other bookkeeping:\n\n- `Task \u003CN>: complete (commits \u003Cbase7>..\u003Chead7>, review clean)`\n- `Task \u003CN>: complete (commits \u003Cbase7>..\u003Chead7>, \u003CK> parked)` after a\n  tripped breaker\n\nThen mark the todo complete and move on. Never move to the next task while\nthe review has open Critical\u002FImportant issues that are neither fixed nor\nparked-with-ruling at the cap.\n\n### Final Review\n\nThe final whole-branch review gets a package too: run\n`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE MERGE_BASE HEAD` (MERGE_BASE = the commit the\nbranch started from, e.g. `git merge-base main HEAD`) and include the\nprinted path in the final review dispatch, so the final reviewer reads\none file instead of re-deriving the branch diff with git commands. Dispatch\non the most capable available model (see Model Selection), using\n\u002Fcode-review's\n[code-reviewer.md](..\u002Fcode-review\u002Fcode-reviewer.md). Point it at\nthe ledger's deferred-minor and parked lines so it can triage which must be\nfixed before merge.\n\nIf the final whole-branch review returns findings, use `run_subagent` with `profile: \"implementer\"` to dispatch one fix subagent\nwith the complete findings list — not one fixer per finding.\nPer-finding fixers each rebuild context and re-run suites; a real\nsession's final-review fix wave cost more than all its tasks combined.\nThen run exactly one scoped re-review of the fix wave\n(`\u003Cskill-dir>\u002Fscripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD` over the fix range,\n[re-review-prompt.md](re-review-prompt.md)).\nAdjudicate any residual findings as in the task loop's breaker: park with\nrulings, or stop on load-bearing ones. There is no second fix wave —\nresidual load-bearing findings surface to your human partner when\nfinishing-a-development-branch presents the options.\n\n### Finish\n\nWhen the final whole-branch review is clean and its fixes are merged,\ndelete this plan's workspace (`rm -rf \u003Cworkspace>`) — the git history is\nthe record now. Sibling directories belong to other plans; leave them\nalone.\n\nUse \u002Ffinishing-a-development-branch.\n\n### Common Rationalizations\n\n| Excuse | Reality |\n|--------|---------|\n| \"Close enough on spec compliance\" | Reviewer found spec gaps = not done. Fix or hit the cap and adjudicate — those are the only exits. |\n| \"I'll fix it myself, dispatching is overhead\" | Controller fixes pollute your context and skip review. Resume the implementer. |\n| \"One more round will converge\" | Past the cap, rounds don't converge — the failure is structural. Adjudicate and route. |\n| \"The reviewer will just find something new anyway\" | Scoped re-reviews verify fixes; they cannot wander. New findings on untouched code go to the ledger, not the loop. |\n| \"This finding is obviously wrong, I'll drop it\" | You adjudicate only at the cap, and every ruling is a ledger entry. Silent discards are forbidden. |\n| \"The fix was small, skip the re-review\" | Unreviewed fixes are how regressions land. Every round ends with a scoped re-review. |\n| \"Reviews slow the loop down\" | The loop without reviews is just unverified churn. Reviews are the loop's brakes and steering. |\n| \"Ledger bookkeeping is overhead\" | The ledger is what survives compaction. Controllers without one have re-dispatched entire completed task sequences. |\n\n### Example Workflow\n\n```\nYou: I'm using Subagent-Driven Development to execute this plan.\n\n[Setup: worktree verified]\n[Read plan file once: .devin\u002Fplans\u002Ffeature-plan.md]\n[Resolve workspace: \u003Cskill-dir>\u002Fscripts\u002Fsdd-workspace.py (or run the equivalent with git\u002Fread\u002Fwrite if the skill directory is not accessible) .devin\u002Fplans\u002Ffeature-plan.md — no ledger inside, fresh start]\n[Create todos for all tasks]\n\nTask 1: Hook installation script\n\n[Run python scripts\u002Ftask-brief.py for Task 1; dispatch implementer with brief + report paths + context]\n\nImplementer: \"Before I begin - should the hook be installed at user or system level?\"\n\nYou: \"User level (~\u002F.config\u002Fdevin\u002Fhooks\u002F)\"\n\nImplementer: [Later]\n  - Implemented install-hook command\n  - Added tests, 5\u002F5 passing\n  - Self-review: Found I missed --force flag, added it\n  - Committed\n\n[Run python scripts\u002Freview-package.py PLAN_FILE BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the task-reviewer prompt for the printed path]\nTask reviewer: Spec ✅ - all requirements met, nothing extra.\n  Strengths: Good test coverage, clean. Issues: None. Task quality: Approved.\n\n[Ledger: Task 1: complete (commits a1b2c3d..d4e5f6a, review clean)]\n\nTask 2: Recovery modes\n\n[Run python scripts\u002Ftask-brief.py for Task 2; dispatch implementer with brief + report paths + context]\n\nImplementer: [No questions]\n  - Added verify\u002Frepair modes\n  - 8\u002F8 tests passing\n  - Committed\n\n[Run python scripts\u002Freview-package.py PLAN_FILE BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the task-reviewer prompt for the printed path]\nTask reviewer: Spec ❌:\n  - Missing: Progress reporting (spec says \"report every 100 items\")\n  Issues (Important): Magic number (100)\n\n[Fix round 1: resume the implementer with both findings]\nImplementer: Added progress reporting, extracted PROGRESS_INTERVAL constant.\n  Re-ran test\u002Frecovery.test.js — 10\u002F10 passing. Fix report appended.\n\n[Run python scripts\u002Freview-package.py PLAN_FILE FIX_BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the re-review prompt]\nRe-reviewer: Missing progress reporting — ADDRESSED (src\u002Frecovery.js:41).\n  Magic number — ADDRESSED (src\u002Frecovery.js:7). New breakage: none.\n  Verdict: all findings addressed.\n\n[Ledger: Task 2: fix round 1\u002F5 (2 addressed, 0 open; commits d4e5f6a..b7c8d9e)]\n[Ledger: Task 2: complete (commits d4e5f6a..b7c8d9e, review clean)]\n\n...\n\n[After all tasks]\n[Run python scripts\u002Freview-package.py PLAN_FILE MERGE_BASE HEAD; use `run_subagent` with `profile: \"reviewer\"` and the code-review template]\nFinal reviewer: All requirements met. Deferred minors triaged: none block merge.\n\n[Delete this plan's workspace — the record now lives in git]\n\nDone! Using \u002Ffinishing-a-development-branch.\n```\n",{"name":5,"triggers":24,"description":7},[25,26],"user","model","main","02b95ddb62959a00b3c31442c2046aca0d19563c","skills\u002Fdispatching-parallel-agents",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill dispatching-parallel-agents",{"tool":41,"command":42},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill dispatching-parallel-agents",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill dispatching-parallel-agents","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002FSKILL.md",true,[49,55,59,65,69,73],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"implementer-prompt.md","REFERENCE","参考文档",5614,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Fimplementer-prompt.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"re-review-prompt.md",4205,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Fre-review-prompt.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Freview-package.py","SCRIPT","脚本",3711,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Fscripts\u002Freview-package.py",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fsdd-workspace.py",2048,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Fscripts\u002Fsdd-workspace.py",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Ftask-brief.py",3473,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Fscripts\u002Ftask-brief.py",{"path":74,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":75,"sourceHtmlUrl":76},"task-reviewer-prompt.md",7729,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents\u002Ftask-reviewer-prompt.md",[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":114,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]