登录 注册
AI 应用与 AI Agent开发者工具
1,400
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Zig
语言
—
创建时间
最近更新

项目能做什么

面向 AI Agent 的 Zig 代码智能服务与 MCP 工具集,支持符号分析与代码检索等。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="docs/images/codedb-map-dark.png" />
    <source media="(prefers-color-scheme: light)" srcset="docs/images/codedb-map-light.png" />
    <img src="docs/images/codedb-map-light.png" alt="A cobalt-coated workshop rat maps a repository: source files become islands linked by symbols, callers, and dependencies." width="960" />
  </picture>
</p>

<h1 align="center">codedb</h1>
<h3 align="center">Big repo. Little map. Find the code that matters.</h3>

<p align="center">
  Code intelligence for your coding agent. Built in Zig. Connected over MCP.
</p>

<p align="center">
  <a href="https://github.com/justrach/codedb/releases/latest"><img src="https://img.shields.io/github/v/release/justrach/codedb?style=flat-square&label=release&color=2654d9" alt="Latest release" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/github/license/justrach/codedb?style=flat-square&color=d45a43" alt="License" /></a>
  <img src="https://img.shields.io/badge/built_in-Zig-f7a63b?style=flat-square" alt="Built in Zig" />
  <img src="https://img.shields.io/badge/macOS_·_Linux_·_Windows-1b1714?style=flat-square" alt="macOS, Linux, Windows" />
</p>

<p align="center">
  <a href="https://trendshift.io/repositories/26207?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-26207" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/26207" alt="justrach/codedb | Trendshift" width="250" height="55" /></a>
</p>

<p align="center">
  <a href="#-install">Install</a> ·
  <a href="#-quick-start">Quick start</a> ·
  <a href="#-mcp-tools">Tools</a> ·
  <a href="#-benchmarks">Benchmarks</a> ·
  <a href="#-data--privacy">Data & privacy</a> ·
  <a href="#-use-codedb-in-harness">Harness</a> ·
  <a href="https://codegraff.com/codedb?from=codedb-readme">Meet the family ↗</a>
</p>

Your agent has a task. Somewhere in your repository are the definition it needs,
the caller that explains it, and the test that keeps it honest. **codedb draws
the map**: focused source context, symbols, callers, outlines, and dependencies.
Your coding client uses its own native tools to make the edit.

**A context engine, not an editor.** codedb has no edit capability. Use it with
Graff, Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin, oh-my-pi, Hermes, Qwen Code, ZCode, Trae, Cline, Copilot CLI, Antigravity, Kiro, OpenCode, or another MCP client.

## 🧭 Give your agent a compass

| Ask your agent… | codedb helps it… |
| --- | --- |
| “Where does session refresh happen?” | Find relevant files and source excerpts with `codedb_context` |
| “Explain this function and who uses it.” | Read the definition and callers with `codedb_explain` |
| “How does this request reach the database?” | Trace a chain between symbols with `codedb_callpath` |
| “What's in this part of the repo?” | Browse with `codedb_list_dir` and inspect file outlines |

Structural search
阅读完整原文

项目深度分析 AI 生成

团队级集中式 CodeDB 索引与协同服务端

产品构想针对大型 Monorepo 团队,提供后台中央索引服务,通过网络暴露 MCP 接口,避免每位团队成员本地机器重复运行高耗能的索引构建,并实现索引秒级同步。
核心功能集中式 CI/CD 自动构建 AST/符号索引、多租户 MCP 访问权限控制、差量索引快速同步客户端、局域网/内网共享。
目标用户拥有中大型代码库的研发团队、技术主管(Tech Lead)、DevOps/平台工程团队。
难度/周期中等 · 4-6 周 · 成本:低(基础云服务器用于存储和测试索引服务)
收费模式按席位订阅制(SaaS)或私有化部署 License 许可。
竞争风险网络传输大体积 AST/符号上下文时的延迟若高于本地,会影响 Agent 响应速度。
依据 已验证事实

企业私有合规代码检索与嵌入一体化插件(On-Premise)

产品构想利用项目中提到的 `semantic=local` 和 Zig 高性能特性,打包一套开箱即用的离线嵌入与符号检索私有化方案,专为金融、涉密等禁止代码外发企业定制。
核心功能全本地轻量级向量模型嵌入(免调外部 API)、静态安全审计与数据防泄漏日志、一键式企业内网分发与预配置、支持离线镜像部署。
目标用户金融科技、医疗、军工等强监管行业的软件架构师和安全合规部门。
难度/周期较高 · 6-8 周 · 成本:中等(需测试适配多种本地向量化算力环境)
收费模式按企业节点或年度企业授权收费,结合技术支持服务费。
竞争风险离线本地向量模型的检索精度和性能消耗在老旧开发机上表现可能不及云端托管服务。
依据 数据支持的判断

面向 AI Agent 的超大开源/第三方库远端即时上下文 API

产品构想搭建云端托管服务,预索引全球热门 GitHub 开源仓库及流行框架依赖,为各种终端 MCP 客户端提供免下载直接查询第三方库调用链与符号定义的云服务。
核心功能海量常用开源库预索引与秒级符号搜索、GitHub 仓库一键即时生成 MCP 上下文 URL、API Token 计量与限速控制。
目标用户频繁使用 Agent 阅读/调试开源依赖库源码的应用层开发者、独立全栈开发者。
难度/周期中等 · 3-5 周 · 成本:中等(存储数千热门仓库的符号数据库和向量索引的云端资源)
收费模式免费额度 + 超量按 API 查询次数计费或月度会员制。
竞争风险冷门仓库按需索引耗时长,且需应对 GitHub API 速率限制及版权合规问题。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 84 个 Release
社区活跃Star 1,400 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。