pi-go CLAUDE.md

pi-go CLAUDE.md is an instructions file for coding agents from dimetron/pi-go. It costs 4,720 tokens per session, scanned A, original, MIT.

A set of instructions for Claude Code and pi-go when changing the dimetron/pi-go repository. It explains git worktrees, which are separate working folders and branches, and requires signed commits.

In plain words
What is it for?
Use it before editing the repository to create and later remove a worktree, follow the project's workspace rules, and make signed commits.
Why use it?
It helps prevent edits from being lost when the main checkout changes branches. It also keeps each task isolated and documents the project's commit requirement.

Instructions file

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/dimetron/pi-go/claude-md
Clone the repo
git clone --depth 1 https://github.com/dimetron/pi-go

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-go CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dimetron/pi-go/claude-md.svg)](https://agentmods.dev/instructions/dimetron/pi-go/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dimetron/pi-go/claude-md"><img src="https://agentmods.dev/badge/instructions/dimetron/pi-go/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,720 This file is loaded in full into every session.
When invoked 4,720 The same file — it is already loaded in full.
Security scan A 1 finding. 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.04720 $0.04720
Opus 5 $0.02360 $0.02360
Sonnet 5 $0.00944 $0.00944
Haiku 4.5 $0.00472 $0.00472

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

Security

Grade A, and why

pi-go CLAUDE.md scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Profiling endpoints are on localhost**, so `curl localhost:6060/...` is
CLAUDE.md · 406 lines

How it starts

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

CLAUDE.md — pi-go

Guidance for coding agents working in this repo. Applies to Claude Code and to pi-go's own agent; where the two differ, both are described.

Work in a git worktree, not the primary checkout

Do not make uncommitted edits in /Users/dimetron/p6s/pi-dev/pi-go and leave them there. The primary checkout has its branch switched frequently, and git checkout discards uncommitted changes in tracked files without warning. Work has been lost to this. A worktree gives each task its own working directory and its own branch, so a switch in one cannot destroy another.

Create one before starting any task that edits tracked files:

git worktree add -b fix/<topic> .worktrees/fix-<topic> HEAD
cd .worktrees/fix-<topic>

Remove it when the branch is merged or abandoned:

git worktree remove .worktrees/fix-<topic>
git worktree list          # verify; prune stale metadata with `git worktree prune`

Where worktrees live

Three conventions coexist. Match the one that fits who is doing the work.

Creator Path Branch Notes
Human / Claude Code <repo>/.worktrees/<branch-with-dashes> fix/…, feat/… Inside the repo, so it stays within the sandbox; .worktrees/ is gitignored
pi-go agent (/run, subagents) <repo>/.pi-go/tasks/<pathID> pi-agent-<shortID>, or the sanitized requested name Created by internal/subagent/worktree.go; .pi-go/ is gitignored
arbor tool ~/.arbor/worktrees/pi-go/<name> matches dir name External tool, listed here only so git worktree list output is not surprising

.pi-go/ and .worktrees/ are both gitignored, so agent worktrees never show up as untracked noise in git status.

What pi-go's agent already does, and why it matters

WorktreeManager.Create (internal/subagent/worktree.go:117) stashes uncommitted changes before git worktree add and pops them afterwards, with a unique stash message so the pop is deterministic (stashMessage, popStashByMessage). It does this because worktree add from HEAD fails on a dirty tree.

Read the full file on GitHub · 406 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. 5d ago First seen · 406 lines · 4,720 tokens per session scan A 88238cac82a2

Subscribe to this mod's changes

pi-go CLAUDE.md is an instructions file published in the GitHub repository dimetron/pi-go (151 stars, last pushed yesterday), licensed MIT. It adds 4,720 tokens to every session, about $0.0236 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.