Skip to main content
Load all stored context at session start. Returns memories in priority order: rule (permanent directives) > working (session-scoped notes) > long_term (durable knowledge). Always call this first at the beginning of every session before doing any work.

Parameters

maxMemories
number
default:"50"
Maximum number of memories to return across all layers. Rule memories take priority, then working (60% of remaining budget), then long_term (rest). Increase to 100-200 for large projects with many rules. Range: 1-200.
scope
string
default:"project"
Search scope.
ValueDescription
projectCurrent project + global memories (default)
globalGlobal memories only
allAll projects without filtering

Budget Allocation

Memories are fetched in priority order:
  1. Rule layer — All rules, up to the budget
  2. Working layer — 60% of the remaining budget
  3. Long-term layer — The rest
Expired memories (past expiresAt) are automatically excluded.

Returns

Memories: 35

[rule/rule] Always use TypeScript strict mode
tags: typescript, config
---
[rule/rule] Use pnpm as package manager
tags: tooling, package-manager
---
[working/note] Currently refactoring the auth module
tags: auth, refactoring
---
[long_term/fact] Project uses React 19 with Vite
tags: tech-stack, react
...