v0.7.0
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:
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=5000on OpenCode DB readonly connections
Improvements
ctx_notedismiss hint: single footer line instead of per-note boilerplate- Token estimation standardized to
÷3.5ratio across all plugin and TUI estimation sites setKeyFilesensuressession_metarow exists before UPDATE- Compressor same-turn injection refresh after compression
clearInjectionCacheadded at all data-change pointsknapsackFitFilesrenamed togreedyFitFiles(accurate naming)ctx_note updateaction for editing smart note content and conditions