
弥合你的代码库与AI编辑器之间的鸿沟。CCM将静态源代码转化为动态、可查询的知识图谱,使AI代理能够导航、理解并推理你的......
概览
弥合代码库与AI编辑器之间的鸿沟。CCM将静态源代码转化为动态、可查询的知识图谱,使AI代理能够精准地导航、理解并推理你的项目。 这是一个基于真实仓库(serde、flask、express)的外部基准测试,包含35个手工验证的黄金任务,诚实的Recall@K/MRR/延迟指标,以及82.9%对80.0%语义纯评分的混合评分——加上v0.3.12持久后台语义升级和180/180离线语义门。 现代AI编码助手(Claude、Cursor、Windsurf)功能强大,但存在以下问题: CCM将原始代码转化为可查询的图,使代理能够回答相关的逻辑问题,而不是从相似词汇中猜测。 与直接导出原始代码的工具不同,CCM 注入了: - - 解释为何检索代码 - - 映射文件之间的通信方式 - - 显示结果的确定性 许多AI上下文工具仅止步于语义搜索:它们嵌入文件并返回仅仅看起来相似的块。
概述(AI 翻译)
英文 |突厥语
一个为AI编码代理设计的代码图,能跟上你的编辑动态——并告诉你它什么时候不在监视你。
CCM会用树置器(13种语言)解析你的项目,保持通话, 导入图,并附带一个可选的语义索引,并提供给 代理,如Claude Code、Codex和Cursor,通过MCP。推荐 代理入口点为
context:给它一个符号,path:line,或自然的—— 语言编码任务,CCM选择结构图查找或混合搜索 服务器端。在Django 5.1(6670个文件)中,保存的变更会显示在图表中 中位数 大约0.6秒(测量值: 发布构建,嵌入器关闭)。查询响应以索引状态开始 ([fresh,stale · …在注册变更待处理时,或auto-refresh off · indexed Xs ago),失败的重新索引永远不会替换 最后一张不错的图表。在预注册的L1新鲜度基准测试(单函数) Flask 3.0.3 和 Django 5.1 中的编辑,探测时间固定),每个图的答案 在存档与编辑匹配后0.25秒;在之前低于250毫秒的窗口内 观察者应用事件>,126个探针中有6个返回了编辑前的答案
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Cognitive Codebase Matrix (CCM)
English | Turkce
A code graph for AI coding agents that keeps up with your edits — and tells you when it is not watching.
CCM parses your project with tree-sitter (13 languages), keeps a call and import graph plus an optional semantic index on disk, and serves them to agents such as Claude Code, Codex and Cursor through MCP. The recommended agent entry point is
context: give it a symbol,path:line, or a natural- language coding task and CCM chooses structural graph lookup or hybrid search server-side. On Django 5.1 (6,670 files) a saved change shows up in graph results after a median of about 0.6 s (measurement: release build, embedder off). Query responses start with the index state (fresh,stale · …while a registered change is pending, orauto-refresh off · indexed Xs ago), and a failed re-index never replaces the last good graph. In the pre-registered L1 freshness benchmark (one-function edits in Flask 3.0.3 and Django 5.1, probes at fixed times), every graph answer from 0.25 s after a save on matched the edit; in the sub-250 ms window before the watcher applies the event, 6 of 126 probes returned the pre-edit answer still labeledfresh, and 4 more a partial or empty one (benchmarks/).
Status: search quality has a 35-task pilot benchmark. In an LLM-free benchmark of 24 fixed questions on Flask and Django, the 0.4.0 tools answer with 74% fewer response bytes and a third fewer calls than the 0.3 tools (token cost). A 2026-10-02 Claude Code pilot then showed the product-level gap: on three small/medium tasks the agent never called CCM, while merely exposing CCM increased input tokens. The active work therefore moves tool selection into the new one-call
contextentry point. That change has not yet been shown to reduce end-to-end agent tokens; the pilot and its negative result remain published underbenchmarks/results/agent/pilot-claude/.
Why CCM?
Coding agents find code well with grep. What grep does not give them is
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add senoldogann/llm-context-manager