Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 05 Apr 14:34
· 91 commits to master since this release

What's New

Experimental: Key File Pinning

Dreamer analyzes which files each session's agent reads most frequently (full reads only, not partial ranges) and pins core orientation files into the system prompt as a <key-files> block. Files are read fresh from disk on each cache-busting pass so edits are always reflected.

Enable with:

"experimental": {
  "pin_key_files": {
    "enabled": true,
    "token_budget": 10000,
    "min_reads": 4
  }
}

Requires dreamer to be enabled. The dreamer uses LLM evaluation to distinguish true orientation files from task-specific reads, with a heuristic fallback when the LLM is unavailable.

Security

  • Path traversal guard with realpathSync() symlink resolution on key-file injection
  • XML content and attribute escaping using shared utilities
  • LLM output filtered against candidate allow-set to prevent hallucinated file pinning
  • PRAGMA busy_timeout=5000 on OpenCode DB readonly connections

Improvements

  • ctx_note dismiss hint: single footer line instead of per-note boilerplate
  • Token estimation standardized to ÷3.5 ratio across all plugin and TUI estimation sites
  • setKeyFiles ensures session_meta row exists before UPDATE
  • Compressor same-turn injection refresh after compression
  • clearInjectionCache added at all data-change points
  • knapsackFitFiles renamed to greedyFitFiles (accurate naming)
  • ctx_note update action for editing smart note content and conditions