Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
export const MEMORY_TOOL_DESCRIPTION = `Save or update durable, cross-session memory in MEMORY.md.
MEMORY.md is frozen into your system prompt at the start of each session. It is how you remember things across separate conversations: who the user is, their preferences and environment, the ongoing projects and goals, important decisions, and lessons learned. Without it, every new session starts from zero.
Actions:
- add — append a new memory entry. Provide \`content\` (one self-contained fact per entry).
- replace — swap an existing entry. Provide \`match\` (a substring identifying the entry) and \`content\` (the new text).
- remove — delete an entry. Provide \`match\`.
When to save: durable facts and decisions that future sessions should know — not transient chatter, not things already obvious from the files. Prefer a few high-signal entries over many noisy ones.
Important:
- Writes are persisted to disk immediately and this tool returns the updated state, so you can see your own writes this turn.
- But the system-prompt snapshot does NOT change mid-session — your edits re-enter the prompt only on the next session. This is intentional (it preserves the prompt cache).
- There is a character budget. If a write would exceed it, the tool errors and you must remove or shorten an entry first. Keep memory curated and concise.`;