Works with the AI Agents you already use

    Pi Delegation (Execute & Read-Only Review)

    by jay

    1

    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

    Security scanned
    Pi Delegation (Execute & Read-Only Review)

    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
    1. Plan (Main Agent): Inspected src/sessions.ts interface and decided on temp-file + atomic rename semantics before delegating implementation.

    2. Delegated Milestone (pi-for-antigravity execute):

      • Ran npx -y pi-for-antigravity execute --cwd /path/to/repo via 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-..."): updated writeSession() to write to .tmp and rename atomically, added crash-safety test, and reported npm test (55 passed, 0 failed).
    3. 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 diff and callers using read-only tools (read,grep,find,ls) and reported:
        • No blockers found; verified Windows EPERM fallback path and temp-file cleanup in finally.
        • Nit: suggest adding a test for concurrent writes to distinct session IDs.
    4. 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 optional read_only / --read-only mode): delegates broad codebase search, multi-file edits/refactors, test/debug loops, and log analysis to an isolated local pi process (--no-extensions --no-mcp --no-skills), with session_id resume support across milestones—or pass read_only: true (--read-only) for pure codebase exploration without file edits or shell access.
    • Optional read-only review: launches a fresh, read-only pi reviewer (read,grep,find,ls only) on your working-tree Git diff against a baseline (default HEAD) 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-antigravity MCP tools if installed, and falls back seamlessly to npx -y pi-for-antigravity execute|review via shell when MCP is not configured.
    • Structured & transparent: outputs clean JSON on stdout (status, session_id, result, output_path, and compact per-run stats including elapsed_ms, turns, tool_calls, context_tokens, session_turns, and optional usage to guide session reuse) and live progress on stderr, and auto-initializes a standalone config on first run using your local pi default model.

    Requirements

    • Node.js >= 22.19
    • A working, authenticated local pi CLI (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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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)GitNode.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

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    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.

    Listed7 days ago

    What's inside

    Creator

    jay

    jay

    Frequently Asked Questions

    Pi Delegation acts as a 'sub-agent' that handles tedious, multi-step tasks like repo-wide refactors and test-debug loops. This prevents your main agent from suffering from context bloat or hallucinations during long, complex coding sessions.

    This skill is compatible with any MCP-capable client like Claude Code, Cursor, or Codex, and it also includes a robust CLI fallback for shell-based environments. It requires Node.js version 22.19 or higher and the local pi CLI to function correctly.

    Once purchased, you receive the MCP server integration files and access to the Pi-specific CLI commands. The package includes documentation on scoping milestones and interpreting the structured JSON reports returned by the worker.

    Unlike standard prompts, this skill uses unique session IDs to maintain state across long-running tasks. This allows the worker to pause and resume work on a specific milestone without losing the progress or context of previous file edits and command logs.

    The 'review' command performs a read-only Git analysis of high-stakes changes like security or state management. It provides a structured report for human or architect-level verification rather than automatically applying potentially risky fixes.

    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.

    Free