I built a small Claude Code plugin called codex-goal-in-cc, and I’d love feedback from people using Claude Code, Opus, and/or Codex CLI for real coding work. The mental model I’m testing is:
- Claude Code / Opus handles open-ended reasoning, planning, and orchestration
- Claude can loop on the problem until the task boundary is clear
- Codex CLI /goal handles the bounded long-running execution
- Claude Code reads back the result and continues the session So this is not meant to replace Claude Code with Codex. It’s more of a delegation pattern: Claude thinks, loops, scopes, and reviews. Codex executes the big bounded goal. The plugin exposes a few Claude Code skills: /codex-goal:status /codex-goal:run “Refactor api/src to use the new logger interface; if blocked on a file, record it and move on” /codex-goal:run-file ./brief.md “Adopt items 1-4 only; sequential local commits, no push” The main use cases I had in mind:
- bulk refactors
- multi-step migrations
- large file generation
- checklist-style implementation work
- tasks that would otherwise burn a lot of Claude Code turns One pattern I’ve found useful is to let Claude/Opus reason through the messy parts first: inspect the codebase, decide what should and shouldn’t be touched, write a brief/checklist, and only then delegate the bounded work to Codex /goal. For bigger tasks, run-file seems safer than putting everything inline, because the spec/checklist stays in a markdown file and Codex can refer back to it during its own execution. Repo: https://github.com/KingGyuSuh/codex-goal-in-cc I’m especially curious about: whether this Claude-as-orchestrator / Codex-as-worker pattern fits your workflow how you’d combine this with Claude Code’s /loop-style workflows what boundaries you’d set before delegating work to Codex whether the slash command UX feels natural failure cases you’d expect with this kind of multi-agent coding setup Not claiming this is the “right” way to use coding agents — just sharing an experiment that feels useful for long-running coding tasks. submitted by /u/JustProcedure4155
Originally posted by u/JustProcedure4155 on r/ClaudeCode
You must log in or # to comment.
