Ray's Knowledge Base
Unlock

The rkb observer runs each harness's own agent with a per-harness model chain, and only feeds the inbox

DecisionVerified 29 Sep 2026Holds project: rkb
Decision. The context, the choice, why, and the options that were turned down.

Context#

Signal capture missed most of what later sessions lacked, so an opt-in observer reads each finished session and writes durable notes. It needs a model, and rkb runs none itself. The user did not want to write a shell command for it, did not want pi and omp sessions sent to Claude, and read a single model = "sonnet" line as "Sonnet everywhere".

Decision#

[observer] in the per-machine config.toml holds one model chain per harness, such as claude-code = ["sonnet", "haiku"], pi = ["openai-codex/gpt-5.6-luna", "session"] and omp = ["session"]. A harness with no chain has no observer. At session end the hook starts rkb observe in the background, which runs that harness's own CLI in print mode (claude -p, pi -p, omp -p) with the user's login, no tools and no hooks, trying the models in order. session is the model the session used. The user approves the chains with rkb approve observer. The notes go to the inbox as one observed item; nothing goes into the prompt, and distill writes the lessons.

Why#

Each harness keeps its own login, provider and model names, so no session goes to a model the user did not choose for that harness. A chain survives one model failing. An inbox item keeps the review step that capture and distill chose.

Rejected options#

  • One user-written cmd for every harness: the user had to write a long claude -p line, and pi and omp sessions went to Claude.
  • One model setting: model names differ per harness and the line read as one model everywhere.
  • pi's in-process ctx.modelRegistry.complete(): omp's extension API has no model call, so one CLI path serves all three.
  • An always-on observation log in the prompt: in a trial its project state went stale and the agent stopped searching the repo.

Also found by searching

  • which model does the rkb observer use for pi and omp sessions, model = sonnet everywhere?
  • I don't want my pi sessions sent to Claude when rkb observes finished sessions
  • how do I configure the rkb observer model per harness
  • [observer] claude-code = [sonnet, haiku] pi = [openai-codex/gpt-5.6-luna, session] chain in config.toml
  • how does the rkb observer pick a model, observer config in config.toml per harness
  • rkb observer [observer] claude-code = [sonnet, haiku] pi = [session] chain
  • why do pi and omp sessions not get sent to claude for observation
  • does the rkb observer write lessons directly or only the inbox