Tutorial : How to actually use Luna Agents Subagents with Sol
I had a hard time finding this searching through the pisspool of self promo and ai written posts so here it is for Linux or Windows :
Linux:
- Open Terminal.
- Check that the Codex folder exists:
​
ls -la ~/.codex
- Check that this file exists:
​
ls -l ~/.codex/models_cache.json
- Make a copy so Codex does not overwrite your edited file:
​
cp ~/.codex/models_cache.json ~/.codex/models_luna_v2.json
- Open the copied file:
​
nano ~/.codex/models_luna_v2.json
- In Nano, press:
​
Ctrl+W
then type:
gpt-5.6-luna
- Inside the Luna section, find:
​
"multi_agent_version": "v1"
Change it to:
"multi_agent_version": "v2"
- Save the file:
​
Ctrl+O
Enter
Ctrl+X
- Get the full path of the file:
​
realpath ~/.codex/models_luna_v2.json
It will look like:
/home/yourname/.codex/models_luna_v2.json
- Open Codex's configuration file:
​
nano ~/.codex/config.toml
- Add this line, using your real path:
​
model_catalog_json = "/home/yourname/.codex/models_luna_v2.json"
- Save:
​
Ctrl+O
Enter
Ctrl+X
- Fully close Codex and VS Code.
- Reopen VS Code and Codex.
- Check whether Luna is now available as an agent/subagent model.
Windows:
- Open File Explorer.
- In the address bar, type:
​
%USERPROFILE%\.codex
and press Enter.
This usually opens something like:
C:\Users\YourName\.codex
- Find:
​
models_cache.json
- Copy it.
- Rename the copy to:
​
models_luna_v2.json
- Open
models_luna_v2.jsonwith VS Code or Notepad. - Search for:
​
gpt-5.6-luna
- Inside the Luna object, find:
​
"multi_agent_version": "v1"
Change it to:
"multi_agent_version": "v2"
- Save the file.
- Copy the full path. It will usually be something like:
​
C:\Users\YourName\.codex\models_luna_v2.json
- In the same
.codexfolder, open:
​
config.toml
- Add this line:
​
model_catalog_json = "C:\\Users\\YourName\\.codex\\models_luna_v2.json"
Using doubled backslashes is the safest TOML form on Windows.
Alternatively, forward slashes usually work too:
model_catalog_json = "C:/Users/YourName/.codex/models_luna_v2.json"
- Save
config.toml. - Fully close VS Code and Codex.
- Reopen VS Code and Codex.
- Check whether Luna is now available as the agent model.
Important: edit the copied file, not models_cache.json itself. Codex can refresh the cache and overwrite your changes.
THERE
u/BigFuckingStonk — 8 days ago