Searching

Search your cortex by meaning, and narrow it with tags, types, statuses and folders: the one query language the app's search box, Ask and agents all use.

On this page

Search finds notes by meaning as well as by their words: “how are dates stored” finds a decision called “Store times in UTC”. The same query language works in the app’s search box, in Ask, and in the search_memory tool agents call.

Words and field terms

A query has two parts:

  • Words are searched for, and rank the results.
  • Field terms decide which notes can be found at all.
sqlite storage #index type:decision
└── words ───┘ └── field terms ───┘

A query with only words is an ordinary search. A query with only field terms lists every note they keep, newest first.

Field terms

Term Keeps notes that… Examples
#tag, tag: carry the tag, or a tag under it #rust, tag:project also matches project/atlas
type:, is: are of this kind: memory, fact, decision, note type:decision, is:fact
status: have this status status:accepted, status:needs-review
path:, in: have a path containing this text path:memory/atlas, in:daily

note means your own notes, outside memory/, decisions/ and facts/. Keys and values ignore case.

Combining them

Write Means
a b both
tag:rust,go either value
a OR b either (OR in capitals)
-tag:draft, NOT #draft leave these out (NOT in capitals)
( … ) group
tag:"two words" a value with spaces

A minus works on field terms, not on words: to leave out drafts, write -#draft, not -draft.

Recipes

To find Search
Accepted decisions about caching caching type:decision status:accepted
Facts due for a recheck status:needs-review
Everything tagged for one project, except memories #atlas -type:memory
Your own notes about pricing pricing type:note
Decisions about storage or search (#storage OR #search) type:decision

History

Retired facts and superseded or deprecated decisions are hidden from search, so agents act on what’s current. When you want the history, agents pass include_history, and in the app superseded notes stay visible in the explorer, struck through.

Updated