Skip to content

Getting started

Introduction

Every AI coding agent on your machine keeps its own memory, and forgets it between sessions. Sigil replaces all of them with one brain that persists, and that every agent reads and writes.

Claude Code knows your preferences from this morning. Cursor doesn’t. Kiro learned your architecture last week; Codex CLI has never heard of it. Tomorrow, all four start cold.

The built-in answer is a hand-edited file — CLAUDE.md, AGENTS.md, .cursorrules, Kiro steering. Per-agent, size-capped, manually maintained, and reloaded in full on every single prompt.

Sigil stores facts, decisions, preferences, and documents in your own Postgres (or a zero-install embedded database), and injects the relevant ones into every agent prompt automatically.

Capture

Four Claude Code hooks classify and save what you say as you work. Other agents write through MCP or the CLI.

Store

Documents become chunks, chunks become atomic facts, facts link into an entity graph — all in your database.

Recall

Hybrid search (vector + keyword) re-ranked by recency and co-retrieval, injected before the model sees your prompt.

You tell Claude Code on Tuesday that events route through Postgres LISTEN/NOTIFY instead of Redis pubsub. Thursday you open Cursor in the same repo and ask for an event handler. It already knows. Friday, an agent on your home server answers the same question the same way.

100%Retrieval R@10
33msp50 search
~1.5Ktokens per prompt
0cloud accounts
Built-in memory filesSigil
CaptureManual — you write and edit the fileAutomatic via Claude Code hooks
ScaleWhole file loaded into context, every promptTop-K retrieved from an unlimited corpus
Token costLinear in file size~1.5K per prompt, regardless of corpus size
SearchNone — the model reads everythingHybrid: pgvector + tsvector BM25, fused with RRF
Cross-agentOne file per agent, no sharingOne brain, every wired agent
Cross-machineManual sync (git, scp)Point installs at the same database
FreshnessStale until you rewrite itDecay, supersession, importance reweighting
ProvenanceNoneSource, confidence, temporal validity, writer

Keep CLAUDE.md for hard project rules. Sigil handles everything else.

Auto-detected and wired by setup — nothing to configure:

Claude Code
Cursor
Codex CLI
Kiro

One line of config from sigil register --print:

Continue
Cline
Windsurf
Claude Desktop
Any MCP client
Anything with a shell

Claude Code gets the deepest integration — four hooks that capture and inject with no tool calls at all. Every other agent uses the MCP server or the sigil CLI directly.

In your database and nowhere else. There is no Sigil cloud, no account, and no telemetry.

Text leaves your machine only when Sigil calls the LLM or embedding provider you chose. Pick Ollama for both and nothing leaves at all — Sigil is fully air-gappable.