Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local-first agent memory over SQLite: remember, recall, link, forget. Degrades, never fails.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
TETHER_DB, TETHER_SEMANTIC, TETHER_SYNC_URL, TETHER_SYNC_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"tether": {
"command": "uvx",
"args": [
"tether-memory"
],
"env": {
"TETHER_DB": "your-value",
"TETHER_SEMANTIC": "your-value",
"TETHER_SYNC_URL": "your-value",
"TETHER_SYNC_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add tether --env TETHER_DB=your-value --env TETHER_SEMANTIC=your-value --env TETHER_SYNC_URL=your-value --env TETHER_SYNC_TOKEN=your-value -- uvx tether-memory运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tether": {
"command": "uvx",
"args": [
"tether-memory"
],
"env": {
"TETHER_DB": "your-value",
"TETHER_SEMANTIC": "your-value",
"TETHER_SYNC_URL": "your-value",
"TETHER_SYNC_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tether": {
"type": "stdio",
"command": "uvx",
"args": [
"tether-memory"
],
"env": {
"TETHER_DB": "your-value",
"TETHER_SEMANTIC": "your-value",
"TETHER_SYNC_URL": "your-value",
"TETHER_SYNC_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
TETHER_DB envTETHER_SEMANTIC envTETHER_SYNC_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 sidyellur 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:TETHER_SYNC_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.1)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A shared memory layer for personal agents, across devices. tether is an MCP server backed by a local SQLite file. Any MCP-compatible agent can remember, recall, link, and forget durable notes — facts about you, your projects, your preferences — so context follows you instead of dying with each session.
It runs local-only with zero configuration. Point it at a hosted libSQL/Turso primary and the same file becomes an embedded replica that syncs your memory across every device in near-real-time.
The near future is personal agents living across many devices — laptop, desktop, phone. For that to feel like *one* assistant rather than several amnesiac ones, memory has to be a substrate that follows you: readable and writable from every device and from any agent, not siloed inside a single tool.
tether is that substrate. It is deliberately a *convenience layer* — it makes an agent more useful when present, and never breaks the agent's work when degraded.
v0.6.1. The core (four memory verbs + boot index + FTS5) shipped in v0.1; since then recall has grown a semantic arm, consolidation, an associative usage graph, a self-organizing store, and opt-in crystallization — each additive and each degrading cleanly to plain keyword recall. Every feature below is implemented.
Design and rationale start at docs/superpowers/specs/2026-07-03-tether-design.md; the associative core, seed-dominant recall, self-organizing store (Tier B1), and crystallization (Tier B2) each have their own design doc under docs/superpowers/specs/, with matching plans in docs/superpowers/plans/.
remember · recall · link · forget. (Enabling crystallization adds one reflection-control tool, dismiss_cluster — not a memory operation.)updated_at, plus a via receipt saying why each hit surfaced) so an agent can judge staleness and cite what it updates. body is a query-centered excerpt, not the whole memory — see Excerpts.remember/recall calls at once gets atomic, correctly-reported results; see Performance and durability.Requires Python ≥3.10 on Linux, macOS, or Windows.
Register it with Claude Code — with uv:
claude mcp add tether -- uvx tether-memory
…or install it first:
pip install tether-memory
claude mcp add tether -- tether-memory
(The package is named tether-memory on PyPI — tether was already reserved as a common brand name. tether in claude mcp add tether -- ... is just the label Claude Code uses to refer to this server; it doesn't need to match the installed command.)
Or add it as a Claude Code plugin (this repo doubles as a one-plugin marketplace; the plugin runs uvx --from 'tether-memory[semantic]', so semantic recall comes along):
/plugin marketplace add sidyellur/tether
/plugin install tether@tether
It is also listed in the MCP Registry as mcp-name: io.github.sidyellur/tether.
By default memory lives in a local SQLite file at ~/.local/share/tether/memory.db — on Windows, %LOCALAPPDATA%\tether\memory.db (override either with TETHER_DB, or set XDG_DATA_HOME, which is honored on every platform). No accounts, no network — this is the whole tool for a single machine.
tether knows which project it is serving: Claude Code sets CLAUDE_PROJECT_DIR in every MCP server's environment, and tether takes the directory's name as the project (override or disable with TETHER_PROJECT). That drives three things, none of which need configuration:
# This project ( ) section, then # Everything else, so the agent starts a session already looking at the decisions and gotchas for the repo it is in rather than whatever you touched last, anywhere.project, feedback and reference memories get a proj: tag unless the agent passes a proj: tag itself. user memories are about you, not the work, and stay global. The tag is an ordinary tag: recall(tags="proj: ") lists a project's memories deterministically.| Var | Default | Effect |
|---|---|---|
TETHER_PROJECT | basename of CLAUDE_PROJECT_DIR | name the project explicitly; off disables project awareness |
Nothing falls back to the working directory: outside Claude Code (or with TETHER_PROJECT=off) tether behaves exactly as before.
Point tether at a Turso / libSQL database and the local file becomes an embedded replica — local-speed reads, writes that propagate to your other devices. Install the extra and set two env vars:
pip install 'tether-memory[sync]'
export TETHER_SYNC_URL='libsql:// .turso.io' export TETHER_SYNC_TOKEN=' '
If the backend is unreachable, tether logs sync offline and keeps working against the local file. Sync is a single-primary design: every write goes to the hosted primary and replicas only pull, so a device that was merely offline catches up (including tombstones from forget) on its next pull and can never resurrect a memory another device forgot. The one gap: writes made *while degraded* land only in that device's local file and are not merged back later (#99 tracks reconciliation).
Writes push immediately. Reads also pull, debounced to at most once every TETHER_SYNC_READ_INTERVAL seconds (default 30) — so a device that only *asks* things still sees what your other devices wrote, instead of staying frozen at its own startup state until it happens to write something. The read-path pull is bounded much more tightly than the write-path one: if the backend is slow, the recall returns local data and the pull lands for the next read rather than making you wait.
| Var | Default | Effect |
|---|---|---|
TETHER_SYNC_READ_INTERVAL | 30 | seconds between read-path pulls; 0 = only sync on writes |
TETHER_DEVICE_ID | hostname | the device id recorded on each memory (and the default TETHER_AUTHOR) |
One thing to know about replicas: libSQL forwards every write to the hosted primary, and with the associative graph on (the default) recall writes too — it records what was recalled together so memories can wire up over time. On a replica that makes each recall a few network round-trips on top of the local search. If that matters more to you than learned associations, TETHER_ASSOC=0 makes recall read-only again.
The keyword arm is SQLite FTS5 over title, body and tags, ranked by bm25. Ask in plain language: a memory that contains *some* of the query's words is a hit, and one that contains more of them ranks higher, so "how do we run the integration tests?" finds the note that says "pytest runs the tests" (common function words are ignored). The index stems English words, so tests matches test and deciding matches decided. Stemming is English-only; turn it off for a store in another language and tether rebuilds the index on the next start.
| Var | Default | Effect |
|---|---|---|
TETHER_FTS_STEMMING | on | set 0/false/off to index words exactly as written |
Measured on the LoCoMo long-conversation benchmark (one memory per dialogue turn, 1,536 questions, "did recall return the turns that answer it" in the top 10), the keyword arm alone finds the evidence for 61% of questions, against 54% for a textbook BM25 over the same text. That harness ships in the repo — see Benchmarks.
By default recall is hybrid: keyword (FTS5) results are fused with semantic (vector) results, so a query finds relevant memories even when the exact words differ ("automobile" recalls a note about your "car"). Semantic recall runs a small static embedding model locally — no network, no API key, nothing to hang on. Install the extra:
pip install 'tether-memory[semantic]'
Without the extra (or with TETHER_SEMANTIC=0), tether runs keyword-only FTS5 — semantic is a pure add-on and never a requirement. The first run embeds existing memories once (a one-time backfill); after that it is incremental.
Environment:
| Var | Default | Effect |
|---|---|---|
TETHER_SEMANTIC | on | set 0/false/off to force keyword-only recall |
TETHER_EMBEDDING_MODEL | minishlab/potion-base-8M | override the local static model |
tether keeps a superseded fact rather than overwriting it: when a memory is replaced, the old one is marked no longer current (retained for history) and excluded from recall and the boot index. Recall also gently favors more recent facts. Two opt-in behaviors go further:
| Var | Default | Effect |
|---|---|---|
TETHER_CONSOLIDATE | off | on (1/true) merges a near-duplicate on write — supersedes the old fact instead of fragmenting the store (needs the [semantic] extra) |
TETHER_DEDUP_THRESHOLD | 0.92 | cosine similarity required to treat two facts as duplicates |
TETHER_DECAY_HALF_LIFE_DAYS | off | set a positive number to exponentially down-rank older facts in recall |
TETHER_AUTHOR | device id | attribution recorded on each memory |
Consolidation never deletes — forget soft-deletes (see Tools), and only the admin CLI's purge is permanent. All of this degrades to plain keyword recall when the semantic extra is absent.
recall doesn't just return keyword/semantic matches — it follows a usage graph to related memories, so asking about one thing surfaces its connected context. The graph's edges come from three local, deterministic sources — no LLM, no network:
[semantic] extra),link() verb,Every hit carries a via receipt saying why it surfaced (a direct match, or the edge it came through), and two optional recall args tune it:
| Arg / var | Default | Effect |
|---|---|---|
budget (per call) | TETHER_RECALL_BUDGET | how far to follow associations; 0 = direct matches only |
session (per call) | time-bucketed | group related recalls so they prime each other |
TETHER_ASSOC | on | set 0/false/off for plain keyword+semantic recall |
TETHER_RECALL_BUDGET | 8 | default association breadth |
TETHER_PROTECT_HEAD | 8 | how many top direct hits are locked above associations |
| TETHER_SEED_FLOOR | 0.35 | minimum cosine similarity a semantic hit needs to seed an associative wa
只显示了开头部分;其余内容请在仓库中阅读