claude-delegator

by jarrodwattsVerified

Delegate tasks to Codex and Gemini directly from within Claude Code.

991
Stars
50
Forks
JavaScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/jarrodwatts/claude-delegator

Getting Started

Guides for using skills like claude-delegator.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Claude Delegator

GPT expert subagents for Claude Code. Five specialists that can analyze AND implement—architecture, security, code review, and more.

License Stars

Claude Delegator in action

Install

Inside a Claude Code instance, run the following commands:

Step 1: Add the marketplace

/plugin marketplace add jarrodwatts/claude-delegator

Step 2: Install the plugin

/plugin install claude-delegator

Step 3: Run setup

/claude-delegator:setup

Done! Claude now routes complex tasks to GPT experts automatically.

Note: Requires Codex CLI or Gemini CLI. Setup guides you through installation.


What is Claude Delegator?

Claude gains a team of GPT and Gemini specialists via native MCP. Each expert has a distinct specialty and can advise OR implement.

Note: You can use either provider (GPT or Gemini), or both. The plugin will automatically detect which one is configured and route tasks accordingly.

What You GetWhy It Matters
5 domain expertsRight specialist for each problem type
GPT or GeminiUse your preferred model provider
Dual modeExperts can analyze (read-only) or implement (write)
Auto-routingClaude detects when to delegate based on your request
Synthesized responsesClaude interprets expert output, never raw passthrough

The Experts

ExpertWhat They DoExample Triggers
ArchitectSystem design, tradeoffs, complex debugging"How should I structure this?" / "What are the tradeoffs?"
Plan ReviewerValidate plans before you start"Review this migration plan" / "Is this approach sound?"
Scope AnalystCatch ambiguities early"What am I missing?" / "Clarify the scope"
Code ReviewerFind bugs, improve quality"Review this PR" / "What's wrong with this?"
Security AnalystVulnerabilities, threat modeling"Is this secure?" / "Harden this endpoint"

When Experts Help Most

  • Architecture decisions — "Should I use Redis or in-memory caching?"
  • Stuck debugging — After 2+ failed attempts, get a fresh perspective
  • Pre-implementation — Validate your plan before writing code
  • Security concerns — "Is this auth flow safe?"
  • Code quality — Get a second opinion on your implementation

When NOT to Use Experts

  • Simple file operations (Claude handles these directly)
  • First attempt at any fix (try yourself first)
  • Trivial questions (no need to delegate)

How It Works

You: "Is this authentication flow secure?"
                    ↓
Claude: [Detects security question → selects Security Analyst]
                    ↓
        ┌───────────────────────────────┐
        │  mcp__codex__codex            │
        │  (or mcp__gemini__gemini)     │
        │  → Security Analyst prompt    │
        │  → Expert analyzes your code  │
        └───────────────────────────────┘
                    ↓
Claude: "Based on the analysis, I found 3 issues..."
        [Synthesizes response, applies judgment]

Key details:

  • Each expert has a specialized system prompt (in prompts/)
  • Claude reads your request → picks the right expert → delegates via MCP (GPT or Gemini)
  • Responses are synthesized, not passed through raw
  • Experts can retry up to 3 times before escalating
  • Multi-turn conversations preserve context via threadId for chained tasks

Multi-Turn Conversations

For chained implementation steps, the expert preserves context across turns:

Turn 1: mcp__*__* → returns threadId
Turn 2: mcp__*__*-reply(threadId) → expert remembers turn 1
Turn 3: mcp__*__*-reply(threadId) → expert remembers turns 1-2

Use single-shot (codex or gemini only) for advisory tasks. Use multi-turn for implementation chains and retries.


Configuration

Operating Modes

Every expert supports two modes based on the task:

ModeSandboxUse When
Advisoryread-onlyAnalysis, recommendations, reviews
Implementationworkspace-writeMaking changes, fixing issues

Claude automatically selects the mode based on your request.

Configuration Defaults

Set global defaults in ~/.codex/config.toml instead of passing parameters on every call:

sandbox_mode = "workspace-write"
approval_policy = "on-failure"

Per-call parameters override these defaults. See Codex CLI docs for all config options.

Manual MCP Setup

If /setup doesn't work, register the MCP server(s) manually:

# For Codex (GPT)
# Idempotent: safe to rerun
claude mcp remove codex >/dev/null 2>&1 || true
claude mcp add --transport stdio --scope user codex -- codex -m gpt-5.3-codex mcp-server

# For Gemini
# Idempotent: safe to rerun
claude mcp remove gemini >/dev/null 2>&1 || true
claude mcp add --transport stdio --scope user gemini -- node ${CLAUDE_PLUGIN_ROOT}/server/gemini/index.js

Verify with:

claude mcp list
printf '{"jsonrpc":"2.0","id":"health","method":"initialize","params":{}}\n' | node ${CLAUDE_PLUGIN_ROOT}/server/gemini/index.js

Customizing Expert Prompts

Expert prompts live in prompts/. Each follows the same structure:

  • Role definition and context
  • Advisory vs Implementation modes
  • Response format guidelines
  • When to invoke / when NOT to invoke

Edit these to customize expert behavior for your workflow.


Requirements

You need at least one of the following providers configured:

  • Codex CLI (for GPT): npm install -g @openai/codex
  • Gemini CLI (for Gemini): npm install -g @google/gemini-cli

Authentication:

  • Codex: run codex login
  • Gemini: run gemini once and complete the sign-in flow (or set GOOGLE_API_KEY)

Commands

CommandDescription
/claude-delegator:setupConfigure MCP server and install rules
/claude-delegator:uninstallRemove MCP config and rules

Troubleshooting

IssueSolution
MCP server not foundRestart Claude Code after setup
Provider not authenticatedCodex: run codex login. Gemini: run gemini once to complete sign-in (or set GOOGLE_API_KEY)
Tool not appearingRun claude mcp list and verify registration
Expert not triggeredTry explicit: "Ask GPT to review..." or "Ask Gemini to review..."

Development

git clone https://github.com/jarrodwatts/claude-delegator
cd claude-delegator

# Test locally without reinstalling
claude --plugin-dir /path/to/claude-delegator

See CONTRIBUTING.md for guidelines.


Acknowledgments

Expert prompts adapted from oh-my-opencode by @code-yeongyu.


License

MIT — see LICENSE


Star History

Star History Chart

Frequently Asked Questions

What is claude-delegator?

claude-delegator is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by jarrodwatts. Delegate tasks to Codex and Gemini directly from within Claude Code. It has 991 GitHub stars.

Is claude-delegator safe to use?

Yes. claude-delegator passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-delegator?

Clone the repository with "git clone https://github.com/jarrodwatts/claude-delegator" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-delegator written in?

claude-delegator is primarily written in JavaScript. It is open-source under jarrodwatts on GitHub, so you can review or fork the full source.

Are there alternatives to claude-delegator?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-delegator against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details