@boshu2/vibe-check 1.8.0 → 1.8.1

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.
Files changed (36) hide show
  1. package/CLAUDE.md +58 -0
  2. package/Makefile +43 -6
  3. package/README.md +80 -27
  4. package/dist/commands/session.d.ts +9 -0
  5. package/dist/commands/session.d.ts.map +1 -1
  6. package/dist/commands/session.js +57 -0
  7. package/dist/commands/session.js.map +1 -1
  8. package/dist/commands/watch.d.ts.map +1 -1
  9. package/dist/commands/watch.js +76 -0
  10. package/dist/commands/watch.js.map +1 -1
  11. package/dist/inner-loop/context-amnesia.d.ts +20 -0
  12. package/dist/inner-loop/context-amnesia.d.ts.map +1 -0
  13. package/dist/inner-loop/context-amnesia.js +249 -0
  14. package/dist/inner-loop/context-amnesia.js.map +1 -0
  15. package/dist/inner-loop/index.d.ts +39 -0
  16. package/dist/inner-loop/index.d.ts.map +1 -0
  17. package/dist/inner-loop/index.js +208 -0
  18. package/dist/inner-loop/index.js.map +1 -0
  19. package/dist/inner-loop/instruction-drift.d.ts +28 -0
  20. package/dist/inner-loop/instruction-drift.d.ts.map +1 -0
  21. package/dist/inner-loop/instruction-drift.js +260 -0
  22. package/dist/inner-loop/instruction-drift.js.map +1 -0
  23. package/dist/inner-loop/logging-only.d.ts +30 -0
  24. package/dist/inner-loop/logging-only.d.ts.map +1 -0
  25. package/dist/inner-loop/logging-only.js +264 -0
  26. package/dist/inner-loop/logging-only.js.map +1 -0
  27. package/dist/inner-loop/tests-passing-lie.d.ts +34 -0
  28. package/dist/inner-loop/tests-passing-lie.d.ts.map +1 -0
  29. package/dist/inner-loop/tests-passing-lie.js +213 -0
  30. package/dist/inner-loop/tests-passing-lie.js.map +1 -0
  31. package/dist/inner-loop/types.d.ts +111 -0
  32. package/dist/inner-loop/types.d.ts.map +1 -0
  33. package/dist/inner-loop/types.js +29 -0
  34. package/dist/inner-loop/types.js.map +1 -0
  35. package/docs/FEATURES.md +340 -0
  36. package/package.json +1 -1
@@ -0,0 +1,340 @@
1
+ # vibe-check: Feature Guide
2
+
3
+ **Measure AI-assisted development sessions**
4
+
5
+ ---
6
+
7
+ ## What is Vibe-Coding?
8
+
9
+ Vibe-coding is a methodology for AI-assisted software development that emphasizes:
10
+
11
+ 1. **Conscious calibration** - Knowing when to trust AI output and when to verify
12
+ 2. **Metric-driven feedback** - Measuring patterns, not productivity
13
+ 3. **Self-awareness** - Recognizing spirals before they consume hours
14
+ 4. **Progressive mastery** - Building trust through demonstrated accuracy
15
+
16
+ The core insight: **AI assistance varies in reliability by task type.** Formatting code? Nearly 100% trustworthy. Designing authentication architecture? Maybe 20%. Vibe-coding gives you a framework to calibrate your verification effort appropriately.
17
+
18
+ ---
19
+
20
+ ## The Five Core Metrics
21
+
22
+ | Metric | Question | Elite | Needs Work |
23
+ |--------|----------|-------|------------|
24
+ | **Trust Pass Rate** | What % of commits don't need immediate fixes? | >95% | <80% |
25
+ | **Rework Ratio** | What % of commits are fixes vs. new work? | <30% | >50% |
26
+ | **Debug Spiral Count** | How many fix-chain spirals detected? | 0 | 3+ |
27
+ | **Debug Spiral Duration** | How long stuck in fix loops? | <15min | >45min |
28
+ | **Flow Efficiency** | What % of time is productive building? | >90% | <70% |
29
+
30
+ These metrics are **semantic-free** - they measure git patterns, not code content. This prevents gaming and ensures honest signal.
31
+
32
+ ---
33
+
34
+ ## Vibe Levels
35
+
36
+ Before starting work, classify the task:
37
+
38
+ | Level | Name | Trust AI | Verification | Example Tasks |
39
+ |-------|------|----------|--------------|---------------|
40
+ | **5** | Full Automation | 95% | Final only | Formatting, linting, boilerplate |
41
+ | **4** | High Trust | 80% | Spot check | CRUD, simple features |
42
+ | **3** | Balanced | 60% | Key outputs | Standard features, tests |
43
+ | **2** | Careful | 40% | Every change | API integrations, complex logic |
44
+ | **1** | Skeptical | 20% | Every line | Architecture, security, auth |
45
+ | **0** | Manual | 0% | N/A | Novel research, exploration |
46
+
47
+ **The insight:** Declaring a level upfront forces conscious calibration. After the session, compare actual metrics to expected - this builds intuition over time.
48
+
49
+ ---
50
+
51
+ ## vibe-check: The Tool
52
+
53
+ `vibe-check` is a CLI tool that analyzes git history and provides immediate feedback on your coding patterns.
54
+
55
+ ### Installation
56
+
57
+ ```bash
58
+ npm install -g @boshu2/vibe-check
59
+ ```
60
+
61
+ Or run directly:
62
+
63
+ ```bash
64
+ npx @boshu2/vibe-check
65
+ ```
66
+
67
+ ### Core Commands
68
+
69
+ ```bash
70
+ # Basic analysis
71
+ vibe-check --since "1 week ago"
72
+
73
+ # Real-time monitoring
74
+ vibe-check watch
75
+
76
+ # Your profile (gamification)
77
+ vibe-check profile
78
+
79
+ # Start a tracked session
80
+ vibe-check start --level 3
81
+ ```
82
+
83
+ ---
84
+
85
+ ## Feature Overview (v1.7.0)
86
+
87
+ ### 1. Metrics Engine
88
+
89
+ The core analysis engine examines git history to compute:
90
+
91
+ - **Trust Pass Rate**: Commits without immediate fix follow-ups
92
+ - **Rework Ratio**: Proportion of fix/revert commits
93
+ - **Debug Spirals**: Consecutive fix commits on same component
94
+ - **VibeScore**: Weighted composite (0-100%)
95
+
96
+ Output example:
97
+ ```
98
+ VIBE-CHECK Nov 21 - Nov 28
99
+
100
+ Rating: ELITE
101
+ Trust: 94% ELITE
102
+ Rework: 18% ELITE
103
+ Spirals: 1 detected (12 min)
104
+
105
+ VibeScore: 87%
106
+ ```
107
+
108
+ ### 2. Watch Mode
109
+
110
+ Real-time spiral detection while you work:
111
+
112
+ ```bash
113
+ vibe-check watch
114
+ ```
115
+
116
+ Monitors commits and alerts when patterns indicate a spiral forming:
117
+
118
+ ```
119
+ 09:15 fix(auth) handle token refresh
120
+ 09:18 fix(auth) add retry logic
121
+ 09:22 fix(auth) increase timeout
122
+
123
+ SPIRAL DETECTED
124
+ Component: auth
125
+ Fixes: 3 commits, 7 min
126
+ ```
127
+
128
+ ### 3. Session Integration
129
+
130
+ Track sessions with baseline comparison:
131
+
132
+ ```bash
133
+ vibe-check session start --level 3 # Start session
134
+ vibe-check session status # Check active session
135
+ vibe-check session end --format json # End and get metrics
136
+ ```
137
+
138
+ Output includes failure pattern detection for AgentOps integration.
139
+
140
+ ---
141
+
142
+ ## Gamification System
143
+
144
+ vibe-check includes a complete gamification layer to make improvement engaging:
145
+
146
+ ### XP & Levels
147
+
148
+ ```
149
+ Level 1: Novice (0-100 XP) 🌱
150
+ Level 2: Apprentice (100-300 XP) 🌿
151
+ Level 3: Practitioner (300-600 XP) 🌳
152
+ Level 4: Expert (600-1000 XP) 🌲
153
+ Level 5: Master (1000-2000 XP) 🎋
154
+ Level 6: Grandmaster (2000-5000 XP) 🏔️
155
+ ```
156
+
157
+ **Prestige tiers** (beyond Grandmaster):
158
+ - Archmage (5000+ XP) 🔮
159
+ - Sage (10000+ XP) 📿
160
+ - Zenmester (20000+ XP) ☯️
161
+ - Transcendent (40000+ XP) 🌟
162
+ - Legendary (80000+ XP) 💫
163
+
164
+ ### Streaks
165
+
166
+ Daily check-ins build streaks with visual progression:
167
+
168
+ ```
169
+ 🔥 5-day streak (1-5 days)
170
+ 🌟🌟 12-day streak (6-14 days)
171
+ 👑👑👑 18-day streak 🏆 (15+ days, Personal Best!)
172
+ ```
173
+
174
+ Streak freezes protect against occasional missed days.
175
+
176
+ ### Achievements (19 total)
177
+
178
+ Categories:
179
+ - **Consistency**: First Blood, Week Warrior, Streak Master
180
+ - **Quality**: Elite Vibes, Trust Builder, Zen Master
181
+ - **Volume**: Centurion, Marathon Coder
182
+ - **Improvement**: Comeback Kid, On Fire
183
+ - **Special**: Night Owl, Early Bird, Weekend Warrior
184
+
185
+ ---
186
+
187
+ ## Integration Points
188
+
189
+ ### Git Hook
190
+
191
+ Automatic vibe-check on every push:
192
+
193
+ ```bash
194
+ vibe-check init-hook # Install hook
195
+ vibe-check init-hook --block-low # Block LOW pushes
196
+ ```
197
+
198
+ ### GitHub Action
199
+
200
+ Automated PR feedback:
201
+
202
+ ```yaml
203
+ name: Vibe Check
204
+ on: [pull_request]
205
+
206
+ jobs:
207
+ vibe-check:
208
+ runs-on: ubuntu-latest
209
+ steps:
210
+ - uses: actions/checkout@v4
211
+ with:
212
+ fetch-depth: 0
213
+ - uses: boshu2/vibe-check@v1
214
+ with:
215
+ github-token: ${{ secrets.GITHUB_TOKEN }}
216
+ ```
217
+
218
+ ### JSON Output
219
+
220
+ Machine-readable for dashboards/CI:
221
+
222
+ ```bash
223
+ vibe-check --format json --output vibe-results.json
224
+ ```
225
+
226
+ ---
227
+
228
+ ## The Workflow
229
+
230
+ ### Daily Practice
231
+
232
+ ```
233
+ Morning:
234
+ 1. vibe-check profile # Check streak, challenges
235
+ 2. Plan tasks, estimate levels
236
+
237
+ During work:
238
+ 3. vibe-check watch # Real-time monitoring
239
+ 4. Notice spiral alerts, intervene early
240
+
241
+ End of session:
242
+ 5. vibe-check --since "today" # Review session
243
+ 6. XP/achievements auto-update
244
+ ```
245
+
246
+ ### Session Workflow (Optional)
247
+
248
+ For explicit tracking:
249
+
250
+ ```bash
251
+ # Before: declare expectation
252
+ vibe-check start --level 3
253
+
254
+ # ... work ...
255
+
256
+ # After: compare reality
257
+ vibe-check --since "1 hour ago"
258
+ ```
259
+
260
+ The tool will show whether your level classification was accurate.
261
+
262
+ ---
263
+
264
+ ## Philosophy
265
+
266
+ ### What vibe-check IS
267
+
268
+ - A self-reflection tool
269
+ - A pattern detector
270
+ - A gamified improvement system
271
+ - A calibration feedback loop
272
+
273
+ ### What vibe-check IS NOT
274
+
275
+ - A productivity metric
276
+ - A performance review tool
277
+ - A surveillance system
278
+ - A judgment of AI effectiveness
279
+
280
+ **Use it for yourself, not for measuring others.**
281
+
282
+ ---
283
+
284
+ ## The Science
285
+
286
+ vibe-check uses **semantic-free signals** - patterns in git history that indicate workflow health without reading code content. This approach:
287
+
288
+ 1. **Can't be gamed** - You can't fake commit timestamps
289
+ 2. **Respects privacy** - Never reads actual code
290
+ 3. **Is universal** - Works for any language/framework
291
+ 4. **Provides honest signal** - Measures behavior, not intention
292
+
293
+ The VibeScore combines metrics using validated weights derived from empirical analysis of productive vs. struggling sessions.
294
+
295
+ ---
296
+
297
+ ## Future Roadmap
298
+
299
+ | Phase | Status | Description |
300
+ |-------|--------|-------------|
301
+ | CLI Core | ✅ Complete | Metrics, scoring, analysis |
302
+ | Gamification | ✅ Complete | XP, streaks, achievements |
303
+ | Watch Mode | ✅ Complete | Real-time spiral detection |
304
+ | GitHub Action | ✅ Complete | Automated PR feedback |
305
+ | Session Integration | ✅ Complete | AgentOps integration |
306
+ | Visual Dashboard | ✅ Complete | HTML dashboard with charts |
307
+ | VS Code Extension | 🔮 Planned | Status bar, live alerts |
308
+
309
+ ---
310
+
311
+ ## Getting Started
312
+
313
+ ```bash
314
+ # Install
315
+ npm install -g @boshu2/vibe-check
316
+
317
+ # Run your first check
318
+ vibe-check --since "1 week ago"
319
+
320
+ # See your profile
321
+ vibe-check profile
322
+
323
+ # Start watching
324
+ vibe-check watch
325
+ ```
326
+
327
+ ---
328
+
329
+ ## Resources
330
+
331
+ - **npm**: [@boshu2/vibe-check](https://www.npmjs.com/package/@boshu2/vibe-check)
332
+ - **GitHub**: [boshu2/vibe-check](https://github.com/boshu2/vibe-check)
333
+ - **Issues**: [Report bugs or request features](https://github.com/boshu2/vibe-check/issues)
334
+
335
+ ---
336
+
337
+ *"The goal isn't perfect metrics. It's conscious awareness of your patterns."*
338
+
339
+ **Version:** 1.7.0
340
+ **Last Updated:** 2025-12-02
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boshu2/vibe-check",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Track git commit patterns during AI-assisted coding (experimental)",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {