Add a Simple “Feature Workflow” to Codex CLI

Resolved 💬 2 comments Opened Aug 20, 2025 by michaelboeding Closed Sep 3, 2025
💡 Likely answer: A maintainer (dedrisian-oai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Feature Request: Add a Simple “Feature Workflow” to Codex CLI

Summary

Introduce a small set of commands that handle the most common Git workflow around AI-assisted edits:
start a feature → work → open PR → finish/merge — without leaving the CLI.

---

Why

Codex CLI already handles local edits well, but users still have to drop down into git or provider CLIs to:

  • create a feature branch,
  • push it
  • open a PR
  • merge it safely once CI passes

That glue work is repetitive and inconsistent. A built-in workflow would streamline this and enforce best practices.

---

Proposed UX

  • codex feature start <name>
  • Creates and checks out feature/<slug> from the base branch.
  • Prompts interactively for base branch, issue key, or other metadata if not provided.
  • codex feature pr
  • Pushes the branch and opens a PR.
  • Prompts for title, reviewers, labels if not passed as flags.
  • codex feature finish
  • Safely merges into base only if CI checks and approvals are green.
  • Offers option to delete the branch.
  • Prompts for merge method (squash|merge|rebase) if not configured.
  • codex feature status
  • Shows branch info, linked PR, and CI state.

---

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

michaelboeding · 1 year ago

Looks like Google just implemented something similar here with custom slash commands. Basically allows you to accomplish what I mentioned above. Implementing that with some pre-built items would like the 'feature' mentioned above would probably be the best route now.

https://cloud.google.com/blog/topics/developers-practitioners/gemini-cli-custom-slash-commands?e=48754805?utm_source=linkedin&utm_medium=unpaidsoc&utm_campaign=fy25q3-googlecloud-blog-ai-in_feed-no-brand-global&utm_content=-&utm_term=-&linkId=16212414

dedrisian-oai contributor · 11 months ago

We recently released custom prompts! https://github.com/openai/codex/pull/2696 Closing for now.