Back to the shelf
PromptsMulti-Tool4 min readOctober 29, 2026

Run GPT-6 Astra inside Claude Code

Claude Code can stay the manager while GPT-6 Astra handles the heavy implementation work. The result is more than a way to save tokens: two different models get...

the short answer

Claude Code can act as the manager of a coding task while GPT-6 Astra implements it through the Codex CLI, with Claude planning, setting acceptance criteria, and auditing the result. The workflow uses separate models for implementation and review so the result is checked by more than one model.

key takeaways

  • Install and authenticate the Codex CLI before adding the Claude Code plugin.
  • Add the codex-delegation plugin with the marketplace and install commands, then restart Claude Code if needed.
  • Paste the delegation skill into CLAUDE.md so Claude knows when to delegate work, which model to use, and how to verify the output.
  • Use GPT-6 Astra for complex implementation work, including multi-file refactors, computer-use tasks, and work that has already failed twice with another model.
  • Verify every delegated change by running the application, tests, endpoints, or rendered pages before accepting it.

Claude Code can stay the manager while GPT-6 Astra handles the heavy implementation work. The result is more than a way to save tokens: two different models get a hand in the process, so one can build while the other plans, reviews, and catches mistakes.

Why use two models?

Saving tokens is the obvious win, but the real unlock is having two different models in the loop. Let Fable 5 plan the whole project while Astra builds it, or flip the roles and have Astra build while Fable 5 audits the result.

Instead of one model checking its own homework, you get a second opinion from a different model entirely. That catches things self-review misses. I’ve covered a similar dual-model coding workflow and how to put both models to work together.

Set it up

  1. Make sure the Codex CLI is installed and authenticated. codex --version should return a version number.
  2. Add the marketplace and install the plugin using the commands below.
  3. Paste the full skill into your project’s CLAUDE.md, or save it as its own skill file. It tells Claude when to delegate work, which model to use, and how to verify the result before shipping.
  4. Open a real task in Claude Code. Once it involves a multi-file change or more than a couple of tool calls, Claude should route it to Astra on its own.

Install the plugin

Run these commands inside a Claude Code session:

/plugin marketplace add openai/codex-plugin-cc
/plugin install codex-delegation@codex-plugin-cc

Restart the session if the plugin does not appear immediately.

Add the delegation skill to CLAUDE.md

This skill defines how Claude decides what to delegate, which model to route work to, how to write the dispatch, and how to audit the work before using it.

# Codex delegation: manager and workers

You are the MANAGER for this task. You plan, set acceptance criteria, make taste and architecture calls, and review everything before it ships. You do not type the implementation yourself for anything non-trivial, that goes to a worker through the Codex CLI, then gets audited before it's used.

1. Decide: delegate or inline

Delegate by default. Handle inline only when the task is trivial (under ~2 tool calls), a judgment call (architecture, naming, prioritization, review verdict), or conversational (explaining, summarizing). Everything else, writing or editing code, running tests, chasing a bug, a multi-file refactor, gets a worker.

2. Route to a model

GPT-6 Astra, the hardest coding: multi-file refactors, computer-use tasks, anything a cheaper model already failed on twice.
GPT-5.6 Sol, routine builds, tests, debugging, log/repo digging, boilerplate, brief-driven drafts.

Judge the output, not the price tag: if Sol's result misses the acceptance criteria, escalate to Astra without asking permission first.

3. Write the dispatch prompt

Every dispatch needs: the exact files or directories to touch, what "done" looks like in concrete checkable terms, the exact command to run before reporting back, and anything the worker must not do.

codex exec </dev/null -s workspace-write -c approval_policy="never" -c model="<model-id>" -c model_reasoning_effort=high -C <repo-path> "<task: files to touch, what done looks like, commands to run before reporting>"

Fix rounds resume the same session, don't re-explain the task, just give it the new information:

codex exec </dev/null resume --last -c approval_policy="never" "<exact error text or next chunk of work>"

4. Audit before use

Run the real thing, execute the test suite, hit the endpoint, render the page. A diff that looks plausible can still be broken; only running it counts as verification. Check the diff too, for scope creep or a silently added dependency. On failure, resume the same worker with the exact error text, not a paraphrase. Give a model two honest attempts at a sub-task, if it's still failing on the third, escalate to the next tier up.

5. Rules workers operate under

No silent scope changes, a worker that hits a wrong or impossible step says so and stops, it doesn't improvise. No secrets in prompts or output, ever. Short summaries, not raw dumps, what changed, what was verified, what's still open. Label output by which model produced it. Sandbox the blast radius, narrowest write scope and approval policy the task allows.

6. When this doesn't apply

You're pair-programming interactively and want to type it yourself. The change is destructive or hard to reverse (schema drops, force-pushes, prod deploys), those need explicit human sign-off regardless of model. No repo context exists yet, write a short skeleton first, then delegate the fill-in.

Worth knowing: This only works if the Codex CLI is already installed and authenticated on your machine. Running codex --version should return something. The plugin routes to the CLI; it does not install it for you.

Get the plugin on GitHub

frequently asked

How do you run GPT-6 Astra inside Claude Code?[+]

Install and authenticate the Codex CLI, add the codex-plugin-cc marketplace, and install the codex-delegation plugin in Claude Code. Then add the delegation skill to CLAUDE.md so Claude can send implementation tasks to Astra through the CLI.

Does the Claude Code plugin install Codex CLI automatically?[+]

No. The plugin routes work to an existing Codex CLI installation, so Codex CLI must already be installed and authenticated. Running codex --version should return a version number.

When should Claude Code delegate work to GPT-6 Astra?[+]

Claude should delegate anything non-trivial, including writing or editing code, running tests, chasing bugs, and multi-file refactors. Astra is the recommended worker for the hardest coding tasks, while simpler routine work can go to GPT-5.6 Sol.

How should Claude Code review work produced by another model?[+]

Claude should check the diff for scope creep and unexpected dependencies, then run the real application and relevant tests or commands. If verification fails, Claude should resume the same worker session with the exact error text.

What should a delegation prompt include?[+]

It should identify the exact files or directories to change, define done with checkable criteria, specify the verification command, and state anything the worker must not do. A failed attempt should be resumed with the exact error and the next required step.

keep exploring