Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codex-ai-replies-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
codex-ai-replies-cli
Extract assistant replies from the latest main-agent Codex rollout under ~/.codex/sessions.
Install
npm install -g codex-ai-replies-cliUsage
codex-ai-replies
codex-ai-replies --count 20
codex-ai-replies --save
codex-ai-replies --save --output ./messages.txt
codex-ai-replies --open
codex-ai-replies --json
codex-ai-replies --raw-file ~/.codex/sessions/YYYY/MM/DD/rollout-....jsonlBehavior
- Reads the latest main-agent rollout by default
- Excludes subagent rollouts
- Prefers
event_msg.agent_message - Falls back to
response_item.message.output_text - Prints formatted output to stdout
- Saves to a text file when
--saveor--openis used
Options
--count <n>: limit to the latestnmessages, default100--save: write the extracted messages to a text file--open: save and open the output file with the system default app--output <path>: explicit output path--raw-file <path>: read a specific rollout file instead of auto-discovering--json: print JSON instead of the formatted text view--sessions-root <path>: override the default sessions root, mainly for testing