Codex fork with real operator controls

Agent Loop, Clawbot Built In.

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.

  • Loop Embed, ephemeral, and persistent context modes
  • Clawbot Workspace-backed Feishu session discovery and binding
  • Respawn Fast self-restart that resumes the current session
Codex Enhanced feature overview illustration

Why this fork exists

Sharper control, less hidden automation, cleaner workflow boundaries.

01

Operator-first control panel

Session operations, account switching, clawbot management, and current-thread actions live in one visible workflow instead of scattered local scripts.

02

Loop automation you can see

Before-turn and after-turn runners expose queue state, progress, origin markers, and stop behavior inside the TUI rather than hiding behind background daemons.

03

Feishu clawbot as a real thread bridge

Feishu sessions bind to real Codex threads, cache unread messages before binding, and forward final assistant text back into the active session.

04

Release and install flow for operators

Tagged enhanced releases, PyPI runtime wheels, and respawn-based local upgrades make iteration faster without losing the active session.

Control surface

The TUI shows the operational state instead of making you infer it.

Codex Enhanced operator surface diagram

Sessions, accounts, clawbot

`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.

Origin markers in the transcript

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 without losing your place

`/respawn`, `Ctrl-X R`, and `SIGUSR1` restart Codex and resume the current session, while preserving full-access mode with `--yolo` when needed.

Loop modes

Three context shapes, each tuned for a different automation job.

Embed

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.

Ephemeral

Fork a compacted view of the main thread, run the prompt in a private hidden thread, then discard the context immediately after completion.

Persistent

Fork compacted context once, keep a retained private rollout, and refresh each future run with the latest main-thread messages before continuing.

Release train

Recent releases pushed the fork from account management into workflow automation.

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.

Codex Enhanced recent release train illustration

Install

Start with a PyPI wheel or build the CLI locally.

PyPI runtime

pip install codex-enhanced
codex-enhanced

Each wheel includes the platform-specific native `codex` binary.

Local build

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.