shaokeyibb

Agent Delegation — Git skill for Claude Code

Git community

Run any coding-agent CLI (codex / cursor / codebuddy / claude) as a detached background worker on a git worktree - and be able to prove afterwards what it actually did.

How to install Agent Delegation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open shaokeyibb/agent-delegation and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Delegation does

Run any coding-agent CLI (codex / cursor / codebuddy / claude) as a detached background worker on a git worktree - and be able to prove afterwards what it actually did.

Alternatives in Git

  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Openclaude — Open Claude Is Open-source coding-agent CLI for OpenAI, Gemini, DeepSeek, Ollama, Codex, GitHub Models, and 20 22.5k ★
  • Codexia — Agent Workstation for Codex CLI + Claude Code — with task scheduler, git worktree & remote control, skills man 638 ★

README

agent-delegation

*[English](README.md) · [简体中文](README.zh-CN.md)*

**A skill that teaches your coding agent to delegate long work to other agent CLIs — and to prove, afterwards, what they actually did.**

Your agent already knows how to write code. What it does not know is how to hand three hours of work to `codex`, `cursor-agent`, `omp`, `opencode` or `dsh`, walk away, and come back able to tell the difference between *finished*, *finished but produced nothing*, *died on credentials*, and *lying about a test it never ran*. This skill is that knowledge, packaged.

Install it and your agent gains a working method: isolate the work in a git worktree, dispatch a detached CLI worker, watch a four-file sentinel, and refuse to believe any claim it can check itself.

Install

npx skills add shaokeyibb/agent-delegation

Useful flags: `-g` installs to your user directory instead of the current project, `-a claude-code` (repeatable) targets specific agents, `-y` skips confirmation.

npx skills add shaokeyibb/agent-delegation -g -a claude-code -y

Usage

There is nothing to run. Skills load themselves when they are relevant — just talk to your agent about the work, and it will reach for this one:

"This refactor will take hours. Farm it out to codex on a worktree and check on it later."

"The opencode run says DONE but I don't see any output. What happened?"

"The reviewer found three real bugs. Have it fix them instead of writing a new brief."

"It claims it added four locks. Verify that before we merge."

Each of those lands in a different part of the skill: dispatching, diagnosing a run that reported success while producing nothing, relaying a reviewer into its own fix, and forcing a claimed test to be broken and shown going red.

Configuration

Set the model before your agent dispatches anything — **the skill hard-codes none**, because model ids change and a stale default fails late in a way that looks like a task problem rather