Skip to content

Commit bfad196

Browse files
feat: improve multi-tier agent workflow with self-service handoffs
- Add self-service model: subagent reads JSON file from path - Add summary generation: 2-3 sentence summary before delegation - Add clarification: orchestrator writes result artifacts, subagents return structured output - AGENT.md treated as black box (no structural coupling)
1 parent c7318b1 commit bfad196

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

prompts/coding-boss.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ Workflow contract:
3030
- set `handoff_id` to a session-traceable value such as `<session_id>-<seq>`
3131
- always include `parent_handoff_id` in every handoff artifact: use `null` for a root handoff and the previous handoff's `handoff_id` for any follow-on handoff
3232
- use `source_handoff_id` to link each persisted result back to the triggering handoff
33-
- pass only the artifact path plus the minimum execution instruction to the next agent
33+
- pass only the artifact path plus the minimum execution instruction to the next agent (self-service model: subagent reads the JSON file)
34+
- before delegation, generate a 2-3 sentence summary of the handoff for user context
35+
- subagents (including reviewers) return structured output; you write the result artifact to .opencode/sessions/<session_id>/results/
3436
- do not rely on subagents to call other subagents directly
3537
- decide the next step yourself based on persisted results, and write any follow-on handoff artifacts in the same session folder
3638
- return the final persisted result artifact to the requester

prompts/docs.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Workflow contract:
1717
- set `handoff_id` to a session-traceable value such as `<session_id>-<seq>`
1818
- always include `parent_handoff_id` in every handoff artifact: use `null` for a root handoff and the previous handoff's `handoff_id` for any follow-on handoff
1919
- use `source_handoff_id` to link each persisted result back to the triggering handoff
20-
- pass only the artifact path plus the minimum execution instruction to the next agent
20+
- pass only the artifact path plus the minimum execution instruction to the next agent (self-service model: subagent reads the JSON file)
21+
- before delegation, generate a 2-3 sentence summary of the handoff for user context
22+
- subagents (including reviewers) return structured output; you write the result artifact to .opencode/sessions/<session_id>/results/
2123
- do not rely on subagents to call other subagents directly
2224
- decide the next step yourself based on persisted results, and write any follow-on handoff artifacts in the same session folder
2325
- return the final persisted result artifact to the requester

0 commit comments

Comments
 (0)