← 返回 Codex版本差异已标注
instructions · LINES 246–253
Shell commands
本段证据绑定
运行版本 0.151.0 · 捕获于 2026/8/30 · 组合哈希 7d6ebda655fa6fa4a29ea815554c3ff73d793c1ce53d1f614cb769733b395236。该哈希证明本次固定配置的请求内容,不代表未来版本或未捕获的服务端指令。
原始分段
英文内容保持固定;中文是独立翻译层。
## Shell commands
When using the shell, you must adhere to the following guidelines:
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much faster than alternatives like `grep`. (If the `rg` command is not found, then use alternatives.)
- Do not use python scripts to attempt to output larger chunks of a file.
- Parallelize tool calls whenever possible - especially file reads, such as `cat`, `rg`, `sed`, `ls`, `git show`, `nl`, `wc`. Use `multi_tool_use.parallel` to parallelize tool calls and only this.
## Shell 命令
使用 shell 时,必须遵守以下准则:
- 搜索文本或文件时,分别优先使用 `rg` 或 `rg --files`,因为 `rg` 比 `grep` 等替代方案快得多。如果没有 `rg`,再使用其他工具。
- 不要编写 Python 脚本来输出文件的大段内容。
- 只要可能就并行调用工具,特别是 `cat`、`rg`、`sed`、`ls`、`git show`、`nl`、`wc` 等文件读取。只能使用 `multi_tool_use.parallel` 来并行调用工具。
相关源码
该分段的精确来源可能跨多个 builder 或模板;以下为 Agent 的固定源码入口。commit 与 SHA-256 用于核对固定版本。
SRCgpt-5.2-codex_prompt.mdcodex-rs/core/gpt-5.2-codex_prompt.md
SOURCE
SRCgpt-5.2-codex_instructions_template.mdcodex-rs/core/templates/model_instructions/gpt-5.2-codex_instructions_template.md88f776588f SOURCE
SRCbase_instructions.rscodex-rs/core/src/context/base_instructions.rs88f776588f SOURCE
SRCpermissions_instructions.rscodex-rs/core/src/context/permissions_instructions.rs88f776588f SOURCE
SRCdeveloper_instructions.rscodex-rs/core/src/context/developer_instructions.rs88f776588f SOURCE
SRCuser_instructions.rscodex-rs/core/src/context/user_instructions.rs88f776588f SOURCE
SRCmulti_agent_mode_instructions.rscodex-rs/core/src/context/multi_agent_mode_instructions.rs88f776588f SOURCE
SRCCodex 0.151.0 GPT-5.2 base promptcodex-rs/core/gpt_5_2_prompt.md88f776588f SOURCE
78c290807c