pi-agent

pi-agent is a skill for Claude Code, Codex from agentlas-ai/agentlas-desktop. It costs 118 tokens per session (1,715 once invoked), scanned A, a copy of pi-agent, Apache-2.0.

A guide and toolkit for installing and extending Pi, a small terminal program for working with coding agents. It covers settings, model and provider connections, TypeScript extensions, custom tools, prompt templates, SDK use, and machine-readable event streams.

In plain words
What is it for?
Installing Pi, connecting language-model providers, configuring local models, creating extensions and tools, embedding Pi in another program, and processing its sessions or JSON events.
Why use it?
It provides the instructions needed to configure Pi correctly or build software around it, rather than relying on scattered setup details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Installing Pi, connecting language-model providers, configuring local models, creating extensions and tools, embedding Pi in another program, and processing its sessions or JSON events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentlas-ai/agentlas-desktop/pi-agent
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 agentlas-ai/agentlas-desktop --skill pi-agent
Clone the repo
git clone --depth 1 https://github.com/agentlas-ai/agentlas-desktop

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-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentlas-ai/agentlas-desktop/pi-agent/github.svg)](https://agentmods.dev/skills/agentlas-ai/agentlas-desktop/pi-agent)
Your own site
<a href="https://agentmods.dev/skills/agentlas-ai/agentlas-desktop/pi-agent"><img src="https://agentmods.dev/badge/skills/agentlas-ai/agentlas-desktop/pi-agent/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-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentlas-ai/agentlas-desktop/pi-agent"><img src="https://agentmods.dev/badge/skills/agentlas-ai/agentlas-desktop/pi-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,715 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 100% copy Near-identical to another mod 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.00118 $0.01715
Opus 5.5 $0.00047 $0.00686
Sonnet 5.5 $0.00024 $0.00343
Haiku 4.5 $0.00012 $0.00171

Measured 1mo ago against content hash 51221e4d9040, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pi-agent 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.

Origin

This is a copy

100% identical to pi-agent — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/agentlas-science-skills/skills/pi-agent/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pi Agent

Use this skill when the user wants to operate Pi or build on top of Pi. Pi is a minimal terminal coding harness extended through TypeScript extensions, skills, prompt templates, themes, packages, custom models/providers, SDK integrations, RPC mode, JSON event streams, and TUI components.

First Decision

Pick the reference before answering or coding:

User intent Read
What Pi is, docs map, install methods references/overview.md
Install, authenticate, first run references/quickstart.md
Day-to-day CLI usage, commands, modes, flags, project trust references/usage.md
Provider auth, API keys, cloud provider setup references/providers.md
Custom model entries, local models, proxies, compat flags references/models.md
Local llama.cpp router, /llama, model download/load references/llama-cpp.md
Settings keys and defaults references/settings.md
PI_* and other environment variables references/environment-variables.md
Extension development, custom tools, events, commands references/extensions.md
Custom provider implementation, OAuth, custom streaming references/custom-provider.md
Embed Pi in Node/TypeScript references/sdk.md
Integrate from another process/language references/rpc.md
Consume JSONL event output references/json.md
Build terminal UI components references/tui.md
Package extensions/skills/prompts/themes references/packages.md
Delegate to subagents, chains, parallel runs, orchestration references/pi-subagents.md
Connect MCP servers, MCP tool discovery/config references/pi-mcp-adapter.md
Interactive interview forms, structured user input references/pi-interview.md
Web search, URL/PDF/repo fetching, video understanding references/pi-web-access.md
Author Pi skills references/skills.md
Prompt templates or themes references/prompt-templates.md, references/themes.md
Sessions, branching, compaction, parsing JSONL references/sessions.md, references/compaction.md, references/session-format.md
Security, sandboxing, trust references/security.md, references/containerization.md
Keyboard or terminal issues references/keybindings.md, references/terminal-setup.md, references/tmux.md, references/windows.md, references/termux.md, references/shell-aliases.md
Working on Pi itself references/development.md

Read the full file on GitHub · 101 lines

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 First seen · 101 lines · 118 tokens per session scan A 51221e4d9040

Subscribe to this mod's changes

pi-agent is a skill published in the GitHub repository agentlas-ai/agentlas-desktop (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 118 tokens to every session and 1,715 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to pi-agent, differing in 20 lines, and is treated as a copy.