pi

pi is a skill for Claude Code, Codex from darshitpp/x-agent. It costs 71 tokens per session (172 once invoked), scanned A, original, MIT.

A task runner that lets one coding agent send work or validation requests to Pi CLI, another command-line coding agent. It chooses whether to delegate work or ask for a second opinion based on the prompt.

In plain words
What is it for?
Use it to offload coding tasks, cross-check implementation plans, or review architecture with Pi.
Why use it?
It reduces the need to rely on one agent for code, plans, or architecture decisions. It also checks which models Pi can use at runtime.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to offload coding tasks, cross-check implementation plans, or review architecture with Pi.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darshitpp/x-agent/pi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darshitpp/x-agent --skill pi
Clone the repo
git clone --depth 1 https://github.com/darshitpp/x-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pi

README.md
[![agentmods](https://agentmods.dev/badge/skills/darshitpp/x-agent/pi/github.svg)](https://agentmods.dev/skills/darshitpp/x-agent/pi)
Your own site
<a href="https://agentmods.dev/skills/darshitpp/x-agent/pi"><img src="https://agentmods.dev/badge/skills/darshitpp/x-agent/pi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pi

Your own site · 80×15
<a href="https://agentmods.dev/skills/darshitpp/x-agent/pi"><img src="https://agentmods.dev/badge/skills/darshitpp/x-agent/pi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 172 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00172
Opus 5.5 $0.00028 $0.00069
Sonnet 5.5 $0.00014 $0.00034
Haiku 4.5 $0.00007 $0.00017

Measured 22d ago against content hash 04edf1a21368, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pi/SKILL.md · 21 lines

What it actually says

Cross-Agent Task Runner — Pi CLI

Procedures

Step 1: Execute Shared Procedure

  1. Read references/shared-procedure.md for the core workflow (mode inference, context gathering, prompt construction, result presentation).
  2. Read references/cli-pi.md for Pi-specific flags, model selection heuristics, and version compatibility matrix.
  3. Follow the shared procedure using the Pi-specific details.
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed · -7 lines · -7 tokens per session 04edf1a21368
  2. 1mo ago First seen · 28 lines · 78 tokens per session scan A 4b22d38bdde0

Subscribe to this mod's changes

pi is a skill published in the GitHub repository darshitpp/x-agent (2 stars, last pushed 22d ago), licensed MIT. It adds 71 tokens to every session and 172 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

basic-skill

Summarize small CSV files and identify the highest revenue month.

darkrishabh/agent-skills-eval · 17 tokens

testing-anti-patterns

Reviews test code to identify and fix common testing anti-patterns including flaky tests, over-mocking, brittle assertions, test interdependency, and hidden test logic. Flags bad patterns, explains the specific defect, and provides corrected implementations. Use when reviewing test code, debugging intermittent or…

rohitg00/skillkit · 95 tokens

handoff-protocols

Manages work transitions between team members or agents by creating structured handoff documents, summarizing project status, documenting key decisions, blockers, and open questions, and generating onboarding briefs. Use when someone needs to hand off, hand over, or transition a project; pass work to another person or…

rohitg00/skillkit · 116 tokens

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist…

rohitg00/skillkit · 97 tokens

hypothesis-testing

Applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reject theories to find root causes. Use when a user says their code isn't working, they're getting an error, something broke, they want to troubleshoot a bug, or…

rohitg00/skillkit · 103 tokens

trace-and-isolate

Applies systematic tracing and isolation techniques to pinpoint exactly where a bug originates in code. Use when a bug is hard to locate, code is not working as expected, an error or crash appears with unclear cause, a regression was introduced between recent commits, or you need to narrow down which component…

rohitg00/skillkit · 120 tokens