codeimpact 0.1.0
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/LICENSE +21 -0
- package/README.md +348 -0
- package/dist/index.js +45069 -0
- package/dist/index.js.map +7 -0
- package/doc/CLAUDE-CODE-SETUP.md +504 -0
- package/doc/COMPARISON.md +188 -0
- package/doc/ENTERPRISE-PLAN.md +1282 -0
- package/doc/FOCUSED-PLAN.md +433 -0
- package/doc/OPENCODE-SETUP.md +425 -0
- package/package.json +61 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# CodeImpact - Focused Product Plan
|
|
2
|
+
|
|
3
|
+
**Goal:** Ship a sellable product in 8 weeks, not 24.
|
|
4
|
+
|
|
5
|
+
**Positioning:** "The Safety Net for AI-Generated Code"
|
|
6
|
+
|
|
7
|
+
**Tagline:** "Copilot writes. We verify. You ship."
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## What's Already Built (Current State)
|
|
12
|
+
|
|
13
|
+
These features are DONE and working:
|
|
14
|
+
|
|
15
|
+
| Feature | Status | Quality |
|
|
16
|
+
|---------|--------|---------|
|
|
17
|
+
| Semantic Code Search | Done | HIGH - Returns 20 relevant files with previews |
|
|
18
|
+
| Import Validator | Done | HIGH - Catches hallucinated imports |
|
|
19
|
+
| Duplicate Detector | Done | HIGH - Finds similar existing functions |
|
|
20
|
+
| Pattern Validator | Done | HIGH - Checks against 16 learned patterns |
|
|
21
|
+
| Security Scanner | Done | HIGH - OWASP Top 10 patterns |
|
|
22
|
+
| Path Alias Support | Done | HIGH - tsconfig.json, @/, ~/ paths |
|
|
23
|
+
| Symbol Search | Done | HIGH - AST-based function/class lookup |
|
|
24
|
+
| Architecture Analysis | Done | MEDIUM - Monorepo detection, layer mapping |
|
|
25
|
+
| Session Resurrection | Done | MEDIUM - Tracks meaningful files |
|
|
26
|
+
| MCP Server | Done | HIGH - Works with Claude Code |
|
|
27
|
+
|
|
28
|
+
**Bottom Line:** You have a working product. Now make it sellable.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Features That Will Sell (Priority Order)
|
|
33
|
+
|
|
34
|
+
### TIER 1: Ship in Weeks 1-4 (Core Value)
|
|
35
|
+
|
|
36
|
+
#### 1. Dead Code Detector
|
|
37
|
+
**Effort:** 1 week | **Selling Power:** Very High
|
|
38
|
+
|
|
39
|
+
**Why it sells:**
|
|
40
|
+
- Every codebase has 10-30% dead code
|
|
41
|
+
- Developers are AFRAID to delete (might break something)
|
|
42
|
+
- You PROVE it's safe with dependency analysis
|
|
43
|
+
- Instant "wow" in demos
|
|
44
|
+
|
|
45
|
+
**Implementation:**
|
|
46
|
+
- Scan all exports
|
|
47
|
+
- Find exports with zero imports
|
|
48
|
+
- Find functions with zero call sites
|
|
49
|
+
- Report with confidence score
|
|
50
|
+
|
|
51
|
+
**Output:**
|
|
52
|
+
```
|
|
53
|
+
Dead Code Report:
|
|
54
|
+
- 4,230 lines of unused code detected
|
|
55
|
+
- 12 files with zero imports
|
|
56
|
+
- 23 functions never called
|
|
57
|
+
|
|
58
|
+
Safe to delete: 89% confidence
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
#### 2. Test Impact Analysis CLI
|
|
64
|
+
**Effort:** 2 weeks | **Selling Power:** Very High
|
|
65
|
+
|
|
66
|
+
**Why it sells:**
|
|
67
|
+
- EVERY enterprise has 30-60 min CI
|
|
68
|
+
- "Your 45-min build becomes 5 mins" = instant sale
|
|
69
|
+
- Direct, measurable ROI
|
|
70
|
+
|
|
71
|
+
**Implementation:**
|
|
72
|
+
- Parse test files, extract what they import
|
|
73
|
+
- When file X changes, find tests that import X (directly or transitively)
|
|
74
|
+
- Output: "Run these 8 tests instead of 847"
|
|
75
|
+
|
|
76
|
+
**Command:**
|
|
77
|
+
```bash
|
|
78
|
+
codeimpact test-impact --changed src/auth/login.ts
|
|
79
|
+
|
|
80
|
+
# Output:
|
|
81
|
+
Analyzing impact of src/auth/login.ts...
|
|
82
|
+
|
|
83
|
+
Files affected: 12
|
|
84
|
+
Tests to run: 8 (instead of 234)
|
|
85
|
+
Estimated time: 2m (instead of 28m)
|
|
86
|
+
Time saved: 26 minutes
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
#### 3. Blast Radius API
|
|
92
|
+
**Effort:** 1 week | **Selling Power:** High
|
|
93
|
+
|
|
94
|
+
**Why it sells:**
|
|
95
|
+
- Risk-averse enterprises LOVE this
|
|
96
|
+
- "This change affects 34 files, including payment flow"
|
|
97
|
+
- Prevents production incidents
|
|
98
|
+
|
|
99
|
+
**Implementation:**
|
|
100
|
+
- Already have dependency graph
|
|
101
|
+
- Traverse dependents recursively
|
|
102
|
+
- Score by criticality (payment, auth = high risk)
|
|
103
|
+
|
|
104
|
+
**Output:**
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"file": "src/auth/session.ts",
|
|
108
|
+
"risk_score": 78,
|
|
109
|
+
"direct_dependents": 8,
|
|
110
|
+
"transitive_dependents": 34,
|
|
111
|
+
"critical_paths": ["src/api/checkout.ts", "src/billing/payments.ts"],
|
|
112
|
+
"recommendation": "Senior review required"
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
#### 4. Cost/Token Dashboard (Basic)
|
|
119
|
+
**Effort:** 1 week | **Selling Power:** High
|
|
120
|
+
|
|
121
|
+
**Why it sells:**
|
|
122
|
+
- CFOs need to justify AI spend
|
|
123
|
+
- "You saved $4,230 this month" = renewal guaranteed
|
|
124
|
+
- Creates urgency to upgrade
|
|
125
|
+
|
|
126
|
+
**Implementation:**
|
|
127
|
+
- Track tokens per query (already have this data)
|
|
128
|
+
- Calculate cost at standard rates ($0.03/1K input, $0.06/1K output)
|
|
129
|
+
- Show: tokens used, tokens saved, dollar savings
|
|
130
|
+
|
|
131
|
+
**Output:**
|
|
132
|
+
```
|
|
133
|
+
This Month:
|
|
134
|
+
- Queries: 1,247
|
|
135
|
+
- Tokens used: 892K (with CodeImpact context optimization)
|
|
136
|
+
- Tokens WITHOUT optimization: ~3.2M (estimated)
|
|
137
|
+
- Savings: ~2.3M tokens = ~$138 saved
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### TIER 2: Ship in Weeks 5-8 (Enterprise Ready)
|
|
143
|
+
|
|
144
|
+
#### 5. GitHub PR Integration
|
|
145
|
+
**Effort:** 2 weeks | **Selling Power:** High
|
|
146
|
+
|
|
147
|
+
**Why it sells:**
|
|
148
|
+
- Fits existing workflow
|
|
149
|
+
- Zero behavior change required
|
|
150
|
+
- Visible to entire team
|
|
151
|
+
|
|
152
|
+
**Implementation:**
|
|
153
|
+
- GitHub App that triggers on PR
|
|
154
|
+
- Run blast radius + test impact
|
|
155
|
+
- Post comment with analysis
|
|
156
|
+
|
|
157
|
+
**PR Comment:**
|
|
158
|
+
```markdown
|
|
159
|
+
## CodeImpact Analysis
|
|
160
|
+
|
|
161
|
+
| Metric | Value |
|
|
162
|
+
|--------|-------|
|
|
163
|
+
| Risk Score | 72/100 |
|
|
164
|
+
| Blast Radius | 23 files |
|
|
165
|
+
| Tests Needed | 8 |
|
|
166
|
+
|
|
167
|
+
### Attention
|
|
168
|
+
- `src/auth/middleware.ts` affects 15 downstream files
|
|
169
|
+
- Missing test coverage for `validateToken()`
|
|
170
|
+
|
|
171
|
+
### Suggested Reviewers
|
|
172
|
+
@alice (auth owner)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
#### 6. Complexity Hotspots
|
|
178
|
+
**Effort:** 1 week | **Selling Power:** Medium-High
|
|
179
|
+
|
|
180
|
+
**Why it sells:**
|
|
181
|
+
- Shows exactly where to focus engineering effort
|
|
182
|
+
- Engineering managers love this for planning
|
|
183
|
+
- Easy to build (we have the data)
|
|
184
|
+
|
|
185
|
+
**Implementation:**
|
|
186
|
+
- Calculate cyclomatic complexity per file
|
|
187
|
+
- Cross-reference with: dependency count, test coverage, change frequency
|
|
188
|
+
- Rank by "risk score"
|
|
189
|
+
|
|
190
|
+
**Output:**
|
|
191
|
+
```
|
|
192
|
+
Complexity Hotspots:
|
|
193
|
+
|
|
194
|
+
1. src/billing/payments.ts
|
|
195
|
+
Complexity: 89/100 | Dependents: 34 | Coverage: 23%
|
|
196
|
+
RECOMMENDATION: Urgent refactor needed
|
|
197
|
+
|
|
198
|
+
2. src/auth/session.ts
|
|
199
|
+
Complexity: 76/100 | Circular dependency detected
|
|
200
|
+
RECOMMENDATION: Break circular dependency
|
|
201
|
+
|
|
202
|
+
3. src/api/legacy/v1.ts
|
|
203
|
+
Complexity: 71/100 | Coverage: 0%
|
|
204
|
+
RECOMMENDATION: Add tests or deprecate
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
#### 7. CLI Polish + Documentation
|
|
210
|
+
**Effort:** 1 week | **Selling Power:** Required
|
|
211
|
+
|
|
212
|
+
**Why it matters:**
|
|
213
|
+
- First impression
|
|
214
|
+
- Developers judge tools by CLI experience
|
|
215
|
+
- Good docs = fewer support requests
|
|
216
|
+
|
|
217
|
+
**Tasks:**
|
|
218
|
+
- Consistent command structure
|
|
219
|
+
- Colored output with clear formatting
|
|
220
|
+
- `--help` on every command
|
|
221
|
+
- Quick start guide (5 minutes to value)
|
|
222
|
+
- Example workflows
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Features to SKIP (For Now)
|
|
227
|
+
|
|
228
|
+
| Feature | Why Skip |
|
|
229
|
+
|---------|----------|
|
|
230
|
+
| Dependency Graph UI | Fancy, low retention. Build after 50 paying customers. |
|
|
231
|
+
| Migration Assistant | Cool but rare need. Not a buying trigger. |
|
|
232
|
+
| Real-time Collaboration | VS Code Live Share exists. Not your fight. |
|
|
233
|
+
| Architecture Drift Detector | Only 5% of teams have rules defined. |
|
|
234
|
+
| Multi-project Support | Only needed for large enterprises. Premature. |
|
|
235
|
+
| VS Code Extension | HTTP API + MCP covers 90% of use cases. |
|
|
236
|
+
| Custom Security Rules | Snyk/SonarQube dominate. Not your differentiator. |
|
|
237
|
+
|
|
238
|
+
**Rule:** If a feature doesn't help close a sale in the next 60 days, don't build it.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 8-Week Roadmap
|
|
243
|
+
|
|
244
|
+
### Week 1-2: Dead Code + Test Impact Foundation
|
|
245
|
+
| Day | Task |
|
|
246
|
+
|-----|------|
|
|
247
|
+
| 1-2 | Dead Code Detector - scan exports/imports |
|
|
248
|
+
| 3-4 | Dead Code Detector - confidence scoring, CLI output |
|
|
249
|
+
| 5 | Dead Code Detector - testing and polish |
|
|
250
|
+
| 6-8 | Test Impact - parse test files, build test→file mapping |
|
|
251
|
+
| 9-10 | Test Impact - CLI command, output formatting |
|
|
252
|
+
|
|
253
|
+
**Deliverable:** `codeimpact deadcode` and `codeimpact test-impact` commands
|
|
254
|
+
|
|
255
|
+
### Week 3-4: Blast Radius + Cost Tracking
|
|
256
|
+
| Day | Task |
|
|
257
|
+
|-----|------|
|
|
258
|
+
| 1-3 | Blast Radius API - recursive dependency traversal |
|
|
259
|
+
| 4-5 | Blast Radius - risk scoring, critical path detection |
|
|
260
|
+
| 6-7 | Cost Dashboard - token tracking per query |
|
|
261
|
+
| 8-10 | Cost Dashboard - savings calculation, CLI report |
|
|
262
|
+
|
|
263
|
+
**Deliverable:** `codeimpact impact <file>` and `codeimpact stats` commands
|
|
264
|
+
|
|
265
|
+
### Week 5-6: GitHub Integration
|
|
266
|
+
| Day | Task |
|
|
267
|
+
|-----|------|
|
|
268
|
+
| 1-3 | GitHub App setup, webhook handling |
|
|
269
|
+
| 4-6 | PR analysis - run impact + test analysis on PR diff |
|
|
270
|
+
| 7-8 | Comment formatting, posting to PR |
|
|
271
|
+
| 9-10 | Testing with real PRs, edge cases |
|
|
272
|
+
|
|
273
|
+
**Deliverable:** GitHub App that comments on PRs
|
|
274
|
+
|
|
275
|
+
### Week 7-8: Polish + Launch Prep
|
|
276
|
+
| Day | Task |
|
|
277
|
+
|-----|------|
|
|
278
|
+
| 1-3 | Complexity Hotspots command |
|
|
279
|
+
| 4-5 | CLI polish - colors, formatting, help text |
|
|
280
|
+
| 6-7 | Documentation - quick start, examples, API reference |
|
|
281
|
+
| 8-9 | Landing page copy, demo video script |
|
|
282
|
+
| 10 | Launch prep, Product Hunt draft |
|
|
283
|
+
|
|
284
|
+
**Deliverable:** Production-ready product
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Pricing Strategy
|
|
289
|
+
|
|
290
|
+
### Free Tier
|
|
291
|
+
- Single project
|
|
292
|
+
- 100 queries/month
|
|
293
|
+
- Basic commands (search, verify)
|
|
294
|
+
- **Purpose:** Adoption, word of mouth
|
|
295
|
+
|
|
296
|
+
### Pro ($29/month)
|
|
297
|
+
- Unlimited queries
|
|
298
|
+
- Dead code detector
|
|
299
|
+
- Test impact analysis
|
|
300
|
+
- Cost tracking
|
|
301
|
+
- **Purpose:** Individual developers, small teams
|
|
302
|
+
|
|
303
|
+
### Team ($99/month)
|
|
304
|
+
- Up to 10 users
|
|
305
|
+
- All Pro features
|
|
306
|
+
- GitHub PR integration
|
|
307
|
+
- Shared project settings
|
|
308
|
+
- **Purpose:** Team conversion
|
|
309
|
+
|
|
310
|
+
### Enterprise (Custom)
|
|
311
|
+
- Unlimited users
|
|
312
|
+
- Self-hosted option
|
|
313
|
+
- SSO/SAML
|
|
314
|
+
- Priority support
|
|
315
|
+
- **Purpose:** Large deals ($500+/month)
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## Success Metrics
|
|
320
|
+
|
|
321
|
+
### Week 4 Goals
|
|
322
|
+
- [ ] Dead Code Detector shipping
|
|
323
|
+
- [ ] Test Impact Analysis shipping
|
|
324
|
+
- [ ] 5 developers using daily (can be friends/colleagues)
|
|
325
|
+
|
|
326
|
+
### Week 8 Goals
|
|
327
|
+
- [ ] GitHub integration live
|
|
328
|
+
- [ ] Documentation complete
|
|
329
|
+
- [ ] 3 paying customers (any tier)
|
|
330
|
+
- [ ] Product Hunt launch ready
|
|
331
|
+
|
|
332
|
+
### Month 3 Goals
|
|
333
|
+
- [ ] 50 free users
|
|
334
|
+
- [ ] 10 paying customers
|
|
335
|
+
- [ ] $500 MRR
|
|
336
|
+
- [ ] First enterprise conversation
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Go-To-Market Strategy
|
|
341
|
+
|
|
342
|
+
### Phase 1: Developer Adoption (Weeks 1-8)
|
|
343
|
+
1. **Dogfood it** - Use CodeImpact on GlassHire daily
|
|
344
|
+
2. **Twitter/X threads** - "I built a tool that catches AI hallucinations"
|
|
345
|
+
3. **Dev.to / Hashnode posts** - Tutorial-style content
|
|
346
|
+
4. **Reddit** - r/programming, r/webdev (no spam, genuine value)
|
|
347
|
+
|
|
348
|
+
### Phase 2: Launch (Week 8-10)
|
|
349
|
+
1. **Product Hunt** - Prepare assets, get hunter
|
|
350
|
+
2. **Hacker News** - "Show HN: CodeImpact - Safety net for AI-generated code"
|
|
351
|
+
3. **Direct outreach** - 20 CTOs/Engineering Managers on LinkedIn
|
|
352
|
+
|
|
353
|
+
### Phase 3: Enterprise (Month 3+)
|
|
354
|
+
1. **Case study** - Document one customer's savings
|
|
355
|
+
2. **Webinar** - "How we reduced CI time by 80%"
|
|
356
|
+
3. **Enterprise landing page** - Focus on security, compliance, ROI
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## The 5-Minute Demo Script
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
1. PROBLEM (30 sec)
|
|
364
|
+
"AI coding assistants are amazing, but they make mistakes.
|
|
365
|
+
They hallucinate imports, duplicate existing code, and ignore your patterns.
|
|
366
|
+
50% of AI-generated code has potential bugs."
|
|
367
|
+
|
|
368
|
+
2. SOLUTION (30 sec)
|
|
369
|
+
"CodeImpact is the safety net. It catches AI mistakes before they reach production."
|
|
370
|
+
|
|
371
|
+
3. DEMO: Import Validation (1 min)
|
|
372
|
+
- Show AI suggesting broken import
|
|
373
|
+
- Run `codeimpact verify`
|
|
374
|
+
- Show it catching the error + suggesting fix
|
|
375
|
+
|
|
376
|
+
4. DEMO: Duplicate Detection (1 min)
|
|
377
|
+
- Show AI writing new function
|
|
378
|
+
- Run `codeimpact verify`
|
|
379
|
+
- Show "similar function exists at src/utils/format.ts:23"
|
|
380
|
+
|
|
381
|
+
5. DEMO: Test Impact (1 min)
|
|
382
|
+
- Show changed file
|
|
383
|
+
- Run `codeimpact test-impact`
|
|
384
|
+
- Show "Run 8 tests instead of 234, save 26 minutes"
|
|
385
|
+
|
|
386
|
+
6. CLOSE (1 min)
|
|
387
|
+
"Works with Claude, Copilot, Cursor - any AI tool.
|
|
388
|
+
Runs locally, your code never leaves your machine.
|
|
389
|
+
Free tier available, Pro is $29/month.
|
|
390
|
+
Questions?"
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## What NOT To Do
|
|
396
|
+
|
|
397
|
+
1. **Don't build more features before validating** - You have enough
|
|
398
|
+
2. **Don't optimize prematurely** - Ship ugly, fix later
|
|
399
|
+
3. **Don't build enterprise features before enterprise customers** - They'll tell you what they need
|
|
400
|
+
4. **Don't spend weeks on the landing page** - Simple > Fancy
|
|
401
|
+
5. **Don't wait for "perfect"** - Ship at 80%, iterate
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
## Daily Checklist During Build Phase
|
|
406
|
+
|
|
407
|
+
- [ ] Did I ship something today?
|
|
408
|
+
- [ ] Did I talk to a potential user today?
|
|
409
|
+
- [ ] Did I write down what I learned?
|
|
410
|
+
- [ ] Is this feature helping close a sale?
|
|
411
|
+
|
|
412
|
+
---
|
|
413
|
+
|
|
414
|
+
## Summary
|
|
415
|
+
|
|
416
|
+
| What | When | Why |
|
|
417
|
+
|------|------|-----|
|
|
418
|
+
| Dead Code Detector | Week 1-2 | High wow factor, easy to build |
|
|
419
|
+
| Test Impact Analysis | Week 2-3 | Enterprise hook, measurable ROI |
|
|
420
|
+
| Blast Radius API | Week 3-4 | Risk prevention, enterprise value |
|
|
421
|
+
| Cost Dashboard | Week 4 | Justifies purchase |
|
|
422
|
+
| GitHub Integration | Week 5-6 | Fits workflow, visible to team |
|
|
423
|
+
| Complexity Hotspots | Week 7 | Planning tool for managers |
|
|
424
|
+
| Polish + Launch | Week 8 | First impressions matter |
|
|
425
|
+
|
|
426
|
+
**Total: 8 weeks to sellable product**
|
|
427
|
+
|
|
428
|
+
**Then: STOP BUILDING. START SELLING.**
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
*Created: March 2026*
|
|
433
|
+
*Goal: 10 paying customers by Month 3*
|