loki-mode 5.30.0 → 5.32.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.
package/README.md CHANGED
@@ -82,8 +82,44 @@ jobs:
82
82
  github_token: ${{ secrets.GITHUB_TOKEN }}
83
83
  mode: review # review, fix, or test
84
84
  provider: claude # claude, codex, or gemini
85
- max_iterations: 3 # higher = more thorough
86
- budget_limit: '5.00' # max cost in USD
85
+ max_iterations: 3 # sets LOKI_MAX_ITERATIONS env var
86
+ budget_limit: '5.00' # max cost in USD (maps to --budget flag)
87
+ env:
88
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
89
+ ```
90
+
91
+ **Prerequisites:**
92
+ - An API key for your chosen provider (set as a repository secret):
93
+ - Claude: `ANTHROPIC_API_KEY`
94
+ - Codex: `OPENAI_API_KEY`
95
+ - Gemini: `GOOGLE_API_KEY`
96
+ - The action automatically installs `loki-mode` and `@anthropic-ai/claude-code` (for the Claude provider)
97
+
98
+ **Action Inputs:**
99
+
100
+ | Input | Default | Description |
101
+ |-------|---------|-------------|
102
+ | `mode` | `review` | `review`, `fix`, or `test` |
103
+ | `provider` | `claude` | `claude`, `codex`, or `gemini` |
104
+ | `budget_limit` | `5.00` | Max cost in USD (maps to `--budget` CLI flag) |
105
+ | `budget` | | Alias for `budget_limit` |
106
+ | `max_iterations` | `3` | Sets `LOKI_MAX_ITERATIONS` env var |
107
+ | `github_token` | (required) | GitHub token for PR comments |
108
+ | `prd_file` | | Path to PRD file relative to repo root |
109
+ | `auto_confirm` | `true` | Skip confirmation prompts (always true in CI) |
110
+ | `install_claude` | `true` | Auto-install Claude Code CLI if not present |
111
+ | `node_version` | `20` | Node.js version |
112
+
113
+ **Using with a PRD file (fix/test modes):**
114
+
115
+ ```yaml
116
+ - uses: asklokesh/loki-mode@v5
117
+ with:
118
+ mode: fix
119
+ prd_file: 'docs/my-prd.md'
120
+ github_token: ${{ secrets.GITHUB_TOKEN }}
121
+ env:
122
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
87
123
  ```
88
124
 
89
125
  **Modes:**
@@ -390,6 +426,68 @@ Go get coffee. It'll be deployed when you get back.
390
426
 
391
427
  ---
392
428
 
429
+ ## Architecture
430
+
431
+ ```mermaid
432
+ graph TB
433
+ PRD["PRD Document"] --> REASON
434
+
435
+ subgraph RARVC["RARV+C Cycle"]
436
+ direction TB
437
+ REASON["1. Reason"] --> ACT["2. Act"]
438
+ ACT --> REFLECT["3. Reflect"]
439
+ REFLECT --> VERIFY["4. Verify"]
440
+ VERIFY -->|"pass"| COMPOUND["5. Compound"]
441
+ VERIFY -->|"fail"| REASON
442
+ COMPOUND --> REASON
443
+ end
444
+
445
+ subgraph PROVIDERS["Provider Layer"]
446
+ CLAUDE["Claude Code<br/>(full features)"]
447
+ CODEX["Codex CLI<br/>(degraded)"]
448
+ GEMINI["Gemini CLI<br/>(degraded)"]
449
+ end
450
+
451
+ ACT --> PROVIDERS
452
+
453
+ subgraph AGENTS["Agent Swarms (41 types)"]
454
+ ENG["Engineering (8)"]
455
+ OPS["Operations (8)"]
456
+ BIZ["Business (8)"]
457
+ DATA["Data (3)"]
458
+ PROD["Product (3)"]
459
+ GROWTH["Growth (4)"]
460
+ REVIEW["Review (3)"]
461
+ ORCH["Orchestration (4)"]
462
+ end
463
+
464
+ PROVIDERS --> AGENTS
465
+
466
+ subgraph INFRA["Infrastructure"]
467
+ DASHBOARD["Dashboard<br/>(FastAPI + Web UI)"]
468
+ MEMORY["Memory System<br/>(Episodic/Semantic/Procedural)"]
469
+ COUNCIL["Completion Council<br/>(3-member voting)"]
470
+ QUEUE["Task Queue<br/>(.loki/queue/)"]
471
+ end
472
+
473
+ AGENTS --> QUEUE
474
+ VERIFY --> COUNCIL
475
+ REFLECT --> MEMORY
476
+ COMPOUND --> MEMORY
477
+ DASHBOARD -.->|"reads"| QUEUE
478
+ DASHBOARD -.->|"reads"| MEMORY
479
+ ```
480
+
481
+ **Key components:**
482
+ - **RARV+C Cycle** -- Reason, Act, Reflect, Verify, Compound. Every iteration follows this loop. Failed verification triggers retry from Reason.
483
+ - **Provider Layer** -- Claude Code (full parallel agents, Task tool, MCP), Codex CLI and Gemini CLI (sequential, degraded mode).
484
+ - **Agent Swarms** -- 41 specialized agent types across 7 swarms, spawned on demand based on project complexity.
485
+ - **Completion Council** -- 3 members vote on whether the project is done. Anti-sycophancy devil's advocate on unanimous votes.
486
+ - **Memory System** -- Episodic traces, semantic patterns, procedural skills. Progressive disclosure reduces context usage by 60-80%.
487
+ - **Dashboard** -- FastAPI server reading `.loki/` flat files, with real-time web UI for task queue, agents, logs, and council state.
488
+
489
+ ---
490
+
393
491
  ## CLI Commands (v4.1.0)
394
492
 
395
493
  The `loki` CLI provides easy access to all Loki Mode features:
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Multi-agent autonomous startup system. Triggers on "Loki Mode". Takes PRD to deployed product with zero human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v5.30.0
6
+ # Loki Mode v5.32.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -267,4 +267,4 @@ Auto-detected or force with `LOKI_COMPLEXITY`:
267
267
 
268
268
  ---
269
269
 
270
- **v5.30.0 | Compound learning, specialist reviewers, deepen-plan | ~280 lines core**
270
+ **v5.32.0 | loki doctor, dashboard themes, keyboard shortcuts, favicon | ~280 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.30.0
1
+ 5.32.0