开发者开源 MCP 工具 Knock 为编程智能体建立代码库记忆
Start here
2026年11月,开发者开源了模型上下文协议(MCP)工具 Knock,旨在为 Claude Code 等编程智能体建立本地代码库记忆,避免每次会话重复检索与阅读大文件。该工具完全通过 SQLite 在本地运行,无需向量数据库;它通过提取结构化代码骨架并在文件变更时自动标记过期,允许智能体按需读取精确行号并保存排查结论。在大型仓库 Saleor 的实测排查任务中,Knock 显著减少了智能体读取字符量,中位花费降低约 40%。
AI-generated from reports · Updated 6 hours ago
Report timeline
Follow the reports to see different sides of the story.
- Hacker News · AISelectedOpen-Source MCP Tool Knock Released: Building Codebase Memory for Claude Code to Reduce Exploration Overhead
Developers have open-sourced Knock, an MCP tool that builds local codebase memory for coding agents like Claude Code to prevent repeated retrieval and reading of large files across sessions. Running entirely locally via SQLite without a vector database, the tool extracts structured code skeletons, invalidates stale cache entries on file changes, enables agents to read exact line ranges on demand, and persists debugging conclusions. In benchmark debugging tasks on the large repository Saleor, the agent read significantly fewer characters, reducing median costs by roughly 40%.
Story heat trend
Current heat 8·Comparable peak 10(Nov 2 20:00)·Comparable change, last 24 hours–
Trends compare only the same parties observed continuously, so the scope can be narrower than current heat counts. Move the pointer or tap the chart to see hourly heat; use the left and right arrow keys on a keyboard.