codex icon indicating copy to clipboard operation
codex copied to clipboard

Split next action suggestions to numbered lines

Open ZackHirshhorn opened this issue 1 year ago • 1 comments

What feature would you like to see?

On the end of every response, codex provides a suggestion for the next action in the form of:

Would you like me to X or Y?

Since I am impatient and impulsive I just read X and answer with a yes, or say what I want to do next. If I do say yes, codex has to figure out what do I mean by that:

I need to respond to an ambiguous request...

My suggestions is to change the format of the suggestion to:

`Would you like me to:

  1. X
  2. Y`

Which will prompt me to response with my preferred option rather than with a 'yes', in case one of the options is desired.

This is not very critical to me since I have no problem just thinking about next steps myself, but since codex does provide these options I assume it is in your interest that they will be considered. So this suggestion is about making it easier for users to consider them. I know I'm not going to start reading both options all the way through, so ATM I effectively only consider the first option most of the time.

Are you interested in implementing this feature?

If possible, sure. I'd love to be able to say I made a contribution.

Additional information

No response

ZackHirshhorn avatar Aug 25 '25 10:08 ZackHirshhorn

UPDATE:

I had codex cli add the following to AGENTS.md:

## Agent-Specific Instructions

- When suggesting new steps to the current plan, list them numerically. For example: "Would you like me to: 1) Add a unit test,
2) Update docs?"
- Keep plans concise with one in-progress step at a time; mark completed steps promptly.

### Example: Numbered Suggestions

Would you like me to:

1. Add a unit test for localStorage cleanup
2. Refactor the submit handler for readability
3. Update documentation to reflect behavior

### Example: Plan Snippet

1. Locate submit logic (completed)
2. Implement localStorage cleanup (completed)
3. Add unit test (in_progress)
4. Run frontend tests (pending)

My suggestion is that for now, anyone who finds this useful will copy this or similar text into AGENTS.md, and mark this as useful or leave a positive comment or whatever, and if it will be beneficial for many, it might be worth considering adding something similar to codex/codex-rs/core/prompt.md.

ZackHirshhorn avatar Aug 25 '25 11:08 ZackHirshhorn