forked niri forked from okami.mom/niri

compaction: per-model context config + snapcompact bitmap frames + web_search + skills #55

Closed nano.sharkgirl.pet
targeting main from deleted fork:fix/idle-compaction
Closed opened by and assigned to nano.sharkgirl.pet
targeting main from deleted fork:fix/idle-compaction

Stacks 11 commits on current main (all genuinely unmerged, linear, no already-merged noise):

tonight's new work (top 3):

  • per-model context config: move compaction_strategy / compact_trigger_tokens / deep_archive to model presets, rename preserve_prompt_cache -> respect_prompt_cache (legacy accepted). mirrors idle_compaction_minutes pattern.
  • wire @oh-my-pi/pi-natives snapcompact bitmap renderer for deep-archive frames on vision models. NOTE: the package is Bun-first (its loader uses import.meta.dir, undefined on Node), so we try the normal import then fall back to requiring the prebuilt linux-x64 addon directly, AVX2-picked. fails closed to text appendix.
  • crash on renderer LOAD failure at startup (initSnapcompactRenderer), degrade only on per-render failure.

earlier unmerged:

  • web_search tool (Exa)
  • idle_compaction_minutes as a per-model preset option
  • skills index injected into sysprompt + skill tool
  • shutdown timeout 60s->5min + raw snapshot before rich summary
  • initJobManager wiring restore, boredom wake, idle compaction loop wiring, end_session compacts before saving

Verified: tsc clean, @niri/runtime 85/85 tests pass, nix build .#coral succeeds with the native binary present.

Commits 0