Operator-first control panel
Session operations, account switching, clawbot management, and current-thread actions live in one visible workflow instead of scattered local scripts.
Codex fork with real operator controls
Codex Enhanced stays close to upstream where practical, then pushes hard on the things operators actually feel every day: control surfaces, repeatable loops, clawbot session binding, account switching, and release velocity.
Why this fork exists
Session operations, account switching, clawbot management, and current-thread actions live in one visible workflow instead of scattered local scripts.
Before-turn and after-turn runners expose queue state, progress, origin markers, and stop behavior inside the TUI rather than hiding behind background daemons.
Feishu sessions bind to real Codex threads, cache unread messages before binding, and forward final assistant text back into the active session.
Tagged enhanced releases, PyPI runtime wheels, and respawn-based local upgrades make iteration faster without losing the active session.
Control surface
`Ctrl-P` exposes the actions that operators reach for most: session selection, account switching, Feishu scan, manual bind, flush cached unread messages, and runtime retry.
The chat stream can label Feishu-originated turns and loop replies so thread history stays legible even when automation and remote chat entry points mix together.
`/respawn`, `Ctrl-X R`, and `SIGUSR1` restart Codex and resume the current session, while preserving full-access mode with `--yolo` when needed.
Loop modes
Submit the loop prompt directly into the main thread as a normal user turn. The result lands as a regular assistant reply in the current conversation.
Fork a compacted view of the main thread, run the prompt in a private hidden thread, then discard the context immediately after completion.
Fork compacted context once, keep a retained private rollout, and refresh each future run with the latest main-thread messages before continuing.
Release train
The current train includes the `codex-clawbot` runtime, queue-aware loop scheduling, respawn support, PyPI packaging for `codex-enhanced`, and cleaner fork-owned boundaries in dedicated crates.
Install
pip install codex-enhanced
codex-enhanced
Each wheel includes the platform-specific native `codex` binary.
git clone git@github.com:Piping/codex-enhanced.git
cd codex-enhanced/codex-rs
cargo build -p codex-cli
./target/debug/codex
Use local builds when iterating on the fork and validating new TUI or loop behavior.