query_entries
Retrieve decisions, constraints, and pipelines from project memory using exact field filters. Combine multiple predicates with AND for precise results, with stable ordering and empty results as valid.
Instructions
Structured field filter — exact AND-combined predicates, NOT relevance search. Use when you know the field values (e.g. absolute constraints scoped to 'hooks/'). Stable ID order, no ranking; empty is a real answer. Includes superseded/deprecated unless you filter status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Singular alias for `types`. `types` wins if both given. | |
| text | No | Free text over text fields; every term must appear (AND, substring). | |
| limit | No | Cap entries returned (matched_entries reports the total). | |
| scope | No | Exact, case-sensitive match on a constraint's scope (e.g. 'hooks/'). | |
| since | No | Verified/created on or after this ISO date. | |
| types | No | Restrict to these entry types. Default: all. | |
| before | No | Verified/created strictly before this ISO date. | |
| origin | No | user/agent/import (string or list). Missing counts as 'agent'. | |
| status | No | active/superseded/deprecated (string or list). | |
| hardness | No | Constraint hardness absolute/advisory (string or list). | |
| tags_all | No | Entries with ALL of these tags. | |
| tags_any | No | Entries with AT LEAST ONE of these tags. | |
| supersedes | No | The entry that superseded this id. | |
| project_dir | No | Absolute path to another project to query. | |
| token_budget | No | Max tokens returned (default from config). | |
| superseded_by | No | Entries replaced by this id (superseded_by == id). |