The three blocks become one card: Most useful, Most used (week, month, year, all),
Never used, Archived. Never used memories can be archived one by one or all at once
(after a confirmation); Archived brings them back.
brain archive / brain restore: an archived memory leaves the state files (so the hooks,
MCP, search index, pages and galaxy no longer see it) and is kept in .state/archived.json.
Saving a state leaves archived ids out, so a later ingestion can't bring one back.
Nothing is deleted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
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