feat(conductor): Add run_subagent script for stable headless skill invocation

This commit is contained in:
2026-02-24 23:17:45 -05:00
parent 0080ceb397
commit 462ed2266a
3 changed files with 24 additions and 7 deletions

View File

@@ -364,9 +364,10 @@ A task is complete when:
To emulate the 4-Tier MMA Architecture within the standard Conductor extension without requiring a custom fork, adhere to these strict workflow policies:
### 1. Active Model Switching (Simulating the 4 Tiers)
- **Phase Planning & Macro Merges (Tier 1):** Use high-reasoning models (e.g., Gemini 1.5 Pro or Claude 3.5 Sonnet) when running \/conductor:setup\ or when reviewing a major phase checkpoint.
- **Track Delegation & Implementation (Tier 2/3):** Switch your CLI to a mid-tier model (e.g., Gemini 1.5 Flash) before invoking \/conductor:implement\. This reserves the expensive model for architecture decisions while letting Flash handle the heads-down coding.
- **QA/Fixing (Tier 4):** If a test fails with a massive traceback, **DO NOT** paste the traceback into the main conductor thread. Instead, switch to a fast/cheap model in a separate, isolated CLI instance, ask for the fix, and then manually apply the fix or provide the 20-word solution to the Conductor thread.
- **Activate MMA Orchestrator Skill:** To enforce the 4-Tier token firewall explicitly, invoke `/activate_skill mma-orchestrator` (or use the `activate_skill` tool) when planning or executing new tracks.
- **Phase Planning & Macro Merges (Tier 1):** Use high-reasoning models (e.g., Gemini 1.5 Pro or Claude 3.5 Sonnet) when running `/conductor:setup` or when reviewing a major phase checkpoint.
- **Track Delegation & Implementation (Tier 2/3):** The MMA Orchestrator skill autonomously dispatches Tier 3 (Heads-Down Coding) tasks to secondary stateless instances of Gemini CLI (via `.\scripts\run_subagent.ps1 -Prompt "..."`) rather than performing heavy coding directly in the main thread.
- **QA/Fixing (Tier 4):** If a test fails with a massive traceback, **DO NOT** paste the traceback into the main conductor thread. Instead, the MMA Orchestrator skill instructs you to spawn a fast/cheap model sub-agent (via a shell command) to compress the error trace into a 20-word fix, keeping the main context clean.
### 2. Context Checkpoints (The Token Firewall)
- The **Phase Completion Verification and Checkpointing Protocol** is the project's primary defense against token bloat.