diff --git a/codex-rs/README.md b/codex-rs/README.md index 390f5d31..043d872a 100644 --- a/codex-rs/README.md +++ b/codex-rs/README.md @@ -35,7 +35,7 @@ npx @modelcontextprotocol/inspector codex mcp You can enable notifications by configuring a script that is run whenever the agent finishes a turn. The [notify documentation](../docs/config.md#notify) includes a detailed example that explains how to get desktop notifications via [terminal-notifier](https://github.com/julienXX/terminal-notifier) on macOS. -### `codex exec` to run Codex programmatially/non-interactively +### `codex exec` to run Codex programmatically/non-interactively To run Codex non-interactively, run `codex exec PROMPT` (you can also pass the prompt via `stdin`) and Codex will work on your task until it decides that it is done and exits. Output is printed to the terminal directly. You can set the `RUST_LOG` environment variable to see more about what's going on.