Selector Examples
Real-world selector patterns for common use cases.
Engineering context
# All published engineering docs
ctx query "tag:#engineering & status:published"
# Architecture and API docs, excluding deprecated
ctx query "(tag:#architecture + tag:#api) - tag:#deprecated"
# Everything in the engineering essentials pack
ctx query "pack:engineering-essentials"
Source node queries
# All source nodes using MCP
ctx query "type:source & transport:mcp"
# All sources connected to Jira
ctx query "type:source & server:jira"
# Published sources for the current sprint
ctx query "tag:#sprint & status:published"
Cross-cutting queries
# All glossary entries
ctx query "type:glossary"
# All persona definitions
ctx query "type:persona & status:published"
# Documents in a specific folder
ctx query "path:nodes/onboarding-*"
# Union of two packs
ctx query "pack:engineering-essentials + pack:onboarding-basics"
JSON output for scripting
# Pipe to jq for processing
ctx query "status:published" --json | jq '.documents[].id'
Related pages
- Selector OperatorsOperators combine atoms into compound expressions. Parentheses control evaluation order. Use them whenever you mix operators, rather than relying on…
- 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…
- 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…
- Addressing OverviewContext Nest uses the contextnest:// URI scheme to address documents, sections, tags, and folders within a vault.