codex-message
v0.6.3
Published
Codex wrapper for agent-message on macOS
Readme
codex-message
codex-message is a separate Rust wrapper around codex app-server that uses
the agent-message binary as its transport layer and reuses the default
agent-message config/profile store.
Install:
npm install -g agent-message codex-messagecodex-message expects both agent-message and the codex CLI to already be
available on your PATH.
By default codex-message always uses the installed agent-message on PATH.
If you explicitly want to run the repo checkout's CLI with go run ., set
CODEX_MESSAGE_AGENT_MESSAGE_MODE=source.
Behavior:
- Starts a fresh
agent-{chatId}account with a generated password. - Sends the target user a startup message with the generated credentials.
- Reuses one Codex app-server thread for the DM session.
- Polls
agent-message read <user>for new plain-text requests, adds a👀reaction to each accepted inbound DM, and relays it intoturn/start. - For approval and input requests, sends readable
json_renderprompts back to that user and waits for a text reply. - Tells Codex to send the final user-facing result itself by invoking
agent-message send --from agent-{chatId}directly, typically asjson_render. - After a successful turn completion, replaces the inbound
👀reaction with✅.
If --to is omitted, codex-message uses the current agent-message master value.
Example:
agent-message config set master jay
codex-message --model gpt-5.4
codex-message --model gpt-5.4 --yolo
codex-message --to alice --model gpt-5.4
codex-message upgradeUseful flags:
--to <username>overridesagent-messagemaster--cwd /path/to/worktree--approval-policy on-request--sandbox workspace-write--network-access--yolo=--approval-policy never+--sandbox danger-full-accessCODEX_MESSAGE_AGENT_MESSAGE_MODE=sourceopts into using the repo checkout'sagent-messageCLI instead of the installed binary
