Sobre
Pi coding agent extensions with code intelligence (LSP + Tree-sitter AST), semantic refactoring, code review, web/Context7 docs, and ask-user forms.
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- +1
- em 7 dias
- +1
- em 15 dias
- +2
- em 1 mês
- +3
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
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.
See all Code Intelligence screenshots →
What else your agent gets
- Web access built for agents —
supi-webprefers 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
exploreandgeneralprofiles with bounded resource envelopes throughsupi-agent. - Operational awareness — inspect context pressure, cache history and forensics, and SuPi debug events with
supi-contextandsupi-debug. Pi owns live cache statistics and cache-miss notices. - Repository guidance — maintain
CLAUDE.mdandAGENTS.mdfiles with theclaude-md-improverandclaude-md-revisionskills:npx skills add mrclrchtr/supi -a pi --skill claude-md-improver claude-md-revision. - Skills on your terms — use
supi-skillsto 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-extrasto choose session-only tool visibility and, withsupi-skills, skill visibility. It also adds compactcodemoderows that summarize nested tool calls, prompt stashing, activity indicators, shortcuts, and a defaultbashtimeout.
Install
After any installation, run /reload or restart Pi.
Select packages and scopes
Install Pi and make sure pi is on PATH. Open Pi in the target project and use /trust to save project approval. Then run the SuPi installer:
npx @mrclrchtr/supi-installer@latest
Each package row has Project and Global checkboxes. They represent direct declarations in those scopes, not whether a capability is active. Choose packages, press Enter to review additions and removals, then press y to confirm.
r: replace the focused column with the Recommended release stack.a: select All current packages in that column, including beta packages, DevTools, Consulting, and Prompt Improver.c: clear editable declarations in that column.
To target another project directory:
npx @mrclrchtr/supi-installer@latest --project /path/to/project
The installer requires saved project trust even for global-only work. It never grants trust or installs Pi. Clearing Project does not disable a global declaration. Removal keeps user data. If a scope move fails, source removal can still run; review the failure warning before confirmation.
Pi extensions run with your user permissions. Review packages before installing them.
One package
Every extension package is independently installable:
pi install npm:@mrclrchtr/supi-code-intelligence
pi install npm:@mrclrchtr/supi-web
Package catalog
Release stack
| Package | What it adds | Install |
|---|---|---|
supi-code-intelligence |
Direct LSP- and AST-backed code understanding, navigation, search, health, and refactoring tools | pi install npm:@mrclrchtr/supi-code-intelligence |
supi-web |
Public-page-to-Markdown fetching, public web source search, context-safe large output, and focused Context7 documentation | pi install npm:@mrclrchtr/supi-web |
supi-ask-user |
Structured choice and text forms for focused agent-user decisions | pi install npm:@mrclrchtr/supi-ask-user |
supi-context |
Context-pressure snapshots and detailed TUI usage reports | pi install npm:@mrclrchtr/supi-context |
supi-settings |
One project/global settings UI for SuPi packages | pi install npm:@mrclrchtr/supi-settings |
supi-skills |
Scoped skill controls and $skill-name input shortcuts |
pi install npm:@mrclrchtr/supi-skills |
supi-extras |
Compact codemode rows, session capability controls, prompt stash, shortcuts, activity indicators, and default bash timeouts | pi install npm:@mrclrchtr/supi-extras |
supi-prompt-suggestions |
Advisory ghost-text suggestions from a model you choose | pi install npm:@mrclrchtr/supi-prompt-suggestions |
supi-pi-patches |
Prompt rules that correct recurring model mistakes with Pi's built-in tools, such as the wrong sed -i form, and a limit for very long lines in bash results |
pi install npm:@mrclrchtr/supi-pi-patches |
Adapted skills
The root skills/ catalog contains patched SuPi-compatible editions of third-party skills and SuPi-owned skills. Install only the skills you need:
npx skills add mrclrchtr/supi -a pi --skill code-review commit
The claude-md-improver and claude-md-revision skills (formerly @mrclrchtr/supi-claude-md) audit and revise CLAUDE.md and AGENTS.md files. For Pi extension development, the pi-tui-design skill helps build Pi TUI components.
DevTools
Not part of the Recommended release stack. Select these packages individually, use All in the installer, or install them separately:
| Package | What it adds | Install |
|---|---|---|
supi-debug |
Debug-event capture, troubleshooting tools, prompt-cache history and forensics, and post-task tooling feedback via /supi-tooling-retro |
pi install npm:@mrclrchtr/supi-debug |
Beta additions
Select beta packages individually or use All in the installer. Consulting is opt-in and is not part of Recommended:
| Package | What it adds | Install |
|---|---|---|
supi-review |
Caller-defined, inspection-only reviews in managed child sessions | pi install npm:@mrclrchtr/supi-review |
supi-agent |
Explicit Agent Profile catalogue and child resource policy | pi install npm:@mrclrchtr/supi-agent |
supi-consulting |
Agent — bounded consultations with explicit agent and workspace selection and observed evidence; currently supports Antigravity | pi install npm:@mrclrchtr/supi-consulting |
supi-insights |
Historical session analytics and shareable HTML reports | pi install npm:@mrclrchtr/supi-insights |
Additional packages
supi-prompt-improver— command-based prompt improvement with user-approved drafts. Select it in the installer or runpi install npm:@mrclrchtr/supi-prompt-improver.
Internal libraries
These packages power the stack and are not standalone Pi extensions:
supi-lsp— Language Server Protocol runtime bundled by Code Intelligence.supi-tree-sitter— structural AST analysis bundled by Code Intelligence.supi-code-runtime— shared code-intelligence contracts and workspace capability state.supi-agent-runtime— neutral in-memory Agent Run lifecycle, usage accounting, and bounded diagnostics for extension-owned adapters.supi-core— common configuration, settings, reporting, and session infrastructure.
Configure
The release stack includes supi-settings. Open the shared settings UI with:
/supi-settings
Press Tab to switch between project and global scope. Settings show whether each value comes from the project, global configuration, or its default.
Control skills
supi-skills adds a searchable Skills section to /supi-settings. Each installed skill can be:
- Enabled — Pi can select the skill automatically, and you can start it explicitly.
- Model invocation disabled — only you can start the skill explicitly.
- Disabled — Pi does not load the skill or its command.
At the prompt, type $ and part of a skill name. Select a result to insert $skill-name; SuPi runs it as /skill:skill-name when you submit. For example, if code-review is installed:
$code-review Review the current changes.
Project choices inherit your global choices. Run /reload after you change whether a skill loads, or after you add or remove skills. Install supi-extras to hide model-visible skills for one session. This does not change explicit skill commands or $skill-name shortcuts.
The Recommended preset includes both supi-skills and supi-settings. For a standalone installation with skill controls, install both packages:
pi install npm:@mrclrchtr/supi-settings
pi install npm:@mrclrchtr/supi-skills
Install @mrclrchtr/supi-extras to manage session-only skill visibility with /supi-capabilities.
Update and remove
Update installed Pi packages:
pi update --extensions
To remove selected SuPi packages, open the installer and clear their scope checkboxes. Use c to clear the focused column, then review and confirm:
npx @mrclrchtr/supi-installer@latest
Unknown sources remain unchanged. Recognized Git/local or legacy root installs need manual removal through Pi. The old shell installer commands have been retired.
Remove one package:
pi uninstall npm:@mrclrchtr/supi-web
Run /reload or restart Pi after removing extensions.
Give feedback
SuPi improves with your feedback. After a task, run /supi-tooling-retro to produce a compact retrospective of the SuPi surfaces you used — what helped, what fell short, what was missing, and what was noisy. This command ships with the supi-debug DevTool package; with Debug persistence enabled, it also stores each report for later gathering with /skill:gather-retrospectives:
pi install npm:@mrclrchtr/supi-debug
Share the result, or any friction you find in SuPi tools, prompts, skills, or injected context, as a GitHub issue.
To work on SuPi itself, see CONTRIBUTING.md.
If SuPi is useful to you, consider giving it a star as well.
License
Explore projetos relacionados
Carregando…
