<< All versions

Skill v1.0.0

currentAutomated scan100/100
ly2601620664/codex-control-claude/claude-code-worker
──Details
PublishedNovember 8, 2026 at 08:24 PM
Content Hashsha256:d3a1cf46164edc79...
Git SHAc9bd2f75bc55
──Files
Files (1 file, 3.7 KB)
SKILL.md3.7 KBactive
SKILL.md · 65 lines · 3.7 KB

name: codex-control-claude description: Delegate coding analysis, implementation, review, and debugging tasks from Codex to a local Claude Code worker through MCP. Use when the user asks Codex to call, consult, hand work to, or continue work with Claude Code. metadata: version: "1.0.0"


Codex Control Claude

Delegate only the task the user placed in scope. Keep the Claude session inside the selected project and preserve explicit approval for sensitive tools.

Preflight

  1. Resolve cwd to an existing absolute project directory.
  2. Confirm that the current task exposes all four lifecycle tools from the MCP server named exactly codex-control-claude: claude_code, claude_code_check, claude_code_reply, and claude_code_session.
  3. Do not call the separate global MCP server named claude_code, its Agent tool, or agent types such as code-reviewer or default. Do not substitute any other agent interface for the four lifecycle tools.
  4. If the four tools are unavailable, stop and tell the user to fully exit and restart the Codex desktop app, then create a new task. A skill can refresh without the desktop process refreshing its MCP tool registry.
  5. Treat agent type not found, registry empty, or a missing agent type as evidence that the wrong MCP server was selected, not as a provider or Claude Code failure.
  6. If MCP startup readiness is uncertain after the four tools are visible, run scripts/doctor.ps1 from the plugin root. The worker must use the locally configured Anthropic-compatible third-party provider; do not direct the user to /login.
  7. If provider configuration is missing, direct the user to run scripts/configure-provider.ps1 in a local PowerShell. Never ask the user to paste an API key into chat.
  8. Do not print environment-variable values, the encrypted provider file, or Claude credential files.

Choose A Mode

For analysis, review, or diagnosis, start claude_code with:

json
{
"allowedTools": ["Read", "Glob", "Grep"],
"strictAllowedTools": true,
"maxTurns": 24
}

For implementation explicitly requested by the user, start with:

json
{
"allowedTools": ["Read", "Glob", "Grep", "Edit", "Write"],
"strictAllowedTools": false,
"maxTurns": 24
}

Always include the absolute cwd. Do not set a bypass permission mode. Do not add advanced.additionalDirectories unless the user names them. Use the provider-configured model by default. Do not override the model in a tool call unless the user explicitly names a model that the configured provider supports.

Run The Session

  1. Call claude_code with a self-contained prompt, cwd, and the selected policy.
  2. Retain the returned sessionId; initialize cursor to 0.
  3. Poll with claude_code_check(action="poll"). Pass the last nextCursor on every subsequent poll and follow the returned poll interval.
  4. If status is waiting_permission, inspect every action. Do not approve Bash, network-capable tools, additional directories, or tools outside the selected policy without user authorization.
  5. Resume polling until status is idle, error, or cancelled.
  6. Report the final result, files changed, verification performed, and any denied or timed-out action.

Do not turn a failed or incomplete Claude run into an unreported Codex-side implementation. State which worker layer failed before deciding the next in-scope step.

Continue Or Stop

  • Use claude_code_reply with the same sessionId for a user-requested follow-up.
  • Use claude_code_session(action="get") to inspect state.
  • Use claude_code_session(action="cancel") when the user cancels, the task exceeds scope, or cleanup is required.
  • Never resume a session from another project without confirming its cwd and task scope.
All versions