|
| 1 | +--- |
| 2 | +name: subagents |
| 3 | +description: Delegate focused work to isolated DevSpace coding agents. |
| 4 | +--- |
| 5 | + |
| 6 | +Each subagent is headless, has its own context window, cannot see the parent conversation, cannot ask the user, and cannot spawn subagents or workflows. Give every child a self-contained prompt with paths, constraints, and the expected report. |
| 7 | + |
| 8 | +## Choose a target |
| 9 | + |
| 10 | +Prefer a matching named profile from `open_workspace`. Use a raw provider when |
| 11 | +the user names that harness or no profile fits. Choose only profiles and |
| 12 | +providers returned by `open_workspace`. |
| 13 | + |
| 14 | +## Write the brief |
| 15 | + |
| 16 | +Describe the task directly. Include decisions and constraints that exist only |
| 17 | +in the parent conversation. Mention relevant paths or scope when useful. Do not |
| 18 | +repeat project instructions that the child can discover from the repository. |
| 19 | + |
| 20 | +## Run and continue |
| 21 | + |
| 22 | +```bash |
| 23 | +devspace agents run <profile-or-provider> "<brief>" |
| 24 | +devspace agents show <id> |
| 25 | +devspace agents run <id> "<follow-up>" |
| 26 | +devspace agents ls |
| 27 | +``` |
| 28 | + |
| 29 | +`run` with a profile or provider starts a child and returns its id. `show` |
| 30 | +reads its latest status and response. `run` with an existing id continues the |
| 31 | +same child session. `ls` lists sessions for the current project. |
| 32 | + |
| 33 | +Do not invoke provider CLIs directly; use `devspace agents` so DevSpace keeps |
| 34 | +session and provider handling consistent. |
| 35 | + |
| 36 | +## Model and effort overrides |
| 37 | + |
| 38 | +Normally omit `--model` and `--effort`. When an exact override is needed, read |
| 39 | +`references/<provider>.md` first. Do not guess values or transfer an effort |
| 40 | +name between providers merely because both use the same word. |
| 41 | + |
| 42 | +```bash |
| 43 | +devspace agents run <target> --model <model> --effort <effort> "<brief>" |
| 44 | +``` |
| 45 | + |
| 46 | +## Direct subagent or workflow |
| 47 | + |
| 48 | +Use a direct subagent for one focused delegation or a follow-up with the same |
| 49 | +child. Use a dynamic workflow when the task needs programmed fan-out, stages, |
| 50 | +branching, nesting, or replay. |
0 commit comments