Codex CLI — System Prompt (2025-08-20)

System Prompt ✦ Curated & attributed Advanced

A long, dated (2025-08-20) Codex CLI system prompt with rich behavioral sections: personality/tone, preamble messages before tool calls, an update_plan planning tool with high- vs low-quality plan examples, task-execution autonomy, a testing philosophy (specific→broad), a detailed sandbox-and-approvals matrix (read-only/workspace-write/danger-full-access × untrusted/on-failure/on-request/never), the apply_patch diff grammar, and exhaustive final-answer formatting rules (section headers, bullets, monospace, tone, don'ts).

What makes this prompt notable

  • Teaches plan quality by contrast — paired 'high-quality' vs 'low-quality' update_plan examples rather than abstract rules
  • Full sandbox×approval policy matrix, including a 'never' non-interactive mode that overrides the default testing philosophy
  • Prescriptive preamble-message guidance (1-2 sentences, 8-12 words, grouped, friendly) with eight sample preambles
  • A near-spec final-answer style guide covering Title Case headers, '-' bullets with bold keyword+colon, backtick monospace rules, and an explicit Don'ts list
  • Bans inline citations like '【F:README.md†L5-L14】' because the CLI renderer cannot display them

Discussion (0)

Sign in to join the discussion.
Related

More in IDE & Coding Assistants

VSCode Agent
agent prompt

VSCode Agent (GitHub Copilot) — GPT-5 Agent Prompt

The most elaborate Copilot VS Code agent prompt, for GPT-5. It combines the Copilot identity and refusals with a detailed communication-style guide, m…

role definition tool-use protocol structured diff format specification
239 5.6k 3.7k words
KI
Kiro
system prompt

Kiro — Intent Mode Classifier

A lightweight intent-classification prompt that routes a user message into chat/do/spec modes and returns a JSON object of confidence scores summing t…

classification rubric constraint setting few-shot
226 5.3k 600 words
CU
Cursor
agent prompt

Cursor — Agent Prompt v1.0 (Claude Sonnet 4)

An earlier, leaner Cursor agent prompt (Claude Sonnet 4) focused on tool-calling rules, aggressive parallel tool execution, search-and-reading bias to…

role definition tool-use protocol parallel tool-call maximization
225 7.3k 1.5k words