Skip to content

Loki Mode

v7.19.2 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-agents aider anthropic autonomous ci-cd claude
+13 more
cline code-review devops gemini github-action github-issues loki-mode multi-agent openai-codex openapi pull-request-review sdlc spec-driven-development

Summary

AI summary

Adds uncertainty‑gated escalation that proactively notifies humans when Loki appears stuck.

Full changelog

Added

  • Uncertainty-gated escalation (default-on, opt out with
    LOKI_UNCERTAINTY_ESCALATION=0). When Loki looks stuck, it now proactively
    escalates to the human (writes a structured handoff, fires an intervention
    notification, drops a .loki/signals/UNCERTAINTY_ESCALATION marker, and
    touches .loki/PAUSE) instead of silently burning iterations until
    max-iterations. The trigger reuses three signals already in the loop, with no
    new metacognition: P1 the circuit-breaker no-change counter, P2 diff-hash
    oscillation (a recurrence A -> B -> A, NOT a trivial A -> A repeat, which is
    P1's territory), and P3 a persistent council split (trailing rounds rejected
    with at least one approver). Escalation fires only when at least two of the
    three co-occur for N consecutive rounds (LOKI_UNCERTAINTY_ROUNDS, default 2),
    so a single noisy proxy cannot escalate alone, and it debounces to once per
    stuck-episode (re-arms when the co-occurrence clears) so it never spams. When
    it fires it prints a loud terminal line naming the opt-out.

NOT tested in this release (honest disclosure)

  • Default autonomy mode is "perpetual", where .loki/PAUSE auto-clears, so by
    DEFAULT this feature is NOTIFY-ONLY: it surfaces the stuck state and saves a
    handoff but does not halt the run. It halts only in checkpoint/supervised
    modes. This is disclosed at the escalation site and in the docs.
  • The three proxies are heuristics, not true metacognition: they can false-fire
    (escalate when Loki is actually fine) and miss (stay quiet when it is stuck).
    The 2-of-3 + N-round gate reduces but does not eliminate false fires.
  • P3 (council split) is stale between council votes (verdicts only append when
    the council actually votes), so the split signal can lag.
  • No live multi-iteration autonomous run was used; verification is the decision
    function against per-case throwaway fixtures (42 assertions, including a
    pure-stagnation guard proving P2 does not fire without genuine oscillation)
    plus an end-to-end decision-then-action behavioral check.
  • This is a bash-route feature (the completion council is bash-only).

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Loki Mode

Get notified when new releases ship.

Sign up free

About Loki Mode

Multi-agent autonomous SDLC framework. Spec to deployed app. PRD, GitHub issue, OpenAPI/JSON/YAML, or one-line brief. 5 AI providers, 11 quality gates.

All releases →

Related context

Beta — feedback welcome: [email protected]