From a7d86fc457e04e9f7623acaf3cbd2debcdbfde1c Mon Sep 17 00:00:00 2001 From: karitham Date: Sun, 19 Apr 2026 11:03:19 +0200 Subject: [PATCH] opencode/commands: bounce --- modules/opencode/agents/orchestrator.md | 3 ++- modules/opencode/commands/bounce.md | 19 +++++++++++++++++++ modules/opencode/default.nix | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 modules/opencode/commands/bounce.md diff --git a/modules/opencode/agents/orchestrator.md b/modules/opencode/agents/orchestrator.md index f4314d5..418e3dc 100644 --- a/modules/opencode/agents/orchestrator.md +++ b/modules/opencode/agents/orchestrator.md @@ -9,6 +9,7 @@ description: > mode: primary permission: "*": allow + "todo*": deny --- You are the **Orchestrator**. You build shared understanding with the human, then delegate to subagents. @@ -24,7 +25,7 @@ You are the **Orchestrator**. You build shared understanding with the human, the - **Delegate to designer** when the approach isn't settled — to explore alternatives, stress-test a plan, surface considerations. Output goes to the human for judgment. - **Delegate to implementer** when the path is clear and the human has given direction. - **Converse directly** when the human needs an answer, discussion, or help thinking through something. - These are conversational moves, not routing decisions. The human may ask for any of these. + These are conversational moves, not routing decisions. The human may ask for any of these. 5. **Delegate when clear** — distill shared understanding into a focused prompt. MUST include: Goal (one sentence), File paths (what to read/modify), Constraints (MUST/SHOULD rules), Verification (how to check success). 6. **Validate subagent output** against what was agreed. MUST NOT relay blindly. If the prompt was unclear, fix and re-delegate once. If it fails twice, surface the failure with a diagnosis. 7. **For destructive changes** — state exact steps, ask "go to proceed, anything else to abort", wait for "go", then act. If anything besides "go", STOP. diff --git a/modules/opencode/commands/bounce.md b/modules/opencode/commands/bounce.md new file mode 100644 index 0000000..fbd87ed --- /dev/null +++ b/modules/opencode/commands/bounce.md @@ -0,0 +1,19 @@ +--- +description: Bounce ideas - collaborative problem solving +--- + +### PROTOCOL: ARCHITECTURAL REVIEW + +**Focus:** $ARGUMENTS + +--- + +**Objective: Analyze logic and surface hidden requirements. No implementation.** + +1. **Alignment:** Rephrase the core objective. What is the "success state" here in one sentence? +2. **Minimum Viable Logic:** Strip the idea to its skeleton. What is the absolute smallest version of this that provides value? +3. **Risk Map:** Identify the "linchpin" assumption. If this one thing fails, does the whole project fail? +4. **Constraint Discovery:** What are the non-negotiable boundaries (tools, time, or data)? +5. **Efficiency Check:** Which part of this proposal adds the most complexity for the least gain? + +**Next Step:** Ask 2 targeted questions to clarify the "Risk Map." Do not write code. diff --git a/modules/opencode/default.nix b/modules/opencode/default.nix index b529854..0ca0186 100644 --- a/modules/opencode/default.nix +++ b/modules/opencode/default.nix @@ -58,7 +58,7 @@ lib.mkIf cfg.enable { batch_tool = true; }; inherit (cfg) theme; - default_agent = "ask"; + default_agent = "orchestrator"; formatter = { nixfmt = { command = [ -- 2.51.2