Use the local Copilot CLI from Claude Code or Codex — delegate coding tasks, run review prompts, and manage background jobs.
Mirrors the structure of codex-plugin-cc.
| Command | Description |
|---|---|
/copilot:setup |
Check local Copilot CLI availability |
/copilot:rescue [task] |
Delegate a coding task to Copilot |
/copilot:review |
Review current git changes |
/copilot:adversarial-review |
Challenge approach and design choices |
/copilot:status [job-id] |
Show active and recent jobs |
/copilot:result [job-id] |
Get the output of a finished job |
/copilot:cancel [job-id] |
Cancel a background job |
This repo now includes Codex-compatible artifacts:
- Plugin manifest:
plugins/copilot/.codex-plugin/plugin.json - Skill:
plugins/copilot/skills/copilot/SKILL.md - Repo marketplace entry:
.agents/plugins/marketplace.json
To install into a home Codex marketplace:
bash scripts/install-codex-plugin.shOptional override (install to a different home root):
HOME_DIR=/tmp/test-home bash scripts/install-codex-plugin.shOr install manually by ensuring ~/.agents/plugins/marketplace.json contains this entry:
{
"name": "copilot",
"source": {
"source": "local",
"path": "./.agents/plugins/copilot"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}- Local Copilot CLI at
~/.superset/bin/copilot(or setCOPILOT_BINenv var) - Node.js 18.18+
# Add this repo as a marketplace (local path)
/plugin marketplace add local:/path/to/copilot-plugin-cc
# Install the plugin
/plugin install copilot@copilot-local
# Reload
/reload-plugins
# Verify
/copilot:setup/copilot:rescue implement the login flow in src/auth/login.ts following the pattern in src/auth/register.ts
/copilot:rescue --background refactor the entire payment module
/copilot:status
/copilot:result
/copilot:rescue --resume now fix the edge case in the validation logic
/copilot:review
/copilot:review --base main security
/copilot:adversarial-review --base main
Set COPILOT_BIN to override the binary path.
Optionally set COPILOT_JOBS_ROOT to override where tracked jobs are persisted.
// ~/.claude/settings.json or your Codex env config
{
"env": {
"COPILOT_BIN": "/path/to/your/copilot",
"COPILOT_JOBS_ROOT": "/custom/job/storage/root"
}
}Claude plugin / Codex skill
↓ node scripts/copilot-companion.mjs
Local Copilot CLI (copilot -p "<prompt>" --yolo)
↓
Job state in:
- ~/.claude/copilot-jobs/<session-id>/ (Claude runtime)
- ~/.codex/copilot-jobs/<session-id>/ (Codex runtime)
Jobs are tracked as JSON files per session. Background jobs run as detached processes with output captured to a file.