pi

pi is an agent for Claude Code from davila7/claude-code-templates. It costs 0 tokens per session (357 once invoked), scanned A, original, MIT.

An agent that sends a task to the pi command-line tool in a separate session. It is intended to use another model and its file tools for a second opinion or bulk work.

In plain words
What is it for?
Use it for independent reviews, second opinions, or repetitive work that can be delegated to pi.
Why use it?
It lets you delegate work to a different model instead of doing everything in the current agent. The separate session can also read, edit, and write files.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Claude Code.

Part of the pi-agent-for-claude plugin — 1 agent shipped together

Good fit Use it for independent reviews, second opinions, or repetitive work that can be delegated to pi.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/davila7/claude-code-templates/pi
About the project

Claude Code Templates is a command-line tool and catalogue for configuring Anthropic’s Claude Code with agents, commands, settings, hooks, integrations, skills, and project templates. Developers use it to browse and install reusable components for their coding workflows. The catalogue includes many of these Claude Code components.

davila7/claude-code-templates · 33,152 stars · on GitHub · aitmpl.com

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.

Clone the repo
git clone --depth 1 https://github.com/davila7/claude-code-templates

Made for: Claude Code.

Or install pi-agent-for-claude, the plugin that ships this one along with the rest of its 1 agent.

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/agents/davila7/claude-code-templates/pi/github.svg)](https://agentmods.dev/agents/davila7/claude-code-templates/pi)
Your own site
<a href="https://agentmods.dev/agents/davila7/claude-code-templates/pi"><img src="https://agentmods.dev/badge/agents/davila7/claude-code-templates/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/agents/davila7/claude-code-templates/pi"><img src="https://agentmods.dev/badge/agents/davila7/claude-code-templates/pi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 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.00000 $0.00357
Opus 5.5 $0.00000 $0.00143
Sonnet 5.5 $0.00000 $0.00071
Haiku 4.5 $0.00000 $0.00036

Measured 1mo ago against content hash ffb5bfedf820, 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 1mo 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.

cli-tool/components/mods/integrations/pi-agent-for-claude/agents/pi.md · 17 lines

What it actually says

If you are reading this, you are NOT pi: the pi-agent-for-claude hooks module did not load, so this agent fell back to a Claude model. (While the module runs, these instructions never reach any model - pi gets only the task.)

Do not attempt the task and do not use any tools. Reply with exactly this, and nothing else:

pi agent for claude is not active, so pi did not run this task. Use Claude Code 2.1.287 or newer, check the plugin is loaded in /plugin, and restart Claude Code.

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. 1mo ago Changed scan B → A ffb5bfedf820
  2. 1mo ago First seen · 17 lines · 0 tokens per session scan B 061f458419a9

Subscribe to this mod's changes

pi is an agent published in the GitHub repository davila7/claude-code-templates (33,152 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 357 tokens. 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-09-19.

Related

pi compared with agents from other repositories

pi next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pidavila7/claude-code-templatesAgent33kyesterdayMITA0Claude Code
test-gapswesammustafa/Claude-Code-Everything-You-Need-to-KnowAgent3.5k3d agononeA38Claude Code
alchemistdrobins25/craftAgent73yesterdayMITA355Claude Code
testerdrobins25/craftAgent73yesterdayMITA200Claude Code
verifierdrobins25/craftAgent73yesterdayMITA178Claude Code
product-anthropologistdrobins25/craftAgent73yesterdayMITA116Claude Code
k8s-engineerandisab/swe-marketplaceAgent21yesterdayMITA42Claude Code