Repository navigation
Immutable
release. Only release title and notes can be modified.
Added
- Loki now tells you before a run starts when your stored Claude sign-in ends within 24 hours, with the same line in loki doctor, so a long run does not stop on an expired login after money is spent. It never blocks the run, stays silent for API keys and tokens, and LOKI_SIGNIN_WARN=0 turns it off.
- The status line now says what a session is waiting on ("waiting on a command: npm test, 95 s") instead of looking idle during a long test run, and each session records its five longest commands. The stall and silence stops are unchanged. Turn it off with
LOKI_E10_RUNNING_LINE=0. - Loki's reviewers can now follow a repository's REVIEW.md rules, read from the base branch only so a change cannot edit its own review rules. It is off by default (set
LOKI_REVIEW_MD=1); when a repository has one and the switch is off, Loki prints one line saying so.
Changed
- A run now waits out a short usage limit or an API overload inside its session instead of ending it, when the Claude Code binary that runs the session is 2.1.336 or newer (Claude Code's retry watchdog, capped below Loki's stall and stage limits).
LOKI_RETRY_WATCHDOG=0turns it off. - A run now starts from the freshly fetched tip of the target branch, so a folder left behind no longer builds on old code, and a second start in a folder that already has an active run stops before any spend and names the command that starts it in its own folder (#745). Opt out with
LOKI_FRESH_BASE=0andLOKI_RUN_LOCK=0. The start now does onegit fetchof the target branch (10 second limit); when it fails the run goes on from the local copy and says it could not refresh it. - The Agent SDK moves to 0.3.336 (Claude Code 2.1.336). Sonnet, Opus and Fable sessions keep the full 1M context window instead of compacting near 400K, the newer Claude Code default; Haiku keeps 100K.
LOKI_E10_COMPACT_WINDOW=0passes no window. - The legacy engine route and most helper commands that call Claude Code inside a repository no longer load the repository's own Claude Code settings (permissions, hooks, tools). They load your user settings only and still give the session the repository's CLAUDE.md and rules files (#668).
LOKI_PROJECT_SETTINGS=1restores the old loading. A few helper commands still load them:loki wiki,loki edit,loki chat,loki quickstart,loki magic,loki review --ultra, the done-recognition check, and the text-only calls of grill, council voters and PRD enrichment.
Fixed
- Opt-in: a change that only wires a new module into an existing file, with one inert mock of that module added to the test, can be read as not weakening the test (FireLater#101). Set
LOKI_E10_WEAK_MOCK_NEW=strictto use it; unset keeps the 11.197.1 hold. It is off by default because the release check found a case it would wrongly excuse: a mock that hides a failing existing assertion through a spy.1also allows the two broad excuses. - A session that waited at a usage limit and then failed another way is no longer reported as a usage-limit pause.
- The start estimate now quotes a median only from this repository's finished runs that ran the same steps. With one or two such runs it gives their range and says there is no median yet; with none it says NOT AVAILABLE for this pipeline and shows what the other runs cost, never the benchmark prior. After upgrade a repository that already has finished runs shows that line until three like runs exist; a repository with no finished run still gets the benchmark prior.
LOKI_COST_PIPELINE_KEY=0restores the old shape-only estimate.