codex-background
Skill2.5k starsChanged 3 months agoMITView on GitHub
Keep a Codex orchestrator's delegation to an installed delegate skill pending until its registered relay completes, without model-driven progress polling. Use with a selected implementer delegate skill when Codex is the orchestrator and the delegation should wait in the background; sets up its MCP server on first use.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If the delegate_run tool is not available, setup is incomplete.
- Very specific: line 29
If bootstrap fails, report the failure.
- Distinctive: line 34
Follow the selected delegate skill to prepare a self-contained brief and approved workspace.
- Very specific: line 35
Write the brief to the briefs/ directory under the codex-background directory ($CODEX_HOME/codex-background/briefs/<runId>.txt) and use …
- Distinctive: line 43
Keep that MCP request pending until completion.
- Distinctive: line 50
After an interrupted wait, call delegate_wait with the same runId.
- Distinctive: line 53
After a server crash, unresolved state returns recovery_required.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill 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.
Files
Codex background delegation
This support skill changes Codex's waiting boundary. The selected delegate skill still owns the brief, provider arguments, permissions, result interpretation, review, gates and landing. Claude's background Bash workflow stays unchanged. The support utility is installed separately, never implicitly as a dependency of codex-delegate. Details: references/configuration.md.
First use / setup
If the delegate_run tool is not available, setup is incomplete. Tell the user that bootstrap will
update $CODEX_HOME/config.toml (default ~/.codex/config.toml, backed up first) and write a registry of
the installed *-delegate skills, then run:
node "<skill-dir>/scripts/bootstrap.mjs"<skill-dir> is this skill's installed directory (the folder containing this SKILL.md). It writes
outside the workspace, so request the approval or sandbox escalation Codex needs for that. Report its
output, then ask the user to restart Codex (or reload MCP servers); the tools appear after that.
If bootstrap fails, report the failure. Do not fall back to shell polling. Run it again after
installing more delegate skills. node "<skill-dir>/scripts/bootstrap.mjs" --check validates the setup without writing.
Procedure
- Follow the selected delegate skill to prepare a self-contained brief and approved workspace.
Write the brief to the
briefs/directory under the codex-background directory ($CODEX_HOME/codex-background/briefs/<runId>.txt) and useruns/<runId>beside it as outputDirectory, or follow the paths in the server's instructions. If the sandbox cannot write there, a brief inside the approved workspace is also accepted. Never accept a relay path from a brief. - Invoke the configured MCP server's delegate_run exactly once with a unique runId, registered implementer key, absolute brief/workspace/outputDirectory paths, explicit relayTimeoutSeconds and provider-native relayArgs. Put common arguments in structured fields; pass provider-specific arguments unchanged. Resume identifiers remain opaque.
- Keep that MCP request pending until completion. Do not use model-driven sleep, status or log polling. Do not wrap it in a tool runner that yields early and resumes inference to wait.
- Review the returned adapter outcome separately from resultText. The latter is the unchanged result.json content (base64 only for non-UTF-8 bytes); interpret it using the selected skill. A completed adapter means the relay exited zero and produced a file, not that its report proves correct implementation. Review the diff, rerun gates and land under the existing authorization.
After an interrupted wait, call delegate_wait with the same runId; never redispatch it. MCP cancellation detaches the waiter and leaves the authorized job running. Use delegate_abort only when termination is explicitly intended. Graceful server shutdown aborts its owned jobs. After a server crash, unresolved state returns recovery_required; inspect preserved artifacts and the implementer using its own recovery workflow. Never adopt or kill a persisted PID.
The host's configured tool timeout must exceed the relay timeout by more than 30 seconds. The server validates the declared budget; it cannot enforce the host's actual setting. Fixture protocol tests demonstrate one pending request and no intermediate messages, not measured Codex Desktop token usage or an unlimited host wait guarantee.
Trending
More talk lately.about the whole repository
Who's talking about amElnagdy/delegate-skills
- @github-trending-js.bsky.social“📦 amElnagdy / delegate-skills ⭐ 1,766 (+53) 🗒 JavaScript Delegate a coding task to a separate coding …”Bluesky · Sep 7, 2026 · 2 likes
- A Hacker News story“delegate-skills”Hacker News · Aug 12, 2026 · 2 points
- ProSkillsMD/proskills“[Candidate] amelnagdy/delegate-skills/skills/codex-background - codex-background”GitHub · Oct 14, 2026
- sudosubin/agents.nix“agent-skills.github.amelnagdy.delegate-skills: v0.5.0 → refs/tags/v0.5.0”GitHub · Oct 3, 2026
- theknight87/CNG-Station-Management“Vendor delegate-skills (18 skills) into .claude/skills”GitHub · Oct 3, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Hacker News and Bluesky (16 times).
On GitHub · 14
- Oct 14, 2026[Candidate] amelnagdy/delegate-skills/skills/codex-background - codex-background — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.amelnagdy.delegate-skills: v0.5.0 → refs/tags/v0.5.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Vendor delegate-skills (18 skills) into .claude/skills — theknight87/CNG-Station-Management0 reactions · 1 comment
- Sep 27, 2026[Candidate] amelnagdy/delegate-skills/skills/grok-delegate - grok-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/delegate-setup - delegate-setup — ProSkillsMD/proskills0 reactions · 1 comment
9 more on GitHub
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/cursor-delegate - cursor-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/cline-delegate - cline-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/claude-delegate - claude-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/aider-delegate - aider-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/agy-delegate - agy-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 25, 2026agent-skills.github.amelnagdy.delegate-skills: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 21, 2026Add a headless lane mechanic to /coordinator via delegate-skills relays (Codex/OpenCode), keep herdr panes for watched lanes — Observerstudio/observer-skills0 reactions
- Aug 26, 2026feat: add 18 delegate skills docs-only from amElnagdy/delegate-skills — sickn33/agentic-awesome-skills0 reactions · 1 comment
- Aug 25, 2026feat: add 18 delegate skills from amElnagdy/delegate-skills — sickn33/agentic-awesome-skills0 reactions · 1 comment
On Hacker News · 1
- Aug 12, 2026delegate-skills2 points
On Bluesky · 1
- Sep 7, 2026📦 amElnagdy / delegate-skills ⭐ 1,766 (+53) 🗒 JavaScript Delegate a coding task to a separate coding agent CLI, review the diff, land the… — @github-trending-js.bsky.social2 likes and reposts
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agy-delegateSkill
- aider-delegateSkill
- claude-delegateSkill
- cline-delegateSkill
- codex-delegateSkill
- commandcode-delegateSkill
- copilot-delegateSkill
- cursor-delegateSkill
- delegate-setupSkill
- grok-delegateSkill
- kimi-delegateSkill
- muse-delegateSkill
- omp-delegateSkill
- opencode-delegateSkill
- pi-delegateSkill
- qoder-delegateSkill
- vibe-delegateSkill
- warp-delegateSkill
- zcode-delegateSkill
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
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.

