Moves the Subagents / Behavioral tier / Model selection / Context hygiene guidance from the ~/Projekte/ai project AGENTS.md into the global AGENTS-claude.md. The content is universal Claude Code orchestration guidance, not specific to one project. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
@./AGENTS.md
@~/.claude/RTK.md
Subagents
Spawn subagents to (a) isolate context-heavy work from the main thread, or (b) parallelize independent subtasks. Before spawning, ask: could Bash/Grep/Read do this directly? Subagents have overhead — skip the middleman for mechanical lookups.
Use the Agent tool. Prefer specialized agent types (Explore, code-reviewer, Plan, etc.) over general-purpose when one fits.
Behavioral tier (MANDATORY — always set)
Prefix every Agent prompt with one of:
[TIER: FAST]— return raw results immediately; no internal monologue, no synthesis[TIER: STANDARD]— focused implementation logic; minimal preamble[TIER: DEEP]— complex reasoning; must conclude with a summary
Model selection (override only when needed)
Resolution order: explicit model param → agent type frontmatter → parent inheritance.
- Don't override specialized agent types (
Explore,code-reviewer,Plan, etc.) — their frontmatter is tuned. Leavemodeloff. - For
general-purposeunder an Opus parent: setmodel: sonnet— avoid paying Opus rates for routine subagent work. model: opuson a subagent only when isolated context and reasoning beyond what the parent can easily do inline are both needed.model: haikuonly for mechanical tasks: bulk classification, format conversion, summarizing pre-filtered text. Code-semantic work → Sonnet.
Context hygiene
- Prefer parallel
Explorecalls over sequentialgeneral-purposesessions. - Don't reuse
task_idfor fresh lookups; start new to keep prompts tiny. - Summarize subagent findings in the main thread to keep the terminal clean.