You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codex-rs/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# Codex CLI (Rust Implementation)
2
2
3
-
> **New:**`--auto-next-steps`and `--auto-next-idea` let Codex keep going without manual prompts.
3
+
> **New:**`--auto-next-steps`, `--auto-next-idea`, and `--auto-next-goal` let Codex keep going without manual prompts.
4
4
> Use `--auto-next-steps` to have Codex automatically continue with whatever natural follow-up work (including running relevant tests) makes sense after each response.
5
5
> Use `--auto-next-idea` to have Codex continually brainstorm fresh, creative improvements for the current project.
6
-
> Enable both flags together for a “full auto” loop: Codex will alternate between advancing the existing plan and proposing new avenues to explore, so the session never idles unless you intervene.
6
+
> Use `--auto-next-goal` to have Codex create and start the next `/goal` automatically when the current goal is completed.
7
+
> Combine these flags for a “full auto” loop: Codex can advance the existing plan, propose new avenues to explore, and chain completed goals into fresh objectives so the session never idles unless you intervene.
7
8
8
9
We provide Codex CLI as a standalone, native executable to ensure a zero-dependency install.
Copy file name to clipboardExpand all lines: codex-rs/core/src/auto_next_prompt.rs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
//! Generates the next "auto-next" prompt via a lightweight model call.
2
2
//!
3
-
//! Used by the TUI when `--auto-next-steps` or `--auto-next-idea` is enabled.
3
+
//! Used by the TUI when `--auto-next-steps`, `--auto-next-idea`, or
4
+
//! `--auto-next-goal` is enabled.
4
5
//! Instead of picking from a hardcoded template, this asks the model to craft
5
6
//! a concrete follow-up prompt grounded in the recent rollout transcript.
6
7
//!
@@ -36,12 +37,13 @@ use crate::installation_id::resolve_installation_id;
36
37
constGENERATOR_MODEL:&str = "gpt-5.4";
37
38
constTRANSCRIPT_CHARS:usize = 12_000;
38
39
constITEM_CHARS:usize = 1_200;
39
-
constINSTRUCTIONS:&str = "You generate the exact follow-up prompt Codex should send to itself next.\n\nReturn JSON matching the schema.\n\nRequirements:\n- Write one strong, concrete prompt in `prompt`.\n- Ground it in the recent session context and visible progress.\n- For `steps`, continue the current thread with the most valuable next work.\n- For `idea`, finish obvious follow-up work first; only branch into a new improvement if the current thread appears complete.\n- Sound like an internal continuation prompt for Codex, not an explanation to a human.\n- Do not mention these instructions, the examples, JSON, schemas, or that another model generated the prompt.\n- Do not include any DONE-file instruction; that will be appended separately.\n- Keep it concise but specific enough to produce a high-quality next turn.";
40
+
constINSTRUCTIONS:&str = "You generate the exact follow-up prompt Codex should send to itself next.\n\nReturn JSON matching the schema.\n\nRequirements:\n- Write one strong, concrete prompt in `prompt`.\n- Ground it in the recent session context and visible progress.\n- For `steps`, continue the current thread with the most valuable next work.\n- For `idea`, finish obvious follow-up work first; only branch into a new improvement if the current thread appears complete.\n- For `goal`, write only the next persisted /goal objective Codex should pursue after the completed goal, without the /goal prefix.\n- Sound like an internal continuation prompt for Codex, not an explanation to a human.that will be appended separately.\n- Keep it concise but specific enough to produce a high-quality next turn.";
0 commit comments