Patching a Custom Theme into the Grok CLI
⚠️ This can break Grok. If you break it, you can reinstall it. This also disables auto-updates. Try at your own risk.
A reproducible, step-by-step walkthrough for recoloring the Grok Build TUI by editing the binary.
Build-specific warning. Every byte offset in this document is for
grok 0.2.11, macOS arm64. Do not copy the offsets blindly — a different version puts the colors somewhere else. Step 4 shows how to find them on your build; trust that over the literals here.
Safety. Work on a copy, never the original. Disable auto-update. Keep the rollback (Step 9) handy.