Skip to content

Commit 34ce40e

Browse files
committed
feat: embed Direct API Route principle and foreground execution rules into prompt and workspace AGENTS.md
1 parent 24aea2c commit 34ce40e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎codex_engine/engine.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,8 @@ def _chatgpt_terminal_system_prompt() -> str:
18511851
"1. ONE short narration line — what you're about to do and why, in plain natural language.\n"
18521852
"2. EXACTLY ONE shell command, inside a single ```bash code block. Nothing after the block — no second command, no extra prose.\n\n"
18531853
"Rules:\n"
1854+
"- ALWAYS take the FASTEST, SHORTEST, most direct route. Prefer direct HTTP/API requests (curl, fetch, POST endpoints) over heavy browser UI automation unless visual interaction is explicitly requested.\n"
1855+
"- Run one-off scripts directly in the foreground so errors (stdout/stderr) are visible immediately — do NOT hide script runs behind `nohup ... &`.\n"
18541856
"- ALWAYS enclose your shell command in a ```bash code block. NEVER write out commands as plain text or tell the user to run commands/open URLs manually.\n"
18551857
"- One command per reply, then STOP and wait for output.\n"
18561858
"- HTTP 302 redirects on protected routes are NORMAL expected behavior for unauthenticated users. Do NOT treat 302 redirects as server errors or restart servers because of them.\n"

0 commit comments

Comments
 (0)