# Filter Queries We want basic filtering to be able to narrow our view. Use cases include only showing sesisons... * with sub-agents * with a certain minimum/maximum of messages * in a given project * with a given model * between a given date range Proposed query language is a simple `key:value` for static single values, with support for globbing and by default fuzzy searching. Examples: * `model:haiku` equivalent to `model:*haiku*` * `project:my-org/my-project` ~= `project:*my-org/my-project` * `project:*` project is non-empty Also required is support for `>` and `<` to support ranges Examples: * `agents>0` * `messages<10` * `date>2026-03-20` We also need to support `AND` and `OR` for logical combinations Examples: * `date>2026-03-15 AND date<2026-03-20` sessions between 03-15 and 03-20. When a query uses a malformed syntax or a key which is not found, the command should fail to evaluate with an error displayed to the user.