--- # claudbg-6m2c title: 'TUI/filter: token count filter fields' status: completed type: feature priority: normal created_at: 2026-04-01T06:10:58Z updated_at: 2026-04-01T06:25:42Z parent: claudbg-2vwx --- Add token-based filter fields to the filter query language so users can narrow the session list by token usage.\n\nSupported fields and operators:\n- in: — tokens in (input tokens)\n- out: — tokens out (output tokens)\n- tokens: — total tokens (in + out)\n- All three support < and > comparisons (e.g. tokens:>50000, in:<1000)\n\nRequires storing token counts per session in the DB and exposing them via the Filter::matches() path. Implemented: added in:, out:, and tokens: filter fields. SessionListItem now carries input_tokens/output_tokens populated from DB. SessionRow trait extended. Help modal updated.