claude-delegator
CLAUDE.md1k starsChanged 9 months agoMITView on GitHub
A Claude Code plugin that provides GPT (via Codex CLI) and Gemini (via Gemini CLI) as specialized expert subagents. Five domain experts that can advise OR implement: Architect, Plan Reviewer, Scope Analyst, Code Reviewer, and Security Analyst. No build step, no dependencies. Uses native MCP servers from Codex and Gemini CLIs. Claude acts as orchestrator—delegates to specialized experts based on task type. Supports both single-shot (independent calls) and multi-turn (context preserved via threadId). Every delegation prompt must include: TASK, EXPECTED…
Trending
More talk lately.thin dataabout the whole repository
Who's talking about jarrodwatts/claude-delegator
- sudosubin/agents.nix“claude-code-plugins.github.jarrodwatts.claude-delegator: init at 0-unstable-2026-03-09”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.jarrodwatts.claude-delegator: init at 0-unstable-2026-03-09”GitHub · Oct 4, 2026
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
No build step, no dependencies.
- Very specific: line 44
Match trigger: - Check rules/triggers.md for semantic patterns
- Very specific: line 46
Build 7-section prompt: - Use format from rules/delegation-format.md
- Distinctive: line 48
Synthesize response: - Never show raw output; interpret and verify
- Very specific: line 52
Every delegation prompt must include: TASK, EXPECTED OUTCOME, CONTEXT, CONSTRAINTS, MUST DO, MUST NOT DO, OUTPUT FORMAT.
- Very specific: line 82
Every expert can operate in advisory (sandbox: read-only) or implementation (sandbox: workspace-write) mode based on the task.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
A Claude Code plugin that provides GPT (via Codex CLI) and Gemini (via Gemini CLI) as specialized expert subagents. Five domain experts that can advise OR implement: Architect, Plan Reviewer, Scope Analyst, Code Reviewer, and Security Analyst.
Development Commands
# Test plugin locally (loads from working directory)
claude --plugin-dir /path/to/claude-delegator
# Run setup to test installation flow
/claude-delegator:setup
# Run uninstall to test removal flow
/claude-delegator:uninstallNo build step, no dependencies. Uses native MCP servers from Codex and Gemini CLIs.
Architecture
Orchestration Flow
Claude acts as orchestrator—delegates to specialized experts based on task type. Supports both single-shot (independent calls) and multi-turn (context preserved via threadId).
User Request → Claude Code → [Match trigger → Select expert & provider]
↓
┌─────────────────────┼─────────────────────┐
↓ ↓ ↓
Architect Code Reviewer Security Analyst
↓ ↓ ↓
[Advisory (read-only) OR Implementation (workspace-write)]
↓ ↓ ↓
Claude synthesizes response ←──┴──────────────────────┘How Delegation Works
- Match trigger - Check
rules/triggers.mdfor semantic patterns - Read expert prompt - Load from
prompts/[expert].md - Build 7-section prompt - Use format from
rules/delegation-format.md - Call provider tool -
mcp__codex__codexormcp__gemini__gemini - Synthesize response - Never show raw output; interpret and verify
The 7-Section Delegation Format
Every delegation prompt must include: TASK, EXPECTED OUTCOME, CONTEXT, CONSTRAINTS, MUST DO, MUST NOT DO, OUTPUT FORMAT. See rules/delegation-format.md for templates.
Retry Handling
Retries use multi-turn (*-reply with threadId) so the expert remembers previous attempts:
- Attempt 1 fails → retry with error details (context preserved)
- Up to 3 attempts → then escalate to user
- Fallback: new call with full history if multi-turn unavailable
Component Relationships
| Component | Purpose | Notes |
rules/*.md | When/how to delegate | Installed to ~/.claude/rules/delegator/ |
prompts/*.md | Expert personalities | Injected via developer-instructions |
commands/*.md | Slash commands | /setup, /uninstall |
config/providers.json | Provider metadata | Not used at runtime |
Expert prompts adapted from oh-my-opencode
Five GPT Experts
| Expert | Prompt | Specialty | Triggers |
| Architect | prompts/architect.md | System design, tradeoffs | "how should I structure", "tradeoffs of", design questions |
| Plan Reviewer | prompts/plan-reviewer.md | Plan validation | "review this plan", before significant work |
| Scope Analyst | prompts/scope-analyst.md | Requirements analysis | "clarify the scope", vague requirements |
| Code Reviewer | prompts/code-reviewer.md | Code quality, bugs | "review this code", "find issues" |
| Security Analyst | prompts/security-analyst.md | Vulnerabilities | "is this secure", "harden this" |
Every expert can operate in advisory (sandbox: read-only) or implementation (sandbox: workspace-write) mode based on the task.
Key Design Decisions
- Native & Bridge MCP - Codex has a native
mcp-servercommand. Gemini requires an internal bridge (server/gemini/index.js) to expose its CLI via MCP. - Single-shot + multi-turn - Single-shot for advisory (full context per call), multi-turn via
threadIdfor chained implementation and retries - Dual mode - Any expert can advise or implement based on task
- Synthesize, don't passthrough - Claude interprets expert output, applies judgment
- Proactive triggers - Claude checks for delegation triggers on every message
When NOT to Delegate
- Simple syntax questions (answer directly)
- First attempt at any fix (try yourself first)
- Trivial file operations
- Research/documentation tasks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

