Commit ef8ad5e
committed
Remove agent: field from all 20 commands — same root cause as subtask fix
The agent: field on a command makes OpenCode delegate the entire command
to a specific subagent. The subagent receives only the command body
(skill file reference + arguments) with ZERO conversation context.
This caused the /prototype failure: the prototyper subagent received
the skill file but had no idea what game to prototype, which mechanic
to validate, or where the concept doc lived — because subagents don't
inherit conversation history.
Root cause: upstream Claude Code's agent: field was metadata/hint only.
Skills ran inline in the main conversation. OpenCode's agent: field is
a delegation mechanism that bypasses the main agent's context.
Fix: removed agent: from all 20 affected commands (adopt,
architecture-review, balance-check, code-review, content-audit,
create-architecture, create-control-manifest, create-epics,
create-stories, localize, patch-notes, perf-profile,
propagate-design-change, prototype, qa-plan, security-audit, team-qa,
ux-design, ux-review, vertical-slice).
After fix: all 77 commands run inline with zero agent: or subtask:
fields. The main agent loads the skill, gathers context interactively,
and spawns specific subagents via the task tool WITH full context in
the prompt — exactly matching upstream behavior.
All 77 commands: 0 with agent:, 0 with subtask:.1 parent 7b39898 commit ef8ad5e
32 files changed
Lines changed: 2696 additions & 20 deletions
File tree
- .opencode/commands
- porting-reports/runtime-payload-captures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
0 commit comments