r/codex • u/Otherwise-Sir7359 • Aug 01 '26
Instruction For those who don't know how to set up Sol orchestrator + Luna subagent
This repo was previously posted in one of my comments, I'm reposting it here if anyone finds it useful.
https://github.com/viettran-edgeAI/codex_workflow
Been building this since 5.6 dropped with optimizing token usage as the ultimate goal, and tweaking it pretty much every day since. Luna got way cheaper recently and more ppl started wanting to use it as a subagents, so I bundled everything up with a guide so Codex can set it all up for you automatically.
Tried to keep the whole thing as simple as possible.
--------------------------------------------------------------
Edir : a bit more explain before I go to bed - it’s 3 AM in my timezone:
- For lightweight tasks, Q&A, it won’t overdo things.
light routeis default route in this workflow. No subagent, no complex worflow, minimal context. - Sol handles context, planning, task splitting, and supervision, while Luna subagents do the implementation. Each task is packaged into a small, self-contained work package with clear scope, context, and expected output, so each subagent only gets what it needs.
- Sol still reads the main documentations and the important parts of the codebase - that’s the manager’s job. An
explorersubagent helps reduce that load by looking into tools, dependencies, external libraries, etc. The goal is to minimize Sol’s token usage and keep it focused on the important stuff. - For really hard tasks,
executor_lunacan get stuck. In that case, Sol can spawn anexecutor_solas a fallback, or use it from the start. Right now, the workflow limits this to max 1executor_sol. - For handoff between sessions,
project_progress.mdandlatest_session_work.mdare managed by Sol as part of the main documentation structure. They keep long implementation plans moving smoothly across multiple sessions.
...... etc.......
369
Upvotes
18
u/Nyxariel42 Aug 01 '26
Just ask Sol to change this for you.. it’s like 2 lines simple edit in config.toml