Skip to main content
Glama
┌─ palinode ─┐
│ ░░░░░░░░░░ │
│ ▓▓▓▓▓▓▓▓▓▓ │
│ ██████████ │
└────────────┘

Inspectable, correctable project memory for coding agents.

Save a project decision and its reason once. A later session, in the same coding agent or a different one, can find it. You can see what was remembered, trace where it came from, and correct it when it is wrong.

Last week, you chose SQLite for a cache because it avoided operating a database. This week, a changed requirement makes PostgreSQL the better choice. Without the decision and its reason, a fresh agent can repeat the old approach. With Palinode, you save the replacement, retire the original without losing its history, and the next session searches and finds the current decision.

Palinode runs as a local service on your machine, and your coding agent connects to it as an MCP server. By default the agent saves and searches only by calling Palinode's tools: when you ask, or when the instructions palinode init adds to your project tell it to (search at the start of a session, save a decision once it is settled). Automatic capture and recall are opt-in per client: palinode init --hook for Claude Code, palinode init --codex-hook for Codex. With them on, a session that did real work leaves a short summary when it ends, and memories you mark to always load (--core), plus memories that closely match each prompt, are added to the agent's context. Memory stays in Markdown files in its own Git repository, separate from your code, on a machine you control.

Start here: the Quickstart walks you through installing, starting the service, saving a decision, opening a fresh session, inspecting the decision, and correcting it.

A palinode is a poem that retracts what was said before and says it better. Palinode does that for decisions: the replacement becomes current, and the original stays in the history.

Built by Paul Kyle at phasespace-labs. See AUTHORS.


Open your memory

While Palinode is running, open the local inspector at http://127.0.0.1:6340/ui/ (the default address; the port follows PALINODE_API_PORT). Browse and search what was saved, then open a memory to see its source file, the Git commit that saved it, and what it replaced.

The fictional Harbor Notes inspector after the initial SQLite decision has been archived; the provenance panel includes the Saved commit, and the page's Correct or retire this section starts below the decision.

The screenshot uses fictional sample data. It shows the initial SQLite decision after it was archived in favour of a separately saved PostgreSQL decision.

The inspector is read-only: it has no edit, save or archive buttons. Each memory page lists the commands to run instead. To correct or retire a memory, ask your connected agent (for example, "archive decisions/harbor-notes-storage.md, superseded by decisions/harbor-notes-storage-shared.md, because the shared service needs concurrent writes"). The agent does this with the palinode_archive tool. Or use the CLI:

# Preview first; nothing is written
palinode archive decisions/harbor-notes-storage.md --reason "..." --dry-run
# Retire it, naming the replacement (omit --superseded-by for a plain retirement)
palinode archive decisions/harbor-notes-storage.md \
  --superseded-by decisions/harbor-notes-storage-shared.md --reason "..."
# Changed your mind? Bring it back into recall
palinode restore decisions/harbor-notes-storage.md

Archiving is not erasure. An archived memory leaves default recall, but the file, its audit history and its Git history all remain, so you can restore it. Removing data permanently, Git history included, is a separate manual procedure with no single command; see the data lifecycle. For a reviewed replace-in-one-step flow, see CORRECTIONS.md.

The inspector only serves on loopback; reach a store on another machine through an SSH tunnel to that machine's loopback port. When the API has a bearer token configured, the inspector has no sign-in form: every browser request must already carry the token header. The inspector guide covers views, access limits and troubleshooting.


Related MCP server: mnemo

Supported Platforms

Platform

Session Skill Path

MCP Config

Claude Code CLI

~/.claude/skills/

~/.claude.json

Claude Desktop

~/.claude/skills/

claude_desktop_config.json

Cursor

.cursor/skills/

.cursor/mcp.json

VS Code + Claude (Continue / Cline)

~/.claude/skills/

see MCP-INSTALL-RECIPES.md

JetBrains + Claude

~/.claude/skills/

~/.claude.json

Antigravity IDE

.agent/skills/

native 3-dot MCP menu

Codex CLI

N/A (no skills)

~/.codex/config.toml

Pi

N/A (native extension)

plugins/pi/ — per-turn recall via lifecycle hooks

Cline CLI / SDK

N/A (native plugin)

plugins/cline/ — per-turn recall via AgentPlugin hooks

All platforms share the same MCP server — install once on your server, connect from any IDE. docs/HARNESSES.md is the cross-harness map: what each harness gets (native hooks vs. plugin vs. MCP), how the tiers stack, and where to start. Per-client config snippets: docs/MCP-SETUP.md and docs/MCP-INSTALL-RECIPES.md.


The Idea

Palinode treats plain files as the source of truth and builds its index and interfaces from those files.

Files (markdown + YAML frontmatter)
  ↓ watched
Index (SQLite-vec vectors + FTS5 keywords, single .db file)
  ↓ queried by
Interfaces (MCP server, REST API, CLI, OpenClaw plugin)
  ↓ compacted by
Consolidation (structured operations → validation and application → git commits)

That's the whole architecture. One directory of .md files, one SQLite database, one API server. No Postgres, no Redis, no cloud dependency.


One Backend, Every Interface

Palinode doesn't care how you talk to it. The full toolkit — save, search, doctor, dedup-suggest, orphan-repair, diff, blame, rollback, and more — works through every interface:

Interface

Transport

Best For

MCP Server

Streamable HTTP or stdio

Claude Code, Claude Desktop, Cursor, Windsurf, Zed, VS Code (Continue/Cline)

REST API

HTTP on :6340

Scripts, webhooks, custom integrations

CLI

Wraps REST API

Cron jobs, SSH, shell scripts

Plugin

OpenClaw lifecycle hooks

Agent frameworks with inject/extract patterns

Set up once on a server. Connect from any machine, any IDE, any agent framework. The MCP server is a pure HTTP client — it holds no state, no database connection, no embedder. Point it at the API and go.

{
  "mcpServers": {
    "palinode": { "type": "http", "url": "http://your-server:6341/mcp/" }
  }
}

That's the entire client config. Works with Claude Code, Claude Desktop, Cursor, Windsurf, Zed, and VS Code (Continue/Cline). palinode-mcp-http serves streamable-HTTP at /mcp/ — use "type": "http", not "type": "sse". Always include the trailing slash in the URL. See docs/MCP-SETUP.md for editor-specific install recipes.


How It Works

Store — Typed markdown files (people, projects, decisions, insights) with YAML frontmatter. Git-versioned. Human-readable. Editable in Obsidian, VS Code, vim, or anything.

Index — A file watcher indexes with FTS5 as you save. Content-hash dedup skips re-embedding unchanged files. The index is a local SQLite file; embeddings can use a local BGE-M3 endpoint or a configured remote provider.

Search — Hybrid BM25 + vector search merged with Reciprocal Rank Fusion. The two arms have different jobs: on full-sentence questions the vector arm can retrieve semantic matches while BM25 catches exact terms and identifiers. See benchmarks for the evaluation context and limitations. Optional associative entity graph and prospective triggers.

Compact — Weekly consolidation where an LLM returns structured operations and Palinode validates and applies them. Every compaction is a git commit you can review, blame, or revert.

Dream — If you've met "dreaming" as the name for this, palinode dream is an alias for palinode consolidate. Use --dry-run to inspect the proposed operations; each completed pass lands as a git commit, so a bad consolidation is a diff to review and a commit to revert.

Audit — git blame any fact. git diff any change. rollback any mistake. These aren't just git-compatible files — palinode_diff, palinode_blame, and palinode_rollback are first-class tools your agent can call. A memory with no explicit claim type is shown as unmarked; nothing is silently promoted from an unmarked note to a fact.


Requirements

  • Python 3.11+

  • Git

  • Ollama with bge-m3 (ollama pull bge-m3, ≈1.2 GB), or another supported embedding endpoint — for hybrid indexing and search. Since v0.21 you can instead choose explicit lexical mode; it is keyword/FTS retrieval, not a fallback when hybrid's endpoint fails. Saves persist without an embedder, but hybrid search returns HTTP 503 until it is reachable (palinode resolve degrades to keyword-only and says so). See the Homebrew setup guide for installation and verification.

Optional extras: a chat model for weekly consolidation (any 7B+ that outputs JSON), OpenClaw for agent plugin hooks.


Install

Before your first capture: Palinode stores readable Markdown and Git history. private/restricted control discovery by scope; a caller with API access can still read a hidden memory by its known path and use full-store maintenance tools. These labels provide no encryption or per-user/per-agent authentication. Protect the store, backups and API credentials; use separate instances or filesystem permissions for stronger separation. See the privacy contract.

The Quickstart is the authoritative first-use sequence. It covers the separate private store, second-terminal environment, supported lexical preview and hybrid model paths, editor connection, fresh-session check, inspector, and correction workflow. Do not combine a code checkout and a memory store. For a released Homebrew installation, begin with docs/HOMEBREW.md; for an autonomous agent bootstrap, see llms-install.md.


Running as a service

Three long-running processes (API, watcher, embedder) shouldn't live in terminal tabs. Pick one:

Platform

How

Details

Anywhere with Docker

docker compose up -d from the repo root — API + watcher + Ollama, with the bge-m3 pull handled for you (≈1.2 GB on first run)

docker-compose.yml header comments

Linux

systemd units via deploy/systemd/install.sh --enable

deploy/systemd/README.md

macOS

launchd LaunchAgents from templates

deploy/launchd/README.md

Windows

use Docker Compose (set PALINODE_DATA_DIR to a Windows path)

docker-compose.yml header comments

With compose, your memory stays on the host at ~/.palinode (override with PALINODE_DATA_DIR) — the containers mount it; files remain the source of truth. Already running Ollama on the host? OLLAMA_URL=http://host.docker.internal:11434 docker compose up -d palinode-api palinode-watcher skips the bundled one. Verify any of the three the same way: palinode doctor (or curl http://127.0.0.1:6340/status).


Connect your editor

Palinode speaks MCP. Follow the connection step in the Quickstart: palinode mcp-config generates a native fragment for the selected client, and the recipes keep the supported manual configuration. It is read-only; it never edits a client configuration file.

Connecting to a server on another machine over HTTP? Pass your project: palinode mcp-config --http --project <slug> adds an X-Palinode-Project header. Since v0.22 a remote server no longer scopes recall to its own working directory, so a client without the header gets unscoped results, reported as Scope: none. See the v0.22.0 compatibility notes. Full per-harness detail: docs/MCP-INSTALL-RECIPES.md.

Merge the Palinode entry into existing settings; redirecting generated output onto an existing configuration file would overwrite it.


Daily use — drop into a project

Already installed with palinode-api running? Scaffold any project in one command:

cd your-project
palinode init

By default that scaffolds .claude/CLAUDE.md (memory instructions, appended if one exists), the palinode-session skill, the /wrap command, and .mcp.json (points Claude Code at the palinode MCP server). The agent then saves and recalls through explicit tool calls. It installs no automatic hooks unless you opt in.

palinode init --hook opts in to the Claude Code hooks (.claude/settings.json registration plus the scripts). The SessionStart hook injects your core: true memories into each fresh session (startup and /clear). The UserPromptSubmit hook recalls relevant memory before each prompt: prospective triggers plus a strict-threshold search, injected as compact snippets and silent when nothing matches. The SessionEnd hook captures a transcript-derived summary on /clear, logout, and exit, and PostCompact saves a compaction checkpoint. Run palinode controls status before enabling them; the Quickstart shows how to pause or remove them. Re-run with --dry-run to preview, --force to overwrite, or --no-mcp to scope it. See examples/hooks/ for tuning knobs.

Projects that use other harnesses get the same memory instructions automatically: when AGENTS.md (or a .agent/ directory) exists, init appends a harness-neutral memory block to AGENTS.md (read by Codex, Antigravity, and other AGENTS.md-aware agents), and when a .cursor/ directory exists it writes .cursor/rules/palinode.md for Cursor. Force or skip with --agents/--no-agents and --cursor/--no-cursor — same recall/save/session-end contract, minus the Claude-Code-only machinery (/clear, /wrap, hooks).


Usage Examples

A few common flows. Every command and option is in docs/CLI.md.

Save a decision, recall it later

# During a session — save a decision
palinode save --type Decision "Chose SQLite over Postgres for the cache layer. \
  Reason: no ops burden, single-file deployment, good enough for our scale."

# Next week — search for it
palinode search "database decision for cache"

End-of-session capture

# Agent calls at end of coding session
palinode session-end \
  --summary "Migrated auth from JWT to session tokens" \
  --decisions "Session tokens stored server-side, 24h expiry" \
  --blockers "Need to update mobile client auth flow"

Audit trail — who decided what and when

# Trace a fact back to when it was recorded
palinode blame decisions/auth-migration.md

# Compose the full provenance lineage of a fact — sources, saved/changed
# commits, supersession trail, typed links, and recall — in one view
palinode trace decisions/auth-migration.md

# See what changed across all memory in the last week
palinode diff --days 7

# Retire a memory that turned out to be wrong — it leaves recall but stays
# on disk, in git, and in the index. Never a hard delete.
palinode archive insights/stale-finding.md --reason "superseded by the re-run" \
  --superseded-by insights/corrected-finding.md

Tools

Tools available through every interface (the full inventory, with parameters, is the table in docs/MCP-SETUP.md — a prose count here only drifts):

Tool

What It Does

session_init

Session-start context digest for the resolved project scope

search

Hybrid BM25 + vector search with category filter; resolve attaches bounded evidence and a resolution per hit

resolve

What memory holds right now for a question or one record — what stands, what replaced what, conflicts with both sides intact, and what is explicitly unknown

save

Store a typed memory (person, decision, insight, project)

list

Browse memory files by type, filter by core status

read

Read the full content of a memory file

ingest

Fetch a URL and save as research

status

Health check — file counts, index stats, service status

entities

Entity graph — cross-references between memories

consolidate

Preview or run LLM-powered compaction

archive

Retire one memory that's wrong or obsolete — archive it, or supersede it with a named replacement

restore

Bring an archived memory back into default recall — the inverse of archive

unretract

Withdraw one preference's mention-level retraction from one memory

forget_withdraw

Take a forget request back — restore what it archived, un-strike what it retracted

archive_expired

Archive ephemeral memories whose TTL has expired

diff

What changed in the last N days

blame

Trace a fact back to the commit that recorded it

trace

Compose a fact's full provenance lineage — sources, saved/changed commits, supersession, typed links, recall

history

Git history for a file with diff stats and rename tracking

rollback

Revert a file to a previous commit (safe, creates new commit)

push

Sync memory to a remote git repo

trigger

Prospective recall — auto-inject when a topic comes up

lint

Health scan — orphans, stale files, missing fields

review

Advisory project-memory review that proposes corrective operations without writing them

session_end

Capture summary, decisions, and blockers at end of session

prompt

List, show, or activate versioned LLM prompts

dedup_suggest

Before saving, surface existing files that overlap the draft

orphan_repair

Find semantic matches for broken [[wikilinks]]

doctor

Fast diagnostic pass — 18+ checks across paths, services, config, index

doctor_deep

Full diagnostic with canary write test (~10–15s)

cluster_neighbors

Find top-K semantically related files NOT already wiki-linked — surface implicit relationships for cross-link proposals

topic_coverage

Given a short topic phrase, return whether any existing wiki page already covers it (binary covered / best_match / similarity)

depends

Dependency tree (or unblocked-items list) from depends_on / blocks / parallel_with frontmatter on ProjectSnapshots

Every tool is accessible as palinode_<name> via MCP, palinode <name> via CLI (hyphenated: palinode archive-expired; session_init is palinode prime; doctor_deep has no separate CLI command), or POST/GET /<name> via the REST API.

The CLI has more commands than the tool list — service control, migration, repair, and wiki-maintenance helpers. docs/CLI.md is the full command reference, one entry per command with options, defaults, and output behaviour.


Stack

Layer

Choice

Why

Source of truth

Markdown + YAML frontmatter

Human-readable, git-versioned, portable

Vector index

SQLite-vec (embedded)

No server, single file, zero config

Keyword index

SQLite FTS5 (embedded)

BM25 for exact terms, zero dependencies

Embeddings

BGE-M3 via Ollama, or any OpenAI-compatible /v1/embeddings server

Local, private, no API key needed

API

FastAPI

Lightweight, async, one process

MCP

Python MCP SDK (Streamable HTTP)

Works with every IDE over the network

CLI

Click (wraps REST API)

Shell-native, TTY-aware output

Behavior

PROGRAM.md

What to remember, how to extract, how to compact — edit one file to change all behavior


Memory File Format

---
id: project-palinode
category: project
name: Palinode
core: true
status: active
entities: [person/alice]
last_updated: 2026-04-05T00:00:00Z
summary: "Persistent memory for AI agents."
canonical_question: "What is Palinode and what does it do?"
---
# Palinode

Your content here. As detailed or brief as you want.
Files marked `core: true` are included in the session-start digest.
Everything else is retrieved on demand via hybrid search.
The `canonical_question` field anchors the file to the question it answers, improving search relevance.

Open in Obsidian

Palinode stores every memory as a plain markdown file — which means your memory directory is already a valid Obsidian vault. Point Obsidian at the folder and you get graph view, backlinks, and Bases on top of Palinode's hybrid search and compaction. No sync job, no plugin to install, no two-source-of-truth problem.

palinode init --obsidian --dir ~/palinode-vault

This scaffolds the vault directory layout, an _index.md Map of Content, a _README.md orientation page, and an opinionated .obsidian/ config (graph view colour-coded by category, daily-notes wired to daily/). Then open the directory in Obsidian.

The LLM follows a wiki-maintenance contract — it keeps entities: frontmatter and [[wikilinks]] in the note body in sync so the Obsidian graph stays accurate as new memories are saved. When you save a memory with entity references, Palinode appends an idempotent ## See also block linking them as wikilinks.

Two embedding-aware tools support wiki hygiene: palinode_dedup_suggest checks whether a draft overlaps an existing file before creating a duplicate, and palinode_orphan_repair finds semantic matches for broken [[wikilinks]]. Both are callable via MCP, CLI, and REST.

See docs/OBSIDIAN.md for the comprehensive guide: quickstart, wiki contract details, migration paths, and FAQ.


Diagnose with palinode doctor

Silent misconfiguration — a db_path pointing at the wrong file, a watcher indexing a stale directory, a phantom DB file — is the most common reason Palinode doesn't behave as expected after an upgrade or server move. palinode doctor catches this entire class of bugs.

palinode doctor

The command runs 18+ checks across paths, services, config consistency, index health, and disk state, and emits a structured report with a pass/warn/fail status for each. --fix mode applies safe automated repairs (creates missing directories, appends the CLAUDE.md Palinode block) — it never moves user data; phantom DB files and DB-path mismatches print suggested mv commands but never execute them.

Run palinode doctor after every install, upgrade, or server migration. See docs/DOCTOR.md for the full check catalog and --fix reference.


Configuration

All behavior is in palinode.config.yaml:

memory_dir: "~/.palinode"
ollama_url: "http://localhost:11434"
embedding_model: "bge-m3"

search:
  hybrid_enabled: true
  hybrid_weight: 0.5         # 0.0 = vector only, 1.0 = BM25 only

consolidation:
  llm_model: "llama3.1:8b"   # any chat model that outputs JSON
  llm_url: "http://localhost:11434"
  llm_fallbacks:              # tried in order if primary fails
    - model: "qwen2.5:14b-instruct"
      url: "http://localhost:11434"

All models are swappable. Any Ollama embedding model, any OpenAI-compatible chat endpoint. The default search floors (search.mcp_threshold=0.4 and search.api_threshold=0.5) were measured against real bge-m3 embeddings; if you change the embedding model, re-check those floors and review any trigger threshold separately — the trigger default was not part of this calibration.

Every search delivery also reports a match-confidence verdict — confident, weak or none — in receipt.retrieval, read from each arm's own pre-fusion score rather than the fused rank, with the arm evidence beside it. Results are never withheld for it by default; search.abstain_on_no_confident_match: true in the API server's config opts the MCP surface into withholding a none slate. See docs/lexical-retrieval.md.

To re-check the search floors against your configured embedding endpoint, run python -m bench.abstention. It measures false positives for no-answer queries and retention of true results for answer-present controls as per-arm search thresholds increase; it does not calibrate trigger thresholds. See palinode.config.yaml.example for the full reference.

Embeddings without Ollama. llama.cpp (llama-server --embedding), vLLM, and LM Studio all expose the OpenAI-compatible /v1/embeddings shape; select it with dialect: openai (default ollama, so existing setups are unchanged). Retry, circuit breaker, and per-input error handling are identical to the Ollama path. The Ollama tag bge-m3 is not a llama-server model name — point llama-server at a BGE-M3 GGUF instead:

embeddings:
  primary:
    dialect: openai
    url: "http://localhost:8080"   # a trailing /v1 is fine too
    model: "bge-m3"                # llama-server ignores it; vLLM / LM Studio match it
    dimensions: 1024

Hosted OpenAI-compatible embedding providers can also use bearer authentication and provider-specific endpoint paths. Credentials stay out of YAML: set PALINODE_EMBEDDING_API_KEY, or set PALINODE_EMBEDDING_API_KEY_FILE to the path of a file containing the key.

For providers whose embedding endpoint is not /v1/embeddings, set endpoint_path. When it is omitted, the existing bare-host and trailing-/v1 behavior is unchanged.

embeddings:
  primary:
    dialect: openai
    url: "https://generativelanguage.googleapis.com/v1beta/openai"
    endpoint_path: "/embeddings"
    model: "gemini-embedding-001"

When exposing the API beyond loopback (PALINODE_API_HOST other than 127.0.0.1), set PALINODE_API_TOKEN — the server refuses to start unauthenticated on a non-loopback bind unless you opt out explicitly with PALINODE_API_ALLOW_UNAUTH=1. See SECURITY.md for the bearer-token auth model and the bind gate.


API Reference

Method

Path

Description

GET

/status

Health check + stats

POST

/search

Hybrid search with filters

POST

/search-associative

Entity graph traversal

POST

/save

Create a typed memory file. Schema: {content, type, slug?, entities?, title?}. Body cap 5 MB (override via PALINODE_MAX_REQUEST_BYTES).

POST

/ingest-url

Fetch URL, save as research. The URL and each redirect target (five hops at most) are validated before they are requested: a host must resolve only to globally routable addresses, and the connection is made to the address that was validated rather than by name. Pinning is skipped for HTTPS requests through an HTTP CONNECT proxy; address validation still runs (see the CLI guide).

GET/POST

/triggers

Prospective recall triggers

POST

/consolidate

Run or preview compaction

GET

/list

Browse files by type

GET

/read?file_path=...

Read a memory file

GET

/history/{file_path}

Git log for a file

GET

/diff

Recent changes

GET

/blame/{file_path}

Git blame

GET

/trace/{file_path}

Composed provenance lineage for a file

POST

/rollback

Revert a file

POST

/push

Push to git remote

POST

/reindex

Rebuild indices

POST

/session-end

Capture session summary

POST

/lint

Health scan


Design Principles

  1. Files are truth. Not databases, not vector stores. Markdown files that humans can read, edit, and version with git.

  2. Typed, not flat. People, projects, decisions, insights — each has structure. This enables reliable retrieval and consolidation.

  3. Consolidation, not accumulation. 100 sessions should produce 20 well-maintained files, not 100 unread dumps.

  4. Out of the way when working. The human talks to their agent; the agent calls Palinode's tools, and opt-in client hooks can do the routine capture and recall.

  5. Graceful degradation. Vector index down? Read files directly. Embedding service down? Grep. Machine off? It's a git repo, clone it anywhere.

  6. Zero taxonomy burden. The system classifies. The human reviews. If the human has to maintain a taxonomy, the system dies.


Design choices

  • Your data, your files — No accounts, no cloud dependency, no vendor lock-in. Your memory is markdown files in a directory you control. Export is cp. Backup is git push. Whatever happens to any tool in this ecosystem, your data is plain text on your filesystem.

  • Cross-IDE memory — Your memory lives in one place. Connect from Claude Code, Cursor, Windsurf, Zed, or any MCP-compatible editor. Switch IDEs without losing context.

  • Git operations as agent tools — diff, blame, rollback, push exposed via MCP, so the agent can audit and revert memory itself.

  • Operation-based compaction — Structured operations are schema-checked and applied as reviewable git commits.

  • Per-fact addressability — <!-- fact:slug --> IDs inline in markdown, invisible in rendering, preserved by git, targetable by compaction.

  • Four recall paths — Core (session-start digest) + Topic (search) + Associative (entity graph) + Triggered (prospective recall). Delivery without an explicit tool call needs an opt-in client hook or plugin.

  • Multi-transport MCP — stdio for local, Streamable HTTP for remote. One server, any IDE on any machine.

  • If everything crashes, cat still works.

Measured, not asserted: docs/BENCHMARKS.md has LongMemEval results with methodology, cost, and the losses. For what Palinode does and does not guarantee about forged, planted, or borrowed-authority content reaching an agent through memory, see SECURITY.md#memory-poisoning-and-trust-limitations.


Acknowledgments

Palinode builds on ideas from Karpathy's LLM Knowledge Bases, Letta (tiered memory), and LangMem (typed schemas + background consolidation). See docs/ACKNOWLEDGMENTS.md for the full list.

See also the epistemic integrity discussion in the Karpathy gist thread — particularly the problem of LLM wikis that "synthesise without citing, drift from sources without knowing it, and present false certainty where disagreement exists." Git-based provenance is Palinode's answer to that problem.

If you know of prior art we missed, please open an issue.


License

MIT — Privacy Policy


Built by Paul Kyle with help from AI agents who use Palinode to remember building Palinode.

Available Tools

39 tools
palinode_archiveA
DestructiveIdempotent

Retire one specific memory that is wrong or obsolete. Sets status: archived so it leaves default recall, records the reason in the file's history sibling, and commits — never hard-deletes, so the content stays auditable. Pass superseded_by to name the memory that replaces it (a SUPERSEDE rather than a plain archive). Use this instead of re-saving a memory with a hand-written tombstone body: that leaves the wrong content live in search.

Inputs: file_path (required), reason, dry_run, superseded_by.

palinode_archive_expiredA
DestructiveIdempotent

Archive ephemeral memories whose expires_at has passed (ADR-015 §2.3 TTL regime). Deterministic + idempotent — flips expired memories to status: archived so they drop out of default recall while staying on disk. Set dry_run=true to preview.

Inputs: dry_run.

palinode_blameB
Read-onlyIdempotent

Trace a fact back to when it was first recorded. Shows which session or commit created each line in a memory file.

Inputs: file_path (required), claims, search, sessions.

palinode_cluster_neighborsA
Read-onlyIdempotent

Given a memory file path, find the top-K semantically related files that are NOT currently linked to or from it (no existing [[wikilink]] in either direction). Use during wiki-maintenance passes to surface implicit relationships that no wikilink yet captures — the LLM can then propose new cross-links. Preprocessing strips wikilink syntax and the auto-generated ## See also footer so notes linking the same entities don't false-positive as related.

Inputs: file_path (required), top_k, min_similarity.

palinode_consolidateA
Destructive

Run a manual knowledge consolidation pass. Set dry_run=true to preview the proposed operations without applying them. A pass that reaches the LLM can run for minutes and may outlast your client's own tool-call timeout; the server finishes it either way and holds a run lock while it does, so a retry returns 409 rather than starting again.

Inputs: dry_run, nightly, sources, respect_gate.

palinode_correction_applyA
Destructive

Apply a correction previewed by palinode_correction_preview. Requires confirm=true and the expect_revision that preview returned; a target that changed since the preview, or a ref matching more than one memory, is refused with what it found rather than resolved by guesswork. Writes only through the existing validated path — the replacement is saved and the original is archived with superseded_by, so the original stays on disk, in git and retrievable as history. An ordinary later observation must NOT be routed here: this is the explicit, confirmed path, and it is the only one that retires anything. applied: "partial" means the replacement was saved and the original was NOT retired — do not re-run the correction; run the complete_command it returns.

Inputs: target (required), confirm (required), expect_revision (required), action, +7 more.

palinode_correction_dismissA
Idempotent

Record that a correction candidate was reviewed and declined. Writes no memory: the candidate's queue row is marked dismissed, with the reason, and kept — which is what stops a later transcript scan proposing the same span again. A reason is required, because a dismissal with none is indistinguishable from a candidate nobody ever looked at.

Inputs: reason (required), candidate_id (required).

palinode_correction_previewA
Read-onlyIdempotent

Show exactly what correcting or retiring one memory would change — and change nothing. Returns the old text, the proposed new text, the affected document (and claim), its exact source revision, the rationale, where the correction came from, the project scope, the supersedes/superseded_by relation that would be recorded, every other record that quotes or derives from the target (reported, never rewritten), and the recovery command. Call this before palinode_correction_apply: the revision it returns is what apply requires back, so a target that changed in between is refused rather than silently merged.

Inputs: action, reason, target, project, +5 more.

palinode_correctionsA
Read-onlyIdempotent

List correction candidates mined from harness session transcripts: moments the user overturned a decision, rejected an approach and said why, or asked for something to be remembered. Each candidate quotes a bounded span of the user's own words with the session, turn and project it came from. Advisory and read-only — candidates are proposals awaiting review, never applied, and the list is empty unless the store's operator enabled transcript capture and named the transcript paths in config. Running a fresh detection pass is deliberately an operator action on the CLI or REST API, not something this tool can trigger.

Inputs: project, since_days.

palinode_correction_undoA
Idempotent

Preview (default) or apply the undo of a correction. Without confirm this reads: it states what would be restored, what would NOT be deleted, and what cannot be reached at all — restoring a previous assertion, deleting history and undoing an agent's external actions are three different things and only the first is on offer. With confirm=true and the preview's expect_revision it brings the archived record back to status: active. It refuses to resurrect a record that was separately retracted or withdrawn by a forget request.

Inputs: target (required), reason, confirm, expect_revision.

palinode_dedup_suggestA
Read-onlyIdempotent

Given draft memory content the LLM is about to save, return the top-K existing memory files whose embeddings are semantically near it. Use BEFORE writing a new memory to decide 'create new' vs 'update existing'. Each result includes a strong_dup flag — when true (similarity ≥ 0.90), the existing file is a near-paraphrase and the LLM should usually update rather than create. Preprocessing strips wikilink syntax and the auto-generated ## See also footer so notes linking the same entities don't false-positive as duplicates.

Inputs: content (required), top_k, min_similarity.

palinode_dependsA
Read-onlyIdempotent

Return the dependency tree for a milestone or task slug, or list all unblocked items. Reads depends_on / blocks / parallel_with frontmatter from ProjectSnapshot files. Set unblocked=true to answer 'what can I work on right now?' across all slugs.

Inputs: slug, unblocked.

palinode_diffA
Read-onlyIdempotent

Show what memories changed recently. Use to review what was learned, decisions made, or facts updated in the last N days.

Inputs: days, paths.

palinode_doctorA
Read-onlyIdempotent

Fast palinode health check (<500ms). Skips network probes and canary writes. Checks path integrity, config consistency, and env-var drift. Use this first; call palinode_doctor_deep when results are unclear.

Inputs: no named parameters.

palinode_doctor_deepA
Read-onlyIdempotent

Full palinode health check including network probes and canary write tests. Takes 10-15s. Use when palinode_doctor reports unclear results or you need to verify the API, watcher, and service connectivity.

Inputs: no named parameters.

palinode_entitiesA
Read-onlyIdempotent

List all known entities, or get memory files referencing a specific entity.

Inputs: entity_ref.

palinode_explainA
Read-onlyIdempotent

Explain one delivery of context: given the bundle_id a search receipt returned, show which memories were supplied, the exact revision of each (and whether its source changed since), the resolved scope, the calling surface, each record's disposition, and the coverage qualifiers. Fields that were never recorded are reported as unavailable with the reason, never guessed. This is supplied context only — no evidence that anyone acted on it is recorded. Read-only.

Inputs: bundle_id (required), limit.

palinode_forget_withdrawA
DestructiveIdempotent

Take a forget request back. Given the memory that holds the request ('please forget that I…'), restores every memory it archived, un-strikes every mention it retracted, and archives the request record(s) so they stop acting as the retraction. Each step is its own audited commit; failures are reported per target.

Inputs: file_path (required), reason, dry_run.

palinode_historyA
Read-onlyIdempotent

Show the change history of a memory file. Tracks renames (--follow) and includes diff stats per commit. Use detail='full' for the commit-level evolution view.

Inputs: file_path (required), limit, detail.

palinode_ingestA

Fetch a URL and save it as a research reference in Palinode memory.

Inputs: url (required), name.

palinode_lintB
Read-onlyIdempotent

Scan memory for health issues: orphaned files, stale active files (>90 days), missing frontmatter fields, and potential contradictions. Returns a report without modifying files.

Inputs: propose.

palinode_listA
Read-onlyIdempotent

List memory files, optionally filtered by category, core status or frontmatter. Use to browse what memories exist before reading or searching. Scoped like palinode_search: this project's records and ones naming no project.

Inputs: where, category, core_only, include_inbox, +1 more.

palinode_orphan_repairA
Read-onlyIdempotent

Given a [[wikilink]] whose target file does not exist, return existing memory files semantically near the link target text. Use during wiki-maintenance passes to either propose a redirect (rename the link to point at an existing file) or to create the missing target file with informed context about its semantic neighbours. Accepts either [[name]] or bare name.

Inputs: broken_link (required), top_k, min_similarity.

palinode_promptA

List, read, or activate versioned LLM prompts stored as memory files in the prompts/ directory. Use 'list' to browse available prompts, 'read' to view a specific prompt's content, or 'activate' to set a prompt version as active (deactivates others of the same task).

Inputs: action (required), name, task.

palinode_pushA

Sync memory changes to GitHub for backup and cross-machine access.

Inputs: no named parameters.

palinode_readA
Read-onlyIdempotent

Read the full contents of a memory file. Use after palinode_list or palinode_search to see the complete content of a specific file.

Inputs: file_path (required), meta, tier.

palinode_resolveA
Read-onlyIdempotent

Ask what memory holds RIGHT NOW about a question, or about one record. Returns the assertions that stand (with their evidence and source revisions), what replaced what, conflicts with every side intact, and what is explicitly unknown. Use instead of palinode_search when you want the current answer rather than a list of hits. Read-only; a tight budget can shrink the answer but never turns a conflict into a settled one. Retired records are left out, as in search, unless include_retired=true.

Inputs: ref, query, intent, prompt, +5 more.

palinode_restoreA
Idempotent

Bring one archived memory back into default recall — the inverse of palinode_archive for every archive path (on-demand, forget request, TTL expiry, consolidation). Flips status back to active, drops superseded_by, records restored_at / restored_from provenance and a history line, and commits. Does not un-strike retraction markers (use palinode_unretract) or re-enable triggers.

Inputs: file_path (required), reason, dry_run.

palinode_reviewA
Read-onlyIdempotent

Advisory project-memory review. Composes the deterministic health signals (stale files, long-unresolved open questions, open contradictions, orphans, missing descriptions, wiki drift) scoped to a project, and proposes corrective ops (PROPOSE_ARCHIVE/UPDATE/SUPERSEDE). Read-only — proposes, never applies. Omit project to review the whole store.

Inputs: project.

palinode_rollbackA
Destructive

Revert a memory file to a previous version. Safe: creates a new commit preserving the old version in history. Defaults to dry run. A rollback that would undo a retirement (archive/supersede/retraction) is named in the preview and refused unless undo_retirements=true; prefer palinode_restore to bring a retired memory back.

Inputs: file_path (required), commit, dry_run, undo_retirements.

palinode_saveA

Save a memory (fact, decision, insight, project update) worth keeping across sessions. Requires exactly one of type or ps=true. On timeout the save may still have committed — palinode_search a distinctive phrase before retrying, or you'll duplicate it. path (e.g. team/x.md) names the file in place of /.md.

Inputs: content (required), ps, core, path, +16 more.

palinode_session_endA

Call at the end of a coding or chat session to capture key outcomes to persistent memory. Writes a session summary to today's daily notes and appends status to relevant project files. Provide a brief summary of what was accomplished, decisions made, and any blockers.

Inputs: summary (required), push, source, dry_run, +3 more.

palinode_session_initA
Read-onlyIdempotent

Session-start context: call this FIRST in a new conversation. Returns the resolved project scope with recent session snapshots, core memories, recent decisions, and open action items as a bounded digest.

Inputs: cwd, project.

palinode_statusA
Read-onlyIdempotent

Check Palinode health plus the effective read-only capture/recall pause state, policy provenance, and resolved project scope.

Inputs: no named parameters.

palinode_topic_coverageA
Read-onlyIdempotent

Given a topic phrase (not a file), check whether any wiki page already covers it. Returns {covered: bool, best_match: str | null, similarity: float}. Use BEFORE ingesting new content to ask 'is this already covered?'. Different framing from palinode_dedup_suggest: takes a short topic phrase rather than full draft content, and answers the binary 'already covered?' question.

Inputs: query (required), min_similarity.

palinode_traceA
Read-onlyIdempotent

Compose the full provenance lineage of a memory file into one view: source citations, when it was first saved and last changed, the supersession trail, typed contradiction/evidence links, and how often it has been recalled. Rows whose provenance is not yet captured render an honest placeholder. Read-only.

Inputs: file_path (required).

palinode_triggerA

Register or manage a prospective trigger for Palinode. When a future user message semantically matches the description, the specified memory file will be automatically injected.

Inputs: action (required), authority, phrasings, threshold, +5 more.

palinode_unretractA
Idempotent

Withdraw one preference's mention-level retraction from one memory: un-strikes every ~~…~~ [RETRACTED …] span the pref produced and removes the pref from the file's retracted_prefs record, so a later forget request for the same pref can strike again. Pass the pref phrase as recorded in the file's history sibling. The file's status is never changed.

Inputs: pref (required), file_path (required), reason, dry_run.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 39 tools

    Disambiguation4/5

    The set has several clusters that could collide — search/resolve/trace/history/blame/explain all touch retrieval or provenance, and dedup_suggest/topic_coverage/cluster_neighbors/orphan_repair are all similarity lookups — but the descriptions explicitly contrast them (e.g. resolve 'instead of palinode_search', topic_coverage 'different framing from palinode_dedup_suggest'). Pairs like archive vs archive_expired and doctor vs doctor_deep are deliberately tiered rather than ambiguous. Only minor overlap remains.

    Naming Consistency4/5

    All names are snake_case under a uniform `palinode_` prefix, which is highly predictable. The deviation is grammatical rather than stylistic: some are bare verbs (list, read, search, status), some noun phrases (entities, corrections, prompt, depends), and some verb_noun (correction_apply, session_end, dedup_suggest).

    Tool Count2/5

    39 tools far exceeds the well-scoped 3-15 range and pushes well past the 16-25 'heavy' band. While many individual tools are justified (correction lifecycle, health tiers, wiki maintenance), an agent must wade through a large surface to find the common operations.

    Completeness4/5

    Coverage is unusually deep: read/write/search, archive/restore/rollback, correction preview/apply/dismiss/undo, dedup and wiki repair, two-tier health checks, triggers, prompts, and dependency queries. The main gap is a direct in-place edit of a memory body (correction_apply retires the original, and save overwrites/recreates), plus no bulk delete or export.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      A personal memory engine and MCP server that stores durable facts in markdown files managed via git, enabling hybrid search (lexical + semantic) through an MCP interface for persistent context across LLM sessions.
      3
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing persistent, local-first memory for AI agents via Markdown files in a git repo, with search, branching, and auditability.
      10 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides MCP tools that give AI agents persistent, append-only memory in a git repository, letting them record observations, decisions, and corrections while retrieving context briefs, current facts, conflicts, and traceable event history without a vector database.
      6 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides persistent, shared memory for AI agents via MCP, enabling retrieval of relevant memories instead of loading entire context. Allows agents across projects, machines, and tools to share a single auditable, markdown-native brain.
      5
      AGPL 3.0