Stackmark › Prompts

Codex: split tasks at natural commit boundaries

Codex CLI works best when each task ends in a commitable diff. Don't ask it to 'build the whole feature' — chunk by commit.

  • Type: Prompt
  • Tags: Coding Agent Hacks, Intermediate, Codex
  • Updated: 2026-10-01

Prompt

Codex CLI works best when each task ends in a commitable diff. Don't ask it to 'build the whole feature' — chunk by commit. The agent's planning quality drops off above ~5 file changes. Frame each task as 'one commit's worth of work': add the schema, then the query, then the route, then the UI. You'll review smaller diffs and the model will stay on-rails. Implementation example: # Instead of: "Build the comments feature." # Try: "Step 1: add the comments table to schema.prisma + migration." # Review, commit. Then: "Step 2: add createComment + listComments in db/queries/comments.ts."

More prompts

Privacy · Terms · llms.txt