loki-mode 7.28.1 → 7.29.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 +30 -19
- package/SKILL.md +8 -2
- package/VERSION +1 -1
- package/autonomy/loki +273 -30
- package/autonomy/provider-offer.sh +249 -0
- package/autonomy/quickstart.sh +584 -0
- package/dashboard/__init__.py +1 -1
- package/docs/INSTALLATION.md +10 -1
- package/docs/alternative-installations.md +1 -1
- package/loki-ts/dist/loki.js +208 -208
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/templates/simple-todo-app.md +13 -144
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
- **Production quality built in** -- 11 quality gates (`skills/quality-gates.md`), blind 3-reviewer code review (`run.sh:run_code_review()`), anti-sycophancy checks
|
|
29
29
|
- **Standalone verification: `loki verify`** -- Run Loki's deterministic gates (build, tests, static analysis, secret scan, dependency audit) against any branch or PR diff, including code written by other agents or humans. CI-ready exit codes (0 VERIFIED, 1 CONCERNS, 2 BLOCKED), machine-readable evidence at `.loki/verify/evidence.json`. Inconclusive evidence is never reported as VERIFIED (v7.27.0).
|
|
30
30
|
- **Living spec and pre-build interrogation** -- `loki spec` locks a spec and detects drift deterministically (`spec.lock`, `drift-report.json`, and a `SPEC_DRIFT` finding in `loki verify` with CI exit codes), so you can tell when the build diverges from what was agreed. `loki grill` runs a Devil's-Advocate interrogation of the spec before you build, surfacing gaps and contradictions early (v7.28.0).
|
|
31
|
+
- **Guided first build: `loki quickstart`** -- four quick questions (setup check, one-line idea, template pick, plan review) and your build starts; pressing Enter through every step builds the sample Todo app. The plan step quotes the real cost/time estimate before anything is spent, and `loki demo` now confirms its estimate the same way. If no AI provider CLI is installed, Loki offers to install Claude Code (consent-gated, interactive terminals only) (v7.29.0).
|
|
31
32
|
- **Live App Preview** -- The dashboard embeds the locally-running app in an iframe so you can interact with it immediately during a build. Use `loki preview` (alias `loki open`) to print the URL and open it in your browser. Local-first: no hosted service, no vendor lock (v7.24.0).
|
|
32
33
|
- **Compose-first fullstack** -- When a spec needs more than one service (web + database + cache) Loki generates a 12-factor `docker-compose.yml` with healthchecks, `depends_on` wiring, env-var config, and a `.env.example`. The Live App Preview surfaces the web service URL (not a database port), and health reflects the web service's Docker healthcheck so a crashed app shows as crashed even when the database stays up. Single-service apps stay on a plain run command. All local-first, no hosted service (v7.26.0).
|
|
33
34
|
- **Intelligent `loki start`** -- For interactive foreground runs the dashboard auto-opens in the browser (cross-platform; skipped in CI, SSH-without-TTY, and piped runs; opt out with `LOKI_NO_AUTO_OPEN=1`). The completion summary shows "Your app is live at <url>" so you know exactly where to try what Loki just built. The autonomous loop passes Claude Code's `--effort`, `--max-budget-usd`, and `--fallback-model` on every iteration (each gated on CLI support and individual opt-out env vars) for better long-run unattended execution (v7.25.0).
|
|
@@ -43,40 +44,50 @@
|
|
|
43
44
|
|
|
44
45
|
## Get Started in 30 Seconds
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
```bash
|
|
48
|
+
bun install -g loki-mode # install (npm/brew/Docker also work, see below)
|
|
49
|
+
loki init my-app --template simple-todo-app # scaffold a starter PRD
|
|
50
|
+
cd my-app && loki start prd.md # autonomous build from the spec
|
|
51
|
+
```
|
|
47
52
|
|
|
48
|
-
Loki drives a coding
|
|
53
|
+
That is the happy path. One thing to know first: Loki drives a separate coding-agent CLI (Claude Code is the recommended one) and needs it plus a couple of common tools on your PATH. Run `loki doctor` any time and it tells you exactly what is present and what is missing, with a copy-pasteable install command for each gap.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
loki doctor # check your setup before the first build
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
<details>
|
|
60
|
+
<summary><strong>What Loki needs (and what loki doctor checks)</strong></summary>
|
|
49
61
|
|
|
50
62
|
Required:
|
|
51
63
|
|
|
52
|
-
- An agent provider CLI: [Claude Code](https://docs.claude.com/en/docs/claude-code) (`claude`, Tier 1, recommended and E2E-verified - the provider Loki Mode is built for). Codex, Cline, and Aider are supported as experimental providers (wiring in place; not yet E2E-verified by us).
|
|
64
|
+
- An agent provider CLI: [Claude Code](https://docs.claude.com/en/docs/claude-code) (`claude`, Tier 1, recommended and E2E-verified - the provider Loki Mode is built for). Codex, Cline, and Aider are supported as experimental providers (wiring in place; not yet E2E-verified by us). Loki cannot run a build without one of these installed and authenticated.
|
|
53
65
|
- Python 3.10+ (`python3`) for the dashboard, memory system, and orchestration helpers.
|
|
54
66
|
- Git 2.x (`git`) for checkpoints and worktrees.
|
|
55
67
|
- `curl` for installation and network calls.
|
|
56
68
|
|
|
57
69
|
Recommended:
|
|
58
70
|
|
|
59
|
-
- Bun 1.3.0+ (`bun`) for the fast runtime (the recommended install path
|
|
71
|
+
- Bun 1.3.0+ (`bun`) for the fast runtime (the recommended install path above installs it).
|
|
60
72
|
- Node.js 18+ and npm if you install via npm instead of Bun.
|
|
61
73
|
- `jq` for nicer JSON handling in shell flows.
|
|
62
74
|
- Docker if you want Loki's App Runner to run containerized projects, or to run Loki itself from the published image.
|
|
63
75
|
|
|
64
|
-
You also need credentials for whichever provider you use (for Claude Code, an authenticated `claude` login or `ANTHROPIC_API_KEY`).
|
|
76
|
+
You also need credentials for whichever provider you use (for Claude Code, an authenticated `claude` login or `ANTHROPIC_API_KEY`). `loki doctor` flags a missing or unauthenticated provider as the first thing to fix.
|
|
77
|
+
|
|
78
|
+
</details>
|
|
79
|
+
|
|
80
|
+
If you do not have Bun yet:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
curl -fsSL https://bun.sh/install | bash # macOS / Linux (or: brew install oven-sh/bun/bun)
|
|
84
|
+
```
|
|
65
85
|
|
|
66
|
-
|
|
86
|
+
Other spec sources work the same way:
|
|
67
87
|
|
|
68
88
|
```bash
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
# or: brew install oven-sh/bun/bun
|
|
72
|
-
|
|
73
|
-
bun install -g loki-mode
|
|
74
|
-
loki doctor # verify environment
|
|
75
|
-
loki init my-app --template simple-todo-app
|
|
76
|
-
cd my-app
|
|
77
|
-
loki start prd.md # autonomous build from a Markdown PRD
|
|
78
|
-
loki start owner/repo#123 # ...or a GitHub issue
|
|
79
|
-
loki start ./openapi.yaml # ...or an OpenAPI/YAML spec
|
|
89
|
+
loki start owner/repo#123 # a GitHub issue
|
|
90
|
+
loki start ./openapi.yaml # an OpenAPI/YAML spec
|
|
80
91
|
```
|
|
81
92
|
|
|
82
93
|
Or skip scaffolding and go straight to a quick task:
|
|
@@ -91,7 +102,7 @@ loki quick "build a landing page with a signup form"
|
|
|
91
102
|
|--------|---------|-------|
|
|
92
103
|
| **Bun (recommended)** | `bun install -g loki-mode` | Fastest startup for CLI commands. |
|
|
93
104
|
| **Homebrew** | `brew tap asklokesh/tap && brew install loki-mode` | Auto-installs Bun as a dep |
|
|
94
|
-
| **Docker** | `docker pull asklokesh/loki-mode:7.
|
|
105
|
+
| **Docker** | `docker pull asklokesh/loki-mode:7.29.0 && docker run --rm asklokesh/loki-mode:7.29.0 start prd.md` | Bun pre-installed in image |
|
|
95
106
|
| **npm (compat)** | `npm install -g loki-mode` | Works without Bun (bash fallback). Migrate any time with `loki self-update --to bun`. |
|
|
96
107
|
|
|
97
108
|
**Upgrading:**
|
|
@@ -151,7 +162,7 @@ The next major release sunsets the Bash runtime entirely. There is no firm calen
|
|
|
151
162
|
| Method | Command |
|
|
152
163
|
|--------|---------|
|
|
153
164
|
| **Homebrew** | `brew tap asklokesh/tap && brew install loki-mode` |
|
|
154
|
-
| **Docker** | `docker pull asklokesh/loki-mode:7.
|
|
165
|
+
| **Docker** | `docker pull asklokesh/loki-mode:7.29.0` |
|
|
155
166
|
| **Inside Claude Code** | `claude --dangerously-skip-permissions` then type "Loki Mode" |
|
|
156
167
|
| **Git clone** | `git clone https://github.com/asklokesh/loki-mode.git` |
|
|
157
168
|
|
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: loki-mode
|
|
|
3
3
|
description: Autonomous spec-driven build system with a built-in trust layer. It does not call work done until it is verified (RARV-C closure loop, 11 quality gates, completion council, verified-completion evidence gate). Triggers on "Loki Mode". Takes a spec (PRD, GitHub issue, OpenAPI doc, etc.) to deployed product with minimal human intervention. Provider-agnostic. Requires --dangerously-skip-permissions flag.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Loki Mode v7.
|
|
6
|
+
# Loki Mode v7.29.0
|
|
7
7
|
|
|
8
8
|
**You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
|
|
9
9
|
|
|
@@ -342,6 +342,12 @@ Two completion-trust features extend the verification gates. Full details in `sk
|
|
|
342
342
|
- **Held-out spec evals:** ~25% of checklist items (deterministic `sha256(id)` order, `N >= 4`) are reserved into `.loki/checklist/held-out.json` and excluded from the build prompt feed; the completion council blocks if a held-out item fails. Opt out with `LOKI_HELDOUT_GATE=0`. Honest limit: this guards the prompt feed, not a sandbox; the reservation file is on disk and an agent with filesystem access can read it.
|
|
343
343
|
- **Inconclusive-baseline disclosure:** when the evidence gate cannot establish a diff baseline (`no_git_repo` / `no_run_start_sha`) it writes `.loki/state/evidence-inconclusive.json` and `COMPLETION.txt` carries an honest "not independently verified" line. It never blocks non-git projects; red tests still block.
|
|
344
344
|
|
|
345
|
+
## First-run UX (v7.29.0)
|
|
346
|
+
|
|
347
|
+
- **`loki quickstart`:** guided 4-step first build (setup check, one-line idea, offline template match, plan review with real estimator figures); Enter-through-everything builds the sample Todo app; non-TTY/CI exits 2 with an automation hint.
|
|
348
|
+
- **Provider install offer:** when no provider CLI is found, doctor and the start/demo/quick/quickstart pre-flight offer to install Claude Code. Consent-gated on an interactive TTY only; the single command executed is printed first; auth handoff via `claude auth login` with readiness confirmed by `claude auth status`. Opt out: `LOKI_NO_INSTALL_OFFER=1`.
|
|
349
|
+
- **`loki demo` cost confirm:** the estimate always prints before spending; `--yes` skips the prompt, never the estimate. `LOKI_COMPLEXITY` is honored by `loki plan` with an honest forced-tier note.
|
|
350
|
+
|
|
345
351
|
---
|
|
346
352
|
|
|
347
353
|
## Concurrency and Security Hardening (v7.5.7 - v7.5.13)
|
|
@@ -392,4 +398,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
|
|
|
392
398
|
|
|
393
399
|
---
|
|
394
400
|
|
|
395
|
-
**v7.
|
|
401
|
+
**v7.29.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.29.0
|