A multi-platform AI coding framework that rules
Supports Claude Code, Cursor, OpenCode, iFlow, Codex, Kilo, Kiro, Gemini CLI, Antigravity, and Qoder.
简体中文 • Docs • Quick Start • Supported Platforms • Use Cases
| 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. |
| Parallel agent execution | Run multiple AI tasks side by side with git worktrees instead of turning one branch into a traffic jam. |
| 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 10 AI coding platforms instead of rebuilding your workflow per tool. |
# 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-u your-namecreates.trellis/workspace/your-name/for personal journals and session continuity.- Platform flags can be mixed and matched. Current options include
--cursor,--opencode,--iflow,--codex,--kilo,--kiro,--gemini,--antigravity, and--qoder. - For platform-specific setup, entry commands, and upgrade paths, use the docs: Quick Start • Supported Platforms • Real-World Scenarios
Put coding standards, file structure rules, review habits, and workflow preferences into Markdown specs. Trellis loads the relevant pieces automatically so you do not have to re-explain the repo every time.
Use git worktrees and Trellis task structure to split work cleanly across agents. Different tasks can move forward at the same time without stepping on each other’s branches or local state.
Task PRDs, checklists, and workspace journals make previous decisions available to the next session. Instead of starting from blank context, the next agent can pick up where the last one left off.
If your team uses more than one AI coding tool, Trellis gives you one shared structure for specs, tasks, and process. The platform-specific wiring changes, but the workflow stays recognizable.
Trellis keeps the core workflow in .trellis/ and generates the platform-specific entry points you need around it.
.trellis/
├── spec/ # Project standards, patterns, and guides
├── tasks/ # Task PRDs, context files, and status
├── workspace/ # Journals and developer-specific continuity
├── workflow.md # Shared workflow rules
└── scripts/ # Utilities that power the workflow
Depending on the platforms you enable, Trellis also creates tool-specific integration files such as .claude/, .cursor/, AGENTS.md, .agents/, .kilocode/, and .kiro/.
At a high level, the workflow is simple:
- Define standards in specs.
- Start or refine work from a task PRD.
- Let Trellis inject the right context for the current task.
- Use checks, journals, and worktrees to keep quality and continuity intact.
- v0.3.1: adds background watch mode for
trellis update, improves behavior in repos with existing.gitignore, and refreshes the docs set. - v0.3.0: expands support from 2 platforms to 9, adds Windows compatibility, remote spec template fetching, and
/trellis:brainstorm. - Docs refresh: the official docs now cover quick start, architecture, commands, customization, real-world scenarios, and ongoing changelog entries.
How is this different from CLAUDE.md, AGENTS.md, or .cursorrules?
Those files are useful, but they tend to become monolithic. Trellis adds structure around them: layered specs, task context, workspace memory, and platform-aware workflow wiring.
Is Trellis only for Claude Code?
No. Trellis currently supports Claude Code, Cursor, OpenCode, iFlow, Codex, Kilo, Kiro, Gemini CLI, and Antigravity. The detailed setup and entry command for each tool lives in the supported platforms guide.
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.
- Official Docs - Product docs, setup guides, and architecture
- Quick Start - Get Trellis running in a repo fast
- Supported Platforms - Platform-specific setup and command details
- Real-World Scenarios - See how the workflow plays out in practice
- Changelog - Track current releases and updates
- Tech Blog - Product thinking and technical writeups
- GitHub Issues - Report bugs or request features
- Discord - Join the community
Official Repository • AGPL-3.0 License • Built by Mindfold