Trellis: A Repo-Backed Memory Layer for AI Coding Agents
The best agent harness.
At a glance
- What is it?
- Trellis is a TypeScript-based harness that persists specs, tasks, and session memory inside your repository, aiming to give any coding agent a consistent engineering workflow. It is not a magic fix: it adds structure and process that some teams will find heavy.
- Who is it for?
- Adopt Trellis if you are a team that wants shared, versioned engineering standards across multiple AI coding platforms and is willing to maintain a structured .trellis directory. Do not adopt it if you prefer a lightweight, per-file instruction approach like CLAUDE.md or .cursorrules, or if your work is exploratory with no need for persistent PRDs.
- Can I use it commercially?
- Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
- Is it still maintained?
- Yes. The repository last received commits 48 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 16, 2026, and from our analysis. They are not legal advice.
Star history
- mindfold-ai/Trellis15,141 ★ · +866
| Repository | 2026-08-27 | 2026-11-16 |
|---|---|---|
| mindfold-ai/Trellis | 14.3k | 15.1k |
866 Stars in the last 81 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The Problem: AI Sessions Start from Zero
The README states that AI writes code fast, but every session starts from scratch, with no memory of your project, conventions, or team requirements. Trellis addresses this by persisting specs, tasks, and memory into your repository. The intended users are developers who use AI coding agents regularly and want consistency across sessions and across team members. The pitch is that instead of repeating yourself in every prompt, you write conventions once in .trellis/spec/, and Trellis injects relevant context automatically. This is a real pain point for anyone who has watched an agent ignore project style or re-derive architecture decisions.
The Four-Phase Loop: Plan, Implement, Verify, Finish
Trellis runs a 4-phase loop with auto-invoked skills and sub-agents. In the Plan phase, trellis-brainstorm walks through requirements one question at a time and writes prd.md. Research-heavy items go to a trellis-research sub-agent. The result is curated specs and research files referenced from implement.jsonl and check.jsonl. In the Implement phase, a trellis-implement sub-agent writes code from the PRD with curated context auto-injected, and notably makes no git commit. In the Verify phase, a trellis-check sub-agent reviews the diff against specs and runs lint, type-check, and tests, self-fixing where it can. Finally, the Finish phase runs a final check, then trellis-update-spec promotes new learnings back into .trellis/spec/. This is a structured pipeline, but it depends on the agent following the harness's directions.
Installation and Initialization: Commands You Can Run
The README gives concrete commands. Prerequisites are Node.js >= 18 and Python >= 3.9. Installation is global via npm: npm install -g @mindfoldhq/trellis@latest. Then you initialize in your repo with trellis init -u your-name. You can also specify platforms: trellis init --cursor --opencode --codex -u your-name. The -u flag takes your name, shown as your-name in the example. After init, the workflow is: describe what you want in natural language, brainstorm with the AI one question at a time until the PRD is clear, let it run (the AI calls Trellis Implement and auto-checks), and type /trellis:finish-work when done.
The .trellis Directory: Specs, Tasks, and Workspace
The repository layout, as described, centers on three subdirectories. .trellis/spec/ holds conventions and rules that get auto-injected into sessions. .trellis/tasks/ keeps PRDs, implementation context, review context, and task status. .trellis/workspace/ contains journals that preserve what happened last time, so each new session starts with real context. The README claims that personal workspace journals stay separate per developer, while shared specs and tasks stay in the repo. That separation is meant to avoid conflicts in team settings.
Ablation and Recovery: A Useful But Risky Feature
The README describes trellis ablate, which temporarily removes all supported project-owned Trellis surfaces after creating a verified recovery transaction outside the project. This lets you compare a project with and without Trellis. You start a fresh agent session for the comparison, then run trellis restore to recover the exact prior state. The --dry-run flag previews either operation. The recovery transaction is kept until restore verifies successfully. This is a thoughtful feature for evaluating the tool, but it carries a caveat: the recovery transaction contains exact bytes of your .trellis files, which may be sensitive. If you use ablate, you must trust where that transaction is stored.
Limitations and Wrong Tool Cases
Trellis is not a lightweight solution. The README compares it to CLAUDE.md, AGENTS.md, and .cursorrules, arguing those become monolithic. Trellis adds scoped specs, task PRDs, workflow gates, workspace memory, and platform-aware generated files. That is a lot of moving parts. For a solo developer doing quick experiments, the overhead of maintaining PRDs and journals may outweigh the benefit. The README admits that you do not have to write every spec file manually, but it says Trellis works best when you keep high-signal rules explicit and versioned. That means ongoing curation. Also, the README claims support for 22 AI coding platforms and points to the Supported Platforms guide in the docs for details. The AGPL-3.0 license is another constraint: if you modify and distribute, you must share source. That may be unacceptable for some commercial teams.
Alternatives: Compare with CLAUDE.md and .cursorrules
The README itself names the main alternatives: CLAUDE.md, AGENTS.md, and .cursorrules. These are static instruction files that you place in your repo. They are simple: you write rules, and the agent reads them. Trellis goes beyond that with scoped specs, task PRDs, workflow gates, workspace memory, and platform-aware generated files. The difference is that Trellis introduces a process: brainstorm, implement, verify, finish. Static files just sit there. But static files have zero runtime overhead, no sub-agents, and no recovery transactions. If you only need a few conventions, a CLAUDE.md is faster to set up and easier to audit. Trellis is the heavier choice.
Maintenance and Upgrade Cost
The README includes a link to a changelog, but the repository has no published GitHub releases. That means the maintenance cadence is unknown. The project is not archived, and the default branch is main. The license is AGPL-3.0, which has implications for derivative works. Since it is installed as a global npm package, the Quick Start command npm install -g @mindfoldhq/trellis@latest fetches the latest version. The main maintenance cost is not the package itself but the .trellis directory contents. Specs need to stay accurate, tasks need to be archived, and journals need to be reviewed. The README says trellis-update-spec promotes learnings back into specs, so the system tries to automate some of that. But you still need to curate the high-signal rules.
Editorial conclusion
Adopt Trellis if you are a team that wants shared, versioned engineering standards across multiple AI coding platforms and is willing to maintain a structured .trellis directory. Do not adopt it if you prefer a lightweight, per-file instruction approach like CLAUDE.md or .cursorrules, or if your work is exploratory with no need for persistent PRDs. Before adopting, verify the AGPL-3.0 implications for your use case, test the init flow on a non-critical repo, and review the docs for platform-specific behavior since the README points to the docs for the 22 platforms.
Frequently asked questions
What is Trellis?
An engineering framework for AI-assisted coding. It persists specifications, task documents and session journals inside your repository so that a coding agent starts each session with your project's conventions, your requirements and what happened last time, rather than from scratch. It is described as an out-of-the-box framework, copyleft licensed, with a separate copyright notice, and requiring Node 18 or newer and Python 3.9 or newer.
how to use trellis
Install the command globally from the package registry at the latest tag, then initialise it in your repository with your name, optionally naming the platforms you actually use. The workflow is four steps: describe what you want in natural language, brainstorm one question at a time until the requirements document is clear, let it run while the implementation sub-agent writes code and the check sub-agent runs lint, type-check and tests, then finish the work, which archives the task and updates the journals.
Is Trellis only for one coding agent?
No. The front page says it is a project layer that works across multiple coding agents and editors, and the capability table claims support for twenty-two coding platforms. Initialisation takes platform flags so you can name the ones you use rather than enabling all of them.
Will Trellis cause merge conflicts for a team?
The front page's answer is that personal workspace journals stay separate per developer, while shared specifications and tasks stay in the repository where they can be reviewed and improved like any other project artefact. Another FAQ entry adds that task boundaries and reviewable context are among the larger benefits for teams over individuals.
Can I compare a project with and without Trellis?
There is a command for it that removes the project-owned surfaces and then restores the exact prior state, with dry-run available for both. The front page notes that the recovery it creates is written outside the project, includes the exact task, spec and workspace bytes, may contain user-authored sensitive text, and is kept until the restore verifies successfully.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/mindfold-ai-trellis)Star history chart for your README
[](https://hysenlabs.com/projects/mindfold-ai-trellis)Was this useful?