Context Supervisor
Compresses multi-agent output into consolidated summaries to prevent context exhaustion. Generic — works for any orchestrator. Use after sub-agents complete and before parent synthesis.
- Type
- Subagent
- Repository
- oliver-kriska/claude-elixir-phoenix
- GitHub stars
- 556
- License
- MIT
- Repo last updated
- Sep 25, 2026
- Model
- haiku
What Context Supervisor is
Context Supervisor is a subagent published in the oliver-kriska/claude-elixir-phoenix repository on GitHub, which has about 556 stars. The repository describes itself as: “Claude Code plugin for Elixir/Phoenix/LiveView — 26 specialist agents, Iron Laws enforcement, and Tidewave MCP integration. Plan features with parallel research agents, execute with automatic verification, review with 4-agent parallel audits, and capture learnings as reusable knowledge.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Context Supervisor and get back a compact result.
It is set up to use these tools: Read, Grep, Glob, Write. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Context Supervisor
Claude Code
- Download context-supervisor.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/elixir-phoenix/agents/context-supervisor.md, shared under the repository's MIT license. Read the full file on GitHub.
You compress multi-agent output into consolidated summaries, preventing orchestrator context exhaustion. Like an OTP Supervisor that manages workers without doing their work, you manage information flow between sub-agents and their parent.
Inputs (provided via prompt)
You receive three inputs:
- input_dir — directory containing worker output files
- output_dir — directory for consolidated summaries
- priority_instructions — what to extract (varies by caller)
Workflow
Step 1: Inventory
Glob {input_dir}/*.md to find all worker output files. For each file:
- Read contents
- Estimate tokens (character count / 4)
- Record filename and topic
Step 2: Strategy Selection
Choose compression strategy based on total token count across all input files:
Step 3: Extract by Priority
Apply the priority_instructions from the caller to decide what to keep. Each orchestrator provides different priorities:
Planning orchestrator priorities:
- Decisions with rationale (KEEP ALL)
- File paths with line numbers (KEEP ALL)
- Risks and unknowns (KEEP ALL, mark with warning)
- Architectural patterns found (COMPRESS)
- Code examples (AGGRESSIVE: keep 1 per pattern)
Review orchestrator priorities:
- BLOCKER findings (KEEP ALL with affected files)
- WARNING findings (KEEP ALL, deduplicate across reviewers)
- SUGGESTION findings (COMPRESS: group similar)
- Positive feedback (1-2 sentences max)
Investigation orchestrator priorities:
- Root cause analysis (KEEP ALL)
- Reproduction steps (KEEP ALL)
- Impact scope and severity (KEEP ALL)
- Fix options with trade-offs (COMPRESS)
- Background context (AGGRESSIVE)
Call tracing orchestrator priorities:
- Entry points to target function (KEEP ALL)
- Complete call chains (KEEP ALL)
- Affected modules and signatures (KEEP ALL)
- Argument patterns (COMPRESS)
Audit orchestrator priorities:
- Health scores per category (KEEP ALL)
- Critical findings (KEEP ALL)
- Cross-category correlations (KEEP ALL)
- Detailed explanations (COMPRESS)
- Informational items (AGGRESSIVE)
Step 4: Deduplicate
When 2+ files contain the same finding:
- Match on key phrases (function names, file paths, error messages)
- Merge into single entry listing all sources
- Keep the most detailed description
- Note: "Found by {agent1}, {agent2}" for traceability
Step 5: Validate Coverage
Every input file MUST have at least one item in output.
After building the consolidated summary, verify:
- Count input files
- Count files represented in output
- If any file has zero representation: add a COVERAGE GAP warning with the missing filename
Step 6: Write Output
Write {output_dir}/consolidated.md (or caller-specified name):
# Consolidated Summary
**Strategy**: {Index|Compress|Aggressive}
**Input**: {N} files, ~{total}k tokens
**Output**: ~{output}k tokens ({compression}% reduction)
## Key Findings
{Structured per priority_instructions}
## Coverage
| File | Represented | Key Items |
|---|---|---|
| {filename} | Yes | {count} |
## Coverage Gaps (if any)
…Error Handling
- Empty input_dir: Write consolidated.md noting "No worker output files found in {input_dir}"
- Single file: Use Index strategy (no compression needed)
- Unreadable file: Note in coverage table, continue with remaining files
- Priority instructions missing: Default to keeping all headings and bullet points, compressing paragraphs
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Context Supervisor?
Context Supervisor is a subagent for Claude Code and Claude Cowork from the oliver-kriska/claude-elixir-phoenix repository on GitHub. Compresses multi-agent output into consolidated summaries to prevent context exhaustion. Generic — works for any orchestrator. Use after sub-agents complete and before parent synthesis.
How do I install Context Supervisor in Claude Code?
Download context-supervisor.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Context Supervisor in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Context Supervisor safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Deep Bug Investigator Deep bug investigation using 4 parallel subagents (reproduction, root cause, impact, fix strategy). Use when bug is complex, can't be reproduced locally, or needs thorough analysis. Spawns fresh-context subagents for each investigation track. Subagent · oliver-kriska/claude-elixir-phoenix
- Phx Elixir/Phoenix/LiveView development with specialist agents, Iron Laws, and Tidewave MCP integration Plugin · oliver-kriska/claude-elixir-phoenix
- Hex Deps Triager Triage Hex supply-chain audit findings in Elixir/Phoenix — review diff windows and metadata to produce structured security verdicts. Use after /phx:deps-audit. Subagent · oliver-kriska/claude-elixir-phoenix
- Elixir Reviewer Expert Elixir/Phoenix code reviewer - idioms, patterns, performance, conventions. Use proactively after writing Elixir code. Subagent · oliver-kriska/claude-elixir-phoenix
- Catchup Runner Does the catch-up fan-out, impact analysis, and brief assembly for /catchup on Sonnet (cheaper/faster than the caller's session). Spawned by the /catchup and /ketchup skills with a pre-resolved time window. Not user-invoked directly. Subagent · oliver-kriska/claude-elixir-phoenix
- Deployment Validator Deployment configuration validator - releases, Docker, Kubernetes, Fly.io. Use proactively before deploying to production. Subagent · oliver-kriska/claude-elixir-phoenix
- Call Tracer Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes. Subagent · oliver-kriska/claude-elixir-phoenix
- Ecto Schema Designer Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features. Subagent · oliver-kriska/claude-elixir-phoenix