Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions advanced/multi-platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Multi-Platform and Team Configuration'

## Multi-Platform and Team Configuration

Trellis ships on 16 platforms (Claude Code, Cursor, OpenCode, Codex, Kiro, Kilo, Gemini CLI, Antigravity, Devin (formerly Windsurf), Qoder, CodeBuddy, GitHub Copilot, Droid, Pi Agent, Reasonix, ZCode) and additionally supports any AI coding agent that reads the `.agents/skills/` standard (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more). The `.trellis/` core is identical everywhere; what differs is **how hooks, extensions, skills, sub-agents, and commands are delivered** on each platform.
Trellis ships on 17 platforms (Claude Code, Cursor, OpenCode, Codex, Kiro, Kilo, Gemini CLI, Antigravity, Devin (formerly Windsurf), Qoder, CodeBuddy, GitHub Copilot, Droid, Pi Agent, Oh My Pi, Reasonix, ZCode) and additionally supports any AI coding agent that reads the `.agents/skills/` standard (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more). The `.trellis/` core is identical everywhere; what differs is **how hooks, extensions, skills, sub-agents, and commands are delivered** on each platform.

### Joining an Already-Initialized Trellis Project

Expand Down Expand Up @@ -37,13 +37,13 @@ After that, on platforms with a SessionStart hook or extension, opening a new se

### Capability Matrix

| Capability | Claude Code | Cursor | OpenCode | Codex | Kiro | Gemini | Qoder | CodeBuddy | Copilot | Droid | Pi Agent |
| ------------------------------ | :---------: | :----: | :------: | :---: | :--: | :----: | :---: | :-------: | :-----: | :---: | :------: |
| SessionStart / startup context | ✅ | ✅ | ✅ | ⚡ | ⚡ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Sub-agent context injection | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ |
| Sub-agents (`trellis-*`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Auto-trigger skills | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Explicit `/trellis:*` commands | ✅ | ✅ | ✅ | — | — | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Capability | Claude Code | Cursor | OpenCode | Codex | Kiro | Gemini | Qoder | CodeBuddy | Copilot | Droid | Pi Agent | Oh My Pi |
| ------------------------------ | :---------: | :----: | :------: | :---: | :--: | :----: | :---: | :-------: | :-----: | :---: | :------: | :------: |
| SessionStart / startup context | ✅ | ✅ | ✅ | ⚡ | ⚡ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Sub-agent context injection | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ |
| Sub-agents (`trellis-*`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Auto-trigger skills | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Explicit `/trellis:*` commands | ✅ | ✅ | ✅ | — | — | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

Legend: ✅ Trellis wires the config and the platform executes it · ⚡ Partial
(Codex uses `AGENTS.md` plus `UserPromptSubmit`; workflow breadcrumbs require
Expand Down Expand Up @@ -237,6 +237,23 @@ Layout:

The extension stores active task state under `.trellis/.runtime/sessions/<session-key>.json`, so each Pi window/session can work on its own task without taking over another window.

### Oh My Pi

```bash
trellis init -u your-name --omp
```

Oh My Pi is extension-backed, like Pi Agent. Trellis writes the same workflow primitives, then the extension resolves the current session id and injects task context before Bash commands and sub-agent runs. Unlike Pi Agent, Oh My Pi has no `settings.json` — the native provider auto-discovers all subdirectories under `.omp/`.

Layout:

- `.omp/commands/trellis-{name}.md`: session-boundary prompts (`finish-work`, `continue`; `start` only where applicable)
- `.omp/skills/trellis-{name}/SKILL.md`: the five Trellis workflow skills
- `.omp/agents/{name}.md`: `trellis-implement`, `trellis-check`, `trellis-research`
- `.omp/extensions/trellis/index.ts`: session context, Bash `TRELLIS_CONTEXT_ID` propagation, and sub-agent JSONL injection

The extension stores active task state under `.trellis/.runtime/sessions/<session-key>.json`, so each Oh My Pi window/session can work on its own task without taking over another window.

### Other supported platforms

Trellis also ships configurators for platforms not covered by the capability matrix:
Expand All @@ -245,7 +262,7 @@ Trellis also ships configurators for platforms not covered by the capability mat
- **Antigravity** (`--antigravity`): writes Antigravity-native workflow files for the three commands.
- **Devin** (`--devin`, formerly Windsurf): writes Devin-native workflow and skill files. The old `--windsurf` flag still works as a deprecated alias.

Beyond the 16 configured platforms, Trellis can be consumed by any AI coding agent that follows the `.agents/skills/` convention (the [agentskills.io](https://agentskills.io) standard). Codex writes its skills there, and the files are directly usable by other agents in that ecosystem (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more). On those platforms you manage Trellis through the `.trellis/` core plus whatever prelude file the agent reads.
Beyond the 17 configured platforms, Trellis can be consumed by any AI coding agent that follows the `.agents/skills/` convention (the [agentskills.io](https://agentskills.io) standard). Codex writes its skills there, and the files are directly usable by other agents in that ecosystem (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more). On those platforms you manage Trellis through the `.trellis/` core plus whatever prelude file the agent reads.

### Operating Systems

Expand Down
5 changes: 3 additions & 2 deletions start/install-and-first-task.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ trellis init -u your-name --pi

`your-name` becomes your developer identity and creates your personal workspace at `.trellis/workspace/your-name/`.

Supported flags: `--claude`, `--cursor`, `--opencode`, `--codex`, `--kiro`, `--gemini`, `--qoder`, `--codebuddy`, `--copilot`, `--droid`, `--pi`, `--antigravity`, `--devin` (alias: `--windsurf`, deprecated), `--kilo`, `--reasonix`, `--zcode`.
Supported flags: `--claude`, `--cursor`, `--opencode`, `--codex`, `--kiro`, `--gemini`, `--qoder`, `--codebuddy`, `--copilot`, `--droid`, `--pi`, `--antigravity`, `--devin` (alias: `--windsurf`, deprecated), `--kilo`, `--reasonix`, `--zcode`, `--omp`.

Beyond these 16 configured platforms, any AI coding agent that reads the `.agents/skills/` standard (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more) can also consume Trellis: Codex writes its skills there, and the files are directly usable by the rest of that ecosystem.
Beyond these 17 configured platforms, any AI coding agent that reads the `.agents/skills/` standard (Amp, Cline, Deep Agents, Firebender, Kimi Code CLI, Warp, and more) can also consume Trellis: Codex writes its skills there, and the files are directly usable by the rest of that ecosystem.

### Platform Configuration

Expand All @@ -55,6 +55,7 @@ Beyond these 16 configured platforms, any AI coding agent that reads the `.agent
| **Copilot** | `.github/copilot/`, `prompts/`, `agents/`, `skills/`, `hooks/` |
| **Droid** | `.factory/commands/trellis/`, `droids/`, `skills/`, `hooks/` |
| **Pi Agent** | `.pi/prompts/`, `skills/`, `agents/`, `extensions/trellis/`, `settings.json` |
| **Oh My Pi** | `.omp/commands/`, `skills/`, `agents/`, `extensions/trellis/` |
| **Kilo** | `.kilocode/workflows/`, `skills/` |
| **Antigravity** | `.agent/workflows/`, `skills/` |
| **Devin** | `.devin/workflows/`, `skills/` |
Expand Down
35 changes: 26 additions & 9 deletions zh/advanced/multi-platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: '多平台与团队配置'

## 多平台与团队配置

Trellis 支持 16 个平台(Claude Code、Cursor、OpenCode、Codex、Kiro、Kilo、Gemini CLI、Antigravity、Devin(原 Windsurf)、Qoder、CodeBuddy、GitHub Copilot、Droid、Pi Agent、Reasonix、ZCode),以及任何读取 `.agents/skills/` 规范的 AI 编码 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)。`.trellis/` 核心跨平台一致;差异在于**各平台如何交付 hook、extension、skill、sub-agent、command**。
Trellis 支持 17 个平台(Claude Code、Cursor、OpenCode、Codex、Kiro、Kilo、Gemini CLI、Antigravity、Devin(原 Windsurf)、Qoder、CodeBuddy、GitHub Copilot、Droid、Pi Agent、Oh My Pi、Reasonix、ZCode),以及任何读取 `.agents/skills/` 规范的 AI 编码 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)。`.trellis/` 核心跨平台一致;差异在于**各平台如何交付 hook、extension、skill、sub-agent、command**。

### 加入已初始化的 Trellis 项目

Expand Down Expand Up @@ -36,13 +36,13 @@ Trellis 支持 16 个平台(Claude Code、Cursor、OpenCode、Codex、Kiro、K

### 能力矩阵

| 能力 | Claude Code | Cursor | OpenCode | Codex | Kiro | Gemini | Qoder | CodeBuddy | Copilot | Droid | Pi Agent |
| ------------------------------ | :---------: | :----: | :------: | :---: | :--: | :----: | :---: | :-------: | :-----: | :---: | :------: |
| SessionStart / startup context | ✅ | ✅ | ✅ | ⚡ | ⚡ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Sub-agent 上下文注入 | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ |
| Sub-agent(`trellis-*`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Auto-trigger skill | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 显式 `/trellis:*` 命令 | ✅ | ✅ | ✅ | — | — | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 能力 | Claude Code | Cursor | OpenCode | Codex | Kiro | Gemini | Qoder | CodeBuddy | Copilot | Droid | Pi Agent | Oh My Pi |
| ------------------------------ | :---------: | :----: | :------: | :---: | :--: | :----: | :---: | :-------: | :-----: | :---: | :------: | :------: |
| SessionStart / startup context | ✅ | ✅ | ✅ | ⚡ | ⚡ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Sub-agent 上下文注入 | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ |
| Sub-agent(`trellis-*`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Auto-trigger skill | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 显式 `/trellis:*` 命令 | ✅ | ✅ | ✅ | — | — | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

图例:✅ Trellis 写入配置并由平台执行 · ⚡ 部分支持(Codex 使用 `AGENTS.md` 加
`UserPromptSubmit`;workflow breadcrumb 需要 `features.hooks = true`,0.129+
Expand Down Expand Up @@ -232,6 +232,23 @@ Pi Agent 走 extension,不走 Python hook。Trellis 写入同样的 workflow

extension 把当前任务状态存在 `.trellis/.runtime/sessions/<session-key>.json`,所以每个 Pi 窗口/会话都可以有自己的任务,不会抢别的窗口。

### Oh My Pi

```bash
trellis init -u your-name --omp
```

Oh My Pi 与 Pi Agent 一样走 extension。Trellis 写入同样的 workflow 原语,然后 extension 解析当前 session id,在 Bash 命令和 sub-agent 运行前注入任务上下文。与 Pi Agent 不同,Oh My Pi 没有 `settings.json` —— 原生 provider 会自动发现 `.omp/` 下的所有子目录。

布局:

- `.omp/commands/trellis-{name}.md`:会话边界 prompt(`finish-work`、`continue`;`start` 只在需要手动入口的平台存在)
- `.omp/skills/trellis-{name}/SKILL.md`:5 个 Trellis 工作流 skill
- `.omp/agents/{name}.md`:`trellis-implement`、`trellis-check`、`trellis-research`
- `.omp/extensions/trellis/index.ts`:会话上下文、Bash `TRELLIS_CONTEXT_ID` 传递、sub-agent JSONL 注入

extension 把当前任务状态存在 `.trellis/.runtime/sessions/<session-key>.json`,所以每个 Oh My Pi 窗口/会话都可以有自己的任务,不会抢别的窗口。

### 其他支持平台

Trellis 还原生带有上面能力矩阵之外几个平台的配置器:
Expand All @@ -240,7 +257,7 @@ Trellis 还原生带有上面能力矩阵之外几个平台的配置器:
- **Antigravity**(`--antigravity`):写 Antigravity 原生的 workflow 文件(3 个命令)。
- **Devin**(`--devin`,原 Windsurf):写 Devin 原生的 workflow 和 skill 文件。旧的 `--windsurf` flag 仍作为已废弃的别名可用。

除了 16 个已配置平台,Trellis 还能被任何遵循 `.agents/skills/` 约定([agentskills.io](https://agentskills.io) 规范)的 AI 编码 agent 直接使用。Codex 的 skill 就写在这个目录下,这些文件也能被该生态的其他 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)直接读取。这些平台上你通过 `.trellis/` 核心加上各自 agent 读取的 prelude 文件来管理 Trellis。
除了 17 个已配置平台,Trellis 还能被任何遵循 `.agents/skills/` 约定([agentskills.io](https://agentskills.io) 规范)的 AI 编码 agent 直接使用。Codex 的 skill 就写在这个目录下,这些文件也能被该生态的其他 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)直接读取。这些平台上你通过 `.trellis/` 核心加上各自 agent 读取的 prelude 文件来管理 Trellis。

### 操作系统

Expand Down
5 changes: 3 additions & 2 deletions zh/start/install-and-first-task.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ trellis init -u your-name --pi

`your-name` 会成为你的开发者身份,在 `.trellis/workspace/your-name/` 创建个人工作区。

支持的 flag:`--claude`、`--cursor`、`--opencode`、`--codex`、`--kiro`、`--gemini`、`--qoder`、`--codebuddy`、`--copilot`、`--droid`、`--pi`、`--antigravity`、`--devin`(别名:`--windsurf`,已废弃)、`--kilo`、`--reasonix`、`--zcode`。
支持的 flag:`--claude`、`--cursor`、`--opencode`、`--codex`、`--kiro`、`--gemini`、`--qoder`、`--codebuddy`、`--copilot`、`--droid`、`--pi`、`--antigravity`、`--devin`(别名:`--windsurf`,已废弃)、`--kilo`、`--reasonix`、`--zcode`、`--omp`

除了这 16 个已配置平台,任何读取 `.agents/skills/` 规范的 AI 编码 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)也能直接消费 Trellis:Codex 的 skill 就写在这个目录下,这些文件能被该生态的其他 agent 直接读取。
除了这 17 个已配置平台,任何读取 `.agents/skills/` 规范的 AI 编码 agent(Amp、Cline、Deep Agents、Firebender、Kimi Code CLI、Warp 等)也能直接消费 Trellis:Codex 的 skill 就写在这个目录下,这些文件能被该生态的其他 agent 直接读取。

### 平台配置

Expand All @@ -52,6 +52,7 @@ trellis init -u your-name --pi
| **Copilot** | `.github/copilot/`、`prompts/`、`agents/`、`skills/`、`hooks/` |
| **Droid** | `.factory/commands/trellis/`、`droids/`、`skills/`、`hooks/` |
| **Pi Agent** | `.pi/prompts/`、`skills/`、`agents/`、`extensions/trellis/`、`settings.json` |
| **Oh My Pi** | `.omp/commands/`、`skills/`、`agents/`、`extensions/trellis/` |
| **Kilo** | `.kilocode/workflows/`、`skills/` |
| **Antigravity** | `.agent/workflows/`、`skills/` |
| **Devin** | `.devin/workflows/`、`skills/` |
Expand Down