@leing2021/super-pi 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -49
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,32 +1,86 @@
|
|
|
1
1
|
# Super Pi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[中文](README-CN.md) | [English](README.md)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
**Turn your AI coding agent into a reliable engineer.**
|
|
10
|
+
|
|
11
|
+
Install, describe what you want to build, then keep saying "continue." Super Pi drives the full loop:
|
|
12
|
+
|
|
13
|
+
**think → plan → build → review → compound learnings.**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pi install npm:@leing2021/super-pi
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Highlights
|
|
22
|
+
|
|
23
|
+
- **Five-step loop** — brainstorm → plan → work → review → learn, with automatic skill routing
|
|
24
|
+
- **Checkpoint resume** — interrupted? Resume from the exact unit you left off
|
|
25
|
+
- **TDD enforcement** — every unit follows RED → GREEN → REFACTOR with hard gates
|
|
26
|
+
- **Parallel execution** — independent units run concurrently via `ce_parallel_subagent`
|
|
27
|
+
- **Evidence-first review** — auto-assigned reviewers across five axes, autofix loop
|
|
28
|
+
- **Knowledge compounding** — solved problems become searchable solution artifacts
|
|
29
|
+
- **Token-efficient** — ~2,600 tokens new-conversation overhead; progressive loading
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Quickstart
|
|
6
34
|
|
|
7
35
|
```bash
|
|
8
36
|
pi install npm:@leing2021/super-pi
|
|
9
37
|
```
|
|
10
38
|
|
|
39
|
+
Then in Pi:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
You: I want to build a CLI tool that helps indie devs find early users
|
|
43
|
+
|
|
44
|
+
→ 01-brainstorm: structured discovery → requirements artifact
|
|
45
|
+
→ 02-plan: TDD-gated implementation units → plan artifact
|
|
46
|
+
→ 03-work: parallel execution, checkpoint resume
|
|
47
|
+
→ 04-review: five-axis findings, autofix loop
|
|
48
|
+
→ 05-learn: knowledge compounding
|
|
49
|
+
|
|
50
|
+
You: continue
|
|
51
|
+
→ Next skill recommended via /skill:06-next
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Resume after interruption:**
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
You: /skill:03-work docs/plans/plan.md
|
|
58
|
+
→ Loads checkpoint, skips completed units, resumes from breakpoint
|
|
59
|
+
```
|
|
60
|
+
|
|
11
61
|
---
|
|
12
62
|
|
|
13
63
|
## The Five-Step Loop
|
|
14
64
|
|
|
15
65
|
```
|
|
16
66
|
01-brainstorm → 02-plan → 03-work → 04-review → 05-learn
|
|
17
|
-
think
|
|
67
|
+
think plan build review learn
|
|
18
68
|
```
|
|
19
69
|
|
|
20
|
-
| Skill |
|
|
21
|
-
|
|
22
|
-
| **01-brainstorm** |
|
|
23
|
-
| **02-plan** |
|
|
24
|
-
| **03-work** | Parallel execution, checkpoint resume, strict TDD | `ce_subagent`, `ce_parallel_subagent` |
|
|
25
|
-
| **04-review** | Auto-assigned reviewers,
|
|
26
|
-
| **05-learn** | Pattern extraction → searchable
|
|
27
|
-
| **06-next** | Next-step recommendation +
|
|
70
|
+
| Skill | What it does | Core tool |
|
|
71
|
+
|-------|-------------|-----------|
|
|
72
|
+
| **01-brainstorm** | Structured multi-round discovery | `brainstorm_dialog` |
|
|
73
|
+
| **02-plan** | TDD-gated implementation units, optional CEO Review | `plan_diff` |
|
|
74
|
+
| **03-work** | Parallel execution, checkpoint resume, strict TDD, stop-the-line | `ce_subagent`, `ce_parallel_subagent` |
|
|
75
|
+
| **04-review** | Auto-assigned reviewers, five-axis findings, autofix loop | `review_router` |
|
|
76
|
+
| **05-learn** | Pattern extraction → searchable solution artifacts | `pattern_extractor` |
|
|
77
|
+
| **06-next** | Next-step recommendation + workflow status | `workflow_state` |
|
|
28
78
|
| **07-worktree** | Isolated git worktree development | `worktree_manager` |
|
|
29
|
-
| **08-help** | Phase 1 skill explainer
|
|
79
|
+
| **08-help** | Phase 1 skill explainer | — |
|
|
80
|
+
|
|
81
|
+
### Subagent tool namespace
|
|
82
|
+
|
|
83
|
+
Super Pi ships CE-specific tools named `ce_subagent` and `ce_parallel_subagent`. They are intentionally namespaced so they can coexist with the compatible third-party `pi-subagents` extension without tool-name collisions.
|
|
30
84
|
|
|
31
85
|
### Model & Thinking Routing
|
|
32
86
|
|
|
@@ -48,32 +102,46 @@ Configure in `.pi/settings.json`:
|
|
|
48
102
|
|
|
49
103
|
Model and thinking level switch automatically — no manual `/model` needed.
|
|
50
104
|
|
|
51
|
-
|
|
105
|
+
## Design Philosophy & Acknowledgements
|
|
106
|
+
|
|
107
|
+
**80% planning and review, 20% execution.**
|
|
108
|
+
|
|
109
|
+
The goal is not to make AI write code faster. The goal is to make AI think before writing, review after writing, and compound what it learns.
|
|
110
|
+
|
|
111
|
+
Super Pi is not a fork or wrapper. It extracts useful methods from the projects below and rebuilds them with Pi-native skills, tools, artifacts, checkpoints, and handoffs.
|
|
52
112
|
|
|
53
|
-
|
|
113
|
+
| Project | What Super Pi adopted |
|
|
114
|
+
|---------|------------------------|
|
|
115
|
+
| [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills) | "Use when" skill trigger conditions, source-driven verification, stop-the-line hard gate, anti-rationalization, and the five-axis review baseline. Adopted as embedded micro-patterns only — no new skills, tools, commands, or agents. |
|
|
116
|
+
| [everything-claude-code](https://github.com/affaan-m/everything-claude-code) | Parallel subagent orchestration, checkpoint resume, continuous learning loops, and token-conscious agent workflow design. |
|
|
117
|
+
| [superpowers](https://github.com/obra/superpowers) | Strict TDD gates, design checklists, review discipline, and the idea that agents need hard gates instead of gentle suggestions. |
|
|
118
|
+
| [compound-engineering-plugin](https://github.com/EveryInc/compound-engineering-plugin) | The five-step think → plan → build → review → learn loop and the knowledge-compounding backbone. |
|
|
119
|
+
| [gstack](https://github.com/garrytan/gstack) | YC-style forcing questions, CEO Review cognitive frameworks, browser QA patterns, failure maps, and evidence-first validation. |
|
|
54
120
|
|
|
55
121
|
---
|
|
56
122
|
|
|
57
|
-
##
|
|
123
|
+
## Behavioral Gates
|
|
58
124
|
|
|
59
|
-
|
|
60
|
-
You: I want to build a tool that helps indie devs find users
|
|
125
|
+
### Stop-the-line (Hard gate)
|
|
61
126
|
|
|
62
|
-
|
|
63
|
-
→ 02-plan: RED→GREEN→REFACTOR units → docs/plans/plan.md
|
|
64
|
-
→ 03-work: parallel execution, checkpoint resume
|
|
65
|
-
→ 04-review: structured findings, optional browser QA
|
|
66
|
-
→ 05-learn: knowledge compounding
|
|
127
|
+
When an unexpected failure occurs during `03-work`:
|
|
67
128
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
129
|
+
1. **STOP** adding features
|
|
130
|
+
2. **PRESERVE** evidence
|
|
131
|
+
3. **DIAGNOSE** root cause
|
|
132
|
+
4. **FIX** the root cause
|
|
133
|
+
5. **GUARD** with a regression test
|
|
134
|
+
6. **RESUME** only after verification passes
|
|
71
135
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
136
|
+
Anti-rationalization: do not rationalize, downgrade, or explain away failures. Stop and report with evidence.
|
|
137
|
+
|
|
138
|
+
### Source-driven verification
|
|
139
|
+
|
|
140
|
+
When implementation depends on a framework/library API, version-specific behavior, or a recommended pattern: verify against official documentation before implementing. Pure logic, renaming, or in-project pattern reuse does not require external citation.
|
|
141
|
+
|
|
142
|
+
### Review five axes
|
|
143
|
+
|
|
144
|
+
All reviewers evaluate changes across: **correctness, readability, architecture, security, performance.**
|
|
77
145
|
|
|
78
146
|
---
|
|
79
147
|
|
|
@@ -84,12 +152,12 @@ New conversation overhead: **~2,600 tokens** (1.3% of 200K context).
|
|
|
84
152
|
| Component | Tokens |
|
|
85
153
|
|-----------|--------|
|
|
86
154
|
| 8 skill registrations | ~490 |
|
|
87
|
-
| System prompt
|
|
155
|
+
| System prompt | ~1,400 |
|
|
88
156
|
| Skill inlining (per invocation) | ~500-800 |
|
|
89
157
|
|
|
90
158
|
Progressive loading: only needed skills loaded on-demand.
|
|
91
159
|
|
|
92
|
-
|
|
160
|
+
See [docs/token-cost-evaluation.md](docs/token-cost-evaluation.md) for detailed per-skill breakdown and measurement methodology.
|
|
93
161
|
|
|
94
162
|
---
|
|
95
163
|
|
|
@@ -100,26 +168,38 @@ your-project/
|
|
|
100
168
|
├── docs/
|
|
101
169
|
│ ├── brainstorms/ # Requirements
|
|
102
170
|
│ ├── plans/ # Execution plans
|
|
103
|
-
│ └── solutions/
|
|
171
|
+
│ └── solutions/ # Knowledge cards
|
|
104
172
|
└── .context/
|
|
105
173
|
└── compound-engineering/
|
|
106
174
|
├── checkpoints/ # Breakpoint files
|
|
107
|
-
├──
|
|
175
|
+
├── handoffs/ # Cross-stage context
|
|
108
176
|
└── history/ # Execution history
|
|
109
177
|
```
|
|
110
178
|
|
|
111
|
-
|
|
179
|
+
Commit everything to git — these files are the project's traceable memory.
|
|
112
180
|
|
|
113
181
|
---
|
|
114
182
|
|
|
115
183
|
## Architecture
|
|
116
184
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
185
|
+
| Component | Count |
|
|
186
|
+
|-----------|------:|
|
|
187
|
+
| Skills | 8 |
|
|
188
|
+
| Tools | 19 |
|
|
189
|
+
| Rules | 79 |
|
|
190
|
+
| TypeScript lines | ~4,400 |
|
|
191
|
+
| Tests | 209 (786 assertions) |
|
|
192
|
+
|
|
193
|
+
Rules in `rules/` cover 11 common topics + language-specific sets (TypeScript, Rust, Go, Python, Java, Kotlin, C++, C#, Dart, Swift, Perl, PHP). Project-level overrides take priority.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Commands
|
|
121
198
|
|
|
122
|
-
|
|
199
|
+
| Command | Description |
|
|
200
|
+
|---------|-------------|
|
|
201
|
+
| `bun test` | Run all tests |
|
|
202
|
+
| `npm publish --dry-run` | Preview package contents |
|
|
123
203
|
|
|
124
204
|
---
|
|
125
205
|
|
|
@@ -127,14 +207,8 @@ Rules in `rules/` (11 common + language-specific). Project-level overrides take
|
|
|
127
207
|
|
|
128
208
|
See [CHANGELOG.md](./CHANGELOG.md) for full version history.
|
|
129
209
|
|
|
130
|
-
##
|
|
210
|
+
## Links
|
|
131
211
|
|
|
132
|
-
- **GitHub**: https://github.com/leing2021/super-pi
|
|
133
212
|
- **npm**: https://www.npmjs.com/package/@leing2021/super-pi
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
bun test
|
|
139
|
-
npm publish --dry-run
|
|
140
|
-
```
|
|
213
|
+
- **GitHub**: https://github.com/leing2021/super-pi
|
|
214
|
+
- **License**: MIT
|