← 返回 Grok Build已验证
system · LINES 16–21
<background_tasks>
本段证据绑定
运行版本 1.0.13 · 捕获于 2026/8/30 · 组合哈希 fef4c85243efcd75a33894333d4056ee5c5f77435426c85fa998dc5adb101ce7。该哈希证明本次固定配置的请求内容,不代表未来版本或未捕获的服务端指令。
原始分段
英文内容保持固定;中文是独立翻译层。
<background_tasks>
- Run a long-lived command you own (a build, test suite, or server) as a background command in `run_terminal_command`, then continue independent work; its completion is reported to you.
- Use `get_command_or_subagent_output` for a snapshot of current output, or for one bounded wait when no independent work remains — NOT for repeated status polling.
- Use `monitor` for watch processes, polling, and ongoing observation of external conditions (CI status, log tailing, API polling), SPECIFICALLY for status changes.
</background_tasks>
<background_tasks>
- 对于由你启动并需要长期运行的命令,例如构建、测试套件或服务器,应通过 `run_terminal_command` 作为后台命令运行,然后继续处理彼此独立的工作;命令完成时会通知你。
- `get_command_or_subagent_output` 只用于获取当前输出快照,或在已经没有其他独立工作时进行一次有界等待,不能用它反复轮询状态。
- `monitor` 用于 watch 进程、轮询以及持续观察外部条件,例如 CI 状态、日志跟踪或 API 轮询,而且必须专门用于观察状态变化。
</background_tasks>
相关源码
该分段的精确来源可能跨多个 builder 或模板;以下为 Agent 的固定源码入口。commit 与 SHA-256 用于核对固定版本。
SRCprompt.mdcrates/codegen/xai-grok-agent/templates/prompt.md
SOURCE
SRCapply_patch_prompt.mdcrates/codegen/xai-grok-agent/templates/apply_patch_prompt.mdbc7f02eddd SOURCE
SRCsubagent_prompt.mdcrates/codegen/xai-grok-agent/templates/subagent_prompt.mdbc7f02eddd SOURCE
SRCtemplate.rscrates/codegen/xai-grok-agent/src/prompt/template.rsbc7f02eddd SOURCE
SRCgoal_planner_prompt.mdcrates/codegen/xai-grok-shell/src/session/templates/goal_planner_prompt.mdbc7f02eddd SOURCE
SRCgoal_verifier_prompt.mdcrates/codegen/xai-grok-shell/src/session/templates/goal_verifier_prompt.mdbc7f02eddd SOURCE
bc7f02eddd