Codex explanations suck. Codexplain improves them into clear Claude-like explanations with better UX and Gordon Ramsay-level intolerance for terrible AI output.
Codexplain is a local-first explanation UX layer for Codex. It does not replace Codex, change the model, or rewrite strict artifacts. It makes Codex answers easier to scan with TLDRs, width-safe tables, capability diagrams, semantic highlights, progress blocks, and reversible project-local setup.
Codex writes the answer.
Codexplain makes the explanation readable.
JSON, code, diffs, logs, tests, and patches stay exact.
Go here What you get
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
π 30-second pitch Why Codexplain exists
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
π Before / After The problems it fixes visually
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
β‘ Install Local setup and uninstall
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
π Docs Detailed guides split by category
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
β
Verification Current quality gate commands
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ
π License Attribution + commercial terms
Pain Codexplain fix
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
Dense prose TLDR, sections, numbered flow
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
Broken terminal tables Width-safe renderer + row dividers
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
File-by-file architecture dumps Capability maps and flow diagrams
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
Random rainbow highlighting Sparse semantic attention cues
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
Risky install/uninstall Project-local reversible adapter
1οΈβ£ Readable explanations
TLDRs, short sections, mandatory architecture diagrams, tables, progress
reports, risk panels, and next actions.
2οΈβ£ Strict artifact safety
JSON, code, diffs, patches, logs, tests, and commit messages bypass decorative
rendering.
3οΈβ£ Semantic color, not rainbow noise
Success, warning, danger, command, path, and artifact references get restrained
highlighting. Ordinary nouns stay plain.
4οΈβ£ Meaningful emojis
π§ architecture, β
success,
5οΈβ£ Project-local control
on, off, and uninstall remove only Codexplain-managed state.
6οΈβ£ Custom explanation styles
Teams can add styles such as research-card, problem-diagnosis, checklist,
Notion-style blocks, or their own triggers.
Before
README.md explains the project. rust/codexplain.rs implements the CLI.
package.json exposes commands. .codexplain contains config and shims.
After
β’ TLDR
Codexplain is a presentation boundary around Codex answers.
βββββββββββββββββββββββββ
β Activation Boundary β
β session/project/globalβ
βββββββββββββ¬ββββββββββββ
βββββββββββββΌββββββββββββ
βββββββββββββ΄ββββββββββββ
β Strict Safety β
β JSON/code/diff pass β
βββββββββββββ¬ββββββββββββ
βββββββββββββΌββββββββββββ
βββββββββββββ΄ββββββββββββ
β UX Planner β
β chooses useful blocks β
βββββββββββββ¬ββββββββββββ
βββββββββββββΌββββββββββββ
βββββββββββββ΄ββββββββββββ
β Semantic Renderer β
β width-safe + colored β
βββββββββββββββββββββββββ
Before
β Policy β JSON/code/diff/log/test output must remain exact but this long text spills outside the table
β Render β Flow/table/progress/risk/color should be selected dynamically
After
Area Description
ββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Policy JSON/code/diff/log/test output stays exact before rendering.
ββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Render Flow, table, progress, risk, and color are chosen by prompt,
profile, and safety rules.
ββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Scope Local on/off removes only Codexplain-managed state.
Before
DONE: tests PASS. Risk: JSON/code/diff output must stay exact.
Next: run compat-check before release.
After
Meaning Highlight role Example terms
ββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββββββ
β
Success green + bold PASS, DONE, APPROVED
ββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββββββ
β οΈ Warning amber + bold risk, drift, regression
ββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββββββ
π¨ Danger red + bold FAIL, blocked, unsafe, OOM
ββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββββββ
π Reference cyan/blue commands, paths, JSON/code/diff
GitHub can sanitize inline CSS, so the SVG preview makes the highlight/no-highlight difference visible while the examples remain copyable.
npm install -g codexplain
codexplain install-codex --local --forceHomebrew users can install from the tap formula:
brew tap NomaDamas/Codexplain https://github.com/NomaDamas/Codexplain
brew install codexplaincodexplain shape \
--prompt "Explain this architecture with TLDR and a table" \
--response "DONE: tests PASS. Risk: JSON/code/diff output must stay exact."codexplain uninstall-codex --localLocal mode writes only Codexplain-managed files and blocks. Global Codex guidance is opt-in:
codexplain install-codex --global --force Command Purpose
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain Open the terminal settings UI
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain settings-ui Explicit settings UI command
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain color rules Show semantic color rules
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain style list List custom explanation styles
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain style add ... Add a team-specific style
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain quality-check --width 88 Validate renderer contracts
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain compat-check Validate local compatibility
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
codexplain tui-adapter status Inspect Codex TUI adapter state
- ποΈ Architecture: docs/architecture.md
- β¨ Feature catalog: docs/features.md
- βοΈ Setup and lifecycle: docs/setup-and-lifecycle.md
- ποΈ CLI reference: docs/cli-reference.md
- π¨ Explanation UX methodology: docs/explanation-ux-methodology.md
- π Research basis: docs/explanation-research.md
- π§© Codex TUI adapter roadmap: docs/codex-tui-adapter-roadmap.md
- π Upstream style hook proposal: docs/upstream-codex-tui-style-hook.md
cargo fmt --check
cargo test
./bin/codexplain quality-check --width 88
./bin/codexplain compat-checkCurrent quality contract:
width-safe tables row dividers required
architecture diagrams renderer-owned boxes
strict artifacts preserved exactly
color policy sparse semantic highlights
scope control reversible project-local default
Codexplain uses a custom source-available license:
Personal, research, education, and internal non-commercial use: allowed.
Public redistribution or public product use: attribution required.
Commercial use without attribution, or substantial paid-product use:
separate commercial agreement / revenue-share terms required.
See LICENSE for the full terms.
Codexplain should make AI output easier to understand without making it less safe to copy. If a response is an exact artifact, preserve it. If it is an explanation, make it readable.