Skip to content

Commit 9b4e0a8

Browse files
committed
Close out CLI/TUI agent work
1 parent 47ee2ec commit 9b4e0a8

28 files changed

+4302
-217
lines changed

codex-rs/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ You can enable notifications by configuring a script that is run whenever the ag
5555

5656
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.
5757

58+
### Named agent profiles and `/agent exec`
59+
60+
The TUI now ships with a dedicated `/agent` manager that lets you create, clone, edit, and delete named agent profiles. Each profile captures a persona name, description, priming prompt, default command line, tool availability, and approval/sandbox defaults; the data is stored under `~/.codex/agents/<slug>/`.
61+
62+
- Run `/agent` to open the manager, `/agent exec <agent> <prompt>` to launch a background run from the TUI, and `/agent runs` to review active/background runs without leaving your current conversation. Long-running tasks stream status lines into the footer and retain JSONL logs under the corresponding `instances/<run-id>/` folder.
63+
- The automation-friendly CLI surface mirrors the same experience: `codex exec --agent <name> "<prompt>"` loads the stored defaults, merges any CLI overrides (`--enable-tool web_search_request`, `--model`, etc.), and records the run under the shared `.codex/agents/<slug>/instances/` tree.
64+
- Every CLI/TUI launch writes an auditable `run.json` plus `events.jsonl` under `instances/<run-id>/`, including the agent slug, resolved defaults, enabled tools, and whether dangerous flags (e.g., `--dangerously-bypass-approvals-and-sandbox`) were used.
65+
- While a run is active, the footer shows `Agents:` status badges (● running, × failed, etc.). Press `Ctrl+T` to open the background-run overlay, or `Ctrl+1``Ctrl+9` to dump the corresponding agent’s transcript into chat on demand.
66+
- Prompts can still be supplied via `--prompt-file path/to/file.txt` or `--prompt-json payload.json`, and dangerous automation scenarios can opt into `--dangerously-bypass-approvals-and-sandbox` (the flag is logged and marked as such in run metadata).
67+
5868
### Use `@` for file search
5969

6070
Typing `@` triggers a fuzzy-filename search over the workspace root. Use up/down to select among the results and Tab or Enter to replace the `@` with the selected path. You can use Esc to cancel the search.

0 commit comments

Comments
 (0)