pi-agent

pi-agent is a skill for Claude Code, Codex from K-Dense-AI/scientific-agent-skills. It costs 118 tokens per session (1,715 once invoked), scanned A, original, MIT.

A task guide for Pi, a small terminal-based coding assistant that can be extended with TypeScript. It covers setup, model providers, extensions, packages, themes, prompt templates, SDK integrations, and machine-readable event streams.

In plain words
What is it for?
Use it to install and configure Pi, connect models, build extensions and custom providers, embed Pi through its SDK, or work with RPC and JSON event streams.
Why use it?
It helps developers configure Pi correctly and choose the right instructions for everyday use, provider setup, or extension development.

Skill for Claude CodeCodex

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

Good fit Use it to install and configure Pi, connect models, build extensions and custom providers, embed Pi through its SDK, or work with RPC and JSON event streams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-dense-ai/scientific-agent-skills/pi-agent
About the project

Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.

K-Dense-AI/scientific-agent-skills · 44,220 stars · on GitHub · arxiv.org

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 K-Dense-AI/scientific-agent-skills --skill pi-agent
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills

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/k-dense-ai/scientific-agent-skills/pi-agent/github.svg)](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pi-agent)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pi-agent"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/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/k-dense-ai/scientific-agent-skills/pi-agent"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/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. Third-party audits
  • Socket warn 3 Sept 2026
  • Snyk pass 3 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 73
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00118 $0.01715
Opus 5 $0.00059 $0.00857
Sonnet 5 $0.00024 $0.00343
Haiku 4.5 $0.00012 $0.00171

Measured 7d ago against content hash 51221e4d9040, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 7d 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.

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. 7d 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 K-Dense-AI/scientific-agent-skills (44,220 stars, last pushed 3d ago), licensed MIT. It adds 118 tokens to every session and 1,715 once invoked, about $0.0006 per session on Opus 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-09-03.

Related

Other skills, from other repositories

job-search

Search for jobs matching your skills, experience, and preferences.

gooseworks-ai/goose-skills · 14 tokens

linkedin-job-scraper

Scrapes LinkedIn job postings using the JobSpy library (python-jobspy). Use this skill whenever the user wants to find jobs on LinkedIn, search for open roles, pull job listings, build a job pipeline, source job targets for GTM research, or monitor hiring signals. Even if the user just says "find me some jobs" or…

gooseworks-ai/goose-skills · 121 tokens

send-sms-textbelt

Send SMS text messages to phone numbers. Use when the user asks to send a text, send an SMS, text someone, message a phone number, or send a notification via text message.

gooseworks-ai/goose-skills · 44 tokens

discovery-toolbox

A routed repertoire of 90 scientific thinking operators for biological research agents - visual reasoning, detectability and information budgets, search reframing, causal identification, competing explanations, observation and selection processes, pipeline artifact diagnosis, effort allocation, and confirmation…

dekan-aleksandr/biodiscovery-skills · 122 tokens

commit-optimization

Use when configuring settings.json to reduce fuse-commit-pro's context token usage.

fusengine/agents · 20 tokens

discovery-director

Operate as a research director making original discoveries from a given biological question and dataset. Use when the task is open-ended scientific research, exploring omics or experimental data for findings, hypothesis generation and testing, screening a large candidate space of genes, variants, features or…

dekan-aleksandr/biodiscovery-skills · 114 tokens