登录 注册

Trail-Code

去点 Star
开发者工具AI 应用与 AI AgentAI 模型与开发框架 ai-agentsanthropicclaude-codeclicode-graphcodex
11,198
Stars
999
Forks
33
Watchers
217
Open Issues
MIT
许可证
TypeScript
语言
2026-07-03
创建时间
2026-11-11
最近更新

项目能做什么

为团队中 Claude Code、Cursor 等代码智能体提供共享记忆与决策上下文。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

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

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/trail-code-banner-dark.png">
  <img src="assets/trail-code-banner.png" alt="Trail-code (previously graft), by Trail. A map of a codebase, with one team decision pinned to it: keep retries at 4." width="100%"/>
</picture>

### The self-learning context layer for coding agents.

Trail-code gives Claude Code, Cursor, Codex and other coding agents a map of your code, and what your team has learned about it.

| | Code map (previously graft) | Learnings |
|---|---|---|
| **What is it?** | An index of your code: every function and who calls it, so your agent sees what a change can break | What you, your agents and your team have learned and decided |
| **What does it do for your agent?** | Takes it straight to the right files | Lets it pick up where you and your team left off |
| **Where does it come from?** | Your code, read on your machine | Your conversations, as you work |

<a href="https://trendshift.io/repositories/92209?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-92209" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/92209/daily?language=TypeScript" alt="trailhq/Trail-Code | Trendshift" width="250" height="55"/></a>

<p>
  <a href="https://github.com/trailhq/Trail-Code"><img src="https://img.shields.io/github/stars/trailhq/Trail-Code?style=for-the-badge&logo=github&logoColor=white&label=Star%20on%20GitHub&color=FFC83D" /></a>
  <a href="https://trailhq.com/trail-code"><img src="https://img.shields.io/badge/website-trailhq.com/trail--code-E5484D?style=for-the-badge" /></a>
  <a href="https://discord.gg/zxmKweAA29"><img src="https://img.shields.io/badge/Discord-join-5865F2?style=for-the-badge&logo=discord&logoColor=white" /></a>
  <a href="https://www.npmjs.com/package/@trailhq/trail-code"><img src="https://img.shields.io/npm/v/%40trailhq%2Ftrail-code?style=for-the-badge&logo=npm&logoColor=white&label=npm" /></a>
  <a href="https://www.npmjs.com/package/@trailhq/trail-code"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Ftrailhq.github.io%2FTrail-Code%2Fbadges%2Fnpm-downloads.json&style=for-the-badge&logo=npm&logoColor=white" /></a>
  <a href="https://nodejs.org"><img src="https://img.shields.io/node/v/%40trailhq%2Ftrail-code?style=for-the-badge&logo=nodedotjs&logoColor=white" /></a>
  <img src="https://img.shields.io/badge/TypeScript-strict-3178C6?style=for-the-badge&logo=typescript&logoColor=white" />
  <img src="https://img.shields.io/badge/License-MIT-20C997?style=for-the-badge" />
  <a href="TELEMETRY.md"><img src="https://img.shields.io/badge/telemetry-anonymous%2C%20opt--out-546FFF?style=for-the-badge" /></a>
  <a href="https://scorecard.dev/viewer/?uri=github.com/trailhq/Trail-Code"><img src="https://img.shields.io/ossf-scorecard/github.com/trailhq/Trail-Code?style=for-the-badge&label=openssf%20scorecard" /></a>
</p>

### **46% fewer tool calls**,
阅读完整原文

商业机会分析 AI 生成

Cloud Hub:团队 AI 记忆实时同步与托管 SaaS

产品构想基于开源 MCP 服务,构建托管式云端上下文协作平台,让团队不同成员的 Cursor/Claude Code 等工具自动拉取并同步团队共享的代码图谱与历史架构决策。
核心功能云端集中式图谱存储、团队级变更与决策自动合并、跨 IDE 插件即插即用集成、团队成员访问权限控制
目标用户5-50 人的中小型研发团队、敏捷开发团队
难度/周期中等 · 1 - 2 个月 · 成本:极低(前期仅需少量云服务器、向量/图数据库及鉴权服务)
收费模式按席位月费订阅(如 $10-20/席位/月)
竞争风险开发者对向第三方云端同步代码元数据/图谱存在数据安全顾虑。
依据 数据支持的判断

Enterprise Edition:企业自托管决策合规与深度图谱分析套件

产品构想针对合规要求高的大型企业,提供开箱即用的私有部署套件,整合企业 Git 提交历史、Jira 决策流,增强代码图谱解析能力并保障代码隐私。
核心功能本地/私有 VPC 部署、Git 提交与 PR 决策自动溯源提取、企业 SSO/RBAC、敏感信息(PII/Secret)自动过滤脱敏
目标用户金融、医疗、大中型科技公司的安全合规负责人与工程效能团队
难度/周期较高 · 2 - 3 个月 · 成本:低(依赖自托管容器分发,主要为研发人力)
收费模式年付企业许可费(如 $5,000 - $20,000/年/企业)
竞争风险B端企业采购决策周期长,对技术支持要求高。
依据 AI推测

Context Packs:垂直技术栈上下文与架构规则工程市场

产品构想围绕主流技术栈(如大型 Next.js、微服务体系、遗留单体系统)构建预训练/预解析的架构模式与规范上下文库,减少 Agent 冷启动和幻觉。
核心功能标准架构规则模版、特定框架深度 AST 提炼规则、一键导入 MCP Server 的记忆切片
目标用户承接特定架构重构的外包团队、初创团队、独立开发者
难度/周期较低 · 2 - 4 周 · 成本:极低(纯内容与规则工程包)
收费模式按包单次付费或年度内容订阅(如 $29 - $99/包)
竞争风险标准化上下文价值容易被模型自身升级削弱,复购率可能偏低。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

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

项目中文简介Stars语言
affaan-m/ECC 中文介绍暂未生成
The agent harness performance optimization system. Skills, i
300,655 JavaScript
deepseek-ai/deepseek-harness 中文介绍暂未生成
DeepSeek Harness: Everything is a Plugin.
278,101 TypeScript
NousResearch/hermes-agent 中文介绍暂未生成
The agent that grows with you
262,373 Python
firecrawl/firecrawl 中文介绍暂未生成
Supercharge your AI agents with data from the web and beyond
200,431 TypeScript
DietrichGebert/ponytail 中文介绍暂未生成
Makes your AI agent think like the laziest senior dev in the
188,265 JavaScript
msitarzewski/agency-agents 中文介绍暂未生成
A complete AI agency at your fingertips - From frontend wiza
167,626 Shell
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2026-07-03,近 30 天仍在推送
社区活跃Star 11,198 / Fork 999 / Issue 217(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/trailhq/Trail-Code.git
cd Trail-Code
docker compose up -d   # 或参考 README 中的 docker run 命令
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。