Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Cross-machine, file-first memory for Claude Code: markdown + SQLite FTS5, synced with git
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"anamnesis": {
"command": "uvx",
"args": [
"anamnesis-memory",
"serve"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add anamnesis -- uvx anamnesis-memory serveวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"anamnesis": {
"command": "uvx",
"args": [
"anamnesis-memory",
"serve"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"anamnesis": {
"type": "stdio",
"command": "uvx",
"args": [
"anamnesis-memory",
"serve"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub oscardvs ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.3) เข้า registry 4 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
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.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Cross-machine memory for Claude Code
Website · Docs · Benchmark · Dashboard
uv tool install anamnesis-memory && anamnesis init
ἀνάμνησις *(anamnesis)*: Greek for *recollection*, the act of calling knowledge back to mind.
Anamnesis is a local-first, file-based memory layer for Claude Code that syncs across your own machines. What Claude learns about your projects (conventions, architecture decisions, fixes that worked, what you did yesterday) is stored as plain markdown, indexed locally for search, and kept in sync over your private network.
Claude Code's own memory stays on the machine where it was written. Copying a SQLite index through a cloud folder such as Dropbox or iCloud corrupts it. Anamnesis syncs the markdown with git instead and rebuilds the index on each machine, so a note written on your desktop is searchable from your laptop.
No cloud account is required. The memory stays on your machines, version-controlled and human-readable.
┌─────────────┐ git over your private mesh ┌─────────────┐
│ desktop │ ◄──────────── (Tailscale) ────────► │ laptop │ │ │ │ │ │ Claude Code│ │ Claude Code│ │ ▼ │ │ ▼ │ │ MCP server │ markdown (source of truth) │ MCP server │ │ ▼ │ + SQLite FTS index (rebuilt locally) │ ▼ │ │ ~/.anamnesis│ │ ~/.anamnesis│ └─────────────┘ └─────────────┘
~/.anamnesis/memory/, readable and git diff-able. The markdown is the source of truth; everything else is derived from it.anamnesis merge consolidates near-duplicates. Generated notes carry provenance and confidence in their front-matter. merge --apply is gated on your eval set so it does not lower recall, and anamnesis eval measures reflection before and after on a sandbox copy.Prereqs: Claude Code, uv, and git.
uv tool install anamnesis-memory && anamnesis init
anamnesis init registers the MCP server with Claude Code at user scope, installs the SessionStart, SessionEnd, and PreCompact hooks, configures the store at ~/.anamnesis, and runs a first sync. It is idempotent: it backs up settings.json and does not duplicate hooks. --print shows the full plan without writing anything, and --local-only skips the remote until you want one.
Claude Code gets five tools: memory_search, memory_list, and memory_status (read-only, safe to auto-approve), plus memory_write and memory_sync. Full reference: CLI · MCP tools · configuration.
Developing from source instead
git clone https://github.com/oscardvs/anamnesis && cd anamnesis/server
uv venv --python 3.12 uv pip install -e ".[mcp,dev]" uv run anamnesis init --print
The repo also ships a project-scoped .mcp.json. Claude Code launches MCP servers with a filtered environment, so ANAMNESIS_HOME / ANAMNESIS_MACHINE_ID / ANAMNESIS_GIT_REMOTE belong in its "env" block, not your shell. Server internals: server/README.md.
Memory is a git repo (~/.anamnesis/memory/) synced over your private Tailscale mesh, or any git remote you control. Set it up once:
tailscale up). Pick one always-on machine to host the shared repo; tailscale status prints its MagicDNS name (for example host.your-tailnet.ts.net). git init --bare -b main ~/anamnesis-memory.git
anamnesis init --remote 'you@host.your-tailnet.ts.net:anamnesis-memory.git'
The host itself uses the local path: --remote "$HOME/anamnesis-memory.git".
Sync runs commit -> pull --rebase -> push and rebuilds the local index after pulling, so a note written on one machine is searchable on the others within a sync cycle. If you started with --local-only, re-run init --remote ... later; the store attaches to the remote and pushes its history.
anamnesis init installs three Claude Code hooks:
Two more commands build on them:
anamnesis config set reflection.provider ... at an OpenAI-compatible model and anamnesis reflect distills accumulated session notes into durable conventions. With reflection.auto set, it runs at session end once a project has enough unreflected notes. anamnesis merge consolidates near-duplicates and only applies if recall on your eval set holds.anamnesis import copies Claude Code's own per-project memory into the store, so notes you already wrote for it are included.To set the hooks up by hand instead of with init, copy examples/hooks.settings.json into ~/.claude/settings.json and point it at your install.
bench/cross-machine-tokens/ runs one scripted task on a fresh machine twice: once without Anamnesis, where the agent explores the project to learn its conventions, and once with the real SessionStart memory block injected. It drives the Claude Code CLI headlessly on a synthetic project, so a Pro/Max subscription is enough and no API key is needed.
The committed result.json (3 runs per arm on claude-opus-4-8) shows about 8% fewer total input tokens with memory, 366k versus 336k on average, with output tokens and turn count about the same. The conventions were known from the first turn instead of being rediscovered. An earlier version of the scenario used a 5-file project and showed no difference; that null result is documented in the same README.
A web GUI for the memory store: browse and full-text search every note, edit markdown with per-note history, see every machine (which one wrote what and when it last synced), and run reflection from the browser. Provenance badges show where each note came from: you, a session capture, reflection, or import.
npx anamnesis-dashboard # http://localhost:3000
or, from the CLI you already have:
anamnesis dashboard
Needs Node 20 or newer. From a repo clone, cd dashboard && npm run dev works for development.
It is a thin read/write client over the same local store the MCP server uses: it reads the SQLite index directly and shells out to the anamnesis CLI for writes and sync. Use --port, --store, and --no-open to adjust how it serves. See dashboard/README.md for configuration and design notes.
September 2026: v0.1.3 is on PyPI. The local-first core is done and has been used across a real multi-machine setup: the store, the MCP server, the hooks, git sync, the one-command install, the reflection and merge passes with their eval harness, and the dashboard. APIs may still change between releases.
Next: a hosted relay for people without their own mesh (the server already ships anamnesis relay commands behind a [relay] extra, but they are not documented yet) and team memory.
| Path | What |
|---|---|
server/ | The MCP memory server and CLI (Python, FastMCP). |
dashboard/ | The memory GUI (Next.js). |
site/ | The public website and docs (live). |
bench/ | The cross-machine token benchmark and the demo recording pipeline. |
examples/ | A hand-written hooks.settings.json for manual hook setup. |
Issues and discussion are welcome. If the install is rough on your machine, open an issue with the exact command you ran and its output.
Apache License 2.0. See NOTICE.