Agent Primitive Selection
Distilled from Agent Skills, Agent Subagents, Agent Teams, and theagent-orchestration skill. Answers the question: given a task, which primitive do you reach for?
Decision Tree
Model Tier Routing
Claude Code (wshobson tier routing)
Rule: Security and architectural decisions go to Opus. Per wshobson benchmarks, Opus achieves 65% fewer tokens on complex tasks — the higher rate is often offset by not needing correction loops.
Harness > model — scope: this holds in the mid-capability band (Sonnet-class models with structure vs without). At the frontier (Opus on a novel architectural decision), no harness closes the gap. Harness wins for: long-horizon AFK loops, parallel work, verification gates, repeatability. Model wins for: one-shot architectural judgment, novel domain reasoning, security threat modeling — tasks where a single inference’s quality is the bottleneck. Note: DeepSeek max-reasoning unlock is a model parameter win, not a harness win.
OpenCode / multi-provider (majority practice among experienced harness users, r/opencodeCLI 2026-05, n≈30)
Key insight: DeepSeek V4 Flash on max reasoning = dramatically better than default. Must use direct DeepSeek API — not OpenRouter or resellers. Toggle in OpenCode via
ctrl+t.
Opus-as-orchestrator pattern (vietphi, r/opencodeCLI): use Opus to generate a bash script that dynamically dispatches the right model per task, capping expensive models by quota (e.g. GLM at 15%). Moves routing from static env config to agent judgment.
DeepSeek max reasoning — when default beats max: short targeted edits, fast iteration loops, latency-sensitive interactive sessions, simple refactors. Max reasoning multiplies time-to-first-token and destabilizes KV-cache reuse. Use max for genuinely hard reasoning; default for everything else.
Vertical slices — when this fails: layer-internal-complexity-dominant systems (compilers, interpreters, ML training pipelines, cryptographic primitives, database internals); library/SDK work with no UI to slice toward; infrastructure pre-integration phases. Tracer bullets are a web-product-shaped heuristic, not universal.
Skill vs Subagent vs Team — At a Glance
When NOT to Use a Team
- File scope overlaps between teammates → conflicts, merge pain
- Fewer than 3 independent pieces → subagents or sequential is simpler
- Workers need to coordinate mid-task → star topology breaks down; redesign
- Tight iteration loop with human → team coordination latency kills UX
Common Workflow Patterns
Sequential (steps depend on each other):Related Pages
- Agent Skills — skill architecture, loading levels, SKILL.md structure
- Agent Subagents — full frontmatter reference, invocation patterns
- Agent Teams — team architecture, quality gate hooks, known limitations
- Agent Harness — harness components; primitives as building blocks
- Verification Pipeline — verification requirements for each tier of work