Skip to content

mindfold-ai/Trellis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

265 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trellis Logo

A multi-platform AI coding framework that rules
Supports Claude Code, Cursor, OpenCode, iFlow, Codex, Kilo, Kiro, Gemini CLI, Antigravity, and Qoder.

简体中文DocsQuick StartSupported PlatformsUse Cases

npm version license stars docs Discord

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.
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.

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
  • -u your-name creates .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 StartSupported PlatformsReal-World Scenarios

Use Cases

Teach AI your project once

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.

Run multiple AI tasks in parallel

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.

Turn project history into usable memory

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.

Keep one workflow across tools

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.

How It Works

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:

  1. Define standards in specs.
  2. Start or refine work from a task PRD.
  3. Let Trellis inject the right context for the current task.
  4. Use checks, journals, and worktrees to keep quality and continuity intact.

What's New

  • 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.

FAQ

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.

Star History

Star History Chart

Community & Resources

Official RepositoryAGPL-3.0 License • Built by Mindfold