loki-mode 4.2.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +691 -0
  3. package/SKILL.md +191 -0
  4. package/VERSION +1 -0
  5. package/autonomy/.loki/dashboard/index.html +2634 -0
  6. package/autonomy/CONSTITUTION.md +508 -0
  7. package/autonomy/README.md +201 -0
  8. package/autonomy/config.example.yaml +152 -0
  9. package/autonomy/loki +526 -0
  10. package/autonomy/run.sh +3636 -0
  11. package/bin/loki-mode.js +26 -0
  12. package/bin/postinstall.js +60 -0
  13. package/docs/ACKNOWLEDGEMENTS.md +234 -0
  14. package/docs/COMPARISON.md +325 -0
  15. package/docs/COMPETITIVE-ANALYSIS.md +333 -0
  16. package/docs/INSTALLATION.md +547 -0
  17. package/docs/auto-claude-comparison.md +276 -0
  18. package/docs/cursor-comparison.md +225 -0
  19. package/docs/dashboard-guide.md +355 -0
  20. package/docs/screenshots/README.md +149 -0
  21. package/docs/screenshots/dashboard-agents.png +0 -0
  22. package/docs/screenshots/dashboard-tasks.png +0 -0
  23. package/docs/thick2thin.md +173 -0
  24. package/package.json +48 -0
  25. package/references/advanced-patterns.md +453 -0
  26. package/references/agent-types.md +243 -0
  27. package/references/agents.md +1043 -0
  28. package/references/business-ops.md +550 -0
  29. package/references/competitive-analysis.md +216 -0
  30. package/references/confidence-routing.md +371 -0
  31. package/references/core-workflow.md +275 -0
  32. package/references/cursor-learnings.md +207 -0
  33. package/references/deployment.md +604 -0
  34. package/references/lab-research-patterns.md +534 -0
  35. package/references/mcp-integration.md +186 -0
  36. package/references/memory-system.md +467 -0
  37. package/references/openai-patterns.md +647 -0
  38. package/references/production-patterns.md +568 -0
  39. package/references/prompt-repetition.md +192 -0
  40. package/references/quality-control.md +437 -0
  41. package/references/sdlc-phases.md +410 -0
  42. package/references/task-queue.md +361 -0
  43. package/references/tool-orchestration.md +691 -0
  44. package/skills/00-index.md +120 -0
  45. package/skills/agents.md +249 -0
  46. package/skills/artifacts.md +174 -0
  47. package/skills/github-integration.md +218 -0
  48. package/skills/model-selection.md +125 -0
  49. package/skills/parallel-workflows.md +526 -0
  50. package/skills/patterns-advanced.md +188 -0
  51. package/skills/production.md +292 -0
  52. package/skills/quality-gates.md +180 -0
  53. package/skills/testing.md +149 -0
  54. package/skills/troubleshooting.md +109 -0
@@ -0,0 +1,547 @@
1
+ # Loki Mode Installation Guide
2
+
3
+ Complete installation instructions for all platforms and use cases.
4
+
5
+ **Version:** v4.1.0
6
+
7
+ ---
8
+
9
+ ## Table of Contents
10
+
11
+ - [Quick Install (Recommended)](#quick-install-recommended)
12
+ - [npm (Node.js)](#npm-nodejs)
13
+ - [Homebrew (macOS/Linux)](#homebrew-macoslinux)
14
+ - [Docker](#docker)
15
+ - [Claude Code (CLI)](#claude-code-cli)
16
+ - [Claude.ai (Web)](#claudeai-web)
17
+ - [Anthropic API Console](#anthropic-api-console)
18
+ - [Verify Installation](#verify-installation)
19
+ - [Troubleshooting](#troubleshooting)
20
+
21
+ ---
22
+
23
+ ## Quick Install (Recommended)
24
+
25
+ Choose your preferred method:
26
+
27
+ ```bash
28
+ # Option A: npm (easiest)
29
+ npm install -g loki-mode
30
+
31
+ # Option B: Homebrew (macOS/Linux)
32
+ brew tap asklokesh/tap && brew install loki-mode
33
+
34
+ # Option C: Docker
35
+ docker pull asklokesh/loki-mode:4.1.0
36
+
37
+ # Option D: Git clone
38
+ git clone https://github.com/asklokesh/loki-mode.git ~/.claude/skills/loki-mode
39
+ ```
40
+
41
+ **Done!** Skip to [Verify Installation](#verify-installation).
42
+
43
+ ---
44
+
45
+ ## npm (Node.js)
46
+
47
+ Install via npm for the easiest setup with automatic PATH configuration.
48
+
49
+ ### Prerequisites
50
+
51
+ - Node.js 16.0.0 or later
52
+
53
+ ### Installation
54
+
55
+ ```bash
56
+ # Global installation
57
+ npm install -g loki-mode
58
+
59
+ # The skill is automatically installed to ~/.claude/skills/loki-mode
60
+ ```
61
+
62
+ ### Usage
63
+
64
+ ```bash
65
+ # Use the CLI
66
+ loki start ./my-prd.md
67
+ loki status
68
+ loki dashboard
69
+
70
+ # Or invoke in Claude Code
71
+ claude --dangerously-skip-permissions
72
+ > Loki Mode with PRD at ./my-prd.md
73
+ ```
74
+
75
+ ### Updating
76
+
77
+ ```bash
78
+ npm update -g loki-mode
79
+ ```
80
+
81
+ ### Uninstalling
82
+
83
+ ```bash
84
+ npm uninstall -g loki-mode
85
+ rm -rf ~/.claude/skills/loki-mode
86
+ ```
87
+
88
+ ---
89
+
90
+ ## Homebrew (macOS/Linux)
91
+
92
+ Install via Homebrew with automatic dependency management.
93
+
94
+ ### Prerequisites
95
+
96
+ - Homebrew (https://brew.sh)
97
+
98
+ ### Installation
99
+
100
+ ```bash
101
+ # Add the tap
102
+ brew tap asklokesh/tap
103
+
104
+ # Install Loki Mode
105
+ brew install loki-mode
106
+
107
+ # Set up Claude Code skill integration
108
+ loki-mode-install-skill
109
+ ```
110
+
111
+ ### Dependencies
112
+
113
+ Homebrew automatically installs:
114
+ - bash 4.0+ (for associative arrays)
115
+ - jq (JSON processing)
116
+ - gh (GitHub CLI for integration)
117
+
118
+ ### Usage
119
+
120
+ ```bash
121
+ # Use the CLI
122
+ loki start ./my-prd.md
123
+ loki status
124
+ loki --help
125
+ ```
126
+
127
+ ### Updating
128
+
129
+ ```bash
130
+ brew upgrade loki-mode
131
+ ```
132
+
133
+ ### Uninstalling
134
+
135
+ ```bash
136
+ brew uninstall loki-mode
137
+ rm -rf ~/.claude/skills/loki-mode
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Docker
143
+
144
+ Run Loki Mode in a container for isolated execution.
145
+
146
+ ### Prerequisites
147
+
148
+ - Docker installed and running
149
+
150
+ ### Installation
151
+
152
+ ```bash
153
+ # Pull the image
154
+ docker pull asklokesh/loki-mode:4.1.0
155
+
156
+ # Or use docker-compose
157
+ curl -o docker-compose.yml https://raw.githubusercontent.com/asklokesh/loki-mode/main/docker-compose.yml
158
+ ```
159
+
160
+ ### Usage
161
+
162
+ ```bash
163
+ # Run with a PRD file
164
+ docker run -v $(pwd):/workspace -w /workspace asklokesh/loki-mode:4.1.0 start ./my-prd.md
165
+
166
+ # Interactive mode
167
+ docker run -it -v $(pwd):/workspace -w /workspace asklokesh/loki-mode:4.1.0
168
+
169
+ # Using docker-compose
170
+ docker-compose run loki start ./my-prd.md
171
+ ```
172
+
173
+ ### Environment Variables
174
+
175
+ Pass your configuration via environment variables:
176
+
177
+ ```bash
178
+ docker run -e LOKI_MAX_RETRIES=100 -e LOKI_BASE_WAIT=120 \
179
+ -v $(pwd):/workspace -w /workspace \
180
+ asklokesh/loki-mode:4.1.0 start ./my-prd.md
181
+ ```
182
+
183
+ ### Updating
184
+
185
+ ```bash
186
+ docker pull asklokesh/loki-mode:latest
187
+ ```
188
+
189
+ ---
190
+
191
+ ---
192
+
193
+ ## Claude Code (CLI)
194
+
195
+ Loki Mode can be installed for Claude Code in three ways:
196
+
197
+ ### Option A: Git Clone (Recommended)
198
+
199
+ **Personal installation (available in all projects):**
200
+ ```bash
201
+ git clone https://github.com/asklokesh/loki-mode.git ~/.claude/skills/loki-mode
202
+ ```
203
+
204
+ **Project-specific installation:**
205
+ ```bash
206
+ # Navigate to your project directory first
207
+ cd /path/to/your/project
208
+
209
+ # Clone to local skills directory
210
+ git clone https://github.com/asklokesh/loki-mode.git .claude/skills/loki-mode
211
+ ```
212
+
213
+ ### Option B: Download from Releases
214
+
215
+ ```bash
216
+ # Navigate to skills directory
217
+ cd ~/.claude/skills
218
+
219
+ # Get latest version number
220
+ VERSION=$(curl -s https://api.github.com/repos/asklokesh/loki-mode/releases/latest | grep tag_name | cut -d'"' -f4 | tr -d 'v')
221
+
222
+ # Download and extract
223
+ curl -L -o loki-mode.zip "https://github.com/asklokesh/loki-mode/releases/download/v${VERSION}/loki-mode-claude-code-${VERSION}.zip"
224
+ unzip loki-mode.zip && rm loki-mode.zip
225
+ ```
226
+
227
+ **Result:** Creates `~/.claude/skills/loki-mode/SKILL.md`
228
+
229
+ ### Option C: Minimal Install (curl)
230
+
231
+ If you only want the essential files without the full repository:
232
+
233
+ ```bash
234
+ # Create directory structure
235
+ mkdir -p ~/.claude/skills/loki-mode/references
236
+
237
+ # Download core skill file
238
+ curl -o ~/.claude/skills/loki-mode/SKILL.md \
239
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/SKILL.md
240
+
241
+ # Download agent definitions
242
+ curl -o ~/.claude/skills/loki-mode/references/agents.md \
243
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/references/agents.md
244
+
245
+ # Download deployment guides
246
+ curl -o ~/.claude/skills/loki-mode/references/deployment.md \
247
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/references/deployment.md
248
+
249
+ # Download business operations reference
250
+ curl -o ~/.claude/skills/loki-mode/references/business-ops.md \
251
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/references/business-ops.md
252
+ ```
253
+
254
+ **Note:** This minimal install won't include examples, tests, or the autonomous runner. Use Option A or B for full functionality.
255
+
256
+ ---
257
+
258
+ ## Claude.ai (Web)
259
+
260
+ For using Loki Mode on the Claude.ai web interface:
261
+
262
+ ### Step 1: Download the Skill Package
263
+
264
+ 1. Go to [Releases](https://github.com/asklokesh/loki-mode/releases)
265
+ 2. Download **either**:
266
+ - `loki-mode-X.X.X.zip` (standard format)
267
+ - `loki-mode-X.X.X.skill` (skill format)
268
+
269
+ Both contain the same skill and will work.
270
+
271
+ ### Step 2: Upload to Claude.ai
272
+
273
+ 1. Open [Claude.ai](https://claude.ai)
274
+ 2. Go to **Settings** (gear icon)
275
+ 3. Navigate to **Features → Skills**
276
+ 4. Click **Upload Skill**
277
+ 5. Select the downloaded `.zip` or `.skill` file
278
+
279
+ **File Structure:** The Claude.ai package has `SKILL.md` at the root level as required by the web interface.
280
+
281
+ ---
282
+
283
+ ## Anthropic API Console
284
+
285
+ For using Loki Mode through the Anthropic API Console (console.anthropic.com):
286
+
287
+ ### Step 1: Download the API Package
288
+
289
+ 1. Go to [Releases](https://github.com/asklokesh/loki-mode/releases)
290
+ 2. Download **`loki-mode-api-X.X.X.zip`** (note the `-api-` version)
291
+
292
+ **Important:** The API version has a different file structure than the web version.
293
+
294
+ ### Step 2: Upload to API Console
295
+
296
+ 1. Go to [console.anthropic.com](https://console.anthropic.com)
297
+ 2. Navigate to **Skills** section
298
+ 3. Click **Upload Skill**
299
+ 4. Select the downloaded `loki-mode-api-X.X.X.zip` file
300
+
301
+ **File Structure:** The API package has `SKILL.md` inside a `loki-mode/` folder as required by the API.
302
+
303
+ ---
304
+
305
+ ## Verify Installation
306
+
307
+ ### For Claude Code (CLI)
308
+
309
+ Check that the skill file is in place:
310
+
311
+ ```bash
312
+ cat ~/.claude/skills/loki-mode/SKILL.md | head -10
313
+ ```
314
+
315
+ **Expected output:** Should show YAML frontmatter starting with:
316
+ ```yaml
317
+ ---
318
+ name: loki-mode
319
+ description: Multi-Agent Autonomous Startup System
320
+ ...
321
+ ---
322
+ ```
323
+
324
+ ### For Claude.ai (Web)
325
+
326
+ 1. Start a new conversation
327
+ 2. Type: `Loki Mode`
328
+ 3. Claude should recognize the skill and ask for a PRD
329
+
330
+ ### For API Console
331
+
332
+ 1. Create a new API call with skills enabled
333
+ 2. Include the skill in your request
334
+ 3. The skill should be available for use
335
+
336
+ ---
337
+
338
+ ## File Structure
339
+
340
+ After installation, you should have this structure:
341
+
342
+ ```
343
+ loki-mode/
344
+ ├── SKILL.md # Main skill file (required)
345
+ ├── README.md # Documentation
346
+ ├── docs/
347
+ │ └── INSTALLATION.md # This file
348
+ ├── CHANGELOG.md # Version history
349
+ ├── VERSION # Current version number
350
+ ├── LICENSE # MIT License
351
+ ├── references/ # Agent and deployment references
352
+ │ ├── agents.md
353
+ │ ├── deployment.md
354
+ │ └── business-ops.md
355
+ ├── autonomy/ # Autonomous runner (CLI only)
356
+ │ ├── run.sh
357
+ │ └── README.md
358
+ ├── examples/ # Sample PRDs for testing
359
+ │ ├── simple-todo-app.md
360
+ │ ├── api-only.md
361
+ │ ├── static-landing-page.md
362
+ │ └── full-stack-demo.md
363
+ ├── tests/ # Test suite (CLI only)
364
+ │ ├── run-all-tests.sh
365
+ │ ├── test-bootstrap.sh
366
+ │ └── ...
367
+ └── integrations/ # Third-party integrations
368
+ └── vibe-kanban.md
369
+ ```
370
+
371
+ **Note:** Some files/directories (autonomy, tests, examples) are only available with full installation (Options A or B).
372
+
373
+ ---
374
+
375
+ ## Troubleshooting
376
+
377
+ ### Skill Not Found
378
+
379
+ **Problem:** Claude doesn't recognize "Loki Mode" command.
380
+
381
+ **Solutions:**
382
+ 1. **Check installation path:**
383
+ ```bash
384
+ ls -la ~/.claude/skills/loki-mode/SKILL.md
385
+ ```
386
+
387
+ 2. **Verify YAML frontmatter:**
388
+ ```bash
389
+ cat ~/.claude/skills/loki-mode/SKILL.md | head -5
390
+ ```
391
+ Should show `name: loki-mode`
392
+
393
+ 3. **Restart Claude Code:**
394
+ ```bash
395
+ # Exit and restart claude command
396
+ ```
397
+
398
+ ### Permission Denied
399
+
400
+ **Problem:** Cannot create directories or download files.
401
+
402
+ **Solution:**
403
+ ```bash
404
+ # Ensure skills directory exists
405
+ mkdir -p ~/.claude/skills
406
+
407
+ # Check permissions
408
+ ls -la ~/.claude/
409
+ ```
410
+
411
+ ### Download Fails
412
+
413
+ **Problem:** curl or wget commands fail.
414
+
415
+ **Solutions:**
416
+ 1. **Check internet connection**
417
+
418
+ 2. **Try alternate download method:**
419
+ ```bash
420
+ # Use wget instead of curl
421
+ wget -O ~/.claude/skills/loki-mode/SKILL.md \
422
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/SKILL.md
423
+ ```
424
+
425
+ 3. **Manual download:**
426
+ - Visit the URL in a browser
427
+ - Save file manually to `~/.claude/skills/loki-mode/`
428
+
429
+ ### Autonomous Runner Won't Start
430
+
431
+ **Problem:** `./autonomy/run.sh` gives "command not found" or permission errors.
432
+
433
+ **Solutions:**
434
+ 1. **Make executable:**
435
+ ```bash
436
+ chmod +x autonomy/run.sh
437
+ ```
438
+
439
+ 2. **Run from repository root:**
440
+ ```bash
441
+ # Make sure you're in the loki-mode directory
442
+ cd ~/.claude/skills/loki-mode
443
+ ./autonomy/run.sh
444
+ ```
445
+
446
+ 3. **Check prerequisites:**
447
+ ```bash
448
+ # Ensure Claude Code is installed
449
+ claude --version
450
+
451
+ # Ensure Python 3 is available
452
+ python3 --version
453
+ ```
454
+
455
+ ### References Not Loading
456
+
457
+ **Problem:** Skill loads but agent definitions or deployment guides are missing.
458
+
459
+ **Solution:**
460
+ ```bash
461
+ # Ensure all reference files are present
462
+ ls -la ~/.claude/skills/loki-mode/references/
463
+
464
+ # Should show:
465
+ # agents.md
466
+ # deployment.md
467
+ # business-ops.md
468
+
469
+ # If missing, download them:
470
+ curl -o ~/.claude/skills/loki-mode/references/agents.md \
471
+ https://raw.githubusercontent.com/asklokesh/loki-mode/main/references/agents.md
472
+ ```
473
+
474
+ ---
475
+
476
+ ## Updating Loki Mode
477
+
478
+ ### For Git Installations
479
+
480
+ ```bash
481
+ cd ~/.claude/skills/loki-mode
482
+ git pull origin main
483
+ ```
484
+
485
+ ### For Manual Installations
486
+
487
+ 1. Download the latest release
488
+ 2. Extract to the same directory (overwrite existing files)
489
+ 3. Or delete old installation and reinstall
490
+
491
+ ### Check Current Version
492
+
493
+ ```bash
494
+ cat ~/.claude/skills/loki-mode/VERSION
495
+ ```
496
+
497
+ ---
498
+
499
+ ## Uninstalling
500
+
501
+ ### Claude Code (CLI)
502
+
503
+ ```bash
504
+ # Remove the skill directory
505
+ rm -rf ~/.claude/skills/loki-mode
506
+ ```
507
+
508
+ ### Claude.ai (Web)
509
+
510
+ 1. Go to **Settings → Features → Skills**
511
+ 2. Find "loki-mode" in the list
512
+ 3. Click **Remove**
513
+
514
+ ### API Console
515
+
516
+ 1. Go to **Skills** section
517
+ 2. Find "loki-mode"
518
+ 3. Click **Delete**
519
+
520
+ ---
521
+
522
+ ## Next Steps
523
+
524
+ After installation:
525
+
526
+ 1. **Quick Test:** Run a simple example
527
+ ```bash
528
+ ./autonomy/run.sh examples/simple-todo-app.md
529
+ ```
530
+
531
+ 2. **Read Documentation:** Check out [README.md](README.md) for usage guides
532
+
533
+ 3. **Create Your First PRD:** See the Quick Start section in README
534
+
535
+ 4. **Join the Community:** Report issues or contribute at [GitHub](https://github.com/asklokesh/loki-mode)
536
+
537
+ ---
538
+
539
+ ## Need Help?
540
+
541
+ - **Issues/Bugs:** [GitHub Issues](https://github.com/asklokesh/loki-mode/issues)
542
+ - **Discussions:** [GitHub Discussions](https://github.com/asklokesh/loki-mode/discussions)
543
+ - **Documentation:** [README.md](README.md)
544
+
545
+ ---
546
+
547
+ **Happy Building!**