- Home
- Skills
- Workflow Automation
- Pi Delegation (Execute & Read-Only Review)
Works with the AI Agents you already use
Pi Delegation (Execute & Read-Only Review)
by jay
Offload multi-turn codebase scans, multi-file edits, test loops, and optional read-only Git reviews to your local pi CLI—via MCP or zero-config CLI fallback.
Free
Pi Delegation (Execute & Read-Only Review)
Example session with this skill installed
Refactor the session store in src/sessions.ts to add atomic writes, update unit tests, and run an independent read-only review before finishing.
- Read your context and instructions
- Compiled the pi delegation execute
-
Plan (Main Agent): Inspected
src/sessions.tsinterface and decided on temp-file + atomic rename semantics before delegating implementation. -
Delegated Milestone (
pi-for-antigravity execute):- Ran
npx -y pi-for-antigravity execute --cwd /path/to/repovia stdin heredoc. - Live progress (
stderr):[pi] Started executor (glm-5.3-flash, thinking: high)[pi] read src/sessions.ts[pi] edit src/sessions.ts[pi] edit test/sessions.test.mjs[pi] bash: npm test[pi] Finished: completed (4 tool calls, 9.4s)
- Returned JSON (
status: "completed",session_id: "ab93a1a7-..."): updatedwriteSession()to write to.tmpand rename atomically, added crash-safety test, and reportednpm test(55 passed, 0 failed).
- Ran
-
Spot-check & Independent Read-Only Review (
pi-for-antigravity review):- Spot-checked the diff in
src/sessions.ts, then triggered a fresh read-only review (--base-ref HEAD) because storage/state lifecycle is high-risk. - Reviewer inspected
git diffand callers using read-only tools (read,grep,find,ls) and reported:- No blockers found; verified Windows
EPERMfallback path and temp-file cleanup infinally. - Nit: suggest adding a test for concurrent writes to distinct session IDs.
- No blockers found; verified Windows
- Spot-checked the diff in
-
Final Judgment (Main Agent): Accepted the change and summarized exact commands and verified outcomes.
Connects securely to your tools. The creator never sees your data.
About this skill
Keep your main AI coding agent focused on planning, architecture, and final judgment while offloading heavy, multi-turn repo work to faster or cheaper models through your local pi CLI.
Backed by the MIT-licensed open-source npm package pi-for-antigravity.
What it does
- Milestone-scoped
execute(with optionalread_only/--read-onlymode): delegates broad codebase search, multi-file edits/refactors, test/debug loops, and log analysis to an isolated localpiprocess (--no-extensions --no-mcp --no-skills), withsession_idresume support across milestones—or passread_only: true(--read-only) for pure codebase exploration without file edits or shell access. - Optional read-only
review: launches a fresh, read-onlypireviewer (read,grep,find,lsonly) on your working-tree Git diff against a baseline (defaultHEAD) plus untracked files (filtering out lockfile churn)—prioritizing regressions, invariants, and concrete bugs. - MCP-first with zero-config CLI fallback: automatically prefers native
pi-for-antigravityMCP tools if installed, and falls back seamlessly tonpx -y pi-for-antigravity execute|reviewvia shell when MCP is not configured. - Structured & transparent: outputs clean JSON on
stdout(status,session_id,result,output_path, and compact per-runstatsincludingelapsed_ms,turns,tool_calls,context_tokens,session_turns, and optionalusageto guide session reuse) and live progress onstderr, and auto-initializes a standalone config on first run using your localpidefault model.
Requirements
- Node.js >= 22.19
- A working, authenticated local
piCLI (pi --version) - Git (for diff-based read-only reviews)
Requires Node.js 22.19+ and authenticated local pi CLI. Reviews must be assessed manually by the user; no automatic fix/review loops.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account
- Software
- local pi CLI (authenticated)
Git
Node.js 22.19+
- Optional
- pi-for-antigravity MCP server
npx -y pi-for-antigravity runs locally and only talks to your own configured pi provider.
Permissions
npx -y pi-for-antigravity runs locally via Node.js and only talks to the user's own configured pi CLI provider (plus npm on first npx fetch). Read-only review restricts pi to read,grep,find,ls.
What's inside
Creator
jay
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.