CODEX CLI:抓包中可公开的 Prompt 原文

说明:保持抓包中的原始措辞与分块顺序,仅替换个人邮箱、本机用户名、临时路径、会话标识和认证信息。
Codex 的平台隐藏指令不在公开材料中;本文件只保留客户端请求里能够公开的环境块、插件块和测试任务。

================================================================
BLOCK 1
request: 2
role: user
source: input[4].content[1]

<recommended_plugins>
Here is a list of plugins that are available but not installed. If the user's query would benefit from one of these plugins, use the `request_plugin_install` tool to suggest that they install it. Pass the parenthesized ID as `plugin_id`. For example, suggest the Google Drive plugin if the query could possibly be better answered with access to Google Drive.

- Atlassian Rovo (atlassian-rovo@openai-curated-remote)
- Box (box@openai-curated-remote)
- Figma (figma@openai-curated-remote)
- Gmail (gmail@openai-curated-remote)
- Google Calendar (google-calendar@openai-curated-remote)
- Google Drive (google-drive@openai-curated-remote)
- Notion (notion@openai-curated-remote)
- Outlook Calendar (outlook-calendar@openai-curated-remote)
- Outlook Email (outlook-email@openai-curated-remote)
- SharePoint (sharepoint@openai-curated-remote)
- Slack (slack@openai-curated-remote)
- Teams (teams@openai-curated-remote)
</recommended_plugins>

================================================================
BLOCK 2
request: 2
role: user
source: input[4].content[2]

<environment_context>
  <cwd>/tmp/cli-agent-fixture</cwd>
  <shell>zsh</shell>
  <current_date>2026-07-27</current_date>
  <timezone>Asia/Shanghai</timezone>
  <filesystem><workspace_roots><root>/tmp/cli-agent-fixture</root></workspace_roots><permission_profile type="managed"><file_system type="restricted"><entry access="read"><special>:root</special></entry></file_system></permission_profile></filesystem>
</environment_context>

================================================================
BLOCK 3
request: 2
role: user
source: input[5].content[1]

执行一个只读的最小 Agent 任务:

1. 读取当前工作目录的绝对路径。
2. 列出当前目录第一层最多 5 个条目。
3. 不修改任何文件,不访问网络。
4. 最后仅输出 JSON,格式为:
   {"cwd":"绝对路径","entries":["条目"],"tools_used":["实际使用的工具名"]}