Expand description
Memory scratch pad for workflows and steps.
Memory is a managed folder of files with a .manifest JSON index that gets
injected into agent system prompts. It enables agents to accumulate and
search knowledge across workflow runs.
Storage mirrors the resource tier layout:
~/.zig/memory/_shared/— global shared tier~/.zig/memory/<workflow>/— global per-workflow tier<git-root>/.zig/memory/— project-local tier
Each tier directory contains a .manifest JSON file alongside the actual
memory files.
Structs§
- Manifest
- The
.manifestfile contents — an index of all memory entries in a tier. - Memory
Collector - Run-time collector for memory entries, similar to
ResourceCollector. - Memory
Entry - A single memory entry in the manifest.
Enums§
- Memory
Target - Where a memory command should target.
- Search
Scope - Search result granularity.
Functions§
- add
- Add a file to the memory scratch pad.
- delete
- Delete a memory entry and its file.
- list
- List all memory entries across all tiers.
- load_
manifest - Load the manifest from a tier directory. Returns an empty manifest if the file does not exist.
- render_
memory_ block - Render a
<memory>block to prepend to a system prompt. - save_
manifest - Save the manifest to a tier directory.
- search
- Full-text search across all memory files.
- show
- Show metadata and contents of a memory entry.
- update
- Update metadata for an existing memory entry.