From dev-team
Decide which agents and skills to load for a given task. Use at the start of every task to select the minimum viable context load, calculate the token budget, and stay below the 40% utilization ceiling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-team:context-loading-protocolThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Token-budget reference (CLAUDE.md baseline, full-load ceiling, per-agent and per-skill costs) is the **Baseline Budget** section of `CLAUDE.md`. This skill is the runtime procedure; don't duplicate the table here — it goes stale.
Token-budget reference (CLAUDE.md baseline, full-load ceiling, per-agent and per-skill costs) is the Baseline Budget section of CLAUDE.md. This skill is the runtime procedure; don't duplicate the table here — it goes stale.
This protocol is backed by a PreToolUse hook — hooks/context_ceiling_guard.py
(registered on Agent and Skill). Before a capability-loading call it measures
utilization = (input + cache_read + cache_creation) / model_context_window from
the transcript's latest assistant-message usage against the model's context
window, which the hook auto-detects from the session's most recent
message.model by family/version substring: Haiku family -> 200K; current
1M-window models -> 1M (Fable, Mythos, Opus 4.6/4.7/4.8, Sonnet 5, Sonnet 4.6);
unrecognized model, or a same-family model outside those pinned versions ->
200K conservative fallback (window is a fixed per-model property, so an
unrecognized model is never assumed large — over-nudging is a minor false
alarm, under-nudging risks running well past the real ceiling). Set
DEV_TEAM_CONTEXT_WINDOW to override detection explicitly.
The effective ceiling is min(ceiling_pct% of window, 150K tokens) — an
absolute-token cap (DEV_TEAM_CONTEXT_ABS_CEILING, default 150000, matching
Anthropic's server-side compaction default) that keeps large windows from
pushing the trigger point far past where compaction already kicks in; it's a
no-op on the 200K base window (40% = 80K, already under the cap). The warning
names which bound is binding — percentage or absolute, never both — and the
window's provenance (override, detected, or default).
As occupancy climbs past the ceiling, the hook escalates through three
Handoff action bands keyed to multiples of the effective
ceiling — 1x nudge, 1.25x run /handoff now, 1.5x full
summary + fresh conversation (see Handoff → When to
Summarize) — before
nudging (warn, default) or, at/above the ceiling under
DEV_TEAM_CONTEXT_STRICT=on, blocking the load. Recovery skills
(/handoff, /context-loading-protocol, /continue,
/review-summary, /session-review) are never gated — blocking the path
back under budget would deadlock the session.
Knobs: DEV_TEAM_CONTEXT_CEILING_PCT (default 40), DEV_TEAM_CONTEXT_ABS_CEILING
(default 150000), DEV_TEAM_CONTEXT_WINDOW (overrides auto-detection),
DEV_TEAM_CONTEXT_CEILING=off (disables entirely).
The hook is a backstop measured from real usage; the budget estimate below is still
the planning tool you apply before loading.
The 40% ceiling is a conservative planning target, not a claimed accuracy cliff. Chroma's Context Rot study found degradation across 18 models (including Claude 4) is gradual, not a sharp drop at any single percentage. Needle-in-a-haystack benchmarks like RULER and NoLiMa show a model's effective context is often only about half its advertised window, with sharp accuracy drops on non-lexical retrieval well before the window limit. Anthropic's effective context engineering guidance recommends proactive compaction well ahead of the limit — the Claude API's own compaction default is 150K absolute tokens even on 1M-window models. Given that evidence, budgeting to 40% of the window (capped at 150K absolute) leaves headroom before quality degrades, rather than chasing a precise threshold that doesn't exist.
Full guide — warning-line field reference, concrete band fire-points per window size, knob table, troubleshooting: Context Management.
Before loading anything or reading files, confirm an actionable instruction exists. If the user has not yet said what they want, wait — do not speculatively read files, verify code, or load agents. Premature investigation before a task is given wastes context and is a common interrupt trigger. Once a task exists, proceed to Step 1.
| Profile | Description | Example |
|---|---|---|
| Simple/Single | One agent, no skills | "Fix this typo", "Write a unit test" |
| Standard/Single | One agent + 1–2 skills | "Implement this feature using hexagonal architecture" |
| Multi-Agent | 2–3 agents coordinating | "Design and implement a new API endpoint" |
| Complex/Multi | 3+ agents + skills | "Build a new bounded context with full test coverage" |
Load the minimum set:
Order: primary first, then supporting agents one at a time as their phase begins.
For each loaded agent, check its ## Skills section:
Total = CLAUDE.md baseline
+ conversation history (estimate)
+ agent files (sum selected)
+ skill files (sum selected)
+ expected output (estimate)
Target: total < 40% of the model's context window, capped at 150K absolute tokens. For Claude with a 200K window, that's < 80K tokens; on a 1M-window model the cap (150K) binds before the percentage would. See Why 40% for the rationale. The config files are a small fraction; the real budget concern is conversation history + output accumulation over multi-turn tasks.
Read agents/software-engineer.md
Read skills/hexagonal-architecture/SKILL.md
Do NOT copy file contents into the system prompt or conversation.
Pre-computed loading sets for common task types.
Three phases, each in a fresh context window with a human review gate between. Each phase's output is a structured progress file in memory/ that onboards the next phase.
| Phase | Load | Purpose | Output |
|---|---|---|---|
| 1. Research | Orchestrator + sub-agents (exploration) | Understand system, find files, trace data flows | Research progress file |
| 2. Plan | Architect + PM (if needed) + relevant skill(s) | Specify every change: files, snippets, tests | Implementation plan progress file |
| 3. Implement | Software Engineer + QA + skill(s) | Execute the plan; code, tests | Working code + test results |
Key rules:
Since tokens can't be literally removed from context:
memory/ and start a new conversation for the next phase.Loading plan as one table: selected agents + skills, token costs, estimated total, and utilization percentage against the 40% ceiling. No narration.
npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-teamGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.