elecnix

Pi Prospector — Development skill for Claude Code

Development community

Incremental session indexing and proposal generation for the Pi coding agent.

How to install Pi Prospector

This entry records only its repository, not the path inside it, so there is no exact command to give. Open elecnix/pi-prospector and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Prospector does

Incremental session indexing and proposal generation for the Pi coding agent.

Alternatives in Development

  • Tentacle Planner — You are the Tentacle Planner — a meta-agent that analyzes this codebase and creates department tentacles to or 1.4k ★
  • Ccmanager — 940+ Session manager supporting 8 coding agents with smart auto-approval 946 ★
  • Coding Agent Session Search — Unified TUI and CLI to index and search your local coding agent session history across 11+ providers (Codex, C 708 ★

README

pi-prospector

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/elecnix/pi-prospector)

Incremental session analysis and proposal generation for the [Pi coding agent](https://github.com/earendil-works/pi).

pi-prospector reads your Pi, Claude Code, Codex, OpenCode and Cline session transcripts, indexes them into a local SQLite database, and builds an **append-only analysis graph** over them — measuring every turn deterministically and using an LLM only where the signal warrants it. From that graph it surfaces concrete, ranked proposals to improve your prompts, skills, and configuration. It never applies them. You decide what to develop.

pi-prospector is a Pi **extension**: it adds slash commands and a `prospect` tool to a Pi session. The same commands also run from the shell as `prospect `, without starting Pi (see [Running from the shell](#running-from-the-shell)).

How it works

Pi sessions (~/.pi/agent/sessions/)
Claude sessions (~/.claude/projects/)
Codex rollouts (~/.codex/sessions/YYYY/MM/DD/)
OpenCode sessions (~/.local/share/opencode/opencode.db)
Cline sessions (~/.cline/data/sessions/)
        │
        ▼
┌──────────────────────┐
│  /prospect-sync      │  ← Incremental, no LLM. Only new lines are parsed.
│  (fast, cheap)       │    Detects forks; shared message trees stored once.
└────────┬─────────────┘
         │
         ▼
┌──────────────────────┐
│  prospector.db       │  ← Sessions, messages (+FTS), the analysis graph,
│  (SQLite + FTS5)     │    and proposals.
└────────┬─────────────┘
         │
         ▼
┌──────────────────────┐
│  /prospect-analyze   │  ← Builds the analysis graph incrementally:
│                      │
│  turn-pair-core      │    1. Score every turn pair — deterministic.
│     │     │          │
│     ▼     ▼          │    2. turn-pair-llm classifies high-signal turns
│ turn-pair-  tool-    │       (cheap LLM); tool-trajectory finds tool-call
│   llm    trajectory  │       loops & oscillati