Agent Prompt Atlas提示词源代码图谱
证据模式
← 返回 Codex
instructions · LINES 246–253

Shell commands

译文已校订0.151.0
本段证据绑定

运行版本 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` 来并行调用工具。
SEGMENT HASH 559
CAPTURE 7d6ebda655fa6fa4…

相关源码

该分段的精确来源可能跨多个 builder 或模板;以下为 Agent 的固定源码入口。commit 与 SHA-256 用于核对固定版本。