SAGE Memory — Persistent Brain for AI Agents
You have persistent institutional memory via SAGE — a governed, consensus-validated knowledge layer.
Your memories are not a flat file. They go through BFT consensus, have confidence scores, and decay
over time. Only committed memories are returned to you.
Data & Privacy Disclosure
This skill enables persistent memory storage for AI agents. By design:
- What is stored: Observations you write via
sage_turn and sage_remember — typically summaries
of conversation topics, task outcomes, and user preferences. The agent decides what to store; raw
conversation transcripts are NOT automatically captured.
- Where data lives: All data is stored locally on your machine in
~/.sage/data/sage.db (SQLite).
Nothing is sent to any cloud service. SAGE runs entirely on localhost.
- Persistence: Memories survive across conversations. This is the core purpose of the skill.
Memories decay over time unless reinforced, and can be explicitly deleted via
sage_forget.
- Configuration: The
.mcp.json file (generated by sage-gui mcp install) contains only the
localhost URL and tool definitions for connecting to your local SAGE server. It contains no
credentials, API keys, or sensitive tokens.
- Boot instructions:
sage_inception returns operating instructions from your local SAGE server
(not from any remote service). These instructions tell the agent how to use the memory tools
effectively. You can customize them via the CEREBRUM dashboard at http://localhost:8080/ui/.
- Encryption: SAGE supports optional at-rest encryption (Synaptic Ledger) for all stored memories,
enabled via the CEREBRUM dashboard settings.
- Agent registration: The skill registers the agent's identity (a random Ed25519 public key) with
the local SAGE node. This is used for memory attribution, not for tracking.
Boot Sequence (MANDATORY)
On the first message of every new conversation, before responding to the user:
- Call
sage_inception — this checks if your memory is online and returns your operating instructions
- Do this before replying, so the user's stored context is loaded from the start.
- After inception, follow the instructions it returns.
Every Turn
Call sage_turn every turn with:
topic: what the current conversation is about (used for contextual recall)
observation: what just happened — the user's request and key points of your response
domain: a specific knowledge domain (see Domains below)
This atomically recalls relevant committed memories AND stores your episodic observation.
Like human memory — you build understanding turn by turn.
Domains
Create domains organically based on what you're working on. Don't dump everything into general.
Examples:
- Debugging Go code →
go-debugging
- Discussing architecture →
project-architecture
- Working on CI/CD →
ci-cd
- User preferences →
user-preferences
Specific domains = better recall.
Memory Types
When using sage_remember:
- fact (confidence 0.95+): verified truths — architecture decisions, confirmed behaviors
- observation (confidence 0.80+): things noticed — patterns, preferences, what worked/failed
- inference (confidence 0.60+): conclusions drawn — hypotheses, connections between facts
Core Tools
| Tool |
Purpose |
sage_inception |
Initialize your memory session. Call first in every new session. |
sage_turn |
Per-turn memory cycle. Recalls + stores atomically. |
sage_remember |
Store a new memory with content, type, domain, and confidence. |
sage_recall |
Retrieve memories by topic and/or domain. |
sage_reflect |
After tasks, store dos and don'ts. Both make you better. |
sage_forget |
Deprecate a memory by ID. |
sage_list |
List memories with filters (domain, type, status). |
sage_timeline |
View memory activity over time. |
sage_status |
Check brain health — memory counts, domains, last activity. |
sage_register |
Register this agent with the SAGE node. |
sage_task |
Create/update tasks for tracking work. |
sage_backlog |
View pending tasks. |
sage_red_pill |
Deprecated alias for sage_inception. |
Reflection (After Tasks)
After completing significant tasks, call sage_reflect with:
dos: what worked well (reinforces good patterns)
donts: what failed or should be avoided (prevents repeating mistakes)
task_summary: brief description of what was done
domain: relevant domain
This feedback loop is critical — it was empirically validated (rho=0.716 with memory vs rho=0.040 without).
Before Destructive Actions
Call sage_recall with topic critical lessons to check for known pitfalls before:
- Deleting files, branches, or data
- Force-pushing or resetting state
- Running destructive commands
Installation
- Download SAGE from the releases page
- Run the installer (macOS DMG, Windows EXE, or Linux tarball)
- Start the server:
sage-gui serve
- Run
sage-gui mcp install in your project directory to generate .mcp.json, then restart your session
You can review the generated .mcp.json — it contains only the localhost connection URL and MCP tool
definitions. No credentials or API keys are included.
Key Principles
- Knowledge persists across sessions — recall it, build on it, and keep it current.
- Local-only: all data stays on your machine. No cloud, no telemetry, no tracking.
- Consensus-validated: every memory goes through BFT validation before committing.
- Confidence scores: memories carry confidence that can be strengthened through corroboration.
- Natural decay: memories decay over time unless reinforced — just like human memory.
- Domain isolation: organize knowledge by topic for precise recall.
- User control: memories can be viewed, edited, and deleted via the CEREBRUM dashboard or API.
Source: l33tdawg/sage — distributed by TomeVault.
1---2name: l33tdawg-sage-sage3description: SAGE Memory — Persistent Brain for AI Agents4---56# SAGE Memory — Persistent Brain for AI Agents78You have persistent institutional memory via SAGE — a governed, consensus-validated knowledge layer.9Your memories are not a flat file. They go through BFT consensus, have confidence scores, and decay10over time. Only committed memories are returned to you.1112## Data & Privacy Disclosure1314This skill enables **persistent memory storage** for AI agents. By design:1516- **What is stored**: Observations you write via `sage_turn` and `sage_remember` — typically summaries17 of conversation topics, task outcomes, and user preferences. The agent decides what to store; raw18 conversation transcripts are NOT automatically captured.19- **Where data lives**: All data is stored **locally** on your machine in `~/.sage/data/sage.db` (SQLite).20 Nothing is sent to any cloud service. SAGE runs entirely on localhost.21- **Persistence**: Memories survive across conversations. This is the core purpose of the skill.22 Memories decay over time unless reinforced, and can be explicitly deleted via `sage_forget`.23- **Configuration**: The `.mcp.json` file (generated by `sage-gui mcp install`) contains only the24 localhost URL and tool definitions for connecting to your local SAGE server. It contains no25 credentials, API keys, or sensitive tokens.26- **Boot instructions**: `sage_inception` returns operating instructions from your local SAGE server27 (not from any remote service). These instructions tell the agent how to use the memory tools28 effectively. You can customize them via the CEREBRUM dashboard at `http://localhost:8080/ui/`.29- **Encryption**: SAGE supports optional at-rest encryption (Synaptic Ledger) for all stored memories,30 enabled via the CEREBRUM dashboard settings.31- **Agent registration**: The skill registers the agent's identity (a random Ed25519 public key) with32 the local SAGE node. This is used for memory attribution, not for tracking.3334## Boot Sequence (MANDATORY)3536On the **first message of every new conversation**, before responding to the user:37381. Call `sage_inception` — this checks if your memory is online and returns your operating instructions392. Do this before replying, so the user's stored context is loaded from the start.403. After inception, follow the instructions it returns.4142## Every Turn4344Call `sage_turn` every turn with:45- `topic`: what the current conversation is about (used for contextual recall)46- `observation`: what just happened — the user's request and key points of your response47- `domain`: a specific knowledge domain (see Domains below)4849This atomically recalls relevant committed memories AND stores your episodic observation.50Like human memory — you build understanding turn by turn.5152## Domains5354Create domains **organically** based on what you're working on. Don't dump everything into `general`.5556Examples:57- Debugging Go code → `go-debugging`58- Discussing architecture → `project-architecture`59- Working on CI/CD → `ci-cd`60- User preferences → `user-preferences`6162Specific domains = better recall.6364## Memory Types6566When using `sage_remember`:67- **fact** (confidence 0.95+): verified truths — architecture decisions, confirmed behaviors68- **observation** (confidence 0.80+): things noticed — patterns, preferences, what worked/failed69- **inference** (confidence 0.60+): conclusions drawn — hypotheses, connections between facts7071## Core Tools7273| Tool | Purpose |74|------|---------|75| `sage_inception` | Initialize your memory session. Call first in every new session. |76| `sage_turn` | Per-turn memory cycle. Recalls + stores atomically. |77| `sage_remember` | Store a new memory with content, type, domain, and confidence. |78| `sage_recall` | Retrieve memories by topic and/or domain. |79| `sage_reflect` | After tasks, store dos and don'ts. Both make you better. |80| `sage_forget` | Deprecate a memory by ID. |81| `sage_list` | List memories with filters (domain, type, status). |82| `sage_timeline` | View memory activity over time. |83| `sage_status` | Check brain health — memory counts, domains, last activity. |84| `sage_register` | Register this agent with the SAGE node. |85| `sage_task` | Create/update tasks for tracking work. |86| `sage_backlog` | View pending tasks. |87| `sage_red_pill` | Deprecated alias for sage_inception. |8889## Reflection (After Tasks)9091After completing significant tasks, call `sage_reflect` with:92- `dos`: what worked well (reinforces good patterns)93- `donts`: what failed or should be avoided (prevents repeating mistakes)94- `task_summary`: brief description of what was done95- `domain`: relevant domain9697This feedback loop is critical — it was empirically validated (rho=0.716 with memory vs rho=0.040 without).9899## Before Destructive Actions100101Call `sage_recall` with topic `critical lessons` to check for known pitfalls before:102- Deleting files, branches, or data103- Force-pushing or resetting state104- Running destructive commands105106## Installation1071081. Download SAGE from [the releases page](https://github.com/l33tdawg/sage/releases)1092. Run the installer (macOS DMG, Windows EXE, or Linux tarball)1103. Start the server: `sage-gui serve`1114. Run `sage-gui mcp install` in your project directory to generate `.mcp.json`, then restart your session112113You can review the generated `.mcp.json` — it contains only the localhost connection URL and MCP tool114definitions. No credentials or API keys are included.115116## Key Principles117118- **Knowledge persists across sessions** — recall it, build on it, and keep it current.119- **Local-only**: all data stays on your machine. No cloud, no telemetry, no tracking.120- **Consensus-validated**: every memory goes through BFT validation before committing.121- **Confidence scores**: memories carry confidence that can be strengthened through corroboration.122- **Natural decay**: memories decay over time unless reinforced — just like human memory.123- **Domain isolation**: organize knowledge by topic for precise recall.124- **User control**: memories can be viewed, edited, and deleted via the CEREBRUM dashboard or API.125126---127> Source: [l33tdawg/sage](https://github.com/l33tdawg/sage) — distributed by [TomeVault](https://tomevault.io).128<!-- tomevault:4.0:skill_md:2026-06-29 -->