Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Persistent memory for AI assistants with semantic search and knowledge graph relationships.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
ลิงก์ไปที่ไฟล์ของผู้ทำเอง เราไม่ได้เก็บหรือแพ็กใหม่ เปิดไฟล์แล้ว Claude Desktop จะติดตั้งให้
พิมพ์คำสั่งนี้ใน Terminal
claude mcp add octobrain -- npx -y @muvon/octobrain mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"octobrain": {
"command": "npx",
"args": [
"-y",
"@muvon/octobrain",
"mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"octobrain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@muvon/octobrain",
"mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub muvon ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.15.1) เข้า registry 3 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js, MCPB ในเครื่องด้วย
ในหมวดเดียวกันมี 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Persistent memory for AI assistants — store insights, decisions, and knowledge that survives across conversations.
_MCP Registry: mcp-name: io.github.Muvon/octobrain_
Octobrain gives your AI assistant a long-term memory. Store code insights, architecture decisions, bug fixes, and knowledge — then retrieve them with semantic search in future sessions. Works as a CLI tool or as an MCP server for integration with Claude Desktop and other AI tools.
AI assistants start every conversation with zero context. You explain your project, your preferences, your decisions — every single time. Octobrain breaks that cycle:
# Install from crates.io
cargo install octobrain
octobrain memory memorize --title "API Design Pattern" \ --content "Use REST for CRUD, GraphQL for complex queries" \ --memory-type architecture --tags "api,design"
octobrain memory remember "how should I design APIs"
octobrain mcp
cargo install octobrain
# Clone and build
git clone https://github.com/muvon/octobrain.git cd octobrain cargo build --release
./target/release/octobrain --help
docker pull ghcr.io/muvon/octobrain:latest
brew install muvon/tap/octobrain
Octobrain supports multiple embedding providers:
| Flag | Description | API Key Required |
|---|---|---|
fastembed | Local embeddings via FastEmbed | No |
huggingface | Local embeddings via HuggingFace | No |
| (default) | Both fastembed + huggingface | No |
| (no features) | API-based: Voyage, OpenAI, Google, Jina | Yes |
# Build with local embeddings (default, no API keys needed)
cargo build --release
cargo build --no-default-features --release
For API-based embeddings, set the appropriate environment variable:
VOYAGE_API_KEY for Voyage AIOPENAI_API_KEY for OpenAIGOOGLE_API_KEY for GoogleJINA_API_KEY for JinaStore and retrieve insights, decisions, and context:
All memory subcommands accept global flags:
--scope — Override project scope (default: auto-detected from Git remote)--role — Filter by role (e.g. "developer", "reviewer")# Store a memory
octobrain memory memorize --title "API Design" \ --content "Use REST for CRUD, GraphQL for complex queries" \ --memory-type architecture --tags "api,design"
octobrain memory remember "api design patterns"
octobrain memory remember "authentication" "security" "jwt"
octobrain memory get
octobrain memory recent --limit 20
octobrain memory by-type architecture --limit 10
octobrain memory by-tags "api,security"
octobrain memory for-files "src/main.rs,src/lib.rs"
octobrain memory update --title "New Title" --add-tags "new-tag"
octobrain memory forget --memory-id
octobrain memory current-commit
octobrain memory stats
octobrain memory cleanup
octobrain memory maintenance
octobrain memory clear-all --yes
Close a goal and fold all its contributing memories into a consolidated summary:
# Consolidate a goal (Achieves-link sources → Consolidated state, importance dampened)
octobrain memory consolidate --summary "Final summary"
octobrain memory sleep-consolidate --threshold 0.85 --min-size 3
Connect related memories for context-rich retrieval:
# Create a relationship between memories
octobrain memory relate \ --relationship-type "depends_on" \ --description "Source requires target to function"
octobrain memory relationships
octobrain memory related
octobrain memory auto-link
octobrain memory graph --depth 2
Index and search web content, docs, and files:
# Index a URL
octobrain knowledge index https://docs.rs/tokio/latest/tokio/
octobrain knowledge index ./docs/architecture.md
octobrain knowledge search "how to handle async tasks"
octobrain knowledge search "spawn blocking" --source https://docs.rs/tokio/
octobrain knowledge read https://docs.rs/tokio/latest/tokio/
octobrain knowledge match "spawn_blocking|block_in_place"
octobrain knowledge store "meeting-notes" --content "Discussion points..."
octobrain knowledge list --limit 20
octobrain knowledge stats
octobrain knowledge delete https://example.com/docs
octobrain knowledge delete-stored "meeting-notes"
Import and sync git-backed knowledge bundles scoped to your projects:
# Import a remote git repo as a knowledge box
octobrain box import https://github.com/org/docs-repo.git
octobrain box import https://github.com/org/docs-repo.git --global
knowledge sync after editing .box/)octobrain box sync
octobrain box list
octobrain box remove github.com/org/docs-repo
Run as an MCP server for integration with Claude Desktop and other AI tools:
# Start with stdio transport (for Claude Desktop)
octobrain mcp
octobrain mcp --bind 0.0.0.0:12345
Available MCP Tools:
| Tool | Description |
|---|---|
memorize | Store memories with metadata; optional related_to for inline relationships |
remember | Semantic search with filters; returns 1-hop graph neighbors |
forget | Delete memories (requires confirmation) |
knowledge | Unified tool: search, store, delete, read, match, sync via command field; sync re-indexes knowledge boxes after .box/ edits |
See MCP Integration for Claude Desktop setup.
Retrieval quality of octobrain's knowledge system on standard BEIR datasets — nDCG@10, fully local, no LLM judge, using the harness's default embedder bge-small-en-v1.5 (384-dim, 33M params). Each corpus passage is indexed through octobrain's real retrieval path and scored against the official qrels (metrics reproduce pytrec_eval).
| Dataset | octobrain vector | octobrain hybrid | BM25¹ | bge-small-en-v1.5² |
|---|---|---|---|---|
| SciFact (5.2K docs, 300 q) | 0.722 | 0.742 | 0.665 | 0.713 |
| NFCorpus (3.6K docs, 323 q) | 0.341 | 0.363 | 0.325 | 0.343 |
¹ Canonical BM25 from the BEIR paper (Anserini/Lucene, k1=0.9 b=0.4). ² From the bge-small-en-v1.5 model card (MTEB).
Scope: this measures the ranking layer (embedding + BM25 fusion + reranking). BEIR passages are pre-chunked, so octobrain's chunking strategy is not exercised here.
⚠️ Reranker status: The cross-encoder reranker is currently a no-op with fastembed models (byte-identical results to hybrid-only). Rerank is excluded from the numbers above pending investigation. See
benches/README.mdfor details.
Reproduce (downloads the datasets, builds a release binary, runs fully offline):
cd benches && bash scripts/run_retrieval.sh
Configuration is stored in ~/.local/share/octobrain/config.toml. The template written on first run defines every option with sensible defaults, but loading is strict — a field you delete by hand causes startup to fail rather than falling back to a default.
Override the config location with OCTOBRAIN_CONFIG_PATH=/path/to/config.toml.
| Section | Option | Default | Description |
|---|---|---|---|
[embedding] | model | fastembed:Qdrant/all-MiniLM-L6-v2-onnx | Embedding model (provider:model format). Default is a local fastembed model — no API key, runs on CPU. |
[search] | similarity_threshold | 0.3 | Minimum relevance (0.0-1.0) |
[search.hybrid] | enabled | true | Enable BM25 + vector fusion |
| [search.reranker] | enabled | `
ตัดมาแค่ช่วงต้น อ่านต่อใน repo