ariadne
English · Українська
A native, local-first, multilingual memory server for Codex, Claude Code, and any MCP client. Go + Qdrant + bge-m3 — no Docker, no cloud, no API keys.
Project site · Hugging Face Space · Latest release
Built as a replacement for embedded vector-DB memory backends that crash or starve under several concurrent MCP sessions. ariadne is a server: one Qdrant handles concurrent writes natively, so the whole single-writer / lock-starvation class simply doesn't exist.
What's New in v0.7.0
Exact retrieval and immediate durable memory. memory_recall now accepts an
exact content-hash id, so agents can retrieve and verify one memory without an
embedding call or approximate ranking. Semantic recall can also be scoped by
both project (wing) and category (room).
The shared Ariadne skill now requires agents to save completed release,
deployment, migration, audit, incident-resolution, and verified-status reports
to reference immediately when the outcome becomes known. This is proactive:
the agent does not wait for SessionEnd, PreCompact, daily consolidation, or a
separate “remember this” command. Decisions and hard-won gotchas follow the same
immediate-save discipline.
Token metrics now distinguish three real quantities instead of presenting a negative number as “tokens saved”:
- confirmed saved — positive per-recall reuse backed by source metadata;
- recall overhead — delivered context without measurable source reuse;
- net — signed confirmed savings minus overhead.
The tray shows non-negative confirmed savings. ariadnectl metrics and JSON
retain overhead and signed net, so costs remain visible rather than being
clamped away.
{
"id": "2704862554782470108"
}
Previously in v0.6.0
Automatic diary distillation. SessionEnd capture still writes one concise, local-model diary memory per substantive session. Daily maintenance now revisits diary entries older than 24 hours, groups them by project and day, and retains only durable decisions with rationale, verified gotchas, critical constraints, and important open risks. Chronology, routine progress, duplicates, code, and repository-derivable details are discarded.
The process is fail-safe: Ariadne creates a Qdrant snapshot before modifying anything, saves all distilled memories before deleting their source diary, and keeps the source group intact if summarization, validation, embedding, or saving fails. The summary endpoint remains local-only unless remote capture is explicitly enabled.
Preview or run it manually:
ariadnectl consolidate --before 24h --dry-run
ariadnectl consolidate --before 24h
The installer schedules consolidation with the existing 04:30 daily memory
maintenance job on macOS and Linux. Output is written to
~/.ariadne/logs/maintenance.log.
Previously in v0.5.0
- Explicit Windows client integration — the installer detects Claude Code and Codex CLI, then asks which one to configure. It never creates settings for an absent client and non-interactive installs require an explicit choice.
- Core-only and configure-later modes — install the local Ariadne stack with
-CoreOnly, then connect Claude or Codex later with-ConfigureClients. Consent-gated updates preserve existing client configurations unchanged. - Physical and VM preflight — PowerShell now reports Windows, CPU, RAM, disk,
and machine type; enforces the default models' minimum resources; gives
Proxmox/KVM CPU guidance; and directly executes
qdrant.exe --versionbefore registering the service.
What's New in v0.4.0
- Local token-efficiency metrics — Ariadne estimates confirmed savings,
recall overhead, and signed net context benefit for automatic and MCP recalls. Totals are
available through
ariadnectl metrics, its JSON form, and the tray menu. - Content-free accounting — only numeric counters and opaque event hashes are stored locally. Repeated hook delivery counts as overhead without claiming the same represented session context twice.
What's New in v0.3.1
- Clean Windows prerequisite repair — the installer now detects the Microsoft Visual C++ Runtime required by the official Qdrant Windows binary. When it is missing or older than 14.44, Ariadne downloads Microsoft's official redistributable, verifies its Authenticode signer, and requests administrator approval for that prerequisite only.
- Actionable Qdrant failures — startup gets a full 60-second window, loader
and process errors are preserved in
~/.ariadne/logs/qdrant.log, and the installer prints the scheduled-task result plus the last log lines instead of returning only a generic timeout. - Real Windows Qdrant coverage — CI now downloads the exact pinned Qdrant
archive, verifies its SHA-256 digest, starts it with Ariadne's loopback/storage
settings, and waits for
/healthzon a Windows runner.
What's New in v0.3.0
- Native Windows installation —
install.ps1installs release binaries, native Qdrant, signed Ollama, user-level startup tasks, Codex/Claude Code MCP bindings, the skill, and session hooks. Docker is not required; administrator approval is needed only when Windows lacks Qdrant's Microsoft VC++ Runtime. - Windows self-updates — the version-aware tray now offers the same explicit confirmation and automatic restart flow on Windows as on macOS and Linux.
- Five release targets — Windows x64, Linux x64/ARM64, and macOS Intel/Apple Silicon archives are built from tags by GitHub Actions.
- Verifiable artifacts — releases include SHA-256 checksums, a CycloneDX SBOM, and a keyless Sigstore bundle for the checksum manifest.
- MCP discovery — a cross-platform MCPB and
server.jsonare generated from the release binaries and published to the official MCP Registry with GitHub OIDC. - Public project site and launch kit — structured metadata,
llms.txt, platform installation paths, architecture, security notes, and ready-to-use launch copy make Ariadne easier for both people and AI systems to discover.
Why
- Stable — Qdrant server, not an embedded HNSW that SIGSEGVs on compaction.
- Multilingual — bge-m3 covers 100+ languages; cross-lingual recall works (an English query finds Ukrainian notes, cosine ~0.8–0.94 across uk/ru/en/es/ de/it/pl/ro/hu/lt/lv/et/fi/fr/ar).
- Hybrid search — dense (bge-m3) + BM25 sparse (pure Go tokenizer; Qdrant computes IDF server-side) fused with RRF. Exact terms/codes/names rank sharply.
- Scoped recall — narrow searches by project (
wing) and category (room), includingreferencefor releases, deployments, audits, and verified reports. - Native — Qdrant binary + Ollama on Windows, macOS, and Linux; supported NVIDIA/AMD acceleration, Metal on Apple Silicon, and a CPU fallback.
Components
| Path | What |
|---|---|
cmd/ariadne |
MCP server (stdio). Tools: memory_save, memory_recall, memory_delete, memory_move. |
cmd/import |
Backfill from a chromadb sqlite, markdown memory files or JSONL (batched embeds). |
cmd/hook |
Claude Code session hooks (ariadne-hook): SessionStart auto-recall, SessionEnd auto-capture. |
cmd/install |
One-shot installer (macOS/Linux): preflight, reuse-or-install Qdrant, services, MCP, skill, hooks. Windows uses install.ps1. |
cmd/ariadnectl |
Control + health core (status -json, metrics -json, start/stop, backup/export). |
internal/store |
Storage core: embed (Ollama), BM25 sparse, Qdrant hybrid. |
cmd/ariadne-tray |
Cross-platform tray monitor (macOS/Linux/Windows) — pure-Go, localized, over the ariadnectl core. |
skills/ariadne |
Claude Code skill: recall/save discipline + doctor.sh/recall.sh. |
deploy/ |
LaunchAgent / systemd templates: Qdrant service, daily memfiles-sync, tray autostart. |
poc/ |
Standalone experiments that validated the stack. |
Setup
Windows
Open PowerShell as your regular user. Download the script first so it remains inspectable before execution:
irm https://raw.githubusercontent.com/mclaut/ariadne/main/install.ps1 -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1
The Windows installer downloads the matching GitHub Release archive and checks
it against SHA256SUMS. If Ollama is missing, it downloads the official
OllamaSetup.exe, verifies that its Authenticode signer is Ollama Inc., and
installs it without elevation. It installs the pinned native Qdrant x64 asset
after verifying its SHA-256 digest, registers Qdrant and ariadne-tray as
current-user scheduled tasks, pulls bge-m3 and the summary model, then
offers to register Ariadne with the detected Codex and/or Claude Code CLI.
Client configuration is always explicit: the installer never creates settings
for software that is not installed.
Choose an integration directly for unattended setup, install only the core, or configure clients later:
.\install.ps1 -Yes -Integration Claude
.\install.ps1 -Yes -Integration Codex
.\install.ps1 -Yes -Integration Both
.\install.ps1 -Yes -CoreOnly
.\install.ps1 -ConfigureClients -Integration Codex
-Integration None and -CoreOnly leave all client configuration untouched.
Tray-driven updates also preserve existing client settings; they do not enroll
a newly discovered client during an update.
The official Qdrant Windows binary requires Microsoft Visual C++ Runtime 14.44
or newer. Ariadne checks it before starting Qdrant. If it is absent or outdated,
the installer downloads the official Microsoft x64 redistributable, verifies
the Microsoft Authenticode signer, and Windows requests administrator approval
for that prerequisite. Rerun the same install command after a cancelled prompt.
If Qdrant still cannot start, the installer prints diagnostics and the tail of
~/.ariadne/logs/qdrant.log directly in PowerShell.
Qdrant is always bound to 127.0.0.1. Ollama remains managed by its native
Windows app and serves http://localhost:11434. Requirements: Windows 10 22H2
or newer, x64, Windows PowerShell 5.1+, at least 8 GiB RAM and 15 GiB free disk
for the default local models (16 GiB RAM recommended, 4+ CPU cores preferred).
Virtual machines need the same guest resources; for Proxmox/KVM expose a modern
CPU type such as host. The installer prints the detected hardware before any
download and validates that qdrant.exe can execute on the machine.
Use -SkipOllama or -SkipModels when those dependencies are provisioned
separately.
One command (Linux + macOS)
curl -fsSL https://raw.githubusercontent.com/mclaut/ariadne/main/install.sh | sh
Nothing by hand: install.sh bootstraps Go and the source (GitHub tarball — no
git needed), then runs the installer below, which auto-installs Ollama, Qdrant,
the models, the services, and — on Linux — the tray plus its desktop deps. Pass
installer flags straight through, e.g. a lighter summary model or a preview:
curl -fsSL https://raw.githubusercontent.com/mclaut/ariadne/main/install.sh | sh -s -- -summary-model qwen2.5:3b
curl -fsSL https://raw.githubusercontent.com/mclaut/ariadne/main/install.sh | sh -s -- -dry-run
curl -fsSL https://raw.githubusercontent.com/mclaut/ariadne/main/install.sh | sh -s -- -strict-supply-chain
(sudo — for distro packages and the official Ollama installer on Linux — prompts on the terminal, so the pipe is fine.)
Supply-chain defaults are pinned: install.sh installs go1.26.2 unless
ARIADNE_GO_VERSION is set, verifies the Go tarball SHA256 before unpacking,
and the Go installer installs Qdrant from a pinned -qdrant-version release
(default v1.18.2) after checking the GitHub release-asset digest. For locked
down environments, pass -strict-supply-chain; on Linux this refuses the
Ollama curl | sh bootstrap and asks you to install Ollama manually first.
Linux and Ollama
Ariadne uses Ollama for bge-m3 embeddings and, when session hooks are enabled,
for the local summary model. An existing local Ollama installation is reused.
If the ollama command is missing, the default installer runs Ollama's official
Linux install script, waits for http://localhost:11434 to become ready, then
pulls bge-m3 and the configured summary model.
If Ollama is installed but its daemon is stopped, start it before running the Ariadne installer:
sudo systemctl enable ollama
sudo systemctl start ollama
sudo systemctl status ollama
curl -fsS http://127.0.0.1:11434/api/version
On Linux, Ollama remains a system service owned by the OS. The
ariadnectl start, ariadnectl stop, and ariadnectl restart commands manage
Ariadne's Qdrant user unit and deliberately leave Ollama alone. On systems
without systemd, run ollama serve under the local service manager instead.
See Ollama's official
Linux installation guide for manual packages,
ARM64, NVIDIA, and AMD/ROCm setup.
With -strict-supply-chain, Ariadne never runs Ollama's curl | sh installer.
Install and start Ollama yourself, then rerun Ariadne. -skip-deps also leaves
Ollama and the Linux tray dependencies entirely to you. To reuse Ollama on
another machine, provision the required models there and pass
-ollama http://host:11434 together with -skip-model-pull.
From a clone (macOS/Linux, or to hack on it)
go run ./cmd/install -dry-run # preflight + plan, changes nothing
go run ./cmd/install -yes # do it
The installer is deliberately careful with existing infrastructure:
- An already-running Qdrant is REUSED, never restarted or reconfigured —
Ariadne only adds its own collection. A busy port that is not Qdrant aborts
the install. Use
-qdrant-host/-qdrant-rest/-qdrant-grpcto point at a remote instance (e.g. a GPU workstation),-ollamafor a remote embedder. - GPU / RAM / disk are checked up front and insufficiencies are stated plainly (no GPU → an honest "embeddings on CPU, ~10x slower" warning; <6GiB RAM or <5GiB disk → hard FAIL).
- Idempotent: re-running skips everything that is already in place.
It installs the Qdrant binary + service (macOS LaunchAgent / Linux systemd
user unit, loopback-only), builds the Go binaries into ~/.ariadne/bin,
pulls bge-m3, creates the collection, registers the MCP server in
~/.claude.json (backup kept) and installs the Claude Code skill.
Codex and other MCP clients can use the same installation by registering
~/.ariadne/bin/ariadne as a stdio MCP server.
Release archives and MCPB
Every stable release includes native archives for five targets, a portable
cross-platform .mcpb, server.json, SHA256SUMS, a CycloneDX SBOM, and a
Sigstore bundle. The MCPB contains the MCP server for all supported platforms;
Qdrant and Ollama still need to be installed by the native OS installer first.
See GitHub Releases for
manual downloads and verification files.
Manual setup (macOS example)
The runtime lives in ~/.ariadne (binaries, data, backups, logs) — the repo
holds only source. On macOS this is not just taste: launchd agents cannot
exec programs or write logs under ~/Desktop/~/Documents (TCC) — they die
with EX_CONFIG and empty logs. Keep the runtime out of those folders.
mkdir -p ~/.ariadne/{bin,backups,logs}
# 1. Qdrant (native binary — no Docker)
curl -sL https://github.com/qdrant/qdrant/releases/latest/download/qdrant-aarch64-apple-darwin.tar.gz \
| tar xz -C ~/.ariadne/bin
# 2. Ollama + bge-m3 (native, Metal)
brew install ollama && brew services start ollama
ollama pull bge-m3
# 3. Build + install
go build -o ~/.ariadne/bin/ariadne ./cmd/ariadne
go build -o ~/.ariadne/bin/ariadnectl ./cmd/ariadnectl
go build -o ~/.ariadne/bin/import ./cmd/import
# 4. Qdrant as a service (see the TCC note above)
sed "s|__HOME__|$HOME|g" deploy/com.ariadne.qdrant.plist > ~/Library/LaunchAgents/com.ariadne.qdrant.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.ariadne.qdrant.plist
# 5. Register with Claude Code — add to ~/.claude.json mcpServers:
# "ariadne": { "type": "stdio", "command": "<home>/.ariadne/bin/ariadne" }
Security: Qdrant has no auth by default — the template pins it to
127.0.0.1 (QDRANT__SERVICE__HOST). Never expose it on the LAN: your
memories are stored in plaintext payloads.
Config via env (defaults in brackets): ARIADNE_QDRANT_HOST [localhost],
ARIADNE_QDRANT_PORT [6334], ARIADNE_OLLAMA [http://localhost:11434],
ARIADNE_MODEL [bge-m3], ARIADNE_COLLECTION [ariadne].
Claude Code skill
skills/ariadne/ teaches Claude Code when to recall, what (not) to save, and
how to operate the stack; tools/doctor.sh checks the whole chain
(binaries → services → model → collection → binding → MCP registration) and
tools/recall.sh "query" does CLI recall without MCP. Install (a real copy —
symlinked skills are not discovered at session start):
cp -R skills/ariadne ~/.claude/skills/ariadne
Session hooks — auto-recall & auto-capture
The installer registers two Claude Code lifecycle hooks (cmd/hook, binary
ariadne-hook; skip with -skip-hooks):
- SessionStart → auto-recall. When a session starts in a project that HAS memories (wing = the directory name), the top hits are injected as context — Claude "remembers" the project before your first message. Projects without memories start completely clean; failures are silent and never block the session.
- SessionEnd → auto-capture. A detached worker (session exit is never
blocked) parses the transcript, extracts deterministic facts (branch,
commits, duration) and asks a local Ollama chat model to write a 4–8
sentence summary — decisions with reasons, fixes, open items. ONE curated
diary memory per session; raw transcripts are never stored. Trivial sessions
are skipped (min-turns guard + the summarizer can answer
SKIP). Log:~/.ariadne/logs/capture.log.
Config via env: ARIADNE_CAPTURE=0 disables capture,
ARIADNE_SUMMARY_OLLAMA [defaults to ARIADNE_OLLAMA or localhost],
ARIADNE_SUMMARY_MODEL [qwen2.5:7b], ARIADNE_CAPTURE_MIN_TURNS [3]. The
summary endpoint must be local by default; if you deliberately want a remote
summary model, set ARIADNE_SUMMARY_OLLAMA and ARIADNE_CAPTURE_REMOTE=1
because condensed transcript text is sent to that endpoint for summarization.
The summary model is loaded only for capture and unloaded right after
(keep_alive:0), so it costs RAM only briefly; for a smaller footprint set
ARIADNE_SUMMARY_MODEL=qwen2.5:3b (~2GB vs ~4.7GB, at some summary quality) —
or pass -summary-model to the installer so it pulls that one.
Daily diary consolidation
ariadnectl consolidate turns short-lived session chronology into compact
long-term knowledge. It selects room=diary entries older than 24 hours by
default, groups them by project (wing) and local calendar day, then asks the
configured local summary model to emit only validated decisions, gotchas,
and reference memories. Empty groups are safely retired when they contain no
durable information.
Every non-dry run first creates a native Qdrant backup. New memories are saved
before source diary entries are removed; any group that fails remains untouched
for the next run. Use --before 48h for a longer review window or --dry-run
to inspect output without changing the store. Remote summary endpoints remain
blocked unless ARIADNE_CAPTURE_REMOTE=1 is explicitly set.
Monitor
A tray/menu-bar monitor polls ariadnectl status -json every 5s and shows a
green/orange/red/grey icon, per-service detail, and start/stop/restart/backup
actions; it notifies when a service drops. The menu and tooltip show the current
Ariadne version. A background check queries GitHub Releases every six hours and
offers a consent-gated update when a newer stable version exists on Windows,
macOS, and Linux; update output is written to
~/.ariadne/logs/update.log. The ariadne-tray UI is localized —
7 languages (English, Українська, Deutsch, Italiano, Español, Français,
Polski) with a live 🌐 Language switcher that shows the active one at a
glance. The choice persists in ~/.ariadne/lang and ariadnectl follows it, so
the whole interface stays in one language. Adding a language is one block in
internal/i18n.
Estimated token savings
Ariadne locally tracks how much context recall delivers and how much original session context each new curated diary memory represents. The tray shows non-negative all-time confirmed savings, and the full counters are available as:
ariadnectl metrics
ariadnectl metrics -json
Each recall contributes either confirmed savings (represented - delivered,
when positive) or recall overhead (delivered - represented, when positive).
Signed net remains the difference between those totals. The deterministic
multilingual estimate uses UTF-8 bytes because exact tokenizers vary by client
and model; ~ explicitly marks this as context reuse, not provider billing.
Legacy memories without source-size metadata receive no invented savings and
their delivery is counted as overhead. Metrics contain only numeric counters
and opaque event hashes, never memory or transcript text, and stay in
~/.ariadne/metrics.db with user-only permissions. Set ARIADNE_METRICS=0 to
disable new records.
ariadne-tray(pure-Go,fyne.io/systray) is the monitor on every platform: the installer builds it into~/.ariadne/binand registers autostart — a~/.config/autostartentry on Linux, acom.ariadne.trayLaunchAgent on macOS (migrating off any older Swift monitor so you get one icon). On Linux it needs a StatusNotifierItem host (native on KDE/XFCE; on GNOME install the "AppIndicator and KStatusNotifierItem" extension). On Windows it starts from a current-user scheduled task and updates through the signed release archive.
Backup & portability
Two distinct concepts:
- Backup / restore — a fast, full, native Qdrant snapshot (includes vectors;
one-to-one restore, tied to the embedding model). For recovering after damage.
ariadnectl backup # snapshot → ./backups/, rotated (keeps 10) ariadnectl restore <file> # recover the collection from a snapshot (destructive) - Export / import — a portable JSONL of
{text, wing, room}(no vectors, so it moves between machines and re-embeds with any model). For migration/inspection.ariadnectl export [file] # all memories → JSONL import -source jsonl -file export.jsonl # re-embed + upsert an export
import also backfills from an archived chromadb sqlite
(-source chroma -db <file>) or markdown memory files (-source memfiles).
All imports are idempotent (content-hash ids). For memfiles, -sync keeps the
collection true to disk: edited files replace their old chunks and chunks of
deleted files are reaped. The installer registers a daily agent
(com.ariadne.sync / ariadne-sync.timer) that runs this plus diary
consolidation for you; run the import manually after large note edits.
Status
v0.7.0 — working. Exact ID retrieval, room-scoped hybrid recall, immediate durable reference/report capture, honest token-efficiency accounting, automatic daily diary distillation, explicit Windows client setup, local token-efficiency metrics, native desktop installation, session hooks (auto-recall + curated auto-capture), and time-ordered diary are all live; several thousand memories are in daily use. Bulk import batches embeddings for a large backfill speedup. A learned-sparse upgrade (bge-m3 SPLADE on a CUDA box) is optional if BM25 proves too weak for morphology-rich languages.
Contributing and security
Reproducible bug reports, native Windows installer feedback, and focused feature requests are welcome through the issue chooser. Setup and usage questions belong in GitHub Discussions. See CONTRIBUTING.md for local checks and pull request guidance.
Do not open a public issue for a vulnerability. Follow SECURITY.md and use GitHub's private vulnerability reporting instead.
Contributors
- Project maintainer — architecture, product direction, validation, and release decisions.
- OpenAI Codex — implementation, tests, documentation, cross-platform packaging, and release engineering.
- Claude Code — implementation, localization, installer hardening, and cross-platform runtime improvements.
All AI-assisted changes are reviewed and approved by the maintainer.
License
MIT
No comments yet
Be the first to share your take.