dot-pi AGENTS.md

Development instructions for dot-pi, a package that adds extensions, skills, and rules to the Pi coding agent. They explain installation, optional symlinks, and how to register new components.

In plain words
What is it for?
Use them to install dot-pi for a user or project, enable selected components, or add and document new extensions, skills, or rules.
Why use it?
They prevent incorrect installation links and keep the package index and component sources consistent.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/dannote/dot-pi/agents-md
Clone the repo
git clone --depth 1 https://github.com/dannote/dot-pi

Made for: Codex, OpenCode.

Per session 827 This file is loaded in full into every session.
When invoked 827 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00827 $0.00827
Opus 5 $0.00413 $0.00413
Sonnet 5 $0.00165 $0.00165
Haiku 4.5 $0.00083 $0.00083

Measured 2d ago against content hash 587b42233a97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dot-pi AGENTS.md 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 2d 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.

AGENTS.md · 75 lines

How it starts

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

Development Guidelines

Pi reads this AGENTS.md automatically when working in this repository. Keep durable dot-pi development policy here; use prompt templates for turn-specific intent and rules/ for optional personal preferences.

Installation

Install the complete package with Pi:

pi install git:github.com/dannote/dot-pi

For a project-local install:

pi install git:github.com/dannote/dot-pi -l

Use direct symlinks only when enabling individual optional resources from a manual checkout:

# Extensions
ln -s /path/to/dot-pi/extensions/codesearch.ts ~/.pi/agent/extensions/

# Skills
ln -s /path/to/dot-pi/skills/ai-news ~/.pi/agent/skills/

# Rules
ln -s /path/to/dot-pi/rules/typescript.md ~/.pi/agent/rules/

Each symlink points directly to the source file or directory. No intermediate symlinks. Pi discovers this repository's AGENTS.md natively; do not symlink it into ~/.pi/agent/.

Adding New Components

When adding new extensions, skills, or rules:

  1. Add entry to the corresponding table in README.md
  2. Keep tables alphabetically sorted
  3. Include Origin column with link to source if adapted from another project
  4. Commit both the component and README update together

Quality Gates

Before committing changes, run:

npm run check
npm run test
npm run format:check

npm run check includes oxlint, TypeScript checking, Vitest, jscpd duplicate detection, and deps:check dependency hygiene. Keep shared helpers in extensions/shared/ when logic appears in more than one extension.

Native pi Tool Rendering Rules

When adding or changing model-facing tool renderers, follow native pi TUI conventions systematically:

  1. Use shared primitives from extensions/shared/render.ts instead of ad-hoc new Text(...) result styling.
  2. Result blocks start with one leading blank line, but do not add blanket left padding. Indent only when the structure needs it.
  3. Use semantic colors:
    • metadata, paths, counts, hidden-detail text: meta(...) / muted
    • primary output/code/content: primary(...) / toolOutput
    • important headings/names: title(...) / bold toolOutput
    • additions/removals in diffs: success/error
  4. Do not use raw white text for tool output unless it is intentionally neutral prose from the assistant. Tool result content should be styled.
  5. Human-readable metadata order is left-to-right: subject first, then attributes, e.g. https://example.com/ · 559 B, not (559 B) → url.
  6. Compact renderers show a summary and a few semantic items only. Raw bodies, long snippets, page text, and full diffs belong in expanded output.
  7. If compact output is lossy, show (ctrl+o to expand) as a footer with a blank line before it. Do not show the hint when there is nothing hidden.
  8. Never duplicate state/mode labels. If the call line says dry-run, the result body must not also say DRY RUN.
  9. Search results should be parsed into semantic rows (count, path:line, source preview), not dumped as raw command stdout.
  10. AST edit dry-run diffs must render like pi's built-in edit diff style; do not expose ast-grep's pseudo-diff format (1 1│, etc.).
  11. Absolute paths should be muted and avoided in compact primary text when a shorter name is sufficient.
  12. After renderer changes, run npm run check, npm run test, npm run format:check, and verify representative cases in tmux/asciinema before claiming the UI is fixed.

Read the full file on GitHub · 75 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. 2d ago First seen · 75 lines · 827 tokens per session scan A 587b42233a97

Subscribe to this mod's changes

dot-pi AGENTS.md is an instructions file published in the GitHub repository dannote/dot-pi (51 stars, last pushed 2d ago), licensed MIT. It adds 827 tokens to every session, about $0.0041 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-08-30.