How to Configure Luna Max as a Cost‑Efficient Sub‑Agent in Codex

Learn how to configure a Luna Max sub‑agent in Codex or run Luna threads from Sol to cut DeepSWE task costs by up to 14x.

cpaua1 min314
How to Configure Luna Max as a Cost‑Efficient Sub‑Agent in Codex

Tip for Codex: ask Sol to configure Luna Max as a sub‑agent.

In the DeepSWE benchmark, Luna Max scored 67% versus 73% for Sol Max. At the same time, the average cost of executing a single task turned out to be almost 14 times lower: $0.61 versus $8.39. Therefore, it makes perfect sense to delegate individual well‑defined tasks to Luna.

Prompt:

Создай кастомного агента luna_worker в файле ~/.codex/agents/luna-worker.toml.

Используй следующие настройки:

model = "gpt-5.6-luna"
model_reasoning_effort = "max"

Добавь описание и инструкции для выполнения чётко ограниченных делегированных задач. Остальную конфигурацию не меняй. Проверь совместимость с установленной у меня версией Codex, покажи diff, а затем используй luna_worker для задач субагента.

Another option is to do without a custom agent file. Keep Sol in the main thread and ask it to launch a separate Luna Max thread for each task.

In Codex, a thread is a separate dialog with its own context. Multiple threads can run in parallel, and Sol collects their results in the main thread.

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Comments

To leave a comment, log in or sign up
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.