| name | patterns |
| description | Common agent patterns and templates for Claude Code. Use when implementing agents to follow proven patterns for Tasks integration, quality checks, and external model invocation via claudish CLI. |
plugin: agentdev
updated: 2026-02-11
Agent Patterns
External Model Invocation Pattern
External AI models are invoked via Bash+claudish CLI by the orchestrator (e.g., /team).
Agents do NOT need special blocks to support external models — the orchestrator calls
claudish directly:
claudish --model {MODEL_ID} --stdin --quiet < prompt.md > result.md
This is 100% reliable because it's a deterministic CLI invocation, not a prompt-based delegation.
Tasks Integration Pattern
Every agent must track workflow progress.
<critical_constraints>
<tasks_requirement>
You MUST use Tasks to track your workflow.
**Before starting**, create task list:
1. Phase 1 description
2. Phase 2 description
3. Phase 3 description
**Update continuously**:
- Mark "in_progress" when starting
- Mark "completed" immediately after finishing
- Keep only ONE task "in_progress" at a time
</tasks_requirement>
</critical_constraints>
<workflow>
<phase number="1" name="Phase Name">
Initialize Tasks with all phases
Mark PHASE 1 as in_progress
... perform work ...
Mark PHASE 1 as completed
Mark PHASE 2 as in_progress