Ray's Knowledge Base
Unlock

The rkb observer runs in-session through the mod; all logic stays in the rkb binary

DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

Deciding where the rkb session observer runs.

Decision#

rkb runs an in-session observer through the mod: the mod calls rkb job prepare observe and rkb job finish and runs the model call itself, while all logic stays in the rkb binary and the mod only wires events and draws UI. The headless run stays as a fallback for pi, omp and older Claude Code.

Why#

The same binary must serve pi and omp, so the mod cannot own the logic.

Rejected options#

Moving hook logic into the mod.

Also found by searching

  • rkb in-session observer through the mod
  • mod calls rkb job prepare observe and rkb job finish
  • headless run stays as fallback for pi omp and older Claude Code
  • do not move hook logic into the mod