larik v0.25.0

Guide

Memory

Larik remembers things between sessions as short notes: who you are and how you like to work, corrections you've given it, decisions and constraints of the project, and where things live outside the repository. It saves a note when it learns something a later session will need, or when you ask it to ("remember that we deploy on Tuesdays").

text
> /memory
notes for this project  (~/.local/share/larik/memory/myapp-3f9a…)
  use-pnpm                     project   Use pnpm for package commands in this project
  prefers-table-tests          feedback  Write Go tests as table tests
notes for every project  (~/.local/share/larik/memory/_user)
  who                          user      Senior Go developer, new to the frontend
  • Two scopes. Project notes belong to one project (its git root); user notes apply everywhere. Both are kept under ~/.local/share/larik/memory, outside your repository, so nothing is committed or shared.
  • Notes are Markdown files with a name, a one-line description and a type (user, feedback, project or reference). Edit or delete them by hand if you like; a plain .md file you drop in works too.
  • What the model sees. At the start of each context (a new session, or after /clear) the system prompt lists the notes by name and description. It reads a note's content with the memory tool when the description is relevant. A note saved during a session joins that list at the next fresh context.
  • /memory add <text> saves a note yourself (--user for every project) and tells the model straight away. /memory show <name> and /memory delete <name> read and remove one.
  • Scope-aware approval. Reads, listing and project-scoped changes run without asking, including in plan mode. Saving, replacing or deleting a scope: "user" note asks because it affects every project; auto mode cannot approve it on your behalf. An explicit personal allow rule or yolo mode remains an intentional override, and deny rules still win. Tool deletes without a scope target only project notes, never silently fall back to user notes; pass scope: "user" to delete one of those. Direct /memory commands are your own explicit actions. Add "memory" to your deny rules to block the tool.
  • Notes are background, not instructions. The model is told that they may be out of date and to check what they name before relying on it, and never to save something a web page, a file or a tool result asks it to remember, or any secret. Still, read /memory now and then: a note shapes every later session.
  • Off switch: "memory": {"enabled": false}. A shared .larik/settings.json can switch memory off for a repository but not on.

Subagents don't get memory; the main agent passes on what they need.

Generated from README.md · section “Memory”. Edit that file to change this page.