Always-on Usage

Copy library / What got built / Grok Bot

GAP: using Pi as a Grok Bot subagent

Subscribe

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 guard
Chasen-Liao · · Open original ↗

From the project README, verbatim and untranslated.

Screenshots
README
Image from the project README
Steps / points from the source
  1. Save expensive Grok Bot quota: Cloud bot allowances are costly and best spent on reasoning, task decomposition, and code review. Delegating multi-step execut……
  2. 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……
  3. Reliable tracking and verification: Unattended coding agents can freeze on machine sleep, hang on broken connections, or make wild assumptions. GAP provides ……
  4. 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…
  5. 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 ……
  6. Webhook as fallback: If the conversation turn does end prematurely, pi-task sends a lightweight HTTP POST notification ({source, id, owner, state, exit_code}……
  7. 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……
  8. 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
  1. Open the repo: github.com/Chasen-Liao/grokbot-and-pi ↗
  2. Read the README, send the repo link to your Bot and have it reproduce it
  3. 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