ctx-cc 3.1.0 → 3.3.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.
package/README.md CHANGED
@@ -13,9 +13,9 @@
13
13
 
14
14
  <img src="./assets/terminal.png" alt="CTX Terminal" width="700">
15
15
 
16
- **Task parallelization. Pre-commit review. Criteria auto-generation. Smart handoff. Issue tracker sync.**
16
+ **AI that learns your preferences. Predictive planning. Self-healing deployments. Voice control.**
17
17
 
18
- [Installation](#installation) · [Quick Start](#quick-start) · [New in 3.1](#new-in-31) · [Commands](#commands) · [Why CTX](#why-ctx)
18
+ [Installation](#installation) · [Quick Start](#quick-start) · [New in 3.3](#new-in-33) · [Commands](#commands) · [Why CTX](#why-ctx)
19
19
 
20
20
  </div>
21
21
 
@@ -53,7 +53,229 @@ npx ctx-cc --force # Overwrite existing installation
53
53
 
54
54
  ---
55
55
 
56
- ## New in 3.1
56
+ ## New in 3.3
57
+
58
+ ### Learning System
59
+ CTX learns from your codebase and preferences:
60
+
61
+ ```
62
+ [LEARNER] Applying 3 learned preferences
63
+
64
+ 1. Using Zod for validation
65
+ → Based on pattern P001 (95% confidence, 12 observations)
66
+
67
+ 2. Functional components only
68
+ → Based on decision D005 (explicit preference)
69
+
70
+ 3. Avoiding moment.js, using date-fns
71
+ → Based on failure F001 (bundle size)
72
+ ```
73
+
74
+ Memory stored in `.ctx/memory/`:
75
+ - `patterns.json` - Code patterns you prefer
76
+ - `decisions.json` - Past architectural decisions
77
+ - `failures.json` - What didn't work
78
+ - `preferences.json` - Communication style
79
+ - `conventions.json` - Naming and structure
80
+
81
+ Commands:
82
+ ```bash
83
+ /ctx learn # Show what CTX has learned
84
+ /ctx learn patterns # Show code patterns
85
+ /ctx learn decisions # Show architectural decisions
86
+ /ctx learn forget [id] # Remove a learned pattern
87
+ ```
88
+
89
+ ### Predictive Planning
90
+ AI suggests what to build next based on patterns:
91
+
92
+ ```
93
+ [PREDICT] Feature Suggestions for MyApp
94
+
95
+ Based on your e-commerce app at MVP stage:
96
+
97
+ 1. Cart Abandonment Recovery
98
+ ├─ ROI: 9/10
99
+ ├─ Effort: Medium (2-3 days)
100
+ └─ Impact: +15-25% recovered revenue
101
+
102
+ 2. Product Reviews & Ratings
103
+ ├─ ROI: 9/10
104
+ ├─ Effort: Low (1-2 days)
105
+ └─ Impact: +18% conversion rate
106
+
107
+ 3. Discount Codes System
108
+ ├─ ROI: 7/10
109
+ └─ Effort: Low (1 day)
110
+
111
+ [1] Create story [A] Create all [R] Research more
112
+ ```
113
+
114
+ Commands:
115
+ ```bash
116
+ /ctx predict # Full prediction analysis
117
+ /ctx predict --quick # Quick wins only (< 1 day)
118
+ /ctx predict --create [id] # Create story from suggestion
119
+ ```
120
+
121
+ ### Self-Healing Deployments
122
+ Monitor production errors and auto-fix:
123
+
124
+ ```bash
125
+ /ctx monitor connect sentry # Connect Sentry
126
+ /ctx monitor errors # List recent errors
127
+ /ctx monitor auto-fix [id] # Auto-fix with PR
128
+ /ctx monitor --watch # Continuous monitoring
129
+ ```
130
+
131
+ Auto-fix workflow:
132
+ ```
133
+ 1. Sentry reports: "TypeError in checkout.ts:45"
134
+ 2. CTX analyzes error pattern
135
+ 3. If safe pattern (null check, import, etc.):
136
+ → Auto-generates fix
137
+ → Runs tests
138
+ → Creates PR
139
+ → Notifies team
140
+ 4. If complex pattern:
141
+ → Creates fix story
142
+ → Assigns priority
143
+ → Provides context
144
+ ```
145
+
146
+ Supports: Sentry, LogRocket, Bugsnag, Datadog
147
+
148
+ ### Voice Control
149
+ Speak your requirements instead of typing:
150
+
151
+ ```bash
152
+ /ctx voice # Start voice input
153
+ /ctx voice --continuous # Always listening
154
+ /ctx voice --dictate # Long-form input
155
+ ```
156
+
157
+ ```
158
+ [VOICE] 🎤 Listening...
159
+
160
+ User: "Create a story for user authentication
161
+ with email login and forgot password"
162
+
163
+ [VOICE] Story created:
164
+
165
+ Title: User Authentication
166
+ Criteria:
167
+ ✓ User can login with email/password
168
+ ✓ Forgot password sends reset email
169
+ ✓ Session persists across browser
170
+
171
+ Add to PRD? [Y/n/edit]
172
+ ```
173
+
174
+ Supports: macOS Speech, Whisper (local), Google Speech, Azure
175
+
176
+ ---
177
+
178
+ ## From 3.2
179
+
180
+ ### Milestone Workflow
181
+ Full release management with audit, archive, and git tagging:
182
+ ```bash
183
+ /ctx milestone # Show current milestone status
184
+ /ctx milestone list # List all milestones
185
+ /ctx milestone audit # Verify milestone complete
186
+ /ctx milestone complete # Archive and create git tag
187
+ /ctx milestone new v2.0 # Start next version
188
+ /ctx milestone gaps # Generate fix phases for failures
189
+ ```
190
+
191
+ Features:
192
+ - Archive phases to `.ctx/archive/v{version}/`
193
+ - Auto-create git tags on complete
194
+ - Gap analysis for incomplete milestones
195
+ - Integration with Linear/Jira/GitHub
196
+
197
+ ### Team Collaboration
198
+ Multiple developers working with CTX on same repo:
199
+ ```
200
+ [TEAM] Current Activity
201
+
202
+ Active:
203
+ alice: T001 - User authentication (10m)
204
+ bob: T003 - API endpoints (waiting for T001)
205
+
206
+ Available:
207
+ charlie: idle
208
+ ```
209
+
210
+ Features:
211
+ - **File locking** - Prevent conflicts during execution
212
+ - **Lock expiry** - Auto-release after 1 hour
213
+ - **Conflict detection** - Fail fast on overlaps
214
+ - **Team notifications** - Slack/Discord on phase complete
215
+ - **Branch strategy** - Auto-create feature branches
216
+
217
+ ### Audit Trail (SOC2/HIPAA Compliance)
218
+ Complete traceability for enterprise:
219
+ ```bash
220
+ /ctx audit # Show today's summary
221
+ /ctx audit week # Weekly summary
222
+ /ctx audit export # Generate compliance report
223
+ ```
224
+
225
+ Every action logged:
226
+ ```json
227
+ {
228
+ "timestamp": "2024-01-20T09:30:00Z",
229
+ "action": "execute",
230
+ "story": "S001",
231
+ "agent": "ctx-executor",
232
+ "model": "claude-sonnet-4",
233
+ "tokens": {"input": 5000, "output": 2000},
234
+ "filesModified": ["src/auth/login.ts"],
235
+ "decisions": ["Use JWT for auth"],
236
+ "commit": "abc1234"
237
+ }
238
+ ```
239
+
240
+ Compliance features:
241
+ - Access logging (who read what)
242
+ - Decision tracking (with rationale)
243
+ - Change log (all modifications)
244
+ - Retention policies (90d daily, 1y weekly)
245
+ - SOC2, HIPAA, GDPR modes
246
+
247
+ ### Metrics Dashboard
248
+ Understand AI productivity impact:
249
+ ```bash
250
+ /ctx metrics # Overview dashboard
251
+ /ctx metrics cost # Cost analysis
252
+ /ctx metrics export # Export HTML dashboard
253
+ ```
254
+
255
+ ```
256
+ ╔══════════════════════════════════════════════════════════╗
257
+ ║ CTX METRICS - Week 3 ║
258
+ ╠══════════════════════════════════════════════════════════╣
259
+ ║ Stories/Week: 8 (+2) Total Cost: $4.87 ║
260
+ ║ Time/Story: 1h 45m Per Story: $0.61 ║
261
+ ║ Debug Loops: 12 Success Rate: 92% ║
262
+ ║ ║
263
+ ║ ROI: 30x (24 hours saved, $145 net savings) ║
264
+ ╚══════════════════════════════════════════════════════════╝
265
+ ```
266
+
267
+ Metrics tracked:
268
+ - Stories completed per day/week
269
+ - Average time per story
270
+ - Token usage by phase/model
271
+ - Cost analysis with ROI
272
+ - Debug loop frequency
273
+ - Verification success rate
274
+ - Human intervention rate
275
+
276
+ ---
277
+
278
+ ## From 3.1
57
279
 
58
280
  ### Intelligent Task Parallelization
59
281
  Tasks without dependencies run simultaneously:
@@ -285,6 +507,48 @@ Results synthesized into `SUMMARY.md`.
285
507
  | `/ctx integrate github` | Setup GitHub Issues |
286
508
  | `/ctx integrate --sync` | Sync all stories |
287
509
 
510
+ ### Milestone
511
+ | Command | Purpose |
512
+ |---------|---------|
513
+ | `/ctx milestone` | Show current milestone |
514
+ | `/ctx milestone list` | List all milestones |
515
+ | `/ctx milestone audit` | Verify completion |
516
+ | `/ctx milestone complete` | Archive and tag |
517
+ | `/ctx milestone new [name]` | Start next version |
518
+ | `/ctx milestone gaps` | Generate fix phases |
519
+
520
+ ### Metrics & Audit
521
+ | Command | Purpose |
522
+ |---------|---------|
523
+ | `/ctx metrics` | Show productivity dashboard |
524
+ | `/ctx metrics cost` | Cost analysis |
525
+ | `/ctx metrics export` | Export HTML dashboard |
526
+ | `/ctx audit` | Show audit summary |
527
+ | `/ctx audit export` | Generate compliance report |
528
+
529
+ ### Learning & Prediction
530
+ | Command | Purpose |
531
+ |---------|---------|
532
+ | `/ctx learn` | Show what CTX has learned |
533
+ | `/ctx learn patterns` | Show code patterns |
534
+ | `/ctx learn decisions` | Show architectural decisions |
535
+ | `/ctx learn forget [id]` | Remove a learned pattern |
536
+ | `/ctx predict` | Get feature suggestions |
537
+ | `/ctx predict --quick` | Quick wins only |
538
+ | `/ctx predict --create [id]` | Create story from suggestion |
539
+
540
+ ### Monitoring & Voice
541
+ | Command | Purpose |
542
+ |---------|---------|
543
+ | `/ctx monitor` | Show monitoring status |
544
+ | `/ctx monitor connect sentry` | Connect Sentry |
545
+ | `/ctx monitor errors` | List recent errors |
546
+ | `/ctx monitor auto-fix [id]` | Auto-fix with PR |
547
+ | `/ctx monitor --watch` | Continuous monitoring |
548
+ | `/ctx voice` | Start voice input |
549
+ | `/ctx voice --continuous` | Always listening mode |
550
+ | `/ctx voice --dictate` | Long-form dictation |
551
+
288
552
  ---
289
553
 
290
554
  ## State Machine
@@ -328,7 +592,7 @@ Smart handoff creates `HANDOFF.md` with:
328
592
 
329
593
  ---
330
594
 
331
- ## 14 Specialized Agents
595
+ ## 20 Specialized Agents
332
596
 
333
597
  | Agent | Spawned when | Model (balanced) |
334
598
  |-------|--------------|------------------|
@@ -348,6 +612,10 @@ Smart handoff creates `HANDOFF.md` with:
348
612
  | ctx-reviewer | before commit | sonnet |
349
613
  | ctx-criteria-suggester | during init/discuss | sonnet |
350
614
  | ctx-handoff | at context thresholds | haiku |
615
+ | ctx-team-coordinator | team mode | sonnet |
616
+ | ctx-auditor | always (background) | haiku |
617
+ | ctx-learner | observing patterns | haiku |
618
+ | ctx-predictor | after milestone/on demand | sonnet |
351
619
 
352
620
  ---
353
621
 
@@ -485,6 +753,6 @@ MIT
485
753
 
486
754
  **[GitHub](https://github.com/jufjuf/CTX)** · **[Issues](https://github.com/jufjuf/CTX/issues)** · **[npm](https://www.npmjs.com/package/ctx-cc)**
487
755
 
488
- *CTX 3.1 - Task parallelization. Pre-commit review. Smart handoff. Issue tracker sync.*
756
+ *CTX 3.3 - AI that learns your preferences. Predictive planning. Self-healing. Voice control.*
489
757
 
490
758
  </div>