Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Persistent memory for AI coding agents. Hybrid search, auto-session capture, context routing.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"repomemory": {
"command": "npx",
"args": [
"-y",
"repomemory"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add repomemory -- npx -y repomemoryวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"repomemory": {
"command": "npx",
"args": [
"-y",
"repomemory"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"repomemory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"repomemory"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub DanielGuru ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.0) เข้า registry 9 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Your codebase never forgets.
AI agents lose context every session. repomemory fixes that — one command creates a persistent, searchable knowledge base that any AI tool can read, search, and write to.
npx repomemory go
Every time you open a project with Claude Code, Cursor, Copilot, or any AI coding agent:
Your CLAUDE.md / .cursorrules helps, but it's static and gets stale.
.context/
├── index.md ← Quick orientation (loaded every session) ├── facts/ ← Architecture, database, deployment ├── decisions/ ← "We chose Drizzle over Prisma because..." ├── regressions/ ← "This broke before. Here's what happened." ├── preferences/ ← Your coding style — follows you across all repos ├── sessions/ ← Auto-captured AI session summaries └── changelog/ ← Monthly git history syncs
Facts tell agents how things work. Decisions prevent re-debating. Regressions prevent re-breaking. Preferences teach agents how you code.
npx repomemory go
One command: sets up global profile, creates .context/, configures Claude Code + Cursor, runs AI analysis, prints CLAUDE.md instructions.
npx repomemory setup cursor
This installs everything Cursor needs:
~/.cursor/mcp.json (auto-starts repomemory in every project).cursor/rules/repomemory.mdc (teaches Cursor's AI to use context).cursor/commands/ (run with / in Cursor chat)Then in Cursor chat, type:
/repomemory-analyze
Cursor's own AI scans your repo and populates .context/ via the MCP tools. No external API key required — your Cursor subscription handles it.
Available Cursor commands:
| Command | What it does |
|---|---|
/repomemory-analyze | Full repo analysis — populates facts, decisions, index |
/repomemory-orient | Quick orientation at start of session |
/repomemory-search | Search the knowledge base |
/repomemory-record | Record a fact, decision, or regression |
/repomemory-session | Save a session summary |
/repomemory-status | Show context coverage |
npx repomemory wizard
Walks through provider selection, tool integration, and first analysis. If no API keys are detected, offers a "None — I use Cursor" option that skips external analysis entirely.
npx repomemory go --yes --provider anthropic --embedding-provider gemini --max-files 80
No prompts when --yes / --defaults / --no-prompt is used.
The real power is the MCP server. When configured via repomemory setup claude, it auto-starts with Claude Code and gives agents 7 tools:
| Tool | What It Does |
|---|---|
context_search | Hybrid keyword + semantic search across repo + global context |
context_auto_orient | One-call orientation: index, preferences, recent sessions |
context_write | Write entries with smart scope routing (preferences → global) |
context_read | Read full content, repo-first with global fallback |
context_list | Browse entries with [repo]/[global] provenance tags |
context_risk | Assess modification risk — hotspots, hidden coupling, bus factor |
context_delete | Remove stale knowledge |
Agent: "Let me orient myself in this project..."
→ context_auto_orient() → Returns: project overview, preferences, recent sessions, recent changes
Agent: "Let me search for context about the auth flow..." → context_search("authentication flow") → Auto-routes to facts/ category, returns compact results
Agent: "I found a race condition. Let me record this." → context_write(category="regressions", filename="token-refresh-race", content="...") → Persisted. Detects if it supersedes an existing entry.
Sessions are auto-captured on shutdown. Zero config — repomemory setup claude handles everything.
| Tool | Integration | API Key Required? |
|---|---|---|
| Claude Code | MCP server (auto-starts) + post-commit hook | Yes (for analysis) |
| Cursor | MCP server + rules + 6 slash commands | No — uses Cursor's built-in AI |
| GitHub Copilot | copilot-instructions.md | Yes (for analysis) |
| Windsurf | .windsurfrules | Yes (for analysis) |
| Cline | .clinerules | Yes (for analysis) |
| Aider | .aider.conf.yml | Yes (for analysis) |
| Continue | .continue/rules/ | Yes (for analysis) |
Cursor users: You don't need any API key. Run
npx repomemory setup cursor, then use/repomemory-analyzein Cursor chat. Cursor's AI does the analysis using the MCP tools — whatever model Cursor is using (it can even switch models mid-task).
| Provider | Models | Env Variable |
|---|---|---|
anthropic | claude-sonnet-4-6, claude-opus-4-6 | ANTHROPIC_API_KEY |
openai | gpt-4o, o3-mini | OPENAI_API_KEY |
gemini | gemini-2.0-flash, gemini-2.5-pro | GEMINI_API_KEY / GOOGLE_API_KEY |
grok | grok-3, grok-3-mini | GROK_API_KEY / XAI_API_KEY |
Embeddings (optional, for semantic search): Gemini text-embedding-004 (free, default) or OpenAI text-embedding-3-small. Auto-detected from available API keys.
repomemory go # One-command setup (add --yes for non-interactive)
repomemory wizard # Interactive guided setup repomemory analyze # AI-powered repo analysis repomemory analyze --merge # Update without overwriting edits repomemory analyze --dry-run # Preview without API call repomemory search # Search knowledge base from terminal repomemory status # Coverage and freshness report repomemory doctor # Diagnostics and health check repomemory dashboard # Local web UI (localhost:3333) repomemory risk # Hotspots, coupling, ownership analysis repomemory risk -f src/auth.ts # Targeted risk assessment for specific files repomemory sync # Sync git history to changelog repomemory setup # Configure Claude/Cursor/Copilot/etc repomemory hook install # Auto-sync changelog on commits repomemory global list # Manage global developer context repomemory global export # Export global context as JSON
.repomemory.json in your repo root (all fields optional):
{
"provider": "anthropic", "model": "claude-sonnet-4-6", "embeddingProvider": "gemini", "hybridAlpha": 0.5, "maxFilesForAnalysis": 80, "enableGlobalContext": true }
Custom ignorePatterns and keyFilePatterns are additive — they extend built-in defaults, not replace them.
| CLAUDE.md | repomemory | |
|---|---|---|
| Maintenance | Manual | AI-generated + agent-maintained |
| Search | Load everything | Hybrid keyword + semantic |
| Cross-tool | Claude Code only | 7 tools supported |
| Team knowledge | One person writes | Every AI session contributes |
| Decisions | Mixed in with instructions | Structured, searchable |
| Regressions | Not tracked | Prevents repeat bugs |
| Sessions | Not tracked | Auto-captured on shutdown |
| Freshness | Unknown | Staleness detection + auto-purge |
repomemory doesn't replace CLAUDE.md — it complements it. CLAUDE.md is for instructions and rules. .context/ holds the knowledge that grows over time.
See CONTRIBUTING.md for development setup, testing, and contribution guidelines.
MIT
Built for developers who are tired of AI agents forgetting everything between sessions.