Files
knox/plugins
david 1a7c0aa80c
build / test (push) Has been cancelled
build / image (push) Has been cancelled
feat: recall relevant knox knowledge at turn start (#24)
Adds plugins/recall: on the context hook, when the last assembled message is a
user prompt, search knox and inject up to three hits as a system part.

The AGENTS.md rule asks the model to search knox first; this makes it a
property of the harness instead of a habit. Bounded by design: three hits,
140-char summaries, turn-start only (the hook also fires for tool
continuations), and prompts under 16 chars or slash commands never search.

Injected hits are labelled as retrieval, not instructions, and say the
repository and the user override them — a stale memory presented as fact is
the failure this repo keeps hitting.

Also adds 'knox query --json' so the plugin gets structured results instead of
parsing formatted text. Every firing increments a counter in plugin storage,
so whether recall earns its tokens is measurable rather than assumed.
2026-11-04 19:49:22 -08:00
..