MITupdated 11d ago
This skill configures an opt-in local role after a real Luna dispatch failure. It is not part of ordinary subagent routing and does not authorize delegation.
What can you do with Codex Luna Agent Config?
name: codex-luna-agent-config description: Configure a local luna_max Codex agent only after a Luna spawn route was rejected and the user explicitly approves the fallback. Do not use for ordinary subagent routing.
Codex Luna Agent Config
This skill configures an opt-in local role after a real Luna dispatch failure. It is not part of ordinary subagent routing and does not authorize delegation.
Required Trigger
Proceed only when both conditions hold:
- A direct active-spawn invocation rejected
gpt-5.6-luna; report the tool, attempted model/effort, and observed rejection before changing configuration. - The user explicitly approves installing or configuring the
luna_maxrole.
If either condition is missing, stop. State that the role can be configured after approval; do not read or edit global Codex configuration just to prepare.
Configure The Isolated Role
-
Resolve the active user-level Codex configuration root. It is normally
~/.codex; use a different root only when the runtime or an explicit test fixture identifies one. -
Discover role names before writing: inspect every
[agents.*]declaration inconfig.toml, resolve each referencedconfig_file, and inspect every existingagents/*.tomlfile. A declared role normally uses its table key; a standalone file uses its requiredname. Preserve unrelated settings, roles, model defaults, and comments. -
If exactly one source resolves to
luna_maxand it already pins Luna/max, report it as configured and do not rewrite it. This includes a compatible existing[agents.luna_max]declaration or a compatible standalone file. -
Stop and show a conflict if multiple sources resolve to
luna_max, the one resolved role has incompatible behavior, or the intendedagents/luna-max.tomlpath already contains an unrecognized role. A single compatible role at another path is already configured, not a conflict. Do not replace another role or overwrite an ambiguous file without explicit user direction. -
Otherwise create one standalone
agents/luna-max.toml. Do not add an[agents.luna_max]declaration for a new role; this keepsconfig.tomlunchanged and avoids two definitions for the same role:name = "luna_max" description = "Use for clear, bounded subagent tasks that should run with GPT-5.6 Luna at max reasoning effort." developer_instructions = "Use this role only for a clear, self-contained task. Stay within the requested scope, run the requested verification when possible, and report unresolved decisions instead of expanding the task." model = "gpt-5.6-luna" model_reasoning_effort = "max"
Do not set agents.default_subagent_model or
agents.default_subagent_reasoning_effort. This role is selected per child and
must not convert all subagents to Luna/max.
Verify And Use
-
Use a read-only Codex configuration load check, such as
codex features list, and report its result. -
Tell the user to start a new Codex task or restart the client so the active spawn schema can expose
agent_type: "luna_max". -
For a self-contained worker, select the role and omit raw model fields:
// V1 spawn_agent({ agent_type: "luna_max", fork_context: false, message: handoff }) // V2 spawn_agent({ task_name: name, agent_type: "luna_max", fork_turns: "none", message: handoff })
The role avoids the raw model parameter path that previously rejected Luna.
It cannot grant model access: if role-based dispatch still fails, report the
server/runtime availability error and do not claim that configuration bypassed
it.
Never
- Do not load this skill from
codex-subagent-strategybefore the user says yes. - Do not silently replace a rejected Luna worker with another model.
- Do not rewrite a conflicting
luna_maxrole. - Do not test-spawn a child unless the user separately asks to delegate one.
Install
Add Codex Luna Agent Config to your client. Pick the one you use.
npx skills add gzb1128/skill-forgeInstalls every skill in the repository, then prompts for which to keep.
/plugin marketplace add gzb1128/skill-forgeAdds the repository as a plugin marketplace; install individual plugins with `/plugin install`.
git clone https://github.com/gzb1128/skill-forge
cp -r plugins/codex-strategy/skills/codex-luna-agent-config ~/.claude/skills/A skill is a plain directory. Copy it into `.claude/skills/` in a project or in your home directory.
Score
74 / 100
Good