Skip to Content
Quick StartQuery Context

Query Context

Context Nest provides two ways to query your vault: ctx resolve for metadata lookups and ctx query for full context retrieval.

Resolve (metadata)

ctx resolve "tag:#engineering" # Documents with a tag ctx resolve "type:document & status:published" # Combined filters

Returns a list of matching documents with their titles, types, and status.

Query (full context)

ctx query "tag:#engineering" # All docs with a tag ctx query "type:document" # All docs of a type ctx query "pack:engineering-essentials" # All docs in a pack ctx query "tag:#api & status:published" # Intersection ctx query "tag:#api + tag:#v2" # Union

Returns the full document content, source nodes in hydration order, and trace entries.

Cloud packs (coming soon)

Cloud packs will allow querying context from hosted packs without downloading source files:

ctx query @promptowl/executive-ai-strategy

See Cloud Packs for the planned design.

JSON output

All query commands support --json for programmatic consumption:

ctx query "pack:engineering-essentials" --json

Full-text search across all vault documents:

ctx search "rate limiting"
Last updated on