This is the shortest reliable setup path.
From the repository checkout, build and install with Go 1.24 or newer:
make installVerify the installed binary:
codex-compass --versionThe install target writes ~/.local/bin/codex-compass by default. Use a stable,
owner-controlled location because Codex hooks store the executable's absolute
path. If the binary is moved, run codex-compass enable again in every observed
repository. Installation alternatives are documented in install.md.
cd /path/to/your/repository
codex-compass enableExpected output identifies both the repository and .codex/hooks.json.
enable is safe to rerun: it updates Codex Compass handlers and preserves
unrelated hooks.
It creates or updates:
.codex/hooks.json machine-specific hook commands
.session-map/ local events, configuration, and session state
.gitignore adds .session-map/
The generated hook file includes an absolute local binary path. Review it before committing it; personal installations should normally keep it local.
Open Codex in the enabled repository, then:
- Run
/hooks. - Review
SessionStart,UserPromptSubmit, andStop. - Trust the new project hook definitions.
- Start a new Codex session or resume one after trust is granted.
If Codex was running before enable, restart it so the new project hook
configuration is loaded.
In a second terminal, from the same repository:
codex-compass watchUse Codex normally in the first terminal. Codex Compass refreshes after a turn's
final response. The first analysis may take longer because it launches an
ephemeral codex exec process.
After completing one Codex turn:
codex-compass statusFor a one-shot worker run without the TUI:
codex-compass watch --onceIf the dashboard says there are no captured sessions:
- Confirm
codex-compass enablewas run in this repository. - Confirm the three hooks are trusted in
/hooks. - Confirm the absolute binary path in
.codex/hooks.jsonstill exists. - Restart Codex, then start or resume the session from this repository.
- Complete a full prompt/response turn and run
codex-compass watch --once.
Codex Compass uses the models visible to the authenticated Codex installation:
New projects default to gpt-5.6-luna with medium reasoning. You can change
or clear that selection with the commands below.
codex-compass models
codex-compass config --model MODEL
codex-compass config --reasoning EFFORTInside the TUI, type /model; choose the model and then its reasoning level.
No separate /reasoning command is needed.
- Install the binary in a directory only your user can modify.
- Review the generated absolute hook command before trusting it.
- Keep
.session-map/private; it contains captured prompts and responses. - Do not run an untrusted replacement binary from the path stored in the hook.
- Rerun
codex-compass enableafter intentionally moving the executable.
The hook process only writes small local event files. LLM analysis runs later in the watcher, not inside the hook.