olympus-ai 3.4.0 → 3.5.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/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +631 -630
  4. package/dist/__tests__/installer.test.js +1 -1
  5. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts +7 -0
  6. package/dist/__tests__/workflow-engine/checkpoint.test.d.ts.map +1 -0
  7. package/dist/__tests__/workflow-engine/checkpoint.test.js +373 -0
  8. package/dist/__tests__/workflow-engine/checkpoint.test.js.map +1 -0
  9. package/dist/agents/definitions.d.ts.map +1 -1
  10. package/dist/agents/definitions.js +8 -0
  11. package/dist/agents/definitions.js.map +1 -1
  12. package/dist/agents/idea-intake.d.ts +20 -0
  13. package/dist/agents/idea-intake.d.ts.map +1 -0
  14. package/dist/agents/idea-intake.js +255 -0
  15. package/dist/agents/idea-intake.js.map +1 -0
  16. package/dist/agents/index.d.ts +4 -0
  17. package/dist/agents/index.d.ts.map +1 -1
  18. package/dist/agents/index.js +4 -0
  19. package/dist/agents/index.js.map +1 -1
  20. package/dist/agents/intent-generator.d.ts +19 -0
  21. package/dist/agents/intent-generator.d.ts.map +1 -0
  22. package/dist/agents/intent-generator.js +303 -0
  23. package/dist/agents/intent-generator.js.map +1 -0
  24. package/dist/agents/prd-writer.d.ts +19 -0
  25. package/dist/agents/prd-writer.d.ts.map +1 -0
  26. package/dist/agents/prd-writer.js +236 -0
  27. package/dist/agents/prd-writer.js.map +1 -0
  28. package/dist/agents/prometheus.d.ts.map +1 -1
  29. package/dist/agents/prometheus.js +123 -2
  30. package/dist/agents/prometheus.js.map +1 -1
  31. package/dist/agents/spec-writer.d.ts +19 -0
  32. package/dist/agents/spec-writer.d.ts.map +1 -0
  33. package/dist/agents/spec-writer.js +528 -0
  34. package/dist/agents/spec-writer.js.map +1 -0
  35. package/dist/features/index.d.ts +1 -0
  36. package/dist/features/index.d.ts.map +1 -1
  37. package/dist/features/index.js +6 -0
  38. package/dist/features/index.js.map +1 -1
  39. package/dist/features/workflow-engine/artifacts.d.ts +96 -0
  40. package/dist/features/workflow-engine/artifacts.d.ts.map +1 -0
  41. package/dist/features/workflow-engine/artifacts.js +399 -0
  42. package/dist/features/workflow-engine/artifacts.js.map +1 -0
  43. package/dist/features/workflow-engine/checkpoint.d.ts +67 -0
  44. package/dist/features/workflow-engine/checkpoint.d.ts.map +1 -0
  45. package/dist/features/workflow-engine/checkpoint.js +249 -0
  46. package/dist/features/workflow-engine/checkpoint.js.map +1 -0
  47. package/dist/features/workflow-engine/engine.d.ts +128 -0
  48. package/dist/features/workflow-engine/engine.d.ts.map +1 -0
  49. package/dist/features/workflow-engine/engine.js +600 -0
  50. package/dist/features/workflow-engine/engine.js.map +1 -0
  51. package/dist/features/workflow-engine/execution.d.ts +99 -0
  52. package/dist/features/workflow-engine/execution.d.ts.map +1 -0
  53. package/dist/features/workflow-engine/execution.js +493 -0
  54. package/dist/features/workflow-engine/execution.js.map +1 -0
  55. package/dist/features/workflow-engine/hooks.d.ts +78 -0
  56. package/dist/features/workflow-engine/hooks.d.ts.map +1 -0
  57. package/dist/features/workflow-engine/hooks.js +188 -0
  58. package/dist/features/workflow-engine/hooks.js.map +1 -0
  59. package/dist/features/workflow-engine/index.d.ts +17 -0
  60. package/dist/features/workflow-engine/index.d.ts.map +1 -0
  61. package/dist/features/workflow-engine/index.js +19 -0
  62. package/dist/features/workflow-engine/index.js.map +1 -0
  63. package/dist/features/workflow-engine/types.d.ts +220 -0
  64. package/dist/features/workflow-engine/types.d.ts.map +1 -0
  65. package/dist/features/workflow-engine/types.js +8 -0
  66. package/dist/features/workflow-engine/types.js.map +1 -0
  67. package/dist/features/workflow-engine/validation.d.ts +128 -0
  68. package/dist/features/workflow-engine/validation.d.ts.map +1 -0
  69. package/dist/features/workflow-engine/validation.js +746 -0
  70. package/dist/features/workflow-engine/validation.js.map +1 -0
  71. package/dist/hooks/ascent-verifier/index.d.ts +52 -0
  72. package/dist/hooks/ascent-verifier/index.d.ts.map +1 -1
  73. package/dist/hooks/ascent-verifier/index.js +146 -0
  74. package/dist/hooks/ascent-verifier/index.js.map +1 -1
  75. package/dist/hooks/registrations/learning-capture.d.ts.map +1 -1
  76. package/dist/hooks/registrations/learning-capture.js +32 -9
  77. package/dist/hooks/registrations/learning-capture.js.map +1 -1
  78. package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -1
  79. package/dist/hooks/registrations/user-prompt-submit.js +85 -0
  80. package/dist/hooks/registrations/user-prompt-submit.js.map +1 -1
  81. package/dist/installer/index.d.ts +1 -1
  82. package/dist/installer/index.d.ts.map +1 -1
  83. package/dist/installer/index.js +456 -16
  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 +208 -97
  94. package/scripts/rebrand.mjs +0 -206
package/README.md CHANGED
@@ -1,630 +1,631 @@
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
+ - 💬 **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
+ - 💻 [CLI Reference Guide](docs/guide/cli-reference.md) - Complete command-line tool reference
609
+ - 🤖 [Agent Reference](docs/AGENTS.md)
610
+ - 🏗️ [Architecture Overview](docs/ARCHITECTURE.md)
611
+ - 🗺️ [Roadmap](docs/ROADMAP.md)
612
+ - 📋 [Changelog](CHANGELOG.md)
613
+
614
+ ---
615
+
616
+ ## License
617
+
618
+ MIT - see [LICENSE](LICENSE)
619
+
620
+ ---
621
+
622
+ ## Credits
623
+
624
+ ---
625
+
626
+ <div align="center">
627
+
628
+ **Summon the gods of code.**
629
+
630
+ </div>
631
+