Logo Vestige

Vestige

Cộng đồng
samvallad33

Local-first memory + a deterministic command gate for AI agents, on a signed log.

Nhà phát hànhsamvallad33
Kho mãvestige
Ngôn ngữRust
Bản fork
69
Sao
644
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépAGPL-3.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Vestige cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    644 sao và 69 bản fork từ kho mã được liên kết.

Vestige

Local memory for MCP agents, on a signed log.

It keeps the decisions a project already made, and it can walk a failure backward along the links your memory actually recorded. Every write passes a gate and leaves a receipt. The store is Strata: an append-only, signed log on your machine.

Release Tests Binary License

Install · Upgrading from v3 · Recall by handle · The tools · Backups · Science · Docs

🛡️ Operator Lite — your agent's commands, enforced on the metal

Ships in this repo under operator-lite/: a one-file, stdlib-only, dependency-free gate that sits between your AI agent and your machine as a PreToolUse hook (Claude Code, Codex, OpenClaw — any host with command hooks), and blocks destructive, polluting and exfiltrating commands before they run.

bash
mkdir -p ~/.operator/gate
curl -sL https://raw.githubusercontent.com/samvallad33/vestige/main/operator-lite/operator-gate.py -o ~/.operator/gate/operator-gate.py
chmod 755 ~/.operator/gate/operator-gate.py
echo shadow > ~/.operator/mode        # shadow-first: log everything, block nothing, then flip
  • 27 deterministic rules — workspace armor, memory-store protection, destructive SQL, force-push, unreviewed publishes, paid deploys, reverse shells, cloud-metadata endpoints, shell-init poisoning, MCP argument exfil
  • Sees through shell obfuscation — quote reassembly (r''m), $IFS expansion, $(echo rm) as program, ANSI-C $'\x72m', base64-decoded pipelines, brace/glob expansion against the live filesystem, subshell time-bombs, session variables, cd tracking, heredocs, fork bombs (10 of 11 vendor gates failed these classes)
  • Every verdict gets a hash-chained receipt — and verify walks the chain
  • Shadow-first: install logs everything and blocks nothing until you flip
bash
python3 ~/.operator/gate/operator-gate.py corpus guardfall   # 43/43 bypass cases
python3 ~/.operator/gate/operator-gate.py verify             # receipt chain check

On OpenClaw? One line, gate bundled:

bash
clawhub install vestige-operator-lite

Vestige's memory kernel is also on ClawHub as a six-tool plugin — clawhub install vestige-strata — signed append-only log, exact-handle recall, causal root-cause walks.

Full details in operator-lite/README.md. The free tier blocks. Operator — the same kernel extended with a full governance loop — is where the product lives.

The cause never looks like the bug

Agents re-learn the same lessons. They recommend a change you already tested and rejected, re-derive a fix that was already written down, and treat every session as if the last one never happened. Vestige is the local memory an MCP client calls while you work: smart_ingest stores, recall finds a memory by an exact handle, and causal_walk walks a failure backward along edges the log recorded. Memory strength follows FSRS scheduling, and every write comes back with a receipt you can replay against the log.

Install

Each release archive holds four binaries: vestige-mcp (the MCP server your agents run), vestige (the CLI), vestige-upgrade (the v3 importer) and vestige-restore. Keep all four in one folder. No Docker, no signup, no compile step, and nothing downloads on first start.

macOS and Linux. Two commands put the binaries in ~/.local/bin:

bash
mkdir -p ~/.local/bin
curl -fsSL https://github.com/samvallad33/vestige/releases/latest/download/vestige-mcp-aarch64-apple-darwin.tar.gz | tar -xz -C ~/.local/bin

Use the archive for your machine:

MachineArchive
Mac with Apple siliconvestige-mcp-aarch64-apple-darwin.tar.gz
Mac with Intelvestige-mcp-x86_64-apple-darwin.tar.gz
Linux x86_64 (glibc 2.35+: Ubuntu 22.04, Debian 12 and newer)vestige-mcp-x86_64-unknown-linux-gnu.tar.gz
Linux arm64 (same glibc floor)vestige-mcp-aarch64-unknown-linux-gnu.tar.gz
Windows x86_64vestige-mcp-x86_64-pc-windows-msvc.zip

Then check it:

bash
vestige-mcp --version

It should print vestige-mcp 4.0.0. If the shell says command not found, ~/.local/bin is not on your PATH yet: add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc (or ~/.bashrc) and open a new terminal. If it prints an older version, an older install comes first on your PATH; which -a vestige-mcp lists them.

On a Mac, download with curl as above rather than a browser. A browser marks the files as quarantined and macOS then refuses to run them. If you already used a browser, clear the flag with xattr -d com.apple.quarantine ~/.local/bin/vestige*.

Windows. Download vestige-mcp-x86_64-pc-windows-msvc.zip from the latest release, unzip all four .exe files into one folder, and add that folder to your PATH.

Homebrew (macOS and Linux): brew install samvallad33/tap/vestige.

Every archive has a .sha256 file beside it on the release page. Do not install this version with npm; the npm package is not 4.0.

Connect your agents. The MCP command is vestige-mcp:

ClientSetup
Claude Codeclaude mcp add vestige vestige-mcp -s user
Codexcodex mcp add vestige -- vestige-mcp
Cursor / VS Code / Windsurfdocs/integrations/
Claude Desktop, and any other app you start from the Dock or Start menuthe JSON below, with the full path from which vestige-mcp (desktop apps do not read your shell's PATH)
Cline / Continue / Zed / Goosethe JSON below, in that client's MCP settings
json
{
  "mcpServers": {
    "vestige": { "command": "vestige-mcp" }
  }
}

Use it from every agent at once. Claude Code in three terminals, Cursor, Codex and Claude Desktop can all run Vestige at the same time on one machine. The first one to start serves the store and the others connect to it, so every agent reads and writes the same memory through one writer. When that first agent quits, one of the others takes over and keeps its session.

vestige-mcp also takes --data-dir <PATH>, --http, --no-http, and --http-port <PORT> (default 3928, and passing the flag turns HTTP on). HTTP binds to 127.0.0.1 unless VESTIGE_HTTP_BIND is set. VESTIGE_AUTH_TOKEN overrides the bearer token. VESTIGE_HTTP_ALLOWED_ORIGINS is a comma-separated browser allowlist. VESTIGE_DASHBOARD_ENABLED=1 starts the dashboard from the server; VESTIGE_DASHBOARD_PORT defaults to 3927. VESTIGE_SYSTEM_PROMPT_MODE is minimal or full. RUST_LOG filters logs. VESTIGE_DATA_DIR is the data directory when --data-dir is absent. The Strata log lives in log/ inside that directory.

Optional output defaults live in <data-dir>/vestige.toml. A missing file uses the built-in defaults. An explicit MCP argument wins over the file.

toml
[defaults]
profile = "default"       # lean | default | audit | research
detail_level = "summary"  # brief | summary | full
limit = 10

lean presets brief detail and a limit of 5. audit presets full detail. research presets full detail and a limit of 25. default leaves the historical tool limits alone.

Nothing leaves the machine by default. A default 4.0 build has no embedding model and no startup version check. source_sync (--features connectors) and vestige sync --cloud (--features cloud-sync) are the only calls that use the network, and neither feature is in a 4.0 release build. Full walkthrough: docs/GETTING-STARTED.md.

vestige --help lists the CLI. --data-dir is global.

Upgrading from v3

Quit every app that runs Vestige v3 (each agent, the dashboard, any background job), point all of them at the 4.0 vestige-mcp, and start them again. A v3 server left running keeps writing to vestige.db, which 4.0 no longer reads after the upgrade.

Point 4.0 at your existing data directory. The first launch finds vestige.db, builds a Strata log from it next to the file, verifies that log against a signed migration receipt, and only then publishes it as log/. The v3 file is never modified. A backup copy is written first, owner-only.

What carries over: every memory with its scope, tags and scheduling state; links; supersession; suppression (suppressed memories stay hidden); intentions; and code anchors. Links v3 inferred by similarity come across as legacy_inferred history. They are kept, and they never count as recorded evidence.

On a real 297 MB store with 8,902 memories in 34 scopes, the first launch took about 17 seconds before the MCP handshake answered, and average retention right after the upgrade was 0.810 against 0.8105 computed by v3 itself. Agents that start during the upgrade wait for it and then connect; there is nothing to coordinate by hand.

If the upgrade fails, the v3 data is untouched and the message says so. You can keep using v3.1.1 meanwhile. vestige strata-verify <data-dir> checks the log and its migration receipt at any time.

If you installed v3 with npm, make sure your agents now run the 4.0 binary: vestige-mcp --version should print 4.0.0, and which -a vestige-mcp shows every copy on your PATH in the order they are found.

Recall by handle, not resemblance

4.0 does not rank text that resembles your query. There are no embeddings, no BM25 and no keyword search in the default binaries. recall takes a handle: a memory id, a unique id prefix of 8 or more characters, or an exact tag. A free-text query returns similarity_disabled and asks for a handle.

Resemblance searchVestige 4.0
How a memory is foundSimilarity to the queryAn exact handle
What counts as a linkAnything that scores closeOnly an edge the log recorded. Imported v3 links are marked legacy_inferred
Walking back from a failureNearest lookalikescausal_walk from explicit start points (a failing test, a stack frame, a CI run, a logged write, a version range), backward over recorded edges, at most 8 hops and 500 nodes
Proof of a writeNoneA receipt per write. receipt replay re-derives the state from the log
Unused memoriesPersist at full weightFade under FSRS scheduling
Your dataOften a hosted indexA signed, append-only log in the data directory

causal_walk never guesses. With no start point it returns needs_report and names what is missing. forgotten_lesson walks backward from a failure the same way and ranks fix or lesson memories by how far they have faded.

🛡️ Every write is admitted

On a Strata log a write is proposed, checked by the gate, and admitted as an effect, and the call returns an eff- receipt. receipt get shows what that write did. receipt replay rebuilds the state from the log and reports any mismatch. selftest plants a known cause in a throwaway copy of your store and checks that the walk finds it, without touching the live store.

The Memory PR review modes from v3 (risk_gated, paranoid) are not available on a Strata log in 4.0. A review setting carried over from v3 reads as fast, and the dashboard's Memory PR list says review is unavailable.

Recorded run on v3.1: THE LIVE GATE.

🔄 Backups and export

maintain action backup copies the whole Strata log into <data-dir>/backups/ and reports its size. From a terminal, vestige backup <new-folder> does the same, and it works while your agents are running: it asks their Vestige server for the copy. To restore, stop Vestige and copy the backup's log/ back into the data directory.

The log has one writer. CLI commands that open it directly, such as vestige stats or vestige ingest, run only while no Vestige server holds the store, and they name the process that does. maintain action export writes every live memory as JSON or JSONL into <data-dir>/exports/.

Portable archives, file sync and hosted sync are not available on a Strata log in 4.0. The CLI says so when you call them.

The receipts: Silent Rotation

Measured on v3.1, where recall still used hybrid search:

Arm (6 models, 25 trials)Converged correctConverged wrongSplit
No memory0/2521/254/25
Dense cosine RAG4/2312/237/23
Vestige20/230/233/23

Outcomes come from tests/by_model_tables.py: a trial is correct when the tests were green, the production replay passed, and the key was right; wrong when the tests were green but production failed; split when the merge conflicted.

The science

Write-up: docs/SCIENCE.md.

MechanismIn 4.0Source in the code
FSRS schedulingEvery card, native or imported, decays and strengthens under FSRS in the Strata kernelstrata-kernel fsrs
Memory dreamingmaintain actions dream and dream_compile replay recorded edges and strengthen co-activated onesdream, dream_compile
Active forgettingsuppress takes a memory out of every read and keeps its bytessuppress
Causal walkBackward over recorded edges only, bounded and deterministiccausal_walk
Prediction-error gating, synaptic tagging, spreading activation, narrative edges, Retroactive Salience BackfillIn the v3 engine. The 4.0 default build does not use them, because each depends on similarity or inferred linksvestige-core (v3 engine)

The tools

tools/list advertises these 16 tools, sorted by name. The list is compact: every field a call can send is on the wire with its type, prose and deep structure move one call deeper, and filter fields are grouped under filters and source (sent either grouped or flat). The serialized catalog is about 21 KiB. memory_status with view=tools lists every tool; set tool to a name for that tool's full input schema. Actions a Strata log cannot honor are left out of the schema and refused with the reason.

ToolPurpose
causal_walkWalk a failure backward from explicit start points over recorded edges
codebaseRemember a pattern or decision with code anchors, fetch context marked current or stale, verify anchors against source, reanchor
dedupscan for duplicates, undo a recorded operation, tag_rename and tag_merge with a preview, policy
forgotten_lessonFaded fix or lesson memories behind a failure, over recorded edges
ghostlinkNever-composed memory pairs, each with its proof from recorded edges only. propose with lens bridge (within three typed-edge hops, never woven) or divergent (no recorded edge at all; a forced juxtaposition when nothing can be measured), weave an outcome (a write with receipts), inspect woven compositions, explore typed paths, map, bounty, predict, and harden to seed invariant laws once. graph still answers as a hidden alias
intentionset, check, update, list. graph runs the evidence-aware plan
maintainconsolidate, dream, dream_compile, gc (dry run unless you turn it off), importance_score, backup, export
memoryget, get_batch, state, promote, demote, edit. Demote does not delete. An edit admits a successor and keeps its code anchors
memory_statushealth, retention, timeline, changelog, provenance, coverage, stats, tools
projectPreview a fenced region of CLAUDE.md or MEMORY.md. write needs confirm=true and replaces only the fence
recallFind memories by exact handle: id, unique prefix, or exact tag
receiptget a receipt, or replay it against the log
selftestPlant a known cause in a throwaway copy and check the walk finds it
session_startStatus, open intentions, predictions, and codebase context under one budget
smart_ingestStore one memory, or up to 20 with items. Secrets are refused unless you say otherwise
suppressTake a memory out of every read. The log keeps its bytes, and on Strata it cannot be undone. destructiveHint is true

Withheld in 4.0. purge is the one tool 4.0 does not ship. On an append-only signed log a purge could hide a memory but not erase its bytes, and a tool called purge must not pretend otherwise. purge, memory action purge or delete, and delete_knowledge return unavailable_in_4_0. Real erasure is the 4.0.x follow-up.

Full contracts: docs/TOOL-CONTRACTS.md · Hygiene and standing habits: docs/MEMORY_HYGIENE.md

The dashboard

bash
vestige dashboard

The server binds http://127.0.0.1:3927 and redirects / to /dashboard. It works while your agents are running: the Vestige server they share serves the dashboard until you press Ctrl+C. It answers only to 127.0.0.1 and localhost on its port. Only its own page can change memory; a script needs Authorization: Bearer $VESTIGE_AUTH_TOKEN (Dashboard access). The observatory steps a fixed 60fps clock, 720 frames, 12 seconds, and can export that loop as an mp4. Share artifacts are structure-only: the shape of the store, not the memory text.

Under the hood

EngineRust 2024. Release archives ship vestige, vestige-mcp, vestige-restore, and vestige-upgrade
StoreStrata: an append-only log of borsh frames, hash-chained; a sealed segment carries a signed trailer. Writes are proposed, gated and admitted; the state is re-derived by replaying the log. No SQLite is linked into the shipped binaries
RecallExact handles only. No embeddings, BM25, FTS or keyword matching
Sizevestige-mcp is about 7.7 MB on macOS arm64
First runNothing to download. On a v3 data directory, the first launch runs the upgrade before the MCP handshake

Go deeper

Getting Started · FAQ · The Science · Configuration · Storage · Tool contracts · Changelog

License

AGPL-3.0-only.

Cài đặt

TypingMind
{
  "mcpServers": {
    "vestige": {
      "command": "vestige-mcp",
      "args": []
    }
  }
}

Dùng MCP Vestige với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Vestige, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Vestige làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Vestige.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "vestige": {
      "command": "npx",
      "args": [
        "-y",
        "vestige"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Vestige, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Vestige.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Vestige giúp tôi làm việc này không?
Vestige
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Vestige.

Câu hỏi thường gặp

Máy chủ MCP Vestige dùng để làm gì?

Vestige là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Vestige với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Vestige với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Vestige với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Vestige, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Vestige với TypingMind?

Vestige hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Vestige cung cấp những công cụ nào trong TypingMind?

Vestige cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Vestige không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Vestige yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇