butttons/pi-kit/pi-costs
Claude Code and agent skill by butttons/pi-kit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Analyze pi session costs. Use when the user asks about spending, costs, token usage, or session statistics.
Install
npx vskill@latest install butttons/pi-kit/pi-costsSKILL.md
Pi Session Cost Analysis
Analyze cost, token usage, and session statistics from pi session files stored in ~/.pi/agent/sessions/.
Session File Format
Sessions are stored as JSONL files at ~/.pi/agent/sessions/<project-dir>/<timestamp>_<uuid>.jsonl.
Each line is a JSON object. Assistant messages have this structure:
Instructions
- Run the analysis script below via
bashwithpython3. - Present results as a clean summary.
- If the user asks for a specific breakdown (by model, by project, by date), adjust the script accordingly.
Analysis Script
Per-Project Breakdown
Session Count
Adapting Queries
- Filter by date: Add
findflags like-neweror-newermt '2026-01-01' - Single project: Replace
findpath with~/.pi/agent/sessions/--Users-*-<project>--/ - Daily breakdown: Parse the timestamp from the session filename or from
message.timestamp
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pi-costs/SKILL.md
Popularity
- Repository stars
- 33
- Repository forks
- 1
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/butttons/pi-kit/pi-costs)