gitwtfhub

wtf is codex-advisor?

codyrobertson/codex-advisor — explained in plain English

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

Codex Advisor routes each coding task in Codex CLI to the cheapest capable model, using Luna, Sol, and Terra specialist roles plus deterministic and live evals to check routing accuracy.

Mindmap

mindmap
  root((codex-advisor))
    What it does
      Model routing
      Cheapest capable model
      Root keeps final call
    Roles
      Luna search
      Sol planning
      Terra execution
    Tech stack
      Python
      Bash
      Codex CLI
    Testing
      Deterministic suite
      Live routing suite
      90 percent accuracy bar

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Route coding tasks to the cheapest capable model instead of always calling the biggest one.

REASON 2

Use the Luna role to search a large repo and return cited evidence before changes are made.

REASON 3

Run deterministic and live evals to check routing accuracy before shipping an update.

What's in the stack?

PythonBashCodex CLI

How it stacks up

codyrobertson/codex-advisor0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires an authenticated Codex CLI plus Bash, Git, Python 3, Perl, jq, and rg, macOS or Ubuntu only.

MIT license, use freely including commercial use as long as you keep the copyright notice.

Wtf does this do

Codex Advisor is a routing tool for the Codex coding assistant that tries to give each task to the cheapest model that can actually handle it, instead of always calling the biggest one. It defines a small set of roles: Luna searches the repository and gathers evidence, Sol makes architecture decisions and turns approved evidence into a plan, and Terra implements one narrow, well defined slice of work and runs its own checks. A root agent still keeps control of scope, verification, and final decisions, and can skip the other roles entirely if it already has what it needs. The project is built around Codex CLI and runs on macOS or Ubuntu, with Bash, Git, Python 3, Perl, jq, and rg installed alongside an authenticated Codex CLI session. Windows is not supported yet. Installation is a git clone followed by a setup script, which can either link the checkout as the active install so a later git pull updates it, or copy it as a separate install. Uninstalling means removing the skill folder and four agent configuration files. To check whether the routing actually works, the project includes two types of tests. A deterministic test suite spins up a temporary Git repository and runs each role through a fake Codex binary, checking things like model selection, sandboxing, timeouts, cleanup, and write permissions. A separate live test suite asks the real Codex to route eighteen different tasks without being told the expected answer, covering simple fixes, messy changes that touch multiple parts of a codebase, security related edits, and cases designed to tempt it into using too many or too few models. The project states that a release needs at least ninety percent exact routing accuracy with no critical failures, and the checked in results show one miss out of sixteen cases in the full run. The README is direct about the limits of what this project protects against. It changes what an agent is allowed to do, not whether the underlying repository is safe to run code from. Users are advised to only point it at trusted repositories, since source files can contain hidden instructions, and to know that a sandbox limits authority rather than hiding local files from the process entirely. The project is released under the MIT license and is not affiliated with or endorsed by OpenAI, even though it works alongside their Codex tool.

Yoink these prompts

Prompt 1
Help me install Codex Advisor with the --link option so a git pull keeps it updated.
Prompt 2
Explain how the Luna, Sol, and Terra roles differ in Codex Advisor's routing setup.
Prompt 3
Show me how to run the deterministic eval suite for Codex Advisor with evals/evaluate.py.
Prompt 4
Walk me through swapping the default Sol model using the CODEX_ADVISOR_SOL_MODEL variable.

Frequently asked questions

wtf is codex-advisor?

Codex Advisor routes each coding task in Codex CLI to the cheapest capable model, using Luna, Sol, and Terra specialist roles plus deterministic and live evals to check routing accuracy.

What language is codex-advisor written in?

Mainly Python. The stack also includes Python, Bash, Codex CLI.

What license does codex-advisor use?

MIT license, use freely including commercial use as long as you keep the copyright notice.

How hard is codex-advisor to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is codex-advisor for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.