pi-insights

作者 BlazeUp-AI

Personal usage analytics for Pi coding agent. Temporal-aware insights, context-aware suggestions, model efficiency analysis.

56
Stars
5
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/BlazeUp-AI/pi-insights

快速入门

使用 pi-insights 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Pi Insights header showing weekly changes and navigation

Pi Insights

Personal usage analytics for the Pi coding agent. Scans your session history, extracts deterministic stats and LLM-powered facets, then generates a self-contained HTML report covering your workflows, friction points, and suggestions for improvement.

Built by the Observal team while developing our agent observability platform. We needed to understand how we actually use Pi across hundreds of sessions, what patterns emerge, and where we waste time or money. This extension is the result.

Install

From npm (recommended):

pi install npm:@observal/pi-insights

From source:

git clone https://github.com/BlazeUp-AI/pi-insights.git
pi install ./pi-insights

Try without installing:

pi -e npm:@observal/pi-insights

Usage

Run the command inside any Pi session:

/pi-insights

The report opens in your browser automatically.

Flags

FlagDescription
--refresh / -rInvalidate all cached LLM facet extractions and re-run them
--no-openGenerate the report without opening it in the browser
--since <N>dOnly analyze sessions from the last N days (e.g. --since 7d)
--mdOutput a Markdown report instead of opening the HTML version

Examples

# Normal run (uses caches, fast on re-runs)
/pi-insights

# Force re-extraction of all session facets
/pi-insights --refresh

# Generate without auto-opening
/pi-insights --no-open

# Only analyze the last 7 days
/pi-insights --since 7d

# Export as Markdown (for Slack, docs, etc.)
/pi-insights --md

What the Report Shows

Session stats at a glance

Tokens, cost, lines changed, commits, tool errors, parallel sessions, and more.

Stats grid showing sessions, messages, tokens, cost, lines, commits

Context-aware suggestions with copyable prompts

Suggests features, skills, and config additions tailored to your actual workflow. References your real projects and tools.

Features to try section with lifecycle hooks and skills suggestions

"Stop Doing" section

Tells you what patterns are costing you time or money, with concrete alternatives.

Consider Stopping section with three anti-patterns and green alternatives

Model spend analysis

Identifies overspend (Opus on simple tasks) and underspend (Sonnet failing on complex work), with a recommendation and estimated savings.

Model efficiency showing overspend, underspend, and recommendation

What Makes This Different

Most Pi insight extensions dump flat aggregates into an LLM prompt and get the same generic report every time. This one is temporal-aware:

  • Week-over-week diffs: see what actually changed, not a static portrait
  • Decay-weighted charts: recent sessions have more influence on friction/satisfaction/outcome charts (10-day half-life)
  • Trajectory detection: are your costs/errors improving, worsening, or stable?
  • Anomaly detection: spikes in cost or errors are surfaced with context
  • Resolved vs ongoing friction: only surfaces problems you still have, not ones you fixed
  • Context-aware suggestions: reads your existing AGENTS.md, installed skills, extensions, and packages. Will not suggest what you already have.
  • Negative suggestions: tells you what to stop doing, not just what to add

How It Works

The pipeline runs in five phases:

  1. Scan all Pi session log files
  2. Extract stats deterministically from each session (tool counts, tokens, languages, git activity, response times)
  3. LLM facet extraction per session to classify goals, outcomes, satisfaction, and friction
  4. Aggregate with decay weighting, compute diffs, detect anomalies and transitions, gather user context
  5. Generate insights using 8 parallel LLM prompts (with temporal and user context injected) plus a synthesis prompt, then render a self-contained HTML report

Results are cached in ~/.pi/agent/usage-data/:

PathContents
session-meta/<id>.jsonDeterministic stats, cached permanently
facets/<id>.jsonLLM-extracted facets, cached permanently (clear with --refresh)
report.htmlLast generated report
report.mdLast markdown export (when using --md)

Requirements

  • Pi v0.74.0 or later
  • An active model configured in Pi (used for both facet extraction and insight generation)

License

AGPL-3.0-only

常见问题

What is pi-insights?

pi-insights is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by BlazeUp-AI. Personal usage analytics for Pi coding agent. Temporal-aware insights, context-aware suggestions, model efficiency analysis. It has 56 GitHub stars.

Is pi-insights safe to use?

pi-insights returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install pi-insights?

Clone the repository with "git clone https://github.com/BlazeUp-AI/pi-insights" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is pi-insights written in?

pi-insights is primarily written in TypeScript. It is open-source under BlazeUp-AI on GitHub, so you can review or fork the full source.

Are there alternatives to pi-insights?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pi-insights against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
pi-insights — Claude Code AI Skill | SkillTip