mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-06 23:24:20 +09:00
brain now counts every memory that reaches an agent, in .state/usage.jsonl on the Mac: the SessionStart and prompt hooks write the ids they inject, the MCP tools the ids they return (a search or a get counts as the agent picking it; brain_rules doesn't). The prompt hook's old lines in hooks.log are read too, so the page isn't empty on day one. `brain usage --json` gives the uses of the last 30 days, the share of memory that ever served, the most used, the most useful (come back in the most sessions, an agent's own search counts double) and the ones that never served. New page Memory › Usage shows it, with the Statistics page's cards and bars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT