Skip to content

kit memory stats: recall count + token economy #95

Closed

Description

@sandstream

kit memory stats reports content (sessions/messages/tool-uses) but not the store's use or its token economy. Surfaced by the "87.6m tokens vs 139k messages" question: we can't show how often memory is recalled (search records nothing), nor the tokens it represents.

Add (local-first, zero-LLM, from the existing DB + transcripts):

  • tokens — input/output totals (already captured per message); --tokens → tokens/msg, tokens/session, by-model, cache-hit ratio.
  • recalls — net-new query_log records each kit memory search + hit count → total / last-7d / distinct / top-terms.
  • session breakdown — logical vs sidechain + transcript files indexed (the "N files → M logical sessions" collapse).
  • --heatmap — per-day activity sparkline.

Schema v4 (cache-token cols + query_log). Cache-hit is forward-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions