Files
loki/content
g-butandClaude Sonnet 4.6 403b7f90b9 feat(orchestration): context-aware auto-inject + orient/unblock prompts + thoughts article
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>
2026-05-18 13:38:32 +02:00
..