Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

loki-mode

БесплатноБез исполняемых скриптовНе проверен

Runs an autonomous software factory that knows what it is supposed to deliver and proves it did, with a signed receipt. Use when the user says Loki Mode or…

asklokeshот asklokesh★ 1 129 звёзд на GitHub

Об этом скилле

Loki Mode v11.199.0

Current entry points (Loki 10 engine): loki "<task>", loki owner/repo#N and loki quick "<task>" run the Loki 10 engine and end with a signed receipt (loki verify). loki backlog owner/repo --all runs many issues in parallel. Guide: docs/v10/GUIDE.md. The skill instructions below, and loki start, describe the previous bash loop. PRD-file starts (loki start ./prd.md) and the opencode provider still run on it until FC38-SWEEP ports them; the legacy-engine command and the LOKI_ENGINE switch remain removed. Prefer loki owner/repo#N for issues.

You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.

Prerequisite: run loki doctor once; it checks the provider CLI, auth, git and runtime, and prints the fix for each failure.

Spec in, verified product out. Spec-driven: a "spec" is whatever describes the work -- a Markdown PRD, a GitHub issue, an OpenAPI doc, a Jira ticket (a PRD is one form of spec). The differentiator is the trust layer: Loki does not call work done until it is verified. The RARV-C closure loop, 8 quality gates, the completion council, and the verified-completion evidence gate must all clear before completion is accepted. The evidence gate blocks on empty-diff, red tests, an unhealthy serveable app (runtime-boot axis, LOKI_EVIDENCE_BOOT_GATE=0 to opt out), and a leaked credential in the changed files (secret-leak axis, LOKI_EVIDENCE_SECRET_GATE=0 to opt out) -- v8.0.0.

Evidence Receipt (verify it yourself). Every run writes a receipt to .loki/proofs/<run_id>/ (opt out with LOKI_PROOF=0) that separates deterministic FACTS (git diff with base/head SHAs and a diff_sha256, the test command + exit code, the build command + exit code, each gate verdict) from AI ASSESSMENTS (the council verdict, labeled judgment not proof). The headline is computed only from the facts: VERIFIED (tests ran a real command and exited 0, diff non-empty, nothing skipped), VERIFIED WITH GAPS (each gap listed by name), or NOT VERIFIED (a check ran and failed). Inspect and re-check with loki proof list|show <id>|verify <id> (aliased loki receipt); loki proof verify re-hashes the receipt (tamper) and re-derives the diff from the recorded base SHA against the live repo (drift), exiting 0 clean / 1 tamper-or-drift / 2 could not check (64 usage, 66 unknown id; see docs/exit-codes.md). This is honesty-of-done, not a claim that the code is bug-free.

Providers: Claude Code (full), the Anthropic Agent SDK path for API-key users (still --provider claude), and opencode (any model, including OpenRouter). codex, cline, aider and gemini were removed and exit 2 with a migration line. See skills/providers.md. Legacy track (v8.0.0): the Anthropic Agent SDK route (see below), spec-mode expansion for OpenAPI/GraphQL/Postman contracts, the runtime-boot and secret-leak evidence axes, and loki steer / loki why for mid-run control. Earlier tracks: LSP grounding as a first-class agent tool (v7.7.x) and Phase 1 RARV-C closure (real provider judges, gate-failure flock, synthetic PRD e2e, status --json).

Runtime migration: Bash-to-Bun migration. bin/loki is the router: the commands in its Bun-route case (read-only ones such as version, status, stats, doctor, provider, memory, plus stateful ones such as rollback, trust, proof/receipt, control, answer) run through loki-ts/src/cli.ts on Bun; the rest, and some flag forms (for example doctor --airgap, trust detail), run on Bash (autonomy/loki). start and quick are routed by autonomy/route.sh to the Loki 10 engine; the Bash loop runs only on --engine legacy. Read bin/loki and cli.ts for the exact set rather than trusting a list here. Rollback: LOKI_LEGACY_BASH=1. See docs/architecture/ADR-001-runtime-migration.md.

Anthropic Agent SDK route (v8.0.0, opt-in, default-off): a claude-binary-free path where the RARV loop runs on @anthropic-ai/claude-agent-sdk query() and judges run on the raw @anthropic-ai/sdk. One operator switch LOKI_SDK_MODE (off default / judges / full), mirrored byte-for-byte in bash (autonomy/lib/sdk-mode.sh) and TypeScript (loki-ts/src/runner/sdk_mode.ts). Unset = byte-identical to the claude-CLI route. See references/sdk-mode.md.


PRIORITY 1: Load Context (Every Turn)

Execute these steps IN ORDER at the start of EVERY turn:

1. IF first turn of session:
   - Load 1-2 modules matching your current phase (Module Loading Protocol)
   - Register session: Write .loki/session.json with:
     {"pid": null, "startedAt": "<ISO timestamp>", "provider": "<provider>",
      "invokedVia": "skill", "status": "running", "updatedAt": "<ISO timestamp>"}

2. Read .loki/state/orchestrator.json
   - Extract: currentPhase, tasksCompleted, tasksFailed

3. Read .loki/queue/pending.json
   - IF empty AND phase incomplete: Generate tasks for current phase
   - IF empty AND phase complete:
Полный SKILL.md на GitHub

Установить loki-mode в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.dockerignore.gitignore.gitleaksignore.mcp.json.npmignoreCHANGELOG.mdCLA.mdCLAUDE.mdCOMMERCIAL-TERMS.mdLICENSEREADME.mdSECURITY.mdUPGRADING.mdVERSIONglama.jsonpackage-lock.jsonpackage.jsonserver.json

FAQ

Что делает скилл loki-mode?

Runs an autonomous software factory that knows what it is supposed to deliver and proves it did, with a signed receipt. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.

Как установить скилл loki-mode?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл loki-mode запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить loki-mode с