CommandsMemory
memory recall
Rebuild the smallest useful packet for resuming work
What It Does
memory recall reconstructs the packet you need to continue active work. It starts from current working memory and, when the exact HEAD snapshot is available, supplements it with the same strict retrieval used by query and context pack plus recall-only artifact overlays relevant to the goal.
When To Use / When Not To Use
When to use it
- You are resuming an interrupted task.
- You want open loops, constraints, related decisions, and next actions in one packet.
When not to use it
- You only want a general repository search. Use
query. - You only want a prompt-sized retrieval pack with no working state. Use
context pack.
Syntax
pnpm ragit memory recall <goal> \ [--view minimal|default|full] [--format text|json|both] \ [--cwd <path>]
Arguments And Options
<goal>: The task you want to resume.--view minimal|default|full: Control how much retrieved detail is projected into the packet.--format text|json|both: Choose text, JSON, or both.--cwd <path>: Run against another repository.
Input And Output Contract
- Input is positional only.
- JSON output includes
goal,constraints,openLoops,relatedDecisions,retrievedHits,nextActions,latestSessionId,sourceHeadSha,snapshotSha,snapshot,createdAt, andwarnings. snapshotreports the attempted ref, resolved SHA when known, selection mode, status, branch, detached state, and dirty-worktree state.retrievedHitscan contain both snapshot hits and artifact-origin hits, but the packet still remains selective rather than replaying raw history.--view minimalis the best default for agent resumes.--view defaultbalances readability and detail.--view fullis only for cases where the restored packet must carry richer text from retrieval hits.
Examples
Human terminal flow:
pnpm ragit memory recall "resume auth flow"
Agent-oriented flow:
pnpm ragit memory recall "resume auth flow" --view minimal --format json
Failures And Cautions
memory recalldepends on working-memory state quality. If wraps are poor, recall quality drops too.- This command does not replay the entire session history. It intentionally produces a selective packet.
- When exact snapshot retrieval is unavailable because the manifest/store is missing, invalid, incompatible, or repeatedly moving, recall returns
snapshotSha: null,snapshot.status: unavailable, and a warning containing the operational error code. - Degraded recall uses only working memory and reviewed artifact-derived content. It ranks without embeddings or a canonical-store call, and its hits must not be interpreted as snapshot-backed durable knowledge.
queryandcontext packdo not degrade this way; they remain strict.