@cuisitekp: 长期用 Claude Code 或 Codex 写项目的人,真该把 Trellis 装上试试。 说它是现在最接近"让 AI 记住你项目"的方案,不算夸张。 很多人写着写着觉得 AI 越来越不靠谱,第一反应是去换更强的模型、或者把提示词堆得…
摘要
Trellis is an open-source engineering framework that persists project context, specs, tasks, and memory into a repository, enabling AI coding agents to remember conventions and progress across sessions. It integrates with 14 AI coding platforms and aims to solve the problem of AI forgetting project context, improving development workflow for teams and individuals.
查看缓存全文
缓存时间: 2026/06/11 17:42
长期用 Claude Code 或 Codex 写项目的人,真该把 Trellis 装上试试。
说它是现在最接近“让 AI 记住你项目“的方案,不算夸张。
很多人写着写着觉得 AI 越来越不靠谱,第一反应是去换更强的模型、或者把提示词堆得更长。但问题常常不在模型——而在它每次都是“空着脑子“进场:项目结构、命名规范、技术选型、上次做到哪,全得从头再喂一遍。
Trellis 直接把这事根治了。
它在你项目里建一个 .trellis/ 目录,把规范、任务、进度、踩过的坑都沉淀进去,跟代码一起进版本库。下次 AI 一进来先读这些,自己就知道该守什么规矩、做到哪一步、接下来干嘛。
相当于给项目配了一份“常驻记忆“,换谁来接手都不断片。
而且它不只是帮你塞上下文,是一整套开发工作流:先把需求问清楚,再动手写,写完对着你的规范和测试自查,最后把这次的经验写回项目——下次更聪明。
还有两点很多人没用上:复杂任务它能自己拆开、开几个分身并行干,互不打架;团队里一个人定的规范,全队的 AI 都跟着守,新人接手直接继承。它也不挑工具——Claude Code、Codex、Cursor 等 14 个 AI 编程平台都能装。
裸用 AI,像请了个聪明但每天失忆的临时工。 配上 Trellis,才开始有一支记得住、守规矩的开发团队的样子。
开源,目前 9000+ star、每周 5000+ 下载。 GitHub:http://github.com/mindfold-ai/Trellis…
mindfold-ai/Trellis
Source: https://github.com/mindfold-ai/Trellis
An out-of-the-box engineering framework for AI coding.
AI writes code fast, but every session it starts from scratch — no memory of your project, your conventions, or your team's requirements. Trellis persists specs, tasks, and memory into your repo, so any coding agent works to your engineering standards.
简体中文 • Docs • Quick Start • Supported Platforms • Use Cases
Why Trellis?
| Capability | What it changes |
|---|---|
| Auto-injected specs | Write conventions once in .trellis/spec/, then let Trellis inject the relevant context into each session instead of repeating yourself. |
| Task-centered workflow | Keep PRDs, implementation context, review context, and task status in .trellis/tasks/ so AI work stays structured. |
| Project memory | Journals in .trellis/workspace/ preserve what happened last time, so each new session starts with real context. |
| Team-shared standards | Specs live in the repo, so one person’s hard-won workflow or rule can benefit the whole team. |
| Multi-platform setup | Bring the same Trellis structure to 14 AI coding platforms instead of rebuilding your workflow per tool. |
Prerequisites:
- Node.js >= 18
- Python >= 3.9
Quick Start
# 1. Install Trellis
npm install -g @mindfoldhq/trellis@latest
# 2. Initialize in your repo
trellis init -u your-name
# 3. Or initialize with the platforms you actually use
trellis init --cursor --opencode --codex -u your-name
See the Quick Start and Supported Platforms guides for setup details.
How to Use
The workflow is simple:
- Describe what you want in natural language.
- Brainstorm with the AI one question at a time until the PRD is clear, then implementation begins.
- Let it run — the AI calls Trellis Implement and auto-checks the result against specs, lint, type-check, and tests.
- Type
/trellis:finish-workwhen the work is done or the session context fills up. Trellis archives the task and updates journals.
How It Works
Trellis runs a 4-phase loop with auto-invoked skills and sub-agents:
- Plan —
trellis-brainstormwalks through requirements one question at a time and writesprd.md. Research-heavy items go to atrellis-researchsub-agent. The result is curated specs + research files referenced fromimplement.jsonl/check.jsonl. - Implement — a
trellis-implementsub-agent writes code from the PRD with the curated context auto-injected, no git commit. - Verify — a
trellis-checksub-agent reviews the diff against specs and runs lint, type-check, and tests, self-fixing where it can. - Finish — a final check runs, then
trellis-update-specpromotes new learnings back into.trellis/spec/so the next session starts smarter.
Resources
| Need | Link |
|---|---|
| Install Trellis in a repo | Quick Start |
| Understand platform differences | Supported Platforms |
| See the workflow in practice | Real-World Scenarios |
| Start from spec templates | Spec Templates |
| Track releases | Changelog |
FAQ
How is Trellis different from CLAUDE.md, AGENTS.md, or .cursorrules?
Those files are useful entry points, but they tend to become monolithic. Trellis adds scoped specs, task PRDs, workflow gates, workspace memory, and platform-aware generated files around them.
Is Trellis only for Claude Code?
No. Trellis is a project layer that works across multiple coding agents and IDEs.
Is Trellis for solo developers or teams?
Both. Solo developers use it for memory and repeatable workflow. Teams get the larger benefit: shared standards, task boundaries, reviewable context, and platform portability.
Do I have to write every spec file manually?
No. Many teams start by letting AI draft specs from existing code and then tighten the important parts by hand. Trellis works best when you keep the high-signal rules explicit and versioned.
Can teams use this without constant conflicts?
Yes. Personal workspace journals stay separate per developer, while shared specs and tasks stay in the repo where they can be reviewed and improved like any other project artifact.
Star History
Community & Resources
Official Repository • AGPL-3.0 License • Built by Mindfold
相似文章
@Xudong07452910: 强烈推荐的开源项目:Trellis —— 让你的 AI Coding Agent 拥有团队级工程规范的开源 Harness Trellis 是我一直在使用的 AI 编码工程框架,被称为“The best agent harness”。 它…
Trellis 是一个开源项目,为 AI 编码代理提供团队级工程规范和项目记忆框架,支持多种平台,通过将规范和任务上下文持久化到代码仓库提升 Agent 的开发效率和质量。
@wsl8297: 在 GitHub 上发现一个专门给团队用的 AI 编程管理工具:Trellis,解决多人协作时 AI 编程的核心痛点,每个开发者和 AI 工具看到的项目信息不一致。它把原本塞在 CLAUDE.md、AGENTS.md 或 .cursorr…
Trellis 是一款面向团队的 AI 编程管理工具,通过结构化 spec、task、workflow 和 journal 解决多人协作时 AI 工具项目信息不一致的问题,支持同时管理多个 AI Agent 并自动同步项目记忆。
@kevinma_dev_zh: 没想到 Trellis 目前 9000+ star、每周 5000+ 下载,发展迅猛啊
Trellis 达到 9000+ GitHub star,每周 5000+ 下载,发展迅猛。被称赞为最接近“让 AI 记住项目”的方案,推荐给使用 Claude Code 或 Codex 的用户。
@VincentLogic: 这开源项目把 Claude Code 的成本砍了 25%。 它不做新模型,不做新 IDE。 就给 AI coding agent 画了张"代码地图"。 传统玩法:模型读完整个仓库 → 爆 token。 它的玩法:先把代码用 Tree-si…
一个开源项目通过Tree-sitter将代码解析成图结构并存入本地SQLite,为AI coding agent提供代码地图,从而减少token消耗和成本,平均节省57% token,成本降低25%。支持Claude Code、Cursor、aider等工具。
@cevenif: 用Claude Code或Codex做开发,但总觉得AI在乱跑?这门课可能正是你缺的那块拼图。 GitHub上有个开源课程叫 Learn Harness Engineering,专门教你给AI编程助手建立一套可控的工作框架,围绕五个核心机…
GitHub 上开源课程 Learn Harness Engineering,教你为 AI 编程助手(如 Claude Code、Codex)建立可控工作框架,包含12节理论课和6个实战项目,核心机制涵盖指令、状态、验证、范围、会话。