isCopyman/cli-delegate

8 stars · Last commit 2026-08-21

Host-neutral skill: spawn grok, cursor, claude, or codex from any coding CLI. Resume the same child session. Spend a second subscription instead of another subagent on the same bill.

README preview

# cli-delegate

[![linux.do](https://shorturl.at/ggSqS)](https://linux.do)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)

Host-neutral Agent Skill: from **Claude Code**, **Codex**, **Grok Build**, or **Cursor**, spawn any of the other three as a child CLI, then **resume the same child session**.

This is the cheap substitute for a same-vendor subagent. Claude Code subagents burn the Claude bill; here you keep Claude as the orchestrator and send the work to Grok or Cursor on **their** subscription.

中文说明:[README.zh-CN.md](./README.zh-CN.md)

## Why

Coding CLIs already know how to continue a thread (`grok -r`, `claude -r`, `cursor-agent --resume`, `codex exec resume`). Official bridges (Grok’s Claude plugin, Cursor-in-Claude plugins) only work **inside Claude Code**, one child at a time.

`cli-delegate` is one script + `SKILL.md`. It is **not** a team bus (use Orca / Herdr for that).

- Same `run` / `resume` from any host
- Long jobs: host background shell. Cancel by stopping that shell.
- `--worktree-name`: a parallel checkout of the same repo for work you will resume

View full repository on GitHub →