Selector Operators
Operators combine atoms into compound expressions.
| Operator | Meaning |
|---|---|
+ |
AND — documents matching both sides |
| |
OR — documents matching either side |
- |
NOT — documents matching the left side but not the right |
AND (+)
#api +status:published
OR (|)
#api |#sdk
NOT (-)
#engineering -#deprecated
Grouping (())
Parentheses control evaluation order. Use them whenever you mix operators, rather than relying on precedence:
(#api |#sdk) +status:published
& is not valid
Older docs used & for intersection. It no longer works. ctx rejects it with INVALID_SELECTOR. Use + instead.
Related pages
- Selectors OverviewSelectors are the composable query grammar for Context Nest. They let you precisely describe which documents you want — by tag, type, status, pack, node…
- Selector ExamplesReal-world selector patterns for common use cases.
- Selector AtomsAtoms are the building blocks of selector expressions. Each atom matches documents based on a single criterion.
- PromptOwl DocumentationWelcome to the documentation for PromptOwl and Context Nest — the open protocol and hosted platform for giving AI agents structured, versioned, governed…
- Add DocumentsThis creates nodes/api-design.md from a frontmatter template as version 1, and regenerates the index. Tags accept a comma- or space-separated list; you…