Memory effectiveness analytics
memory_analyticsAnalyze memory injection utility, token costs, auto-capture stats, compression activity, and prune suggestions to tune importance thresholds and identify dead memories.
Instructions
Reports utility rates of injected memories, token costs per search layer, auto-capture stats, compression activity, and prune suggestions. Read-only. Use to tune importance thresholds, find dead memories worth pruning, and verify that auto-capture/compression are earning their keep. Returns a no-op message when analytics are disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time window to summarise. `all` covers the full retention period configured in `analytics.retentionDays`. | last_7d |
| section | No | Which sub-report to render — `injections` (utility), `captures` (auto-capture), `compression`, `memories` (prune suggestions), or `all` (default). | all |
| project_path | No | Optional absolute project path to scope the report. Empty string aggregates across all projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Markdown report grouped by `section` (`injections` / `captures` / `compression` / `memories`) with totals, percentages, and prune candidates. Returns a no-op message when analytics are disabled in config. |