Loki Mode

Loki Mode is an agent harness, orchestration layer, and Claude Code plugin developed by asklokesh. It is designed to introduce structured verification, review guardrails, and automated artifact validation directly into terminal-based AI workflows. In daily operations, Loki Mode operates either as a standalone CLI (`loki`) or as a native plugin integrated into Claude Code via the Model Context Protocol (MCP). It wraps coding and review tasks with specialized commands—such as `loki verify`, `loki spec-status`, and `loki grill`—that evaluate codebase modifications against specifications and generate structured evidence artifacts (including `evidence.json` and `drift-report.json`). What sets Loki Mode apart from standard unconstrained agent runners is its focus on defensive execution and council-based code reviewing. It enforces strict least-privilege read/inspect tool allowlists, a mutation-blocking denylist, and optional command safety guard hooks to prevent unauthorized shell executions and unintended file mutations during agent loops. Loki Mode is distributed under the Business Source License (BUSL-1.1) and is packaged for Python environments alongside Claude Code marketplace integration.

Tags: ai agent, cli, code assistant, coding agent, developer tools, OpenSource

Visit Loki Mode