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)
The example agent names above come from the wshobson plugin roster. They are not installed in this setup (no custom roster; use built-in roles with an explicit
model, see Model Tier Routing). The same applies to the agent names in “Common Workflow Patterns” below: read them as roles, not installed agents.
Rule: Security and architectural decisions go to Opus. The claim that Opus uses ~65% fewer tokens on complex tasks (wshobson) has no captured source here and is unverified; the underlying point, that a stronger model can avoid correction loops, stands. Price ratios have also narrowed (Opus 5.5 about 2x Sonnet 5.5 as of 2026-10-09), and the larger saving usually comes from keeping the main context small: Subagent Cost Model.
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
- Subagent Cost Model — cost mechanics and break-even rule for delegating
- 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
Linked pages
- Agent Harness
- Agent Self-Correction
- Agent Skills
- Agent Subagents
- Agent Teams
- Council Pattern
- Lean Agentic Coding Workflow
- Model Tier Routing
- Multi-Vendor Adversarial Review
- Subagent Cost Model
- Verification Pipeline
- Worker Coordination: Partial Result Passing Between Parallel Agents