- SessionStore/SessionTree: JSONL append-only tree (id + parentId) under ~/.focus/sessions, branching and continuation queries - compaction: lightweight token estimation; scheme D+E plans (summary + key-facts, keep recent messages, tool_call/tool_result pairs kept intact); auto-trigger threshold (default 80%, configurable); apply_summary writes back - prompts: system template with cwd/os/date/shell + context occupancy and last-turn usage (scheme E); pure-std date formatting |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||