Loki Mode

An autonomous spec-driven builder: takes a PRD or issue, writes the code and refuses to call it done without verification

CLIHigh risk

asklokesh/loki-mode

Install

npm install -g loki-mode

Alternatives: bun install -g loki-mode (recommended by the author) or brew tap asklokesh/tap && brew install loki-mode.

This is third-party code. Review the repository files before installing.

What it does

Loki Mode takes a spec as a PRD, GitHub issue, OpenAPI document or a one-line idea and runs planning, implementation, review and verification on its own. Work is not accepted until eight quality gates pass: an empty diff, failing tests, an app that does not boot or a leaked secret all block completion. Each run writes a receipt to .loki/proofs/ that separates facts (diff, test and build exit codes) from model judgments, and loki proof verify re-checks it. For existing repositories a modernize mode starts with a read-only assessment of the codebase.

Who it is for. For developers and founders who want to hand an agent a whole build and get a result they can verify.

Good fit when

  • You have a PRD or issue and want it turned into working code with tests
  • You need a prototype from a short brief without steering the agent by hand
  • You want to assess a legacy repository before modernization without changing it

Not a fit when

  • You need small edits under close control
  • You cannot let an agent run commands without approval
  • Your token budget is tight

Example request

Run Loki Mode on prd.md and build the app with tests

Limitations

Requires ANTHROPIC_API_KEY or another model provider (Claude Code, Codex, Cline, Aider). The autonomous skill mode requires the --dangerously-skip-permissions flag. Licensed under BUSL-1.1 rather than a classic open source license; commercial editions are sold under the Autonomi brand. Long builds consume significant tokens; quickstart shows a cost estimate before starting.

How to disable. Remove the CLI with npm uninstall -g loki-mode or brew uninstall loki-mode and uninstall the Claude Code plugin with claude plugin uninstall. A running session stops when a .loki/STOP file appears in the project.

Security check

  • The agent runs commands, writes code and commits autonomously
  • Skill mode requires skipping permission prompts
  • Consumes paid model tokens

README in short

The README opens with installation via bun, npm, Homebrew or Docker and the loki quickstart command, which asks a few questions, shows a cost estimate and builds the project. It then covers a non-interactive CI mode, template selection, JSON plan previews and a modernize mode for existing repositories. A dedicated section explains verification receipts and states plainly what they do not guarantee. The project works with Claude, Codex, Cline and Aider.

FAQ

Can I try it without installing or a key?

Yes, npx loki-mode tour prints a sample receipt from a past build with no network or spend.

What does the Claude Code plugin add?

Three slash commands and the Loki MCP server with memory, a task queue and code search. The CLI itself must be installed separately.

Editors’ pick

Open-source personal AI assistant on your own machine: answers in Telegram, Slack, Discord and WhatsApp, extended with skills and plugins

CLIHigh risk389.7K
Editors’ pick

A self-improving agent from Nous Research with a TUI, messaging gateway, cron jobs and skills it writes itself

CLIHigh risk245.5K
Editors’ pick

An open source coding agent for the terminal and desktop with build and plan modes

CLIHigh risk207.4K
Editors’ pick

Anthropic's coding agent for the terminal, IDE and GitHub: understands your codebase, runs tasks and handles git

CLIHigh risk145K