This is the peakinfer-vscode (VS Code Extension) repository.
- Type: VS Code Extension
- Mode: PeakInfer Token (Credits)
- Analysis: Calls peakinfer.com API
- User triggers analysis (command or on-save)
- Reads PeakInfer token from settings or
PEAKINFER_TOKENenv var - Calls
peakinfer.com/api/analyzewith code - Displays results as VS Code diagnostics
- Shows results in webview panel
- Inline Diagnostics: Squiggly lines in editor
- Results Panel: Comprehensive analysis view
- Credit System: Uses PeakInfer credits (50 free, then $19-$499 packs)
- Error/Loading States: Spinner, retry button, help text
| File | Purpose |
|---|---|
src/extension.ts |
Activation, command registration |
src/analysis.ts |
AnalysisRunner with API call |
src/diagnostics.ts |
VS Code diagnostics integration |
src/views/resultsPanel.ts |
Webview panel with states |
package.json |
Commands, settings, keybindings |
| Setting | Default | Description |
|---|---|---|
peakinfer.token |
"" |
PeakInfer token (or use env var) |
peakinfer.analyzeOnSave |
false |
Auto-analyze on save |
peakinfer.showInlineHints |
true |
Show inline hints |
peakinfer.severityThreshold |
warning |
Minimum severity |
peakinfer.includeBenchmarks |
true |
Include benchmarks |
| Command | Description |
|---|---|
peakinfer.analyzeFile |
Analyze current file |
peakinfer.analyzeWorkspace |
Analyze entire workspace |
peakinfer.showResults |
Show results panel |
peakinfer.clearDiagnostics |
Clear diagnostics |
peakinfer.setToken |
Set PeakInfer token |
Same as GitHub Action:
| Pack | Price | Credits |
|---|---|---|
| Free | $0 | 50 (one-time, 6-month expiry) |
| Starter | $19 | 200 |
| Growth | $49 | 600 |
| Scale | $149 | 2,000 |
| Mega | $499 | 10,000 |
Credits are shared across VS Code and GitHub Action.
Get token at peakinfer.com/dashboard
v1.9.5 Status: ✅ 100% Complete - Ready for Release
Strategy Change:
- Changed from BYOK (Anthropic API key) to PeakInfer token (credits)
- Same pricing model as GitHub Action
- Credits shared across VS Code and GitHub Action
Files Modified:
README.md- Updated setup and pricing sectionsCLAUDE.md- Updated to reflect token-based auth
| Repository | Role | Auth Mode | Status |
|---|---|---|---|
peakinfer/ (CLI) |
CLI | BYOK | ✅ Complete |
peakinfer-mcp/ |
MCP Server | BYOK | ✅ Complete |
peakinfer-action/ |
GitHub Action | PeakInfer Token | ✅ Complete |
peakinfer-site/ |
API + Website | - | ✅ Complete |
peakinfer-vscode/ (this repo) |
VS Code Extension | PeakInfer Token | ✅ Complete |
peakinfer_templates/ |
Templates | - | ✅ Complete |
- PeakInfer Token - calls peakinfer.com API (NOT local BYOK)
- Credit System - same as GitHub Action (50 free, then paid)
- Token from settings OR
PEAKINFER_TOKENenv var - Error states - showLoading(), showError(), retry button
| Document | Location |
|---|---|
| Implementation Guide | peakinfer/design/PeakInfer Implementation v1.9.5.md |
| Main CLAUDE.md | peakinfer/CLAUDE.md |
| VS Code README | README.md |