Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions memory-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,25 @@ Memory is an optional Obsidian-style graph of durable facts. Its graph is never
injected into a chat automatically. Recent chat Digests in the private context
come from the base platform and are separate from this app.

When the partner's request could benefit from prior preferences, decisions,
projects, people, or work, formulate a focused retrieval prompt that states
exactly what you need and why, then run this read-only background lookup early.
It invokes Memory's tool-free retrieval subagent over a pinned graph catalog,
verifies the selected file paths, and falls back to local lexical selection if
the configured text provider is unavailable:
Use Memory selectively but decisively. Run a focused lookup early when prior
preferences, decisions, projects, people, or work could materially improve the
answer; when the request refers to earlier work; or when missing context could
change what you recommend, debug, or build. In a longer chat, search again when
the topic materially shifts or a new subproblem needs different context.

The decision test is simple: if you do not already have enough context to
answer or build well, search first. Recent chat Digests are shallow continuity,
not a topic search; seeing a related Digest does not mean the graph has been
searched. Skip lookup for genuinely self-contained questions, casual chatter,
novel one-offs with no plausible history, and work already fully specified in
the current conversation. Do not repeat the same lookup every turn without a
new context need.

Formulate a focused retrieval prompt that states exactly what you need and why,
then run this read-only background lookup. It invokes Memory's tool-free
retrieval subagent over a pinned graph catalog, verifies the selected file
paths, and falls back to local lexical selection if the configured text
provider is unavailable:

```bash
python3 <this installed system app's source_dir>/memory_search.py "<focused description of the facts or prior context needed>" "$CHAT_ID"
Expand Down
Loading