Pi skips sub-agents and plan mode.
This harness builds them.Pi 刻意不做子代理和计划模式。
这个 harness 把它们全部补上。
Kimi Code-style agent orchestration for the Pi coding agent —
swarm, goal, plan, permission, task, hooks, skills, and a boxed-editor TUI, in one coherent package.为 Pi coding agent 打造的 Kimi Code 风格编排套件 —
Swarm、Goal、Plan、Permission、Task、Hooks、Skills 与闭合框编辑器,一个包全部集成。
⬒ Swarm — real parallelism⬒ Swarm — 真正的并行
Concurrent subagents with a live braille-grid TUI. Real max_concurrency worker pool, progressive launch, 30-min timeouts, two-step /cancel, /resume, and a three-pane task browser (ctrl+shift+t).
盲文网格实时展示并行子代理。真实 max_concurrency worker 池、渐进投放、30 分钟超时、两步 /cancel、/resume,以及三栏任务浏览器(ctrl+shift+t)。
◎ Goal — finish what you start◎ Goal — 有始有终
/goal lifecycle with budgets (turns / tokens / wall-clock), a 3-turn blocked circuit breaker, a completion-criterion gate, FIFO queue, and session persistence.
/goal 目标生命周期:预算(轮次/token/墙钟)、连续 3 轮阻断熔断、完成判据门禁、FIFO 队列、会话级持久化。
✎ Plan — read-only first✎ Plan — 先谋后动
The LLM explores and writes a plan; execution waits for your approval. Read-only tool whitelist, plan-file path guard, and a plan badge on the editor border while active.
LLM 先探索代码库、写计划,审批后才执行。只读工具白名单、plan 文件路径守卫,激活时编辑器上边框显示 plan 徽标。
⛨ Permission — safety before speed⛨ Permission — 安全先于效率
An 18-level policy chain across auto / yolo / manual. Destructive commands always ask; .env / id_rsa never pass — even in auto mode. Plus background tasks and cron.
18 级策略链,贯穿 auto / yolo / manual。破坏性命令每次必问,.env / id_rsa 永不放行——auto 模式也不例外。另有后台任务与 cron 定时。
⚡ Hooks — every lifecycle event⚡ Hooks — 全生命周期事件
Kimi Code-aligned [[hooks]] engine: 16 events, blockable PreToolUse / Stop / UserPromptSubmit, exit-code semantics, fail-open. Skills scanned across seven scopes, collision-free.
对齐 Kimi Code 的 [[hooks]] 引擎:16 个事件、可阻断的 PreToolUse / Stop / UserPromptSubmit、退出码语义、fail-open。Skills 七级作用域扫描,零冲突。
▭ TUI — the boxed editor▭ TUI — 闭合框编辑器
Kimi-style closed box (╭─╮ │ ╰─╯) with spinner and working state in the top border, three styles, hot-switch with /tui, and a render timing probe.
Kimi 式闭合框(╭─╮ │ ╰─╯),上边框嵌入 spinner 与工作状态,三种样式,/tui 热切换,内置渲染耗时探针。
What's next下一步
Own companion tools自有伴随工具
Reimplement the todo overlay and the interactive question tool as harness-native versions — deeper integration with goal, permission, and the swarm widget instead of external packages.把 todo 浮层和交互式问卷复现为 harness 原生版本——与 goal、permission、swarm widget 深度集成,不再依赖外部包。
i18n, properly完善 i18n
Bilingual harness UI text and notifications, docs already split en/zh-CN — and this page is bilingual too (toggle in the nav).harness 界面文案与通知双语化,文档已拆分中英——本页面也已支持双语(导航栏切换)。
Math & fullscreen公式与全屏
Graduate the txm math renderer from feature/math-renderer once compaction-path context safety is confirmed; true editor pinning when pi-core lands alternate-screen.待压缩路径的上下文安全性确认后,把 txm 公式渲染从 feature/math-renderer 合入主线;pi-core 支持 alternate screen 后实现真钉底。
Commands命令
/swarm on|off /cancel /resume /tasks (ctrl+shift+t)
/goal <objective> /goal pause|resume|cancel|replace|budget|queue
/plan [on|off|clear] /mode /tui style plain|boxed|compact
All commands support Tab completion for subcommands and arguments.所有命令均支持 Tab 子命令/参数补全。
Links链接
- GitHub · npm · pi.dev catalog
- English README · 中文文档
- License: MIT