
SuPi — Extension Stack for the Pi Coding Agent

SuPi (short for Super Pi) is an open-source TypeScript extension stack for the Pi coding agent. It adds LSP and Tree-sitter code intelligence, semantic refactoring, parallel code review, web and Context7 documentation access, structured ask-user forms, scoped skill controls, quick skill input, and context/session observability.
Install the recommended stack or pick only the packages you need. You keep prompting Pi normally; SuPi gives the agent additional tools and context it can use directly.
If SuPi helps you, give the repository a star on GitHub. Stars help other Pi users find the project.
Packages marked beta are the fastest-moving parts of the stack and may change between major releases.
The key difference: LSP + AST for the agent
Most coding agents can read files and search text. @mrclrchtr/supi-code-intelligence gives Pi direct, model-callable access to two complementary sources of code intelligence:
- Language servers (LSP) provide types, definitions, references, implementations, diagnostics, workspace symbols, and semantic refactoring.
- Tree-sitter ASTs provide syntax, outlines, source structure, structural search, and outgoing calls.
The agent receives focused code_* tools for workspace orientation, precise symbol inspection, relationship analysis, code-aware search, live health, and safe refactor previews. Results disclose their evidence and say when semantic or structural analysis is unavailable instead of silently guessing. Workspace navigation can also include consent-gated Gradle 9 build structure, separately authorized behind Pi project trust.
Tree-sitter support is bundled. Full LSP features require the matching language-server binary on PATH; see the Code Intelligence setup and screenshots.
[![Code Intelligence showing LSP references and AST calls][code-intelligence]][code-intelligence]
See all Code Intelligence screenshots →
What else your agent gets
- Web access built for agents —
supi-web prefers source Markdown, extracts readable content from public HTML, fences plain-text files, and moves long pages to temporary files instead of flooding the context window.
- Focused library docs — search Context7 for the right project and version, then retrieve documentation narrowed to the current task.
- Structured decisions — ask you focused choice or text questions through a keyboard-driven form with
supi-ask-user.
- Review workflows — run independent, inspection-only reviews of exact Git targets with
supi-review.
- Agent Profile policy — discover explicit
explore and general profiles with bounded resource envelopes through supi-agent.
- Operational awareness — inspect context pressure, cache history and forensics, and SuPi debug events with
supi-context and supi-debug. Pi owns live cache statistics and cache-miss notices.
- Repository guidance — maintain
CLAUDE.md and AGENTS.md files with the claude-md-improver and claude-md-revision skills: npx skills add mrclrchtr/supi -a pi --skill claude-md-improver claude-md-revision.
- Skills on your terms — use
supi-skills to choose, globally or per project, whether Pi can select each skill automatically, whether only you can start it, or whether it is disabled. Type $ to search and start installed skills without remembering their full command names.
- Session polish — use
supi-extras to choose session-only tool visibility and, with supi-skills, skill visibility. It also adds compact codemode rows that summarize nested tool calls, prompt stashing, activity indicators, shortcuts, and a default bash timeout.
Install
After any installation, run /reload or restart Pi.
Select packages and scopes