agentleFS
jarrodwattsjarrodwatts/claude-delegator/CLAUDE.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the jarrodwatts/claude-delegator repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

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
  1. Distinctive:

    No build step, no dependencies.

    line 22
  2. Very specific:

    Match trigger: - Check rules/triggers.md for semantic patterns

    line 44
  3. Very specific:

    Build 7-section prompt: - Use format from rules/delegation-format.md

    line 46
  4. Distinctive:

    Synthesize response: - Never show raw output; interpret and verify

    line 48
  5. Very specific:

    Every delegation prompt must include: TASK, EXPECTED OUTCOME, CONTEXT, CONSTRAINTS, MUST DO, MUST NOT DO, OUTPUT FORMAT.

    line 52
  6. Very specific:

    Every expert can operate in advisory (sandbox: read-only) or implementation (sandbox: workspace-write) mode based on the task.

    line 82

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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:uninstall

No 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

  1. Match trigger - Check rules/triggers.md for semantic patterns
  2. Read expert prompt - Load from prompts/[expert].md
  3. Build 7-section prompt - Use format from rules/delegation-format.md
  4. Call provider tool - mcp__codex__codex or mcp__gemini__gemini
  5. 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

ComponentPurposeNotes
rules/*.mdWhen/how to delegateInstalled to ~/.claude/rules/delegator/
prompts/*.mdExpert personalitiesInjected via developer-instructions
commands/*.mdSlash commands/setup, /uninstall
config/providers.jsonProvider metadataNot used at runtime

Expert prompts adapted from oh-my-opencode

Five GPT Experts

ExpertPromptSpecialtyTriggers
Architectprompts/architect.mdSystem design, tradeoffs"how should I structure", "tradeoffs of", design questions
Plan Reviewerprompts/plan-reviewer.mdPlan validation"review this plan", before significant work
Scope Analystprompts/scope-analyst.mdRequirements analysis"clarify the scope", vague requirements
Code Reviewerprompts/code-reviewer.mdCode quality, bugs"review this code", "find issues"
Security Analystprompts/security-analyst.mdVulnerabilities"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

  1. Native & Bridge MCP - Codex has a native mcp-server command. Gemini requires an internal bridge (server/gemini/index.js) to expose its CLI via MCP.
  2. Single-shot + multi-turn - Single-shot for advisory (full context per call), multi-turn via threadId for chained implementation and retries
  3. Dual mode - Any expert can advise or implement based on task
  4. Synthesize, don't passthrough - Claude interprets expert output, applies judgment
  5. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.