codex-addons packages battle-tested utilities for developers who live inside the Codex CLI. It currently ships two focused helpers: an interactive session explorer and a rollout usage status inspector.
- Faster context switching: Resume Codex CLI sessions from any repository without manually scraping JSON logs or remember your prompt (by using "codex resume")
- Worktree aware: Filter sessions by Git branch so multi-worktree setups stay tidy.
- Quota visibility: Inspect the latest Codex rollout rate limits without digging through SQLite and JSONL files by hand.
| Feature | Description |
|---|---|
| Interactive picker | Arrow keys or j/k navigation with instant codex resume <id> execution. |
| Plain-text output | Use --plain in scripts, shell prompts, or TUIs. |
| Git branch filter | --git shows only sessions recorded on the current branch/repo, perfect for worktrees. |
| Usage budget snapshot | codex-usage-status inspects the latest rollout rate limits and summarizes reset windows plus a daily remaining-budget formula. |
| Safety switches | --no-resume prints the command instead of running it. |
| Privacy-aware output | codex-usage-status --json omits absolute local paths by default and only shows ~-redacted paths when explicitly requested. |
Install directly from GitHub:
pip install --upgrade git+https://github.com/svendvd/codex-addons.gitThe install step registers two global CLI entry points:
codex-sessionscodex-usage-status
codex-usage-status additionally requires node and the sqlite3 CLI on your PATH.
codex-sessions # interactive picker
codex-sessions --plain --limit 5 # machine-friendly output
codex-sessions --git # only show sessions for the current Git branch
codex-sessions --no-resume # print, don’t execute, the resume command
codex-usage-status # human-readable rate-limit summary for source=exec
codex-usage-status --json # machine-readable status payload
codex-usage-status --source=my-source # inspect a non-default rollout source
codex-usage-status --daily-budget-percent=10 --daily-cutoff-hour=20
codex-usage-status --show-paths --jsonBehind the scenes the CLI scans ~/.codex/sessions, hoists the first meaningful user prompt, and formats results as timestamp | session-id | cwd [branch] | prompt snippet.
codex-usage-status resolves the latest Codex state database inside CODEX_HOME (or ~/.codex), follows the latest rollout for the selected source, and reads the newest token_count event with rate_limits.
The daily-left formula is configurable through --daily-budget-percent and --daily-cutoff-hour, so you can tune the subtraction logic without editing the script.
The JSON output deliberately excludes absolute filesystem paths. If you need troubleshooting details, add --show-paths; the command then emits ~-redacted paths instead of raw home-directory locations.
- Check the releases page for the latest tag.
- Install it with
pip install --upgrade git+https://github.com/svendvd/codex-addons.git@vX.Y.Z. - Your existing
codex-sessionsandcodex-usage-statuscommands pick up the new version automatically.
pip install -e .
python3 -m codex_addons.list_sessions --help
python3 -m codex_addons.usage_status --helpRun the interactive picker locally with python3 list_codex_sessions.py or hit the package entry points as shown above.
- Bump the version in
codex_addons/__init__.pyandpyproject.toml. git committhe changes and tag them (git tag v0.4.0).git push origin main --tags– GitHub Actions builds wheels via.github/workflows/release.ymland attaches them to the release so users can upgrade with a single pip command.
- richer search (prompt text, directory focus, custom limits)
- additional Codex CLI helpers (command history, telemetry analyzers, auto switch to worktree/branch)
- optional SQLite cache for faster lookups on huge session directories
MIT © Sven Nähler – Contributions welcome!