codex-tac
v0.1.1
Published
Tachometer for Codex CLI — context %, tokens in/out, current directory
Downloads
55
Maintainers
Readme
codex-tac
A tachometer wrapper for Codex CLI — shows context usage, session tokens in/out, and current directory after each Codex response.
⏲ [████████░░░░░░░] 52% ctx ↑ 12.4k ↓ 8.2k ~/projects/myappInstall
bunx codex-tac installThen open a new shell (or source ~/.zshrc). From that point, codex routes through codex-tac automatically.
What it shows
| Field | Description |
|---|---|
| [████░░░░░░░░░░░] | Context window fill (last turn / model max) |
| 52% ctx | Percentage of context window used |
| ↑ 12.4k | Cumulative session tokens in |
| ↓ 8.2k | Cumulative session tokens out |
| ~/projects/myapp | Working directory at time of last response |
How it works
codex-tac installs a shell alias so every codex invocation runs through the wrapper. The wrapper:
- Passes all args and stdin straight through to the real
codexbinary. - Intercepts stderr output, scanning for token usage lines Codex CLI emits.
- Displays the tachometer line after each response completes.
- Accumulates session totals in
~/.codex-tac/state.json.
Commands
codex-tac install # Add shell alias (codex → codex-tac)
codex-tac uninstall # Remove alias
codex-tac status # Print current reading
codex-tac watch # Live-updating display (1s poll, Ctrl+C to stop)
codex-tac reset # Reset session token counters
codex-tac [args...] # Forward directly to codex (same as using the alias)Uninstall
bunx codex-tac uninstallRemoves the shell alias from ~/.zshrc (or ~/.bashrc). Open a new shell to take effect.
