Copy library / What got built / Grok Bot
GAP: using Pi as a Grok Bot subagent
# GAP:把 Pi 当作 Grok Bot 的子代理 Source: https://github.com/Chasen-Liao/grokbot-and-pi Author: Chasen-Liao 开源项目 GAP(Grokbot And Pi)通过 pi-task(RPC)把 Pi 作为 Grok Bot 的子代理使用,并带有 webhook 唤醒和防误删保护。
- What it does
- The open-source project GAP (Grokbot And Pi) uses Pi as a Grok Bot subagent via pi-task (RPC), with webhook wake and a disaster-delete guard.
- Scenarios
- Uncategorized
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaYes
- Steps / chaptersYes
- Verbatim prompt / configNot in source
- Results / numbersNot in source
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- Verbatim source excerpt
Chasen-Liao/grokbot-and-pi
GAP — Grokbot And Pi: use Pi as a Grok Bot subagent via pi-task (RPC), with webhook wake and a disaster-delete guardChasen-Liao · · Open original ↗ From the project README, verbatim and untranslated.
- Screenshots

Image from the project README - Steps / points from the source
- Save expensive Grok Bot quota: Cloud bot allowances are costly and best spent on reasoning, task decomposition, and code review. Delegating multi-step execut……
- Keep execution local and fast: Pi runs on the same cloud Linux machine where the Bot operates, with direct access to local files and bash tools—no cross-netw……
- Reliable tracking and verification: Unattended coding agents can freeze on machine sleep, hang on broken connections, or make wild assumptions. GAP provides ……
- Dispatch (pi-task run): Grok Bot drafts a concise, self-contained task specification and launches it in the background using pi-task run '' --session --own…
- Wait in-turn (Avoid sleep freeze): The Bot does not exit the current turn. Because cloud agent host machines often sleep or restart when idle (which freezes ……
- Webhook as fallback: If the conversation turn does end prematurely, pi-task sends a lightweight HTTP POST notification ({source, id, owner, state, exit_code}……
- Inspect, report, and Ack: The Bot inspects ~/.pi/tasks//result.md, verifies git diffs, file artifacts, and test outputs first-hand, reports the findings to t……
- Goal: What to do in 1-2 sentences with necessary context (Pi cannot see chat history).
Verbatim from the source, untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/Chasen-Liao/grokbot-and-pi ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- Deletes, unsubscribes or cancels things: get a list first and confirm each item
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator