◯ ─────────── ◯
F L I N T
◯ ─────────── ◯
Long-term memory for AI coding agents.
Your agents get smarter with every session — Claude Code, Codex, Gemini, Copilot, Cursor, and more.
Quick Start · How It Works · Commands · Agents
Every AI coding agent you've used forgets everything between sessions. It relearns your architecture, rehashes decisions you already settled, rediscovers pitfalls you documented months ago. A brilliant colleague with amnesia.
flint fixes this. When your agent learns something — a decision, a convention, a gotcha — flint stores it in Doltgres, a database where every change is a commit. Next time a session starts, flint injects that accumulated context back in. The agent picks up where it left off instead of starting from scratch.
It adds up. Week one, it learns the stack. By week four, it remembers why you chose gRPC over REST. Three months in, it knows the migration order, which tests are flaky, and the deployment checklist — because it wrote all of that down.
Humans take notes in Obsidian. Agents take notes in flint — the stone you strike to make fire and tools.
v0.17.0 · Dependabot · setup UX · CI design review · full changelog
# Install (builds flint into GOPATH/bin)
git clone https://github.com/synuns/flint.git && cd flint
make install
# Start Doltgres, migrate the schema
flint setup
# Load demo data (seed target must be explicit)
make seed FLINT_SEED_DSN=postgresql://flint:flint-dev@localhost:5434/flintOr download a release binary — binaries, checksums, and the plugin zip are attached automatically.
/plugin marketplace add synuns/flint
/plugin install flint@flint
The plugin needs the flint binary on your PATH. Hooks and the MCP server both call it.
flint setup --mcpDetects which harnesses are installed and registers the MCP server with each one. Copilot has no verified native CLI — use the manual config in docs/adapters/copilot.md. Anything not installed gets skipped. Exit 0 regardless.
What flint setup does
Runs docker compose up -d to start Doltgres on port 5434, migrates the schema, and prints next steps. Default DSN is postgresql://flint:flint-dev@localhost:5434/flint — override with FLINT_DSN. Tear down with flint teardown.
Configuring exposure
flint setup --exposure normal|minimal controls how much context hot injects at session start. minimal keeps it to a single headline. Three hooks: SessionStart (session-start), PostCompact (compact), Stop (session-end).
Full walkthrough: docs/QUICKSTART.md
Each session cycles through four phases:
| Phase | What happens |
|---|---|
| Inject | Hook fires flint hot at session start — streams a budgeted [flint] context block |
| Work | Agent reads and writes via CLI or MCP |
| Record | flint write appends JSONL with hash dedup |
| Verify | flint audit inspects dolt_log; flint restore --drill rehearses recovery |
| Command | What it does |
|---|---|
flint setup |
Start Doltgres, migrate, seed |
flint write <kind> |
Record knowledge from stdin (idempotent) |
flint read <query> |
Search active knowledge |
flint hot --session <id> |
Inject context at session start |
flint done --session <id> |
Wrap up a session |
flint approve --id n |
Promote pending to active |
flint maintain |
Curate: check thresholds, invalidate, merge |
flint audit --limit n |
Show last n commits |
flint backup |
Dump to SQL with sha256 checksum |
flint restore --file f |
Restore from backup (--drill to rehearse) |
flint status |
Schema version, pending count, hot p95 |
flint mcp |
Run the MCP server |
Exit codes: 0 success · 1 error (or silent no-results on read) · 2 storage failure · exit 3 — invalid input (valueless trailing flags, bad --status / --as-of values, schema violations on write).
flint read uses word-by-word fallback search when the phrase query returns nothing.
Operations: docs/RUNBOOK.md · Tuning: docs/TUNING.md · Metrics: docs/METRICS.md
| Agent | Method |
|---|---|
| Claude Code | Plugin: hooks + /flint command |
| Codex | MCP (docs/adapters/codex.md) |
| Gemini | MCP (docs/adapters/gemini.md) |
| Copilot | MCP (docs/adapters/copilot.md) |
| Cursor | MCP (docs/adapters/cursor.md) |
| OpenCode | MCP (docs/adapters/opencode.md) |
| OpenClaw | Adapter (docs/adapters/openclaw.md) |
| Hermes | Adapter (docs/adapters/hermes.md) |
Adapter docs: docs/adapters/
flint/
├── cmd/flint/ # entry point
├── lib/ # store · query · db · cli · backup · mcp
├── flint-plugin/ # Claude Code plugin
├── docs/ # PLAN · RUNBOOK · TUNING · ADR · adapters
└── docker-compose.yml # Doltgres on 5434
Human notes in Obsidian. Agent memory in flint.
F L I N T