Smior keeps a small, local memory for each workspace. Your agent, or you, can save a decision once and find it again in a later session. Each note can be linked to a file or symbol, so Smior can tell you when the code it describes has changed.
Save a decision
Your agent saves a note with smior_remember:
{ "text": "Session tokens are refreshed in middleware, never in route handlers.", "file": "src/auth/middleware.ts", "symbol": "refreshSession" }textis required, up to 4,000 characters.fileandsymbolare optional. A link is kept only if your index holds that file or symbol.smior_orchestratecan save a note at the same time, through itsobservationparameter.
From a terminal:
smior memory remember "Session tokens are refreshed in middleware." --file src/auth/middleware.ts --symbol refreshSessionKeep notes short and specific: the decision and the reason, in one or two sentences.
Find a decision
- Your agent calls
smior_memory_searchwith a query, or gets relevant notes automatically insmior_orchestrate’s Relevant local memory section and in capsules. - You run Smior: Search local engineering memory, or the sidebar’s Search memory button.
- From a terminal:
smior memory search <words> [--limit N].
How search ranks notes
Search is a word match, not a semantic search:
- Smior compares each word of three or more letters in your query with the note’s text, file and symbol.
- It searches the newest 1,000 notes.
- Notes with more matching words rank higher. Among equals, newer notes rank higher, over a 90-day window.
- A stale note ranks lower.
Tool-call logs are left out of search results. Capsules include only notes saved on purpose.
Staleness
When a note is linked to a file, Smior stores that file’s content hash at the time. Each time you search, it compares that hash with the file’s current one in the index.
- If the file has changed, the note is marked stale. In a capsule it appears as
[STALE — re-check]. - A stale note is ranked lower, never hidden and never silently trusted.
- Staleness follows the linked file, not the symbol: any change to the file marks the note stale.
Re-check a stale note against the current code. If it still holds, save it again, so it links to the new version.
This session’s notes
smior_session_context (or smior memory session [--limit N]) returns the notes from the current Smior session, newest first, with stale ones marked. Smior: Start a fresh session starts a new session.
What is stored, and where
- Notes live in your workspace’s index,
.smior/index.db. They never leave your computer and are never sent to Smior’s servers. - Secrets in a note are redacted before it is saved.
- Only notes you or your agent save on purpose keep their text. Everything else Smior records about tool calls is a tool name and a count, never what was asked.
- Memory does not count against capsule budgets or plan limits.
See Privacy and data.