pi-cli-runtime
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePi Runtime
Pi Runtime
Use this skill only inside the subagent.
pi:pi-rescuePrimary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/pi-companion.mjs" task "<raw arguments>"
Execution rules:
- The rescue subagent is a forwarder, not an orchestrator. Its only job is to invoke once and return that stdout unchanged.
task - Prefer the helper over hand-rolled , direct Pi CLI strings, or any other Bash activity.
git - Do not call ,
setup,review,adversarial-review,status, orresultfromcancel.pi:pi-rescue - Use for every rescue request, including diagnosis, planning, research, and explicit fix requests.
task - You may use the skill to rewrite the user's request into a tighter Pi prompt before the single
pi-promptingcall.task - That prompt drafting is the only Claude-side work allowed. Do not inspect the repo, solve the task yourself, or add independent analysis outside the forwarded prompt text.
- Leave unset unless the user explicitly requests a specific effort.
--effort - Leave model unset by default. Add only when the user explicitly asks for one (e.g.
--model,deepseek-v4-pro).deepseek-v4-flash - Default to a write-capable Pi run by adding unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.
--write
Command selection:
- Use exactly one invocation per rescue handoff.
task - If the forwarded request includes or
--background, treat that as Claude-side execution control only. Strip it before calling--wait, and do not treat it as part of the natural-language task text.task - If the forwarded request includes , pass the model id through to
--modelunchanged.task - If the forwarded request includes , pass it through to
--effort.task - If the forwarded request includes , strip that token from the task text and add
--resume.--resume-last - If the forwarded request includes , strip that token from the task text and do not add
--fresh.--resume-last - : always use
--resume, even if the request text is ambiguous.task --resume-last - : always use a fresh
--freshrun, even if the request sounds like a follow-up.task - : accepted values are
--effort,off,minimal,low,medium,high. The aliasxhighmaps tonone.off - : internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous rescue run.
task --resume-last
Safety rules:
- Default to write-capable Pi work in unless the user explicitly asks for read-only behavior.
pi:pi-rescue - Preserve the user's task text as-is apart from stripping routing flags.
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- Return the stdout of the command exactly as-is.
task - If the Bash call fails or Pi cannot be invoked, return nothing.
仅在子agent内使用此技能。
pi:pi-rescue主要辅助工具:
node "${CLAUDE_PLUGIN_ROOT}/scripts/pi-companion.mjs" task "<raw arguments>"
执行规则:
- 救援子agent是转发器,而非编排器。它的唯一工作是调用一次并原样返回标准输出。
task - 优先使用该辅助工具,而非手动编写命令、直接使用Pi CLI字符串或其他任何Bash操作。
git - 不得从调用
pi:pi-rescue、setup、review、adversarial-review、status或result。cancel - 所有救援请求均使用,包括诊断、规划、研究和明确的修复请求。
task - 在单次调用前,你可以使用
task技能将用户请求重写为更简洁的Pi提示词。pi-prompting - 仅允许进行上述提示词撰写工作。不得检查代码库、自行解决任务或在转发的提示文本之外添加独立分析。
- 除非用户明确要求特定的工作量级别,否则不设置参数。
--effort - 默认不设置模型。仅当用户明确指定时才添加参数(例如
--model、deepseek-v4-pro)。deepseek-v4-flash - 默认添加参数以启用可写入的Pi运行,除非用户明确要求只读行为,或仅需要审核、诊断或研究而无需编辑。
--write
命令选择:
- 每次救援移交仅调用一次。
task - 如果转发的请求包含或
--background,仅将其视为Claude端的执行控制指令。在调用--wait前移除这些参数,且不要将其视为自然语言任务文本的一部分。task - 如果转发的请求包含,将模型ID原样传递给
--model。task - 如果转发的请求包含,将其原样传递给
--effort。task - 如果转发的请求包含,从任务文本中移除该标记并添加
--resume。--resume-last - 如果转发的请求包含,从任务文本中移除该标记且不添加
--fresh。--resume-last - :始终使用
--resume,即使请求文本存在歧义。task --resume-last - :始终使用全新的
--fresh运行,即使请求听起来像是后续操作。task - :可接受的值为
--effort、off、minimal、low、medium、high。别名xhigh对应none。off - :用于在之前的救援运行后继续执行、恢复、应用最佳修复或深入挖掘的内部辅助工具。
task --resume-last
安全规则:
- 在中默认启用可写入的Pi工作,除非用户明确要求只读行为。
pi:pi-rescue - 除移除路由标记外,保留用户的任务文本原样。
- 不得检查代码库、读取文件、执行grep、监控进度、轮询状态、获取结果、取消任务、总结输出或进行任何自行跟进的工作。
- 原样返回命令的标准输出。
task - 如果Bash调用失败或无法调用Pi,则不返回任何内容。