mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 15:28:27 +01:00
Hook changes: - handle_notification now reads session health before picking which prompt to auto-inject: health=needs attention|critical → unblock, else → next_best - Log line and write_inject_state both carry the chosen key and health value New prompts in agent-prompts.json: - orient: context reload — reads git log, tsc, session; outputs brief; no code changes. For resuming after breaks or context-limit compactions. - unblock: stabilize before advancing — runs tsc + tests, fixes highest- severity failure, stops when baseline is green. Never auto-injects on healthy projects. Thoughts article: "Prompts, Timing, and Orchestration: Where Agent Value Actually Lives" — covers the decision tree, prompt taxonomy (auto-inject candidates vs human-selected vs situational), queue-based injection semantics, and what's still missing (velocity, time-of-day, multi-item queue drain, inter-project coordination). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>