olympus-ai 3.4.1 → 3.6.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.
Files changed (94) hide show
  1. package/README.md +640 -630
  2. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts +7 -0
  3. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts.map +1 -0
  4. package/dist/__tests__/workflow-engine/checkpoint.test.js +373 -0
  5. package/dist/__tests__/workflow-engine/checkpoint.test.js.map +1 -0
  6. package/dist/agents/definitions.d.ts.map +1 -1
  7. package/dist/agents/definitions.js +8 -0
  8. package/dist/agents/definitions.js.map +1 -1
  9. package/dist/agents/idea-intake.d.ts +20 -0
  10. package/dist/agents/idea-intake.d.ts.map +1 -0
  11. package/dist/agents/idea-intake.js +255 -0
  12. package/dist/agents/idea-intake.js.map +1 -0
  13. package/dist/agents/index.d.ts +4 -0
  14. package/dist/agents/index.d.ts.map +1 -1
  15. package/dist/agents/index.js +4 -0
  16. package/dist/agents/index.js.map +1 -1
  17. package/dist/agents/intent-generator.d.ts +19 -0
  18. package/dist/agents/intent-generator.d.ts.map +1 -0
  19. package/dist/agents/intent-generator.js +303 -0
  20. package/dist/agents/intent-generator.js.map +1 -0
  21. package/dist/agents/prd-writer.d.ts +19 -0
  22. package/dist/agents/prd-writer.d.ts.map +1 -0
  23. package/dist/agents/prd-writer.js +236 -0
  24. package/dist/agents/prd-writer.js.map +1 -0
  25. package/dist/agents/prometheus.d.ts.map +1 -1
  26. package/dist/agents/prometheus.js +96 -2
  27. package/dist/agents/prometheus.js.map +1 -1
  28. package/dist/agents/spec-writer.d.ts +19 -0
  29. package/dist/agents/spec-writer.d.ts.map +1 -0
  30. package/dist/agents/spec-writer.js +528 -0
  31. package/dist/agents/spec-writer.js.map +1 -0
  32. package/dist/config/loader.d.ts +1 -1
  33. package/dist/config/loader.d.ts.map +1 -1
  34. package/dist/config/loader.js +2 -3
  35. package/dist/config/loader.js.map +1 -1
  36. package/dist/features/index.d.ts +1 -0
  37. package/dist/features/index.d.ts.map +1 -1
  38. package/dist/features/index.js +6 -0
  39. package/dist/features/index.js.map +1 -1
  40. package/dist/features/workflow-engine/artifacts.d.ts +96 -0
  41. package/dist/features/workflow-engine/artifacts.d.ts.map +1 -0
  42. package/dist/features/workflow-engine/artifacts.js +399 -0
  43. package/dist/features/workflow-engine/artifacts.js.map +1 -0
  44. package/dist/features/workflow-engine/checkpoint.d.ts +67 -0
  45. package/dist/features/workflow-engine/checkpoint.d.ts.map +1 -0
  46. package/dist/features/workflow-engine/checkpoint.js +249 -0
  47. package/dist/features/workflow-engine/checkpoint.js.map +1 -0
  48. package/dist/features/workflow-engine/engine.d.ts +125 -0
  49. package/dist/features/workflow-engine/engine.d.ts.map +1 -0
  50. package/dist/features/workflow-engine/engine.js +1354 -0
  51. package/dist/features/workflow-engine/engine.js.map +1 -0
  52. package/dist/features/workflow-engine/execution.d.ts +99 -0
  53. package/dist/features/workflow-engine/execution.d.ts.map +1 -0
  54. package/dist/features/workflow-engine/execution.js +493 -0
  55. package/dist/features/workflow-engine/execution.js.map +1 -0
  56. package/dist/features/workflow-engine/hooks.d.ts +78 -0
  57. package/dist/features/workflow-engine/hooks.d.ts.map +1 -0
  58. package/dist/features/workflow-engine/hooks.js +188 -0
  59. package/dist/features/workflow-engine/hooks.js.map +1 -0
  60. package/dist/features/workflow-engine/index.d.ts +17 -0
  61. package/dist/features/workflow-engine/index.d.ts.map +1 -0
  62. package/dist/features/workflow-engine/index.js +19 -0
  63. package/dist/features/workflow-engine/index.js.map +1 -0
  64. package/dist/features/workflow-engine/types.d.ts +220 -0
  65. package/dist/features/workflow-engine/types.d.ts.map +1 -0
  66. package/dist/features/workflow-engine/types.js +8 -0
  67. package/dist/features/workflow-engine/types.js.map +1 -0
  68. package/dist/features/workflow-engine/validation.d.ts +128 -0
  69. package/dist/features/workflow-engine/validation.d.ts.map +1 -0
  70. package/dist/features/workflow-engine/validation.js +746 -0
  71. package/dist/features/workflow-engine/validation.js.map +1 -0
  72. package/dist/hooks/ascent-verifier/index.d.ts +52 -0
  73. package/dist/hooks/ascent-verifier/index.d.ts.map +1 -1
  74. package/dist/hooks/ascent-verifier/index.js +146 -0
  75. package/dist/hooks/ascent-verifier/index.js.map +1 -1
  76. package/dist/hooks/registrations/learning-capture.d.ts.map +1 -1
  77. package/dist/hooks/registrations/learning-capture.js +32 -9
  78. package/dist/hooks/registrations/learning-capture.js.map +1 -1
  79. package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -1
  80. package/dist/hooks/registrations/user-prompt-submit.js +85 -0
  81. package/dist/hooks/registrations/user-prompt-submit.js.map +1 -1
  82. package/dist/installer/index.d.ts.map +1 -1
  83. package/dist/installer/index.js +310 -1
  84. package/dist/installer/index.js.map +1 -1
  85. package/dist/learning/session-state.d.ts.map +1 -1
  86. package/dist/learning/session-state.js +17 -0
  87. package/dist/learning/session-state.js.map +1 -1
  88. package/dist/learning/types.d.ts +3 -0
  89. package/dist/learning/types.d.ts.map +1 -1
  90. package/dist/shared/types.d.ts +17 -0
  91. package/dist/shared/types.d.ts.map +1 -1
  92. package/package.json +3 -1
  93. package/scripts/dist/hooks/olympus-hooks.cjs +762 -97
  94. package/scripts/rebrand.mjs +0 -206
package/README.md CHANGED
@@ -1,630 +1,640 @@
1
- <div align="center">
2
-
3
- # ⚡ Olympus
4
-
5
- ### Multi-Agent Orchestration for Claude Code
6
-
7
- [![npm version](https://img.shields.io/npm/v/olympus-ai.svg)](https://www.npmjs.com/package/olympus-ai)
8
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
- [![Agents](https://img.shields.io/badge/Agents-20+-blue)](https://github.com/mikev10/olympus)
10
- [![Build Status](https://img.shields.io/github/actions/workflow/status/mikev10/olympus/claude.yml)](https://github.com/mikev10/olympus/actions)
11
-
12
- **Summon the gods of code.**
13
-
14
- [Why Olympus?](#why-olympus) • [Quick Start](#quick-start) • [Self-Learning](#self-learning-system) • [Use Cases](#use-cases) • [Agents](#available-agents) • [Docs](#documentation)
15
-
16
- </div>
17
-
18
- ---
19
-
20
- ## What is Olympus?
21
-
22
- Olympus is a multi-agent orchestration system for [Claude Code](https://docs.anthropic.com/claude-code). It provides:
23
-
24
- - 🧠 **Self-Learning System** - Learns your preferences, patterns, and codebase over time
25
- - 🤖 **20+ Specialized Agents** - Oracle, Prometheus, Olympian, Librarian, and more
26
- - ⚡ **Smart Model Routing** - Auto-selects Haiku/Sonnet/Opus based on task complexity
27
- - 📋 **Todo Management** - Tracks progress with real-time updates
28
- - 🔄 **Background Execution** - Long-running tasks run async with notifications
29
- - 🎯 **Continuation Enforcement** - Never stops until all tasks are complete
30
- - 💬 **13+ Slash Commands** - `/ultrawork`, `/plan`, `/ascent`, and more
31
- - 🔮 **Magic Keywords** - Natural language triggers for enhanced modes
32
-
33
- ---
34
-
35
- ## Why Olympus?
36
-
37
- Olympus transforms Claude Code from a single agent into a **pantheon of specialized experts** that work together seamlessly.
38
-
39
- ### 🧠 Self-Learning System
40
-
41
- **Olympus learns from your preferences and evolves over time.**
42
-
43
- - **Active Agent Learning** - Agents proactively record patterns, gotchas, and workarounds they discover during work
44
- - **Passive Feedback Capture** - Automatically detects corrections, preferences, and patterns from your interactions
45
- - **Pattern Extraction** - Identifies recurring feedback and adapts behavior accordingly
46
- - **Preference Learning** - Infers your communication style (concise vs. detailed, autonomous vs. collaborative)
47
- - **Agent Performance Tracking** - Monitors which agents succeed or fail for specific tasks
48
- - **Token Efficiency Tracking** - Automatically tracks token usage per agent to optimize cost without manual intervention
49
- - **Discovery Storage** - Structured JSONL storage with verification tracking and confidence scoring
50
- - **Context Injection** - Learned preferences and discoveries are automatically applied in new sessions
51
-
52
- **The more you use Olympus, the better it understands your workflow.**
53
-
54
- ### ⚡ Intelligent Orchestration
55
-
56
- - **Smart Delegation** - Routes tasks to specialized agents based on complexity
57
- - **Model Routing** - Automatically selects Haiku/Sonnet/Opus to optimize cost and performance
58
- - **Parallel Execution** - Runs independent tasks concurrently for maximum throughput
59
-
60
- ### 🎯 Continuous Delivery
61
-
62
- - **Todo Management** - Tracks progress across complex multi-step tasks
63
- - **Continuation Enforcement** - Never stops until all tasks are verified complete
64
- - **Background Operations** - Long-running builds, tests, and installs run async with notifications
65
-
66
- ### 🔧 Developer Experience
67
-
68
- - **Zero Configuration** - Works out-of-the-box with sensible defaults
69
- - **Slash Commands** - 13+ productivity commands (`/ultrawork`, `/plan`, `/ascent`)
70
- - **Magic Keywords** - Natural language triggers for enhanced modes
71
-
72
- ### 📊 Olympus vs. Manual Claude Usage
73
-
74
- | Feature | Manual Claude | Olympus |
75
- |---------|---------------|---------|
76
- | **Multi-Step Tasks** | Sequential, manual tracking | Automatic todo management |
77
- | **Parallel Execution** | One task at a time | 3-5x faster with concurrent agents |
78
- | **Learning** | Repeats mistakes | Learns from corrections automatically |
79
- | **Model Selection** | Manual switching | Smart routing (cost optimized) |
80
- | **Task Persistence** | Stops when asked | Continues until verified complete |
81
- | **Background Tasks** | Blocks waiting | Runs async with notifications |
82
- | **Agent Specialization** | Generic responses | 20+ experts for specific domains |
83
- | **Token Awareness** | Manual tracking | Automatic efficiency guidance |
84
-
85
- ---
86
-
87
- ## Quick Start
88
-
89
- Get started in under 60 seconds:
90
-
91
- ```bash
92
- # Install globally
93
- npm install -g olympus-ai
94
-
95
- # Initialize Olympus
96
- olympus-ai install
97
-
98
- # Start Claude Code
99
- claude
100
-
101
- # Try it out
102
- /olympus implement a REST API for user management
103
- ```
104
-
105
- **That's it.** Olympus is now active and learning from your interactions.
106
-
107
- ---
108
-
109
- ## Installation
110
-
111
- ### Global Installation (Recommended)
112
-
113
- Install Olympus globally to use across all projects:
114
-
115
- ```bash
116
- npm install -g olympus-ai
117
- olympus-ai install
118
- ```
119
-
120
- This installs agents, commands, and hooks to `~/.claude/`.
121
-
122
- ### Local Project Installation
123
-
124
- Install Olympus for a specific project only:
125
-
126
- ```bash
127
- npm install -g olympus-ai
128
- olympus-ai install --local
129
- ```
130
-
131
- This installs to `./.claude/` in your current project directory.
132
-
133
- ---
134
-
135
- ## Usage
136
-
137
- ### Start Claude Code
138
-
139
- ```bash
140
- claude
141
- ```
142
-
143
- ### Slash Commands
144
-
145
- | Command | Description |
146
- | ----------------------- | ---------------------------------------------------------------------- |
147
- | `/olympus <task>` | Activate multi-agent orchestration mode |
148
- | `/olympus-default` | Set Olympus as your permanent default mode |
149
- | `/ultrawork <task>` | Maximum performance mode with parallel agents |
150
- | `/plan <description>` | Start planning session with Prometheus |
151
- | `/prometheus <task>` | Strategic planning with interview workflow |
152
- | `/review [plan-path]` | Review a plan with Momus |
153
- | `/ascent <task>` | Persistence loop until task completion |
154
- | `/cancel-ascent` | Cancel active The Ascent |
155
- | `/deepsearch <query>` | Thorough multi-strategy codebase search |
156
- | `/analyze <target>` | Deep analysis and investigation |
157
- | `/complete-plan [path]` | Verify and complete a plan after implementation |
158
- | `/doctor` | Diagnose and fix olympus installation issues |
159
- | `/deepinit` | Deep codebase initialization with hierarchical AGENTS.md documentation |
160
- | `/update` | Check for and install updates |
161
-
162
- ### Examples
163
-
164
- ```bash
165
- # Activate Olympus for a task
166
- /olympus refactor the authentication module
167
-
168
- # Set as default mode (persistent)
169
- /olympus-default
170
-
171
- # Use ultrawork for maximum performance
172
- /ultrawork implement user dashboard with charts
173
-
174
- # Start planning
175
- /plan build a task management application
176
-
177
- # Deep search
178
- /deepsearch API endpoints that handle user data
179
- ```
180
-
181
- ### Magic Keywords
182
-
183
- Include these words anywhere in your prompt to activate enhanced modes:
184
-
185
- | Keyword | Effect |
186
- | -------------------------- | -------------------------------------- |
187
- | `ultrawork`, `ulw`, `uw` | Activates parallel agent orchestration |
188
- | `search`, `find`, `locate` | Enhanced search mode |
189
- | `analyze`, `investigate` | Deep analysis mode |
190
-
191
- ---
192
-
193
- ## Use Cases
194
-
195
- ### 🏗️ Complex Refactoring
196
-
197
- ```bash
198
- /ascent refactor the entire authentication module to use OAuth 2.0
199
- ```
200
-
201
- **What happens:**
202
- - Creates todo list for all subtasks
203
- - Delegates to specialized agents (Oracle for architecture, Olympian for execution)
204
- - Runs tests in background
205
- - Continues until all tasks verified complete
206
-
207
- ### 📊 Multi-Agent Research
208
-
209
- ```bash
210
- /ultrawork research and document all API endpoints in the codebase
211
- ```
212
-
213
- **What happens:**
214
- - Spawns multiple agents in parallel (Explore for search, Librarian for docs)
215
- - Aggregates findings
216
- - Generates comprehensive documentation
217
- - ~3x faster than sequential execution
218
-
219
- ### 📋 Strategic Planning
220
-
221
- ```bash
222
- /plan build a real-time chat application with WebSocket support
223
- ```
224
-
225
- **What happens:**
226
- - Prometheus interviews you about requirements
227
- - Creates detailed work plan with phases
228
- - Identifies dependencies and risks
229
- - Saves plan to `.olympus/plans/` for execution
230
-
231
- ### 🧠 Learning Your Workflow
232
-
233
- **Automatic - no command needed**
234
-
235
- You: "No, use TypeScript interfaces instead of types"
236
- Olympus records this preference
237
-
238
- You: "Use functional components, not class components"
239
- → Olympus learns your React style
240
-
241
- **Next session:** Claude automatically applies these preferences without being told.
242
-
243
- ---
244
-
245
- ## Architecture
246
-
247
- Olympus operates as a three-tier orchestration system with a continuous learning loop:
248
-
249
- ```mermaid
250
- graph TD
251
- A[User Request] --> B[Orchestrator]
252
- B --> C{Task Analysis}
253
- C -->|Simple| D[Haiku Agent]
254
- C -->|Standard| E[Sonnet Agent]
255
- C -->|Complex| F[Opus Agent]
256
- D --> G[Learning System]
257
- E --> G
258
- F --> G
259
- G --> H[Feedback Storage]
260
- H -.->|Next Session| B
261
- B --> I[Todo Manager]
262
- I --> J[Background Executor]
263
- J --> K[Result]
264
- ```
265
-
266
- ### How It Works
267
-
268
- **Current Session Flow:**
269
- 1. **User Request** → Arrives with learned context already injected at SessionStart
270
- 2. **Orchestrator** → Analyzes task complexity and delegates to appropriate agents
271
- 3. **Model Router** → Selects Haiku (simple), Sonnet (standard), or Opus (complex)
272
- 4. **Agents Execute** → Specialized agents complete their tasks
273
- 5. **Learning System** → Passively captures feedback from corrections, preferences, and patterns
274
- 6. **Feedback Storage** → Stores learned preferences, agent performance, and discoveries
275
- 7. **Result** User sees the completed work
276
-
277
- **Learning & Context Injection (Between Sessions):**
278
-
279
- The learning system operates across session boundaries:
280
-
281
- - **During Session**: Captures feedback from user corrections ("No, use async/await"), preferences ("Always use TypeScript"), and agent discoveries (gotchas, workarounds)
282
- - **Storage**: Writes to `~/.claude/olympus/learning/` (global) and `.olympus/learning/` (project-specific)
283
- - **Next Session Start**: SessionStart hook automatically injects learned context into the initial prompt
284
- - **Context Types Injected**:
285
- - User preferences (verbosity, autonomy, explicit rules)
286
- - Recurring corrections (mistakes to avoid)
287
- - Project conventions (tech stack, patterns)
288
- - Agent performance notes (weak areas to watch)
289
- - Recent discoveries (technical insights about your codebase)
290
-
291
- **Key Insight:** Context injection happens at the **beginning** of each session (via SessionStart hook), not in the result. This means every new conversation starts with Claude already aware of your preferences and past learnings.
292
-
293
- **Key Components:**
294
- - **Orchestrator** - Delegates tasks to specialized agents based on complexity
295
- - **Model Router** - Selects optimal tier (Haiku/Sonnet/Opus) to balance cost and capability
296
- - **Learning System** - Captures feedback passively and builds preference models
297
- - **Todo Manager** - Tracks multi-step task progress with real-time status updates
298
- - **Background Executor** - Runs long-running operations (builds, tests, installs) async with notifications
299
- - **Feedback Storage** - Persists learned preferences, patterns, and discoveries across sessions
300
-
301
- ---
302
-
303
- ## Available Agents
304
-
305
- ### Task Execution
306
-
307
- | Agent | Model | Best For |
308
- | --------------------- | ------ | -------------------------------------------------------------- |
309
- | **Oracle** | Opus | Complex debugging, architecture decisions, root cause analysis |
310
- | **Librarian** | Sonnet | Finding documentation, understanding code organization |
311
- | **Explore** | Haiku | Quick file searches, pattern matching, reconnaissance |
312
- | **Frontend Engineer** | Sonnet | UI components, styling, accessibility |
313
- | **Document Writer** | Haiku | README files, API docs, code comments |
314
- | **Multimodal Looker** | Sonnet | Analyzing screenshots, diagrams, mockups |
315
- | **QA Tester** | Sonnet | Interactive CLI/service testing with tmux |
316
- | **Olympian** | Sonnet | Focused task execution, direct implementation |
317
-
318
- ### Planning & Review
319
-
320
- | Agent | Model | Best For |
321
- | -------------- | ----- | ----------------------------------------------------------------- |
322
- | **Prometheus** | Opus | Strategic planning, work plans, requirement gathering |
323
- | **Momus** | Opus | Critical plan review, feasibility assessment, risk identification |
324
- | **Metis** | Opus | Pre-planning analysis, hidden requirement detection |
325
-
326
- ### Tiered Variants (Smart Model Routing)
327
-
328
- | Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |
329
- | ------------- | ----------------------- | ------------------- | ------------------------ |
330
- | **Analysis** | `oracle-low` | `oracle-medium` | `oracle` |
331
- | **Execution** | `olympian-low` | `olympian` | `olympian-high` |
332
- | **Search** | `explore` | `explore-medium` | - |
333
- | **Research** | `librarian-low` | `librarian` | - |
334
- | **Frontend** | `frontend-engineer-low` | `frontend-engineer` | `frontend-engineer-high` |
335
-
336
- ---
337
-
338
- ## The Ascent
339
-
340
- The Ascent is a persistence loop that binds Claude to your task until verified completion.
341
-
342
- ```bash
343
- /ascent implement the entire authentication system
344
- ```
345
-
346
- **How it works:**
347
-
348
- 1. Creates a todo list for all subtasks
349
- 2. Works continuously until all tasks complete
350
- 3. Can only exit by outputting `<promise>DONE</promise>` after verification
351
- 4. If stopped prematurely, continuation is enforced
352
-
353
- **Exit conditions:**
354
-
355
- - `<promise>DONE</promise>` - Work verified complete
356
- - `/cancel-ascent` - User cancels the loop
357
- - Max iterations (100) - Safety limit
358
-
359
- ---
360
-
361
- ## Planning Workflow
362
-
363
- 1. **Start planning**: `/plan build a new feature`
364
- 2. **Interview**: Prometheus asks clarifying questions
365
- 3. **Generate plan**: Say "Create the plan" when ready
366
- 4. **Review** (optional): `/review .olympus/plans/my-feature.md`
367
- 5. **Execute**: Use `/olympus` or `/ascent` to implement
368
-
369
- Plans are saved to `.olympus/plans/` in your project directory.
370
-
371
- ---
372
-
373
- ## Self-Learning System
374
-
375
- Olympus continuously learns from your interactions to provide increasingly personalized assistance.
376
-
377
- ### How It Works
378
-
379
- **Phase 1: Passive Feedback Capture**
380
- - Detects corrections: "No, that's wrong"
381
- - Identifies rejections: "Stop", "Cancel"
382
- - Recognizes clarifications: "I meant X"
383
- - Captures enhancements: "Also add Y"
384
- - Records praise: "Perfect", "Thanks"
385
- - Extracts explicit preferences: "Always use X"
386
-
387
- **Phase 2: Pattern Extraction**
388
- - Clusters similar feedback using Jaccard similarity
389
- - Identifies recurring corrections (minimum 3 occurrences)
390
- - Categorizes patterns: style, behavior, tooling, communication
391
-
392
- **Phase 3: Preference Learning**
393
- - Infers verbosity level (concise vs. detailed)
394
- - Determines autonomy preference (ask first vs. just do it)
395
- - Tracks agent-specific performance
396
- - Implements 30-day decay for outdated patterns
397
-
398
- **Phase 4: Context Injection**
399
- - Automatically applies learned preferences at session start
400
- - Injects relevant discoveries about your codebase
401
- - Limits injection to ~500 tokens to avoid context bloat
402
-
403
- **Phase 5: Agent Discovery**
404
- - Agents record technical insights about your project
405
- - Discoveries include: gotchas, workarounds, patterns, dependencies
406
- - Validated and deduplicated before storage
407
- - Retrieved contextually in future sessions
408
-
409
- ### Storage Locations
410
-
411
- **Global Learning:**
412
- ```
413
- ~/.claude/olympus/learning/
414
- ├── feedback-log.jsonl # All feedback entries (auto-rotates at 10k lines)
415
- ├── user-preferences.json # Learned preferences
416
- ├── agent-performance.json # Per-agent metrics
417
- └── discoveries.jsonl # Global discoveries (auto-rotates at 10k lines)
418
- ```
419
-
420
- **Project-Specific Learning:**
421
- ```
422
- .olympus/learning/
423
- ├── session-state.json # Current session state
424
- ├── patterns.json # Project patterns
425
- └── discoveries.jsonl # Project discoveries (auto-rotates at 10k lines)
426
- ```
427
-
428
- **Data Lifecycle:**
429
- - JSONL files automatically rotate when they exceed 10,000 lines
430
- - Archived files are saved with timestamps (e.g., `feedback-log.2026-01-28.old.jsonl`)
431
- - Manual cleanup available via CLI (see Managing Learning Data below)
432
-
433
- ### Managing Learning Data
434
-
435
- View learning statistics and manage stored data using the CLI:
436
-
437
- ```bash
438
- # View learning statistics
439
- olympus-ai learn --stats
440
-
441
- # Preview cleanup (dry run)
442
- olympus-ai learn --cleanup --dry-run
443
-
444
- # Clean up entries older than 180 days (default)
445
- olympus-ai learn --cleanup
446
-
447
- # Clean up with custom age threshold
448
- olympus-ai learn --cleanup --age 90
449
-
450
- # Remove archived files
451
- olympus-ai learn --cleanup --remove-archived
452
-
453
- # View current learnings
454
- olympus-ai learn --show
455
-
456
- # Analyze feedback and update patterns
457
- olympus-ai learn --analyze
458
-
459
- # Forget all learnings
460
- olympus-ai learn --forget
461
- ```
462
-
463
- **Example output:**
464
- ```
465
- Learning System Statistics
466
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
467
-
468
- Feedback Entries: 1247 (1.2 MB)
469
- Discoveries: 123
470
- Total Storage: 1.5 MB
471
-
472
- Top Verified Discoveries:
473
- 1. Prisma migrations must run before seeding (8×)
474
- 2. This codebase uses kebab-case for files (6×)
475
- 3. Environment variable DATABASE_URL required (5×)
476
- ```
477
-
478
- ### Example
479
-
480
- **Session 1:** You tell Claude "No, use async/await instead of .then()"
481
- Olympus records this as a correction
482
-
483
- **Session 2:** Similar situation arises
484
- → You provide the same feedback
485
-
486
- **Session 3:** Olympus detects the pattern (3+ occurrences)
487
- Learns your preference: "Use async/await over Promise chains"
488
-
489
- **Session 4+:** This preference is automatically injected
490
- Claude proactively uses async/await without being told
491
-
492
- **The learning happens silently in the background. No configuration required.**
493
-
494
- ---
495
-
496
- ## What Gets Installed
497
-
498
- ```
499
- ~/.claude/
500
- ├── agents/ # 20+ agent definitions
501
- │ ├── oracle.md
502
- │ ├── prometheus.md
503
- │ ├── olympian.md
504
- │ └── ...
505
- ├── commands/ # 13+ slash commands
506
- │ ├── olympus/skill.md
507
- ├── ultrawork/skill.md
508
- │ ├── plan.md
509
- └── ...
510
- ├── hooks/ # Event handlers
511
- ├── keyword-detector.mjs
512
- ├── persistent-mode.mjs
513
- └── ...
514
- └── CLAUDE.md # Olympus system prompt
515
- ```
516
-
517
- ---
518
-
519
- ## Configuration
520
-
521
- ### Project-Level Config
522
-
523
- Create `.claude/CLAUDE.md` in your project for project-specific instructions:
524
-
525
- ```markdown
526
- # Project Context
527
-
528
- This is a TypeScript monorepo using:
529
-
530
- - React for frontend
531
- - Node.js backend
532
- - PostgreSQL database
533
-
534
- ## Conventions
535
-
536
- - Use functional components
537
- - All API routes in /src/api
538
- ```
539
-
540
- ---
541
-
542
- ## Uninstall
543
-
544
- ```bash
545
- # Remove agents and commands
546
- rm -rf ~/.claude/agents ~/.claude/commands ~/.claude/hooks ~/.claude/CLAUDE.md
547
- ```
548
-
549
- ---
550
-
551
- ## Requirements
552
-
553
- - [Claude Code](https://docs.anthropic.com/claude-code) installed
554
- - Anthropic API key (`ANTHROPIC_API_KEY` environment variable)
555
- - Node.js 20+ (for npm installation)
556
-
557
- ---
558
-
559
- ## Contributing
560
-
561
- We welcome contributions! Here's how to get started:
562
-
563
- ### Development Setup
564
-
565
- ```bash
566
- # Clone the repository
567
- git clone https://github.com/mikev10/olympus.git
568
- cd olympus
569
-
570
- # Install dependencies
571
- npm install
572
-
573
- # Build the project
574
- npm run build
575
-
576
- # Test locally
577
- node dist/cli/index.js install --local
578
- ```
579
-
580
- ### Running Tests
581
-
582
- ```bash
583
- npm test # Run tests in watch mode
584
- npm run test:run # Run tests once
585
- npm run test:coverage # Generate coverage report
586
- ```
587
-
588
- ### Project Structure
589
-
590
- ```
591
- olympus/
592
- ├── src/
593
- │ ├── agents/ # Agent definitions
594
- │ ├── features/ # Core features (routing, learning, etc.)
595
- │ ├── hooks/ # Event handlers
596
- │ ├── learning/ # Self-learning system
597
- │ └── cli/ # CLI commands
598
- ├── agents/ # Agent markdown files (installed)
599
- ├── commands/ # Slash command files (installed)
600
- └── scripts/ # Build and installation scripts
601
- ```
602
-
603
- ---
604
-
605
- ## Documentation
606
-
607
- - 📖 [Getting Started Guide](docs/Olympus.md)
608
- - 🤖 [Agent Reference](docs/AGENTS.md)
609
- - 🏗️ [Architecture Overview](docs/ARCHITECTURE.md)
610
- - 🗺️ [Roadmap](docs/ROADMAP.md)
611
- - 📋 [Changelog](CHANGELOG.md)
612
-
613
- ---
614
-
615
- ## License
616
-
617
- MIT - see [LICENSE](LICENSE)
618
-
619
- ---
620
-
621
- ## Credits
622
-
623
- ---
624
-
625
- <div align="center">
626
-
627
- **Summon the gods of code.**
628
-
629
- </div>
630
-
1
+ <div align="center">
2
+
3
+ # ⚡ Olympus
4
+
5
+ ### Multi-Agent Orchestration for Claude Code
6
+
7
+ [![npm version](https://img.shields.io/npm/v/olympus-ai.svg)](https://www.npmjs.com/package/olympus-ai)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ [![Agents](https://img.shields.io/badge/Agents-20+-blue)](https://github.com/mikev10/olympus)
10
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/mikev10/olympus/claude.yml)](https://github.com/mikev10/olympus/actions)
11
+
12
+ **Summon the gods of code.**
13
+
14
+ [Why Olympus?](#why-olympus) • [Quick Start](#quick-start) • [Self-Learning](#self-learning-system) • [Use Cases](#use-cases) • [Agents](#available-agents) • [Docs](#documentation)
15
+
16
+ </div>
17
+
18
+ ---
19
+
20
+ ## What is Olympus?
21
+
22
+ Olympus is a multi-agent orchestration system for [Claude Code](https://docs.anthropic.com/claude-code). It provides:
23
+
24
+ - 🧠 **Self-Learning System** - Learns your preferences, patterns, and codebase over time
25
+ - 🤖 **20+ Specialized Agents** - Oracle, Prometheus, Olympian, Librarian, and more
26
+ - ⚡ **Smart Model Routing** - Auto-selects Haiku/Sonnet/Opus based on task complexity
27
+ - 📋 **Todo Management** - Tracks progress with real-time updates
28
+ - 🔄 **Background Execution** - Long-running tasks run async with notifications
29
+ - 🎯 **Continuation Enforcement** - Never stops until all tasks are complete
30
+ - 💬 **18+ Slash Commands** - `/ultrawork`, `/plan`, `/ascent`, `/idea`, `/prd`, `/spec`, `/intents`, and more
31
+ - 🔮 **Structured Workflows** - IDEA PRD → SPEC → INTENTS pipeline for complex features
32
+ - 🔮 **Magic Keywords** - Natural language triggers for enhanced modes
33
+
34
+ ---
35
+
36
+ ## Why Olympus?
37
+
38
+ Olympus transforms Claude Code from a single agent into a **pantheon of specialized experts** that work together seamlessly.
39
+
40
+ ### 🧠 Self-Learning System
41
+
42
+ **Olympus learns from your preferences and evolves over time.**
43
+
44
+ - **Active Agent Learning** - Agents proactively record patterns, gotchas, and workarounds they discover during work
45
+ - **Passive Feedback Capture** - Automatically detects corrections, preferences, and patterns from your interactions
46
+ - **Pattern Extraction** - Identifies recurring feedback and adapts behavior accordingly
47
+ - **Preference Learning** - Infers your communication style (concise vs. detailed, autonomous vs. collaborative)
48
+ - **Agent Performance Tracking** - Monitors which agents succeed or fail for specific tasks
49
+ - **Token Efficiency Tracking** - Automatically tracks token usage per agent to optimize cost without manual intervention
50
+ - **Discovery Storage** - Structured JSONL storage with verification tracking and confidence scoring
51
+ - **Context Injection** - Learned preferences and discoveries are automatically applied in new sessions
52
+
53
+ **The more you use Olympus, the better it understands your workflow.**
54
+
55
+ ### ⚡ Intelligent Orchestration
56
+
57
+ - **Smart Delegation** - Routes tasks to specialized agents based on complexity
58
+ - **Model Routing** - Automatically selects Haiku/Sonnet/Opus to optimize cost and performance
59
+ - **Parallel Execution** - Runs independent tasks concurrently for maximum throughput
60
+
61
+ ### 🎯 Continuous Delivery
62
+
63
+ - **Todo Management** - Tracks progress across complex multi-step tasks
64
+ - **Continuation Enforcement** - Never stops until all tasks are verified complete
65
+ - **Background Operations** - Long-running builds, tests, and installs run async with notifications
66
+
67
+ ### 🔧 Developer Experience
68
+
69
+ - **Zero Configuration** - Works out-of-the-box with sensible defaults
70
+ - **Slash Commands** - 13+ productivity commands (`/ultrawork`, `/plan`, `/ascent`)
71
+ - **Magic Keywords** - Natural language triggers for enhanced modes
72
+
73
+ ### 📊 Olympus vs. Manual Claude Usage
74
+
75
+ | Feature | Manual Claude | Olympus |
76
+ |---------|---------------|---------|
77
+ | **Multi-Step Tasks** | Sequential, manual tracking | Automatic todo management |
78
+ | **Parallel Execution** | One task at a time | 3-5x faster with concurrent agents |
79
+ | **Learning** | Repeats mistakes | Learns from corrections automatically |
80
+ | **Model Selection** | Manual switching | Smart routing (cost optimized) |
81
+ | **Task Persistence** | Stops when asked | Continues until verified complete |
82
+ | **Background Tasks** | Blocks waiting | Runs async with notifications |
83
+ | **Agent Specialization** | Generic responses | 20+ experts for specific domains |
84
+ | **Token Awareness** | Manual tracking | Automatic efficiency guidance |
85
+
86
+ ---
87
+
88
+ ## Quick Start
89
+
90
+ Get started in under 60 seconds:
91
+
92
+ ```bash
93
+ # Install globally
94
+ npm install -g olympus-ai
95
+
96
+ # Initialize Olympus
97
+ olympus-ai install
98
+
99
+ # Start Claude Code
100
+ claude
101
+
102
+ # Try it out
103
+ /olympus implement a REST API for user management
104
+ ```
105
+
106
+ **That's it.** Olympus is now active and learning from your interactions.
107
+
108
+ ---
109
+
110
+ ## Installation
111
+
112
+ ### Global Installation (Recommended)
113
+
114
+ Install Olympus globally to use across all projects:
115
+
116
+ ```bash
117
+ npm install -g olympus-ai
118
+ olympus-ai install
119
+ ```
120
+
121
+ This installs agents, commands, and hooks to `~/.claude/`.
122
+
123
+ ### Local Project Installation
124
+
125
+ Install Olympus for a specific project only:
126
+
127
+ ```bash
128
+ npm install -g olympus-ai
129
+ olympus-ai install --local
130
+ ```
131
+
132
+ This installs to `./.claude/` in your current project directory.
133
+
134
+ ---
135
+
136
+ ## Usage
137
+
138
+ ### Start Claude Code
139
+
140
+ ```bash
141
+ claude
142
+ ```
143
+
144
+ ### Slash Commands
145
+
146
+ | Command | Description |
147
+ | ----------------------- | ---------------------------------------------------------------------- |
148
+ | `/olympus <task>` | Activate multi-agent orchestration mode |
149
+ | `/olympus-default` | Set Olympus as your permanent default mode |
150
+ | `/ultrawork <task>` | Maximum performance mode with parallel agents |
151
+ | `/plan <description>` | Start planning session with Prometheus |
152
+ | `/prometheus <task>` | Strategic planning with interview workflow |
153
+ | `/review [plan-path]` | Review a plan with Momus |
154
+ | `/ascent <task>` | Persistence loop until task completion |
155
+ | `/cancel-ascent` | Cancel active The Ascent |
156
+ | `/deepsearch <query>` | Thorough multi-strategy codebase search |
157
+ | `/analyze <target>` | Deep analysis and investigation |
158
+ | `/complete-plan [path]` | Verify and complete a plan after implementation |
159
+ | `/idea <feature>` | Manually generate IDEA artifact for a feature |
160
+ | `/prd <feature>` | Manually generate PRD artifact for a feature |
161
+ | `/spec <feature>` | Manually generate SPEC artifact for a feature |
162
+ | `/intents <feature>` | Manually generate INTENTS artifact for a feature |
163
+ | `/workflow-status` | View all active structured workflows and their status |
164
+ | `/olympus next` | Get the next ready task from current workflow |
165
+ | `/doctor` | Diagnose and fix olympus installation issues |
166
+ | `/deepinit` | Deep codebase initialization with hierarchical AGENTS.md documentation |
167
+ | `/update` | Check for and install updates |
168
+
169
+ ### Examples
170
+
171
+ ```bash
172
+ # Activate Olympus for a task
173
+ /olympus refactor the authentication module
174
+
175
+ # Set as default mode (persistent)
176
+ /olympus-default
177
+
178
+ # Use ultrawork for maximum performance
179
+ /ultrawork implement user dashboard with charts
180
+
181
+ # Start planning
182
+ /plan build a task management application
183
+
184
+ # Deep search
185
+ /deepsearch API endpoints that handle user data
186
+ ```
187
+
188
+ ### Magic Keywords
189
+
190
+ Include these words anywhere in your prompt to activate enhanced modes:
191
+
192
+ | Keyword | Effect |
193
+ | -------------------------- | -------------------------------------- |
194
+ | `ultrawork`, `ulw`, `uw` | Activates parallel agent orchestration |
195
+ | `search`, `find`, `locate` | Enhanced search mode |
196
+ | `analyze`, `investigate` | Deep analysis mode |
197
+
198
+ ---
199
+
200
+ ## Use Cases
201
+
202
+ ### 🏗️ Complex Refactoring
203
+
204
+ ```bash
205
+ /ascent refactor the entire authentication module to use OAuth 2.0
206
+ ```
207
+
208
+ **What happens:**
209
+ - Creates todo list for all subtasks
210
+ - Delegates to specialized agents (Oracle for architecture, Olympian for execution)
211
+ - Runs tests in background
212
+ - Continues until all tasks verified complete
213
+
214
+ ### 📊 Multi-Agent Research
215
+
216
+ ```bash
217
+ /ultrawork research and document all API endpoints in the codebase
218
+ ```
219
+
220
+ **What happens:**
221
+ - Spawns multiple agents in parallel (Explore for search, Librarian for docs)
222
+ - Aggregates findings
223
+ - Generates comprehensive documentation
224
+ - ~3x faster than sequential execution
225
+
226
+ ### 📋 Strategic Planning
227
+
228
+ ```bash
229
+ /plan build a real-time chat application with WebSocket support
230
+ ```
231
+
232
+ **What happens:**
233
+ - Prometheus interviews you about requirements
234
+ - Creates detailed work plan with phases
235
+ - Identifies dependencies and risks
236
+ - Saves plan to `.olympus/plans/` for execution
237
+
238
+ ### 🧠 Learning Your Workflow
239
+
240
+ **Automatic - no command needed**
241
+
242
+ You: "No, use TypeScript interfaces instead of types"
243
+ → Olympus records this preference
244
+
245
+ You: "Use functional components, not class components"
246
+ → Olympus learns your React style
247
+
248
+ **Next session:** Claude automatically applies these preferences without being told.
249
+
250
+ ---
251
+
252
+ ## Architecture
253
+
254
+ Olympus operates as a three-tier orchestration system with a continuous learning loop:
255
+
256
+ ```mermaid
257
+ graph TD
258
+ A[User Request] --> B[Orchestrator]
259
+ B --> C{Task Analysis}
260
+ C -->|Simple| D[Haiku Agent]
261
+ C -->|Standard| E[Sonnet Agent]
262
+ C -->|Complex| F[Opus Agent]
263
+ D --> G[Learning System]
264
+ E --> G
265
+ F --> G
266
+ G --> H[Feedback Storage]
267
+ H -.->|Next Session| B
268
+ B --> I[Todo Manager]
269
+ I --> J[Background Executor]
270
+ J --> K[Result]
271
+ ```
272
+
273
+ ### How It Works
274
+
275
+ **Current Session Flow:**
276
+ 1. **User Request** → Arrives with learned context already injected at SessionStart
277
+ 2. **Orchestrator** Analyzes task complexity and delegates to appropriate agents
278
+ 3. **Model Router** → Selects Haiku (simple), Sonnet (standard), or Opus (complex)
279
+ 4. **Agents Execute** Specialized agents complete their tasks
280
+ 5. **Learning System** → Passively captures feedback from corrections, preferences, and patterns
281
+ 6. **Feedback Storage** Stores learned preferences, agent performance, and discoveries
282
+ 7. **Result** User sees the completed work
283
+
284
+ **Learning & Context Injection (Between Sessions):**
285
+
286
+ The learning system operates across session boundaries:
287
+
288
+ - **During Session**: Captures feedback from user corrections ("No, use async/await"), preferences ("Always use TypeScript"), and agent discoveries (gotchas, workarounds)
289
+ - **Storage**: Writes to `~/.claude/olympus/learning/` (global) and `.olympus/learning/` (project-specific)
290
+ - **Next Session Start**: SessionStart hook automatically injects learned context into the initial prompt
291
+ - **Context Types Injected**:
292
+ - User preferences (verbosity, autonomy, explicit rules)
293
+ - Recurring corrections (mistakes to avoid)
294
+ - Project conventions (tech stack, patterns)
295
+ - Agent performance notes (weak areas to watch)
296
+ - Recent discoveries (technical insights about your codebase)
297
+
298
+ **Key Insight:** Context injection happens at the **beginning** of each session (via SessionStart hook), not in the result. This means every new conversation starts with Claude already aware of your preferences and past learnings.
299
+
300
+ **Key Components:**
301
+ - **Orchestrator** - Delegates tasks to specialized agents based on complexity
302
+ - **Model Router** - Selects optimal tier (Haiku/Sonnet/Opus) to balance cost and capability
303
+ - **Learning System** - Captures feedback passively and builds preference models
304
+ - **Todo Manager** - Tracks multi-step task progress with real-time status updates
305
+ - **Background Executor** - Runs long-running operations (builds, tests, installs) async with notifications
306
+ - **Feedback Storage** - Persists learned preferences, patterns, and discoveries across sessions
307
+
308
+ ---
309
+
310
+ ## Available Agents
311
+
312
+ ### Task Execution
313
+
314
+ | Agent | Model | Best For |
315
+ | --------------------- | ------ | -------------------------------------------------------------- |
316
+ | **Oracle** | Opus | Complex debugging, architecture decisions, root cause analysis |
317
+ | **Librarian** | Sonnet | Finding documentation, understanding code organization |
318
+ | **Explore** | Haiku | Quick file searches, pattern matching, reconnaissance |
319
+ | **Frontend Engineer** | Sonnet | UI components, styling, accessibility |
320
+ | **Document Writer** | Haiku | README files, API docs, code comments |
321
+ | **Multimodal Looker** | Sonnet | Analyzing screenshots, diagrams, mockups |
322
+ | **QA Tester** | Sonnet | Interactive CLI/service testing with tmux |
323
+ | **Olympian** | Sonnet | Focused task execution, direct implementation |
324
+
325
+ ### Planning & Review
326
+
327
+ | Agent | Model | Best For |
328
+ | -------------- | ----- | ----------------------------------------------------------------- |
329
+ | **Prometheus** | Opus | Strategic planning, work plans, requirement gathering |
330
+ | **Momus** | Opus | Critical plan review, feasibility assessment, risk identification |
331
+ | **Metis** | Opus | Pre-planning analysis, hidden requirement detection |
332
+
333
+ ### Tiered Variants (Smart Model Routing)
334
+
335
+ | Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |
336
+ | ------------- | ----------------------- | ------------------- | ------------------------ |
337
+ | **Analysis** | `oracle-low` | `oracle-medium` | `oracle` |
338
+ | **Execution** | `olympian-low` | `olympian` | `olympian-high` |
339
+ | **Search** | `explore` | `explore-medium` | - |
340
+ | **Research** | `librarian-low` | `librarian` | - |
341
+ | **Frontend** | `frontend-engineer-low` | `frontend-engineer` | `frontend-engineer-high` |
342
+
343
+ ---
344
+
345
+ ## The Ascent
346
+
347
+ The Ascent is a persistence loop that binds Claude to your task until verified completion.
348
+
349
+ ```bash
350
+ /ascent implement the entire authentication system
351
+ ```
352
+
353
+ **How it works:**
354
+
355
+ 1. Creates a todo list for all subtasks
356
+ 2. Works continuously until all tasks complete
357
+ 3. Can only exit by outputting `<promise>DONE</promise>` after verification
358
+ 4. If stopped prematurely, continuation is enforced
359
+
360
+ **Exit conditions:**
361
+
362
+ - `<promise>DONE</promise>` - Work verified complete
363
+ - `/cancel-ascent` - User cancels the loop
364
+ - Max iterations (100) - Safety limit
365
+
366
+ ---
367
+
368
+ ## Planning Workflow
369
+
370
+ 1. **Start planning**: `/plan build a new feature`
371
+ 2. **Interview**: Prometheus asks clarifying questions
372
+ 3. **Generate plan**: Say "Create the plan" when ready
373
+ 4. **Review** (optional): `/review .olympus/plans/my-feature.md`
374
+ 5. **Execute**: Use `/olympus` or `/ascent` to implement
375
+
376
+ Plans are saved to `.olympus/plans/` in your project directory.
377
+
378
+ ---
379
+
380
+ ## Self-Learning System
381
+
382
+ Olympus continuously learns from your interactions to provide increasingly personalized assistance.
383
+
384
+ ### How It Works
385
+
386
+ **Phase 1: Passive Feedback Capture**
387
+ - Detects corrections: "No, that's wrong"
388
+ - Identifies rejections: "Stop", "Cancel"
389
+ - Recognizes clarifications: "I meant X"
390
+ - Captures enhancements: "Also add Y"
391
+ - Records praise: "Perfect", "Thanks"
392
+ - Extracts explicit preferences: "Always use X"
393
+
394
+ **Phase 2: Pattern Extraction**
395
+ - Clusters similar feedback using Jaccard similarity
396
+ - Identifies recurring corrections (minimum 3 occurrences)
397
+ - Categorizes patterns: style, behavior, tooling, communication
398
+
399
+ **Phase 3: Preference Learning**
400
+ - Infers verbosity level (concise vs. detailed)
401
+ - Determines autonomy preference (ask first vs. just do it)
402
+ - Tracks agent-specific performance
403
+ - Implements 30-day decay for outdated patterns
404
+
405
+ **Phase 4: Context Injection**
406
+ - Automatically applies learned preferences at session start
407
+ - Injects relevant discoveries about your codebase
408
+ - Limits injection to ~500 tokens to avoid context bloat
409
+
410
+ **Phase 5: Agent Discovery**
411
+ - Agents record technical insights about your project
412
+ - Discoveries include: gotchas, workarounds, patterns, dependencies
413
+ - Validated and deduplicated before storage
414
+ - Retrieved contextually in future sessions
415
+
416
+ ### Storage Locations
417
+
418
+ **Global Learning:**
419
+ ```
420
+ ~/.claude/olympus/learning/
421
+ ├── feedback-log.jsonl # All feedback entries (auto-rotates at 10k lines)
422
+ ├── user-preferences.json # Learned preferences
423
+ ├── agent-performance.json # Per-agent metrics
424
+ └── discoveries.jsonl # Global discoveries (auto-rotates at 10k lines)
425
+ ```
426
+
427
+ **Project-Specific Learning:**
428
+ ```
429
+ .olympus/learning/
430
+ ├── session-state.json # Current session state
431
+ ├── patterns.json # Project patterns
432
+ └── discoveries.jsonl # Project discoveries (auto-rotates at 10k lines)
433
+ ```
434
+
435
+ **Data Lifecycle:**
436
+ - JSONL files automatically rotate when they exceed 10,000 lines
437
+ - Archived files are saved with timestamps (e.g., `feedback-log.2026-01-28.old.jsonl`)
438
+ - Manual cleanup available via CLI (see Managing Learning Data below)
439
+
440
+ ### Managing Learning Data
441
+
442
+ View learning statistics and manage stored data using the CLI:
443
+
444
+ ```bash
445
+ # View learning statistics
446
+ olympus-ai learn --stats
447
+
448
+ # Preview cleanup (dry run)
449
+ olympus-ai learn --cleanup --dry-run
450
+
451
+ # Clean up entries older than 180 days (default)
452
+ olympus-ai learn --cleanup
453
+
454
+ # Clean up with custom age threshold
455
+ olympus-ai learn --cleanup --age 90
456
+
457
+ # Remove archived files
458
+ olympus-ai learn --cleanup --remove-archived
459
+
460
+ # View current learnings
461
+ olympus-ai learn --show
462
+
463
+ # Analyze feedback and update patterns
464
+ olympus-ai learn --analyze
465
+
466
+ # Forget all learnings
467
+ olympus-ai learn --forget
468
+ ```
469
+
470
+ **Example output:**
471
+ ```
472
+ Learning System Statistics
473
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
474
+
475
+ Feedback Entries: 1247 (1.2 MB)
476
+ Discoveries: 123
477
+ Total Storage: 1.5 MB
478
+
479
+ Top Verified Discoveries:
480
+ 1. Prisma migrations must run before seeding ()
481
+ 2. This codebase uses kebab-case for files (6×)
482
+ 3. Environment variable DATABASE_URL required (5×)
483
+ ```
484
+
485
+ ### Example
486
+
487
+ **Session 1:** You tell Claude "No, use async/await instead of .then()"
488
+ → Olympus records this as a correction
489
+
490
+ **Session 2:** Similar situation arises
491
+ → You provide the same feedback
492
+
493
+ **Session 3:** Olympus detects the pattern (3+ occurrences)
494
+ → Learns your preference: "Use async/await over Promise chains"
495
+
496
+ **Session 4+:** This preference is automatically injected
497
+ → Claude proactively uses async/await without being told
498
+
499
+ **The learning happens silently in the background. No configuration required.**
500
+
501
+ ---
502
+
503
+ ## What Gets Installed
504
+
505
+ ```
506
+ ~/.claude/
507
+ ├── agents/ # 20+ agent definitions
508
+ │ ├── oracle.md
509
+ ├── prometheus.md
510
+ ├── olympian.md
511
+ └── ...
512
+ ├── commands/ # 13+ slash commands
513
+ ├── olympus/skill.md
514
+ │ ├── ultrawork/skill.md
515
+ │ ├── plan.md
516
+ │ └── ...
517
+ ├── hooks/ # Event handlers
518
+ │ ├── keyword-detector.mjs
519
+ │ ├── persistent-mode.mjs
520
+ │ └── ...
521
+ └── CLAUDE.md # Olympus system prompt
522
+ ```
523
+
524
+ ---
525
+
526
+ ## Configuration
527
+
528
+ ### Project-Level Config
529
+
530
+ Create `.claude/CLAUDE.md` in your project for project-specific instructions:
531
+
532
+ ```markdown
533
+ # Project Context
534
+
535
+ This is a TypeScript monorepo using:
536
+
537
+ - React for frontend
538
+ - Node.js backend
539
+ - PostgreSQL database
540
+
541
+ ## Conventions
542
+
543
+ - Use functional components
544
+ - All API routes in /src/api
545
+ ```
546
+
547
+ ---
548
+
549
+ ## Uninstall
550
+
551
+ ```bash
552
+ # Remove agents and commands
553
+ rm -rf ~/.claude/agents ~/.claude/commands ~/.claude/hooks ~/.claude/CLAUDE.md
554
+ ```
555
+
556
+ ---
557
+
558
+ ## Requirements
559
+
560
+ - [Claude Code](https://docs.anthropic.com/claude-code) installed
561
+ - Anthropic API key (`ANTHROPIC_API_KEY` environment variable)
562
+ - Node.js 20+ (for npm installation)
563
+
564
+ ---
565
+
566
+ ## Contributing
567
+
568
+ We welcome contributions! Here's how to get started:
569
+
570
+ ### Development Setup
571
+
572
+ ```bash
573
+ # Clone the repository
574
+ git clone https://github.com/mikev10/olympus.git
575
+ cd olympus
576
+
577
+ # Install dependencies
578
+ npm install
579
+
580
+ # Build the project
581
+ npm run build
582
+
583
+ # Test locally
584
+ node dist/cli/index.js install --local
585
+ ```
586
+
587
+ ### Running Tests
588
+
589
+ ```bash
590
+ npm test # Run tests in watch mode
591
+ npm run test:run # Run tests once
592
+ npm run test:coverage # Generate coverage report
593
+ ```
594
+
595
+ ### Project Structure
596
+
597
+ ```
598
+ olympus/
599
+ ├── src/
600
+ │ ├── agents/ # Agent definitions
601
+ │ ├── features/ # Core features (routing, learning, etc.)
602
+ │ ├── hooks/ # Event handlers
603
+ │ ├── learning/ # Self-learning system
604
+ │ └── cli/ # CLI commands
605
+ ├── agents/ # Agent markdown files (installed)
606
+ ├── commands/ # Slash command files (installed)
607
+ └── scripts/ # Build and installation scripts
608
+ ```
609
+
610
+ ---
611
+
612
+ ## Documentation
613
+
614
+ - 📖 [Getting Started Guide](docs/guide/overview.md)
615
+ - 💻 [CLI Reference Guide](docs/guide/cli-reference.md) - Complete command-line tool reference
616
+ - 🔄 [Workflow Selection Guide](docs/guide/workflow-guide.md) - Choose the right workflow for your task
617
+ - 📋 [Structured Workflows Guide](docs/workflow-guide.md) - IDEA → PRD → SPEC → INTENTS pipeline for complex features
618
+ - 🤖 [Agent Reference](docs/AGENTS.md)
619
+ - 🏗️ [Architecture Overview](docs/ARCHITECTURE.md)
620
+ - 🗺️ [Roadmap](docs/ROADMAP.md)
621
+ - 📋 [Changelog](CHANGELOG.md)
622
+
623
+ ---
624
+
625
+ ## License
626
+
627
+ MIT - see [LICENSE](LICENSE)
628
+
629
+ ---
630
+
631
+ ## Credits
632
+
633
+ ---
634
+
635
+ <div align="center">
636
+
637
+ **Summon the gods of code.**
638
+
639
+ </div>
640
+