Multi-codex is a CLI companion for multi solution coding workflows that works on Mac, Linux and Windows (through WSL). Tools like Codex allow you to produce up to four different solutions for the same feature. Multi-codex helps you compare those solutions, decide which is best, and spot the smart ideas hiding in the other branches so you can fold them into the winner. The typical flow:
- Ask Codex at
chatgpt.com/codexfor four solutions to your feature. - Open pull requests for each solution so Codex produces four branches.
- Run multi-codex to generate a consolidated report that compares the branches and highlights borrowable improvements.
The tool never calls the OpenAI API (to avoid extra spend on top of the monthly $200), making it a budget-friendly sidekick for solo developers juggling a lot of feature work.
A Mac CLI tool that watches a GitHub repository for new branches, lets you attach specification documents, and produces a single combined prompt you can paste into your AI UI to compare how well each branch satisfies the requirements.
- You run
multi-codex→ CLI appears: The banner and intro show; it asks for your GitHub repo URL. - GitHub repo address & auth: Accepts SSH or HTTPS URLs, cloning into
~/.multi_codex/repos/<user_repo>using your existing Git authentication (works with private repos ifgit clonedoes). - Monitor branches & attach specs: Polls
originevery 30 seconds. When a new branch appears, you’re prompted to add it and optionally provide a path to its specification/requirements document on your Mac. Press Enter to skip a spec; press Ctrl+C to finish monitoring. - Markdown files per branch + combined doc: For each selected branch the tool checks out
origin/<branch>, walks the tree (ignoring large/binary files and common build/IDE directories), and writesbranch_<branch_slug>.mdunder~/.multi_codex/reports/<repo_slug>/. A combined doc with all specs and branch contents is saved ascombined_spec_and_branches.md. Its first line isYou are an expert software architect.so you can copy the whole file directly into your AI chat UI to get the detailed comparison.
The repository already includes a minimal pyproject.toml, so you can install and run the tool directly:
python -m pip install --upgrade pip
pip install .
or
python3.10 -m pip install .After installation, multi-codex is available on your PATH. Use it in any directory with:
multi-codex# Install the tool (includes dependencies)
python -m pip install --upgrade pip
pip install .
# Run
multi-codexOn windows it is easier to install the package using python venv. In your root directory for multi-codex run the following
python -m venv .venv
.venv\Scripts\activate
pip install .Now you should be able to run the code by simply typing multi-codex
To remove previously installed versions of multi-codex simply run
python3.10 -m pip uninstall -y multi-codexThe project ships with a pytest suite that exercises the core workflows (branch collection, diffing, and prompt generation). To run it manually:
python -m pytestTo ensure tests execute automatically after each commit, configure Git to use the included hooks and commit as usual:
git config core.hooksPath .githooksThe post-commit hook will launch the test suite and report any failures in the terminal output.

