loki-mode 6.71.1 → 6.73.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 +113 -6
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/hooks/migration-hooks.sh +26 -0
- package/autonomy/loki +429 -92
- package/autonomy/run.sh +219 -38
- package/dashboard/__init__.py +1 -1
- package/dashboard/server.py +101 -19
- package/dashboard/static/index.html +2172 -213
- package/docs/INSTALLATION.md +20 -11
- package/docs/bug-fixes/agent-01-cli-fixes.md +101 -0
- package/docs/bug-fixes/agent-02-purplelab-fixes.md +88 -0
- package/docs/bug-fixes/agent-03-dashboard-fixes.md +119 -0
- package/docs/bug-fixes/agent-04-memory-fixes.md +105 -0
- package/docs/bug-fixes/agent-05-provider-fixes.md +86 -0
- package/docs/bug-fixes/agent-06-integration-fixes.md +101 -0
- package/docs/bug-fixes/agent-07-dash-run-fixes.md +101 -0
- package/docs/bug-fixes/agent-08-docker-fixes.md +164 -0
- package/docs/bug-fixes/agent-09-e2e-build-fixes.md +69 -0
- package/docs/bug-fixes/agent-10-e2e-fullstack-fixes.md +102 -0
- package/docs/bug-fixes/agent-11-e2e-session-fixes.md +70 -0
- package/docs/bug-fixes/agent-12-scenario-fixes.md +120 -0
- package/docs/bug-fixes/agent-13-enterprise-fixes.md +143 -0
- package/docs/bug-fixes/agent-14-uat-newuser-fixes.md +88 -0
- package/docs/bug-fixes/agent-15-uat-poweruser-fixes.md +132 -0
- package/docs/bug-fixes/agent-19-code-review.md +316 -0
- package/docs/bug-fixes/agent-20-architecture-review.md +331 -0
- package/docs/competitive/bolt-new-analysis.md +579 -0
- package/docs/competitive/emergence-others-analysis.md +605 -0
- package/docs/competitive/replit-lovable-analysis.md +622 -0
- package/docs/test-scenarios/edge-cases.md +813 -0
- package/docs/test-scenarios/enterprise-scenarios.md +732 -0
- package/mcp/__init__.py +1 -1
- package/mcp/server.py +49 -5
- package/memory/consolidation.py +33 -0
- package/memory/embeddings.py +10 -1
- package/memory/engine.py +83 -38
- package/memory/retrieval.py +36 -0
- package/memory/storage.py +56 -4
- package/memory/token_economics.py +14 -2
- package/memory/vector_index.py +36 -7
- package/package.json +1 -1
- package/providers/gemini.sh +89 -2
- package/templates/README.md +1 -1
- package/templates/cli-tool.md +30 -0
- package/templates/dashboard.md +4 -0
- package/templates/data-pipeline.md +4 -0
- package/templates/discord-bot.md +47 -0
- package/templates/game.md +4 -0
- package/templates/microservice.md +4 -0
- package/templates/npm-library.md +4 -0
- package/templates/rest-api-auth.md +50 -20
- package/templates/rest-api.md +15 -0
- package/templates/saas-starter.md +1 -1
- package/templates/slack-bot.md +36 -0
- package/templates/static-landing-page.md +9 -1
- package/templates/web-scraper.md +4 -0
- package/web-app/dist/assets/AdminPage-CTcfgS9M.js +37 -0
- package/web-app/dist/assets/Badge-B2YpXmSD.js +1 -0
- package/web-app/dist/assets/Button-6PFunbl1.js +1 -0
- package/web-app/dist/assets/HomePage-CWPTs6Ny.js +23 -0
- package/web-app/dist/assets/{LoginPage-D4UdURJc.js → LoginPage-2aPfdDKK.js} +1 -1
- package/web-app/dist/assets/NotFoundPage-CM06geaR.js +1 -0
- package/web-app/dist/assets/ProjectPage-zaTHn-rD.js +279 -0
- package/web-app/dist/assets/ProjectsPage-CBbcfwPE.js +6 -0
- package/web-app/dist/assets/SettingsPage-vnLw2AsI.js +10 -0
- package/web-app/dist/assets/SystemSettingsPage-Djua8I-d.js +11 -0
- package/web-app/dist/assets/TeamsPage-JdDix27H.js +11 -0
- package/web-app/dist/assets/TemplatesPage-C1qz6lEI.js +39 -0
- package/web-app/dist/assets/TerminalOutput-we0dKa2X.js +31 -0
- package/web-app/dist/assets/activity-B1CD-TSg.js +6 -0
- package/web-app/dist/assets/bot-Bdc-A4yN.js +6 -0
- package/web-app/dist/assets/chart-column-DUGqXesc.js +6 -0
- package/web-app/dist/assets/check-Doaz68KQ.js +6 -0
- package/web-app/dist/assets/chevron-left-Cm8ECK4v.js +6 -0
- package/web-app/dist/assets/circle-alert-BmN-yR7A.js +6 -0
- package/web-app/dist/assets/clock-CQslsKPy.js +6 -0
- package/web-app/dist/assets/cloud-DoJyXVzT.js +6 -0
- package/web-app/dist/assets/copy-C3zdfDDI.js +6 -0
- package/web-app/dist/assets/database-DOPfEbC0.js +6 -0
- package/web-app/dist/assets/dollar-sign-ioMWPPqR.js +6 -0
- package/web-app/dist/assets/folder-open-CpHfutum.js +6 -0
- package/web-app/dist/assets/globe-CDrN7PCM.js +6 -0
- package/web-app/dist/assets/hammer-DGz2E8op.js +6 -0
- package/web-app/dist/assets/index-DSunGxXZ.js +408 -0
- package/web-app/dist/assets/index-DVvFZfV7.css +1 -0
- package/web-app/dist/assets/layers-D4__wU3f.js +6 -0
- package/web-app/dist/assets/loader-circle-LaNjK2Ca.js +6 -0
- package/web-app/dist/assets/lock-jithjpv-.js +6 -0
- package/web-app/dist/assets/package-B37MPAQL.js +6 -0
- package/web-app/dist/assets/plus-DnXmNF4F.js +6 -0
- package/web-app/dist/assets/refresh-cw-Bv7cRQU9.js +6 -0
- package/web-app/dist/assets/rotate-ccw-DyVycTkQ.js +11 -0
- package/web-app/dist/assets/save-EoKxa6D5.js +6 -0
- package/web-app/dist/assets/server-xs5YRQ1G.js +6 -0
- package/web-app/dist/assets/shield-alert-DdvWsEnr.js +6 -0
- package/web-app/dist/assets/shield-check-BoCLhMZJ.js +6 -0
- package/web-app/dist/assets/trash-2-DuMPmhre.js +6 -0
- package/web-app/dist/assets/usePolling-BI5O87hl.js +1 -0
- package/web-app/dist/assets/user-znfHSjbe.js +16 -0
- package/web-app/dist/index.html +2 -2
- package/web-app/server.py +1321 -53
- package/web-app/dist/assets/Badge-CBUx2PjL.js +0 -6
- package/web-app/dist/assets/Button-DsRiznlh.js +0 -21
- package/web-app/dist/assets/Card-B1bV4syB.js +0 -1
- package/web-app/dist/assets/HomePage-CZTV6Nea.js +0 -18
- package/web-app/dist/assets/NotFoundPage-CCLSeL6j.js +0 -1
- package/web-app/dist/assets/ProjectPage-D0w_X9tG.js +0 -237
- package/web-app/dist/assets/ProjectsPage-ByYxDlKC.js +0 -16
- package/web-app/dist/assets/SettingsPage-Xuv8EfAg.js +0 -1
- package/web-app/dist/assets/TemplatesPage-BKWN07mc.js +0 -1
- package/web-app/dist/assets/TerminalOutput-Dj98V8Z-.js +0 -51
- package/web-app/dist/assets/arrow-left-CaGtolHc.js +0 -6
- package/web-app/dist/assets/clock-C_CDmobx.js +0 -11
- package/web-app/dist/assets/external-link-CazyUyav.js +0 -6
- package/web-app/dist/assets/index-D452pFGl.css +0 -1
- package/web-app/dist/assets/index-Df4_kgLY.js +0 -196
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Loki Mode
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Build the future, faster.
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Describe what you want. Get production-ready code.**
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/loki-mode)
|
|
10
10
|
[](https://www.npmjs.com/package/loki-mode)
|
|
@@ -22,12 +22,31 @@
|
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
|
+
## Why Loki Mode?
|
|
26
|
+
|
|
27
|
+
- **Truly autonomous** -- Describe what you want, walk away, come back to working code with tests
|
|
28
|
+
- **Production quality built in** -- 9 quality gates, blind 3-reviewer code review, anti-sycophancy checks
|
|
29
|
+
- **Self-hosted and private** -- Your keys, your infrastructure, no data leaves your network
|
|
30
|
+
- **5 AI providers** -- Claude, Codex, Gemini, Cline, Aider with automatic failover
|
|
31
|
+
- **Full-stack output** -- Source code, tests, Docker configs, CI/CD pipelines, audit logs
|
|
32
|
+
- **Open source** -- Free for personal, internal, and academic use. No vendor lock-in.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
25
36
|
## Get Started in 30 Seconds
|
|
26
37
|
|
|
27
38
|
```bash
|
|
28
39
|
npm install -g loki-mode
|
|
29
40
|
loki doctor # verify environment
|
|
30
|
-
loki
|
|
41
|
+
loki init my-app --template simple-todo-app
|
|
42
|
+
cd my-app
|
|
43
|
+
loki start prd.md # autonomous build starts
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or skip scaffolding and go straight to a quick task:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
loki quick "build a landing page with a signup form"
|
|
31
50
|
```
|
|
32
51
|
|
|
33
52
|
<details>
|
|
@@ -46,6 +65,75 @@ See the full [Installation Guide](docs/INSTALLATION.md).
|
|
|
46
65
|
|
|
47
66
|
---
|
|
48
67
|
|
|
68
|
+
## What You Can Build
|
|
69
|
+
|
|
70
|
+
| Project | Build Time | Complexity |
|
|
71
|
+
|---------|:----------:|:----------:|
|
|
72
|
+
| Landing page with signup form | ~10 min | Simple |
|
|
73
|
+
| REST API with JWT auth | ~20 min | Simple |
|
|
74
|
+
| Portfolio with animations | ~15 min | Simple |
|
|
75
|
+
| SaaS dashboard with analytics | ~25 min | Standard |
|
|
76
|
+
| E-commerce store with Stripe | ~45 min | Standard |
|
|
77
|
+
| Task manager with kanban board | ~25 min | Standard |
|
|
78
|
+
| Chat app with WebSocket | ~30 min | Standard |
|
|
79
|
+
| Blog platform with MDX | ~30 min | Standard |
|
|
80
|
+
| Microservice architecture | ~2 hours | Complex |
|
|
81
|
+
| ML pipeline with monitoring | ~3 hours | Complex |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## What It Looks Like
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
+------------------------------------------------------------------+
|
|
89
|
+
| Purple Lab |
|
|
90
|
+
| Powered by Loki |
|
|
91
|
+
+------------------------------------------------------------------+
|
|
92
|
+
| | |
|
|
93
|
+
| Home | Describe it. Build it. Ship it. |
|
|
94
|
+
| Projects| |
|
|
95
|
+
|Templates| +----------------------------------------------------+ |
|
|
96
|
+
| Teams | | Build a SaaS dashboard with user analytics... | |
|
|
97
|
+
|Showcase | +----------------------------------------------------+ |
|
|
98
|
+
| Compare | |
|
|
99
|
+
| | [ Start Building ] |
|
|
100
|
+
| | |
|
|
101
|
+
|---------| +------+ +------+ +------+ +------+ |
|
|
102
|
+
| | |Phase | |Agent | |Termi-| |Quali-| |
|
|
103
|
+
| Settings| |Viewer| |Dash | | nal | | ty | |
|
|
104
|
+
| Docs | +------+ +------+ +------+ +------+ |
|
|
105
|
+
| | |
|
|
106
|
+
| v6.71.1 | +------------------+ +------------------+ |
|
|
107
|
+
| | | File Browser | | Memory Viewer | |
|
|
108
|
+
| | +------------------+ +------------------+ |
|
|
109
|
+
+------------------------------------------------------------------+
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
+------------------------------------------------------------------+
|
|
114
|
+
| PROJECT WORKSPACE |
|
|
115
|
+
+------------------------------------------------------------------+
|
|
116
|
+
| File Tree | Monaco Editor | AI Chat Panel |
|
|
117
|
+
| | | |
|
|
118
|
+
| > src/ | import { useState } | You: Add a search bar |
|
|
119
|
+
| App.tsx | from 'react'; | |
|
|
120
|
+
| index.ts | | AI: I will add a search |
|
|
121
|
+
| > public/ | export default | component with filtering |
|
|
122
|
+
| > tests/ | function App() { | and debounced input... |
|
|
123
|
+
| | return ( | |
|
|
124
|
+
| package.json <div>...</div> | [Send message] |
|
|
125
|
+
| | ); | |
|
|
126
|
+
| | } | Activity | Quality Gates |
|
|
127
|
+
| | | [Build Log] |
|
|
128
|
+
| | +--Live Preview------+ | [Agent Status] |
|
|
129
|
+
| | | localhost:3000 | | [Phase: Development] |
|
|
130
|
+
| | | | | |
|
|
131
|
+
| | +--------------------+ | |
|
|
132
|
+
+------------------------------------------------------------------+
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
49
137
|
## What To Expect
|
|
50
138
|
|
|
51
139
|
| | Simple | Standard | Complex |
|
|
@@ -132,10 +220,11 @@ loki web # launches at http://localhost:57375
|
|
|
132
220
|
<td width="50%" valign="top">
|
|
133
221
|
|
|
134
222
|
**Platform Pages**
|
|
135
|
-
- Home --
|
|
136
|
-
- Projects --
|
|
223
|
+
- Home -- One-line prompt to start building instantly
|
|
224
|
+
- Projects -- Browse, search, filter past builds
|
|
137
225
|
- Templates -- 20+ starter PRDs by category
|
|
138
|
-
-
|
|
226
|
+
- Showcase -- Gallery of example projects to build
|
|
227
|
+
- Compare -- Feature comparison vs competitors
|
|
139
228
|
|
|
140
229
|
</td>
|
|
141
230
|
<td width="50%" valign="top">
|
|
@@ -153,6 +242,24 @@ loki web # launches at http://localhost:57375
|
|
|
153
242
|
|
|
154
243
|
---
|
|
155
244
|
|
|
245
|
+
## Loki Mode vs. Alternatives
|
|
246
|
+
|
|
247
|
+
| Feature | Loki Mode | bolt.new | Replit | Lovable |
|
|
248
|
+
|---------|:---------:|:--------:|:------:|:-------:|
|
|
249
|
+
| Self-hosted / your keys | Yes | No | No | No |
|
|
250
|
+
| 5 AI provider failover | Yes | No | No | No |
|
|
251
|
+
| 9 quality gates | Yes | No | No | No |
|
|
252
|
+
| Blind code review | Yes | No | No | No |
|
|
253
|
+
| Enterprise auth (SSO/RBAC) | Yes | No | Yes | No |
|
|
254
|
+
| Air-gapped deployment | Yes | No | No | No |
|
|
255
|
+
| Docker + CI/CD generation | Yes | No | Yes | No |
|
|
256
|
+
| Open source | Yes | No | No | No |
|
|
257
|
+
| Free tier | Open source | Yes | Yes | Yes |
|
|
258
|
+
|
|
259
|
+
Loki Mode is the only platform that is fully self-hosted, open source, and includes automated quality verification. Your code, your keys, your infrastructure.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
156
263
|
## Multi-Provider Support
|
|
157
264
|
|
|
158
265
|
| Provider | Autonomous Flag | Parallel Agents | Install |
|
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 minimal human intervention. Requires --dangerously-skip-permissions flag.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Loki Mode v6.
|
|
6
|
+
# Loki Mode v6.73.0
|
|
7
7
|
|
|
8
8
|
**You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
|
|
9
9
|
|
|
@@ -268,4 +268,4 @@ The following features are documented in skill modules but not yet fully automat
|
|
|
268
268
|
| Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
|
|
269
269
|
| Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
|
|
270
270
|
|
|
271
|
-
**v6.
|
|
271
|
+
**v6.73.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.73.0
|
|
@@ -391,6 +391,32 @@ hook_healing_phase_gate() {
|
|
|
391
391
|
|
|
392
392
|
[[ "${LOKI_HEAL_MODE:-false}" != "true" ]] && return 0
|
|
393
393
|
|
|
394
|
+
# BUG-HEAL-002: Validate phase transition ordering
|
|
395
|
+
# Valid healing phases in order: archaeology -> stabilize -> isolate -> modernize -> validate
|
|
396
|
+
# Only forward transitions to the immediately next phase are allowed.
|
|
397
|
+
local valid_phases="archaeology stabilize isolate modernize validate"
|
|
398
|
+
local from_idx=-1
|
|
399
|
+
local to_idx=-1
|
|
400
|
+
local idx=0
|
|
401
|
+
for p in $valid_phases; do
|
|
402
|
+
[[ "$p" == "$from_phase" ]] && from_idx=$idx
|
|
403
|
+
[[ "$p" == "$to_phase" ]] && to_idx=$idx
|
|
404
|
+
idx=$((idx + 1))
|
|
405
|
+
done
|
|
406
|
+
|
|
407
|
+
if [[ "$from_idx" -eq -1 ]]; then
|
|
408
|
+
echo "GATE_BLOCKED: Unknown source phase: ${from_phase}" && return 1
|
|
409
|
+
fi
|
|
410
|
+
if [[ "$to_idx" -eq -1 ]]; then
|
|
411
|
+
echo "GATE_BLOCKED: Unknown target phase: ${to_phase}" && return 1
|
|
412
|
+
fi
|
|
413
|
+
if [[ "$to_idx" -le "$from_idx" ]]; then
|
|
414
|
+
echo "GATE_BLOCKED: Cannot transition backwards from ${from_phase} to ${to_phase}" && return 1
|
|
415
|
+
fi
|
|
416
|
+
if [[ "$to_idx" -gt $((from_idx + 1)) ]]; then
|
|
417
|
+
echo "GATE_BLOCKED: Cannot skip phases -- must transition from ${from_phase} to the next sequential phase" && return 1
|
|
418
|
+
fi
|
|
419
|
+
|
|
394
420
|
case "${from_phase}:${to_phase}" in
|
|
395
421
|
archaeology:stabilize)
|
|
396
422
|
# Require: friction map has entries, characterization tests pass
|