loki-mode
Über
Loki Mode ist ein autonomer SDLC-Agent, der vollständige Entwicklungszyklen von der PRD bis zur Bereitstellung mit minimalem menschlichem Eingriff abwickelt. Entwickler können ihn für mehrphasige Aufgaben, Bugfix-Kampagnen oder komplette Produktaufbauten aufrufen, wenn sie eine automatisierte Ausführung von Anforderungen benötigen. Es erfordert die Installation der loki-CLI zusammen mit einem unterstützten KI-Codierungstool wie Claude Code, Codex CLI oder Gemini CLI.
Schnellinstallation
Claude Code
Empfohlennpx skills add asklokesh/claudeskill-loki-mode -a claude-code/plugin add https://github.com/asklokesh/claudeskill-loki-modegit clone https://github.com/asklokesh/claudeskill-loki-mode.git ~/.claude/skills/loki-modeKopieren Sie diesen Befehl und fügen Sie ihn in Claude Code ein, um diese Fähigkeit zu installieren
Dokumentation
Loki Mode - OpenClaw Skill
When to use
- User asks to "build", "implement", or "develop" a feature from a PRD
- User provides a requirements document and wants autonomous execution
- User says "loki mode" or references autonomous development
- User wants to run a full SDLC cycle on a codebase
Prerequisites
lokiCLI installed on the host (vianpm install -g loki-modeor Homebrew)- One of: Claude Code, Codex CLI, or Gemini CLI installed
- Corresponding API key set (ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY)
How to invoke
Start a session
Use the bash tool with background mode:
bash(command: "loki start <prd-path> --bg --yes --no-dashboard", pty: true, background: true, workdir: "<project-dir>")
Key flags:
--bg: Background mode (session outlives the tool call)--yes: Skip confirmation prompts--no-dashboard: Avoid port conflicts in sandboxed environments--provider <claude|codex|gemini>: Select AI provider (default: claude)--budget <amount>: Set cost limit in USD (auto-pause when exceeded)
Monitor progress
Poll status every 30 seconds:
bash(command: "loki status --json", workdir: "<project-dir>")
The JSON output contains:
version: Loki Mode version stringstatus: inactive, running, paused, stopped, completed, unknownphase: Current SDLC phase (e.g., BOOTSTRAP, DISCOVERY, ARCHITECTURE, DEVELOPMENT, QA, DEPLOYMENT)iteration: Current iteration numberprovider: Which AI provider is active (claude, codex, gemini)pid: Process ID of the running session (null if not running)elapsed_time: Seconds since session startdashboard_url: URL of the web dashboard (null if disabled)task_counts: Object withtotal,completed,failed,pendingcounts
For budget tracking (not in JSON output), read the budget file directly:
bash(command: "cat .loki/metrics/budget.json 2>/dev/null || echo '{}'", workdir: "<project-dir>")
Budget JSON fields: budget_limit, budget_used
Report progress to channel
After each poll, summarize changes:
- Phase transitions ("Moved from ARCHITECTURE to DEVELOPMENT")
- Task completion counts ("12/20 tasks complete, 0 failed")
- Elapsed time ("Running for 45 minutes")
- Error states that need attention (failed tasks > 0, status is unknown)
If budget tracking is active, include cost in updates:
- "Estimated cost: $4.50 / $50.00 budget"
Control commands
- Pause:
bash(command: "loki pause", workdir: "<project-dir>") - Resume:
bash(command: "loki resume", workdir: "<project-dir>") - Stop:
bash(command: "loki stop", workdir: "<project-dir>") - Status:
bash(command: "loki status", workdir: "<project-dir>") - Logs:
bash(command: "loki logs --tail 50", workdir: "<project-dir>")
Session complete
When status becomes "stopped" or "completed":
- Run
loki status --jsonfor final summary - Run
git log --oneline -20to show commits made - Report final task counts, elapsed time, and duration
- If council verdict exists, include it:
cat .loki/council/report.md
Critical rules
- ALWAYS use --bg flag (session must outlive the tool call)
- ALWAYS use --yes flag (no confirmation prompts in non-interactive channels)
- NEVER run loki in the OpenClaw workspace directory itself
- Poll status rather than watching stdout (background mode detaches)
- If session crashes, check
loki logsbefore restarting - Respect budget limits -- include cost in every progress update when tracking is active
- The --no-dashboard flag is recommended to avoid port conflicts in sandboxed environments
GitHub Repository
Häufig gestellte Fragen
Was ist der Skill loki-mode?
loki-mode ist ein Claude Skill von asklokesh. Skills bündeln Anweisungen und Ressourcen, die Claude bei Bedarf lädt, um Aufgaben rund um loki-mode ohne zusätzliche Eingaben auszuführen.
Wie installiere ich loki-mode?
Verwende die Installationsbefehle auf dieser Seite: Füge loki-mode als Plugin zu Claude Code hinzu oder klone das Repository in dein Skills-Verzeichnis. Starte Claude danach neu, damit der Skill geladen wird.
Zu welcher Kategorie gehört loki-mode?
loki-mode gehört zur Kategorie Meta.
Kann ich loki-mode kostenlos nutzen?
Ja. loki-mode ist auf AIMCP gelistet und kann kostenlos installiert werden.
Verwandte Skills
Diese Skill bietet eine produktionsgetestete Einrichtung für Content Collections – ein TypeScript-first-Tool, das Markdown/MDX-Dateien in typsichere Datensammlungen mit Zod-Validierung umwandelt. Verwenden Sie ihn beim Erstellen von Blogs, Dokumentationsseiten oder inhaltsstarken Vite + React-Anwendungen, um Typsicherheit und automatische Inhaltsvalidierung zu gewährleisten. Er behandelt alles von der Vite-Plugin-Konfiguration und MDX-Kompilierung bis hin zur Deployment-Optimierung und Schema-Validierung.
Diese Fähigkeit ermöglicht es Entwicklern, Anwendungen mit der Polymarket-Prognosemärkte-Plattform zu erstellen, einschließlich API-Integration für Handel und Marktdaten. Sie bietet außerdem Echtzeit-Datenstreaming über WebSocket, um Live-Trades und Marktaktivitäten zu überwachen. Nutzen Sie sie zur Implementierung von Handelsstrategien oder zur Erstellung von Tools, die Live-Marktaktualisierungen verarbeiten.
Diese Fähigkeit unterstützt Entwickler dabei, OpenCode-Plugins zu erstellen, die in über 25 Ereignistypen wie Befehle, Dateien und LSP-Operationen eingreifen. Sie bietet die Plugin-Struktur, Event-API-Spezifikationen und Implementierungsmuster für JavaScript/TypeScript-Module. Nutzen Sie sie, wenn Sie den Lebenszyklus des OpenCode KI-Assistenten mit benutzerdefinierter ereignisgesteuerter Logik abfangen, überwachen oder erweitern müssen.
SGLang ist ein hochperformantes LLM-Serving-Framework, das sich auf schnelle, strukturierte Generierung für JSON, Regex und agentenbasierte Workflows unter Verwendung seines RadixAttention-Prefix-Cachings spezialisiert. Es bietet deutlich schnellere Inferenz, insbesondere für Aufgaben mit wiederholten Präfixen, was es ideal für komplexe, strukturierte Ausgaben und Mehrfachdialoge macht. Wählen Sie SGLang gegenüber Alternativen wie vLLM, wenn Sie constrained decoding benötigen oder Anwendungen mit umfangreicher Präfix-Weitergabe entwickeln.
