@pennixrv/trellis 0.7.2-beta.11 → 0.7.2-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +11 -13
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
- package/dist/commands/teamwork/batch-reservation.js +16 -8
- package/dist/commands/teamwork/batch-reservation.js.map +1 -1
- package/dist/commands/teamwork/batch.d.ts +1 -0
- package/dist/commands/teamwork/batch.d.ts.map +1 -1
- package/dist/commands/teamwork/batch.js +112 -1
- package/dist/commands/teamwork/batch.js.map +1 -1
- package/dist/commands/teamwork/coordinator.d.ts +3 -0
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
- package/dist/commands/teamwork/coordinator.js +21 -3
- package/dist/commands/teamwork/coordinator.js.map +1 -1
- package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
- package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
- package/dist/commands/teamwork/foreground-wait.js +8 -1
- package/dist/commands/teamwork/foreground-wait.js.map +1 -1
- package/dist/commands/teamwork/index.d.ts.map +1 -1
- package/dist/commands/teamwork/index.js +1 -0
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +23 -10
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +5 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +1 -8
- package/dist/configurators/codebuddy.d.ts.map +1 -1
- package/dist/configurators/codebuddy.js +2 -12
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts +0 -36
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +2 -99
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +1 -12
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +2 -20
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.d.ts +1 -8
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +2 -12
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.d.ts +1 -8
- package/dist/configurators/droid.d.ts.map +1 -1
- package/dist/configurators/droid.js +2 -12
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/dsh.d.ts +1 -21
- package/dist/configurators/dsh.d.ts.map +1 -1
- package/dist/configurators/dsh.js +4 -37
- package/dist/configurators/dsh.js.map +1 -1
- package/dist/configurators/gemini.d.ts +1 -16
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +3 -21
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/grok.d.ts +1 -12
- package/dist/configurators/grok.d.ts.map +1 -1
- package/dist/configurators/grok.js +2 -18
- package/dist/configurators/grok.js.map +1 -1
- package/dist/configurators/kimi.d.ts +1 -21
- package/dist/configurators/kimi.d.ts.map +1 -1
- package/dist/configurators/kimi.js +2 -38
- package/dist/configurators/kimi.js.map +1 -1
- package/dist/configurators/kiro.d.ts +1 -9
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +1 -9
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/omp.d.ts.map +1 -1
- package/dist/configurators/omp.js +1 -5
- package/dist/configurators/omp.js.map +1 -1
- package/dist/configurators/pi.d.ts.map +1 -1
- package/dist/configurators/pi.js +2 -5
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/qoder.d.ts +1 -10
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +3 -15
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/reasonix.d.ts +1 -12
- package/dist/configurators/reasonix.d.ts.map +1 -1
- package/dist/configurators/reasonix.js +3 -22
- package/dist/configurators/reasonix.js.map +1 -1
- package/dist/configurators/shared.d.ts +1 -24
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +5 -184
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.d.ts +1 -20
- package/dist/configurators/snow.d.ts.map +1 -1
- package/dist/configurators/snow.js +2 -25
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/trae.d.ts +1 -14
- package/dist/configurators/trae.d.ts.map +1 -1
- package/dist/configurators/trae.js +3 -19
- package/dist/configurators/trae.js.map +1 -1
- package/dist/configurators/zcode.d.ts +1 -13
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +2 -18
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
- package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
- package/dist/migrations/retired-native-paths.d.ts +109 -0
- package/dist/migrations/retired-native-paths.d.ts.map +1 -0
- package/dist/migrations/retired-native-paths.js +263 -0
- package/dist/migrations/retired-native-paths.js.map +1 -0
- package/dist/templates/claude/index.d.ts +1 -16
- package/dist/templates/claude/index.d.ts.map +1 -1
- package/dist/templates/claude/index.js +5 -32
- package/dist/templates/claude/index.js.map +1 -1
- package/dist/templates/claude/settings.json +0 -22
- package/dist/templates/codebuddy/index.d.ts +2 -3
- package/dist/templates/codebuddy/index.d.ts.map +1 -1
- package/dist/templates/codebuddy/index.js +2 -3
- package/dist/templates/codebuddy/index.js.map +1 -1
- package/dist/templates/codebuddy/settings.json +0 -10
- package/dist/templates/codex/config.toml +2 -19
- package/dist/templates/codex/hooks/session-start.py +1 -1
- package/dist/templates/codex/hooks.json +0 -12
- package/dist/templates/codex/index.d.ts +0 -5
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +0 -13
- package/dist/templates/codex/index.js.map +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +7 -0
- package/dist/templates/copilot/hooks/session-start.py +1 -1
- package/dist/templates/cursor/hooks.json +0 -7
- package/dist/templates/cursor/index.d.ts +1 -11
- package/dist/templates/cursor/index.d.ts.map +1 -1
- package/dist/templates/cursor/index.js +2 -10
- package/dist/templates/cursor/index.js.map +1 -1
- package/dist/templates/droid/index.d.ts +2 -3
- package/dist/templates/droid/index.d.ts.map +1 -1
- package/dist/templates/droid/index.js +2 -3
- package/dist/templates/droid/index.js.map +1 -1
- package/dist/templates/droid/settings.json +0 -10
- package/dist/templates/dsh/DSH.md +2 -33
- package/dist/templates/dsh/index.d.ts +1 -19
- package/dist/templates/dsh/index.d.ts.map +1 -1
- package/dist/templates/dsh/index.js +2 -21
- package/dist/templates/dsh/index.js.map +1 -1
- package/dist/templates/gemini/index.d.ts +1 -11
- package/dist/templates/gemini/index.d.ts.map +1 -1
- package/dist/templates/gemini/index.js +2 -10
- package/dist/templates/gemini/index.js.map +1 -1
- package/dist/templates/kiro/index.d.ts +1 -13
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +1 -13
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/markdown/agents.md +6 -3
- package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
- package/dist/templates/omp/index.d.ts +0 -2
- package/dist/templates/omp/index.d.ts.map +1 -1
- package/dist/templates/omp/index.js +1 -4
- package/dist/templates/omp/index.js.map +1 -1
- package/dist/templates/opencode/lib/trellis-context.js +12 -321
- package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
- package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
- package/dist/templates/pi/index.d.ts +1 -2
- package/dist/templates/pi/index.d.ts.map +1 -1
- package/dist/templates/pi/index.js +2 -5
- package/dist/templates/pi/index.js.map +1 -1
- package/dist/templates/qoder/index.d.ts +2 -3
- package/dist/templates/qoder/index.d.ts.map +1 -1
- package/dist/templates/qoder/index.js +2 -3
- package/dist/templates/qoder/index.js.map +1 -1
- package/dist/templates/shared-hooks/guard-teamwork-wait.py +110 -12
- package/dist/templates/shared-hooks/index.d.ts +2 -56
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +3 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
- package/dist/templates/shared-hooks/session-start.py +1 -1
- package/dist/templates/snow/SNOW.md +6 -18
- package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
- package/dist/templates/snow/index.d.ts +2 -21
- package/dist/templates/snow/index.d.ts.map +1 -1
- package/dist/templates/snow/index.js +3 -24
- package/dist/templates/snow/index.js.map +1 -1
- package/dist/templates/template-utils.d.ts +1 -2
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +1 -11
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/templates/trae/index.d.ts +2 -3
- package/dist/templates/trae/index.d.ts.map +1 -1
- package/dist/templates/trae/index.js +2 -3
- package/dist/templates/trae/index.js.map +1 -1
- package/dist/templates/trellis/config.yaml +7 -36
- package/dist/templates/trellis/scripts/common/config.py +1 -36
- package/dist/templates/trellis/scripts/common/git_context.py +3 -4
- package/dist/templates/trellis/scripts/common/task_context.py +3 -3
- package/dist/templates/trellis/scripts/common/task_store.py +1 -77
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
- package/dist/templates/trellis/scripts/task.py +2 -2
- package/dist/templates/trellis/workflow.md +1 -7
- package/dist/templates/zcode/config.json +0 -10
- package/dist/templates/zcode/index.d.ts +3 -22
- package/dist/templates/zcode/index.d.ts.map +1 -1
- package/dist/templates/zcode/index.js +3 -24
- package/dist/templates/zcode/index.js.map +1 -1
- package/dist/types/ai-tools.d.ts +0 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +4 -109
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +24 -0
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +3 -0
- package/dist/utils/asset-backup.js.map +1 -1
- package/dist/utils/retired-native-assets.d.ts +16 -0
- package/dist/utils/retired-native-assets.d.ts.map +1 -0
- package/dist/utils/retired-native-assets.js +234 -0
- package/dist/utils/retired-native-assets.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +1 -1
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/package.json +2 -2
- package/dist/templates/claude/agents/trellis-check.md +0 -115
- package/dist/templates/claude/agents/trellis-implement.md +0 -110
- package/dist/templates/claude/agents/trellis-research.md +0 -137
- package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
- package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
- package/dist/templates/codex/agents/trellis-check.toml +0 -56
- package/dist/templates/codex/agents/trellis-implement.toml +0 -37
- package/dist/templates/codex/agents/trellis-research.toml +0 -78
- package/dist/templates/cursor/agents/trellis-check.md +0 -114
- package/dist/templates/cursor/agents/trellis-implement.md +0 -109
- package/dist/templates/cursor/agents/trellis-research.md +0 -136
- package/dist/templates/droid/droids/trellis-check.md +0 -107
- package/dist/templates/droid/droids/trellis-implement.md +0 -102
- package/dist/templates/droid/droids/trellis-research.md +0 -137
- package/dist/templates/dsh/agents/trellis-check.md +0 -99
- package/dist/templates/dsh/agents/trellis-implement.md +0 -106
- package/dist/templates/dsh/agents/trellis-research.md +0 -134
- package/dist/templates/gemini/agents/trellis-check.md +0 -107
- package/dist/templates/gemini/agents/trellis-implement.md +0 -102
- package/dist/templates/gemini/agents/trellis-research.md +0 -136
- package/dist/templates/grok/agents/trellis-check.md +0 -105
- package/dist/templates/grok/agents/trellis-implement.md +0 -116
- package/dist/templates/grok/agents/trellis-research.md +0 -146
- package/dist/templates/grok/index.d.ts +0 -16
- package/dist/templates/grok/index.d.ts.map +0 -1
- package/dist/templates/grok/index.js +0 -19
- package/dist/templates/grok/index.js.map +0 -1
- package/dist/templates/kimi/agents/trellis-check.md +0 -103
- package/dist/templates/kimi/agents/trellis-implement.md +0 -115
- package/dist/templates/kimi/agents/trellis-research.md +0 -144
- package/dist/templates/kimi/index.d.ts +0 -20
- package/dist/templates/kimi/index.d.ts.map +0 -1
- package/dist/templates/kimi/index.js +0 -23
- package/dist/templates/kimi/index.js.map +0 -1
- package/dist/templates/kiro/agents/trellis-check.json +0 -26
- package/dist/templates/kiro/agents/trellis-implement.json +0 -26
- package/dist/templates/kiro/agents/trellis-research.json +0 -30
- package/dist/templates/omp/agents/trellis-check.md +0 -41
- package/dist/templates/omp/agents/trellis-implement.md +0 -45
- package/dist/templates/omp/agents/trellis-research.md +0 -30
- package/dist/templates/opencode/agents/trellis-check.md +0 -122
- package/dist/templates/opencode/agents/trellis-implement.md +0 -118
- package/dist/templates/opencode/agents/trellis-research.md +0 -145
- package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
- package/dist/templates/pi/agents/trellis-check.md +0 -37
- package/dist/templates/pi/agents/trellis-implement.md +0 -42
- package/dist/templates/pi/agents/trellis-research.md +0 -25
- package/dist/templates/qoder/agents/trellis-check.md +0 -108
- package/dist/templates/qoder/agents/trellis-implement.md +0 -103
- package/dist/templates/qoder/agents/trellis-research.md +0 -137
- package/dist/templates/reasonix/agents/trellis-check.md +0 -36
- package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
- package/dist/templates/reasonix/index.d.ts +0 -13
- package/dist/templates/reasonix/index.d.ts.map +0 -1
- package/dist/templates/reasonix/index.js +0 -16
- package/dist/templates/reasonix/index.js.map +0 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
- package/dist/templates/snow/agents/trellis-check.md +0 -135
- package/dist/templates/snow/agents/trellis-implement.md +0 -153
- package/dist/templates/snow/agents/trellis-research.md +0 -114
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
- package/dist/templates/trae/agents/trellis-check.md +0 -108
- package/dist/templates/trae/agents/trellis-implement.md +0 -103
- package/dist/templates/trae/agents/trellis-research.md +0 -137
- package/dist/templates/zcode/agents/trellis-check.md +0 -109
- package/dist/templates/zcode/agents/trellis-implement.md +0 -111
- package/dist/templates/zcode/agents/trellis-research.md +0 -133
|
@@ -1,56 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 调整项目协作角色
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
主会话负责需求、决策、授权、集成和结果接受。协作只有两类,各自由原生 owner 管理:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
| 机制与实例 | 适用工作 | 项目资产与入口 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| trellis teamwork / trellis teammates | 明确工作包的只读研究、审查与验证 | `.trellis/agents/teammate.md`、`teammate-profiles.json`、`profiles/`;使用 `trellis-teamwork` |
|
|
8
|
+
| paseo-based-parallelism / paseo delegated-agent | 已授权实施阶段的完整实施结果包 | `.trellis/agents/delegated-worktree-primary-agent.md`、`worktree-delegation-node.md`;使用 `trellis-worktree-delegation` |
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
2. `.trellis/workflow.md` Decision Space Construction and Consolidation Phase / research routing
|
|
9
|
-
3. Current task `prd.md`
|
|
10
|
-
4. Current task `implement.jsonl` / `check.jsonl`
|
|
11
|
-
5. Relevant hook or agent prelude
|
|
10
|
+
修改前读取当前任务合同、目标角色文件和对应 Skill 的原生说明。角色卡描述职责、输入、写入边界和报告格式;任务状态、接受与授权仍由 Task CLI 管理。节点收到明确工作包后执行,遇到缺失输入或权限冲突向主会话报告,由主会话处理用户决策。
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
工程规范写入 `.trellis/spec/`;可复用方法写入 Skills。可选 JSONL 只是上下文清单,存在清单不授权协作。禁止通过宿主角色文件、裸 CLI 进程或历史启动记录另建派发路线。
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
| --- | --- |
|
|
17
|
-
| Claude Code | `.claude/agents/trellis-*.md` |
|
|
18
|
-
| Cursor | `.cursor/agents/trellis-*.md` |
|
|
19
|
-
| OpenCode | `.opencode/agents/trellis-*.md` |
|
|
20
|
-
| Codex | `.codex/agents/trellis-*.toml` |
|
|
21
|
-
| Kiro | `.kiro/agents/trellis-*.json` |
|
|
22
|
-
| Gemini CLI | `.gemini/agents/trellis-*.md` |
|
|
23
|
-
| Qoder | `.qoder/agents/trellis-*.md` |
|
|
24
|
-
| CodeBuddy | `.codebuddy/agents/trellis-*.md` |
|
|
25
|
-
| Factory Droid | `.factory/droids/trellis-*.md` |
|
|
26
|
-
| Pi Agent | `.pi/agents/trellis-*.md` |
|
|
27
|
-
| Reasonix | `.reasonix/skills/trellis-*/SKILL.md` (subagent frontmatter) |
|
|
28
|
-
| ZCode | `.zcode/agents/trellis-*.md` |
|
|
29
|
-
|
|
30
|
-
Use the actual paths in the user project as authoritative.
|
|
31
|
-
|
|
32
|
-
## Common Needs
|
|
33
|
-
|
|
34
|
-
| Need | Which agent to edit |
|
|
35
|
-
| --- | --- |
|
|
36
|
-
| Research must write files, not only reply in chat | `trellis-research` |
|
|
37
|
-
| Certain local specs must be read before implementation | `trellis-implement` + `implement.jsonl` configuration rules |
|
|
38
|
-
| Specific commands must run during checking | `trellis-check` |
|
|
39
|
-
| Agent must not modify certain directories | The corresponding agent's write boundary instructions |
|
|
40
|
-
| Agent output format must be fixed | The corresponding agent's final/reporting instructions |
|
|
41
|
-
|
|
42
|
-
## Modification Principles
|
|
43
|
-
|
|
44
|
-
1. **Preserve role boundaries**: research investigates and persists; implement writes implementation; check reviews and fixes.
|
|
45
|
-
2. **Do not hard-code project specs into agents**: long-term specs belong in `.trellis/spec/`; agents are responsible for reading them.
|
|
46
|
-
3. **Make read order explicit**: active task -> PRD -> info -> JSONL -> spec/research.
|
|
47
|
-
4. **Make write boundaries explicit**: which directories may be written and which may not.
|
|
48
|
-
5. **Synchronize across platforms**: when the user configured multiple platforms, decide whether to change only the current platform or all platform agents.
|
|
49
|
-
|
|
50
|
-
## Agent Pull Platforms
|
|
51
|
-
|
|
52
|
-
If an agent file contains a prelude for "read task/context after startup," do not remove those steps when editing. Otherwise the agent will work only from chat context and bypass Trellis's core mechanism.
|
|
53
|
-
|
|
54
|
-
## Hook Push Platforms
|
|
55
|
-
|
|
56
|
-
If context is injected by a hook, the agent file should still retain responsibility boundaries. Do not remove PRD/spec requirements from the agent just because a hook injects context.
|
|
14
|
+
Kiro 的 `.kiro/agents/trellis.json` 是主会话入口;普通 `trellis-check` 是检查方法 Skill。两者都不承担旧角色分发。修改安装资产必须沿所属组件的原生更新入口;只修改源模板不会更新既有项目。
|
|
@@ -32,7 +32,7 @@ Context loading determines when AI reads workflow, task, spec, research, workspa
|
|
|
32
32
|
| --- | --- |
|
|
33
33
|
| Inject more/less information in new sessions | `session_context.py` or the platform `session-start` hook. |
|
|
34
34
|
| Change hints on each user input | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The `inject-workflow-state` hook is parser-only and reads the block verbatim. |
|
|
35
|
-
|
|
|
35
|
+
| 会话没有读取规范 | 适用 spec 索引、当前阶段和可选任务 JSONL。 |
|
|
36
36
|
| Active task is lost | `active_task.py` and platform session identity propagation. |
|
|
37
37
|
| Change JSONL validation rules | `task_context.py`. |
|
|
38
38
|
|
|
@@ -56,21 +56,9 @@ If the user wants every new session to see more project state, edit:
|
|
|
56
56
|
|
|
57
57
|
Context cannot grow without bound. Prefer injecting indexes and paths so the AI can read detailed files on demand.
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## 调整协作上下文
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- hook push: edit the `inject-subagent-context` hook.
|
|
64
|
-
- agent pull: edit the read steps in the corresponding `trellis-implement` / `trellis-check` agent file.
|
|
65
|
-
|
|
66
|
-
In both modes, make sure the agent ultimately reads:
|
|
67
|
-
|
|
68
|
-
1. active task
|
|
69
|
-
2. the corresponding JSONL
|
|
70
|
-
3. spec/research referenced by the JSONL
|
|
71
|
-
4. `prd.md`
|
|
72
|
-
5. `design.md` if present
|
|
73
|
-
6. `implement.md` if present
|
|
61
|
+
按 `change-agents.md` 核对机制和职责。Teamwork 修改明确工作包及原生上下文输入;Paseo 修改已授权结果包及节点合同。不要新增宿主派发入口。
|
|
74
62
|
|
|
75
63
|
## Troubleshooting Order
|
|
76
64
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md
CHANGED
|
@@ -16,7 +16,6 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
|
|
|
16
16
|
| --- | --- |
|
|
17
17
|
| session-start | Injects a Trellis overview when a session starts, clears, or compacts. |
|
|
18
18
|
| workflow-state | Injects a state hint on each user input. |
|
|
19
|
-
| sub-agent context | Injects PRD/spec/research before an agent starts. |
|
|
20
19
|
| shell session bridge | Lets `task.py` commands in shell see the same session identity. |
|
|
21
20
|
|
|
22
21
|
## Modification Steps
|
|
@@ -47,7 +46,7 @@ python3 ./.trellis/scripts/task.py current --source
|
|
|
47
46
|
python3 ./.trellis/scripts/task.py validate <task>
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
任务和可选 JSONL 正确时,继续检查当前会话身份及对应机制的原生工作包输入。Hook 负责主会话接入;协作角色由 `change-agents.md` 所列 owner 管理。
|
|
51
50
|
|
|
52
51
|
## Notes
|
|
53
52
|
|
|
@@ -30,14 +30,9 @@ workflow-state is a lightweight hint injected around each user turn. Based on cu
|
|
|
30
30
|
|
|
31
31
|
If the user wants to change "what the AI should do next in a given state," edit the corresponding state block in `.trellis/workflow.md` first.
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## 任务与协作上下文
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
1. **hook push**: a platform hook injects jsonl-referenced files plus `prd.md`, `design.md` if present, and `implement.md` if present before the agent starts.
|
|
38
|
-
2. **agent pull**: the agent definition instructs the agent to read the active task, jsonl context, and task artifacts after startup.
|
|
39
|
-
|
|
40
|
-
In both modes, JSONL files in the task directory are the manifest for spec/research context. Task artifacts are read separately in this order: `prd.md` -> `design.md if present` -> `implement.md if present`.
|
|
35
|
+
主会话按当前阶段读取任务资产和适用规范。`implement.jsonl`、`check.jsonl` 是按需创建的可选上下文清单,不表示执行者类型或派发许可。Teamwork 通过明确工作包和原生上下文输入消费所需内容;Paseo 节点按实施合同和节点绑定读取上下文。角色卡和 Skill 由各自 owner 维护。
|
|
41
36
|
|
|
42
37
|
## JSONL Reading Rules
|
|
43
38
|
|
|
@@ -61,8 +56,8 @@ If shell commands cannot see the same context key, `task.py current --source` ma
|
|
|
61
56
|
| --- | --- |
|
|
62
57
|
| Change session-start injected content | The platform's `session-start` hook or plugin file. |
|
|
63
58
|
| Change per-turn workflow-state rules | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The platform workflow-state hook parses these blocks verbatim and embeds no fallback text. |
|
|
64
|
-
|
|
|
59
|
+
| 调整协作上下文 | 对应工作包、原生 Teamwork 输入或 Paseo 节点合同。 |
|
|
65
60
|
| Change JSONL validation/display | `.trellis/scripts/common/task_context.py`. |
|
|
66
61
|
| Change active task resolution | `.trellis/scripts/common/active_task.py`. |
|
|
67
62
|
|
|
68
|
-
When modifying context injection, verify two things: new sessions can see the correct task, and
|
|
63
|
+
When modifying context injection, verify two things: new sessions can see the correct task, and the current session or collaboration node sees its own task artifacts/spec/research.
|
|
@@ -39,9 +39,9 @@ Different platforms generate different directories. Common categories:
|
|
|
39
39
|
|
|
40
40
|
| Category | Example paths | Purpose |
|
|
41
41
|
| --- | --- | --- |
|
|
42
|
-
| hooks | `.claude/hooks/`, `.codex/hooks/`, `.cursor/hooks/` | Inject session context, workflow-state, and
|
|
42
|
+
| hooks | `.claude/hooks/`, `.codex/hooks/`, `.cursor/hooks/` | Inject session context, workflow-state, and path-scoped specs. |
|
|
43
43
|
| settings | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Tell the platform when to run hooks or plugins. |
|
|
44
|
-
|
|
|
44
|
+
| 协作角色 | `.trellis/agents/` | Teamwork 只读角色和 Paseo 实施节点;平台目录不生成旧分发角色。 |
|
|
45
45
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/`, `.zcode/skills/` | Skills that auto-trigger or can be read by AI. |
|
|
46
46
|
| commands/prompts/workflows | `.cursor/commands/`, `.github/prompts/`, `.devin/workflows/`, `.zcode/commands/` | Explicit user-invoked command or workflow entry points. |
|
|
47
47
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md
CHANGED
|
@@ -48,4 +48,4 @@ All three layers live inside the user project, so an AI can read and modify them
|
|
|
48
48
|
- To change the task model, JSONL context, or active task behavior, read `task-system.md`.
|
|
49
49
|
- To change coding convention injection, read `spec-system.md`.
|
|
50
50
|
- To understand journals and cross-session memory, read `workspace-memory.md`.
|
|
51
|
-
- To change hooks or
|
|
51
|
+
- To change hooks or collaboration context loading, read `context-injection.md`.
|
|
@@ -72,7 +72,7 @@ Before a task enters implementation, planning may write relevant specs into `imp
|
|
|
72
72
|
{"file": ".trellis/spec/cli/unit-test/conventions.md", "reason": "Test expectations"}
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
主会话按工作流读取适用规范;可选 JSONL 提供上下文引用,Teamwork 也可通过原生显式输入消费。清单不决定执行者或授权。
|
|
76
76
|
|
|
77
77
|
## What Specs Should Contain
|
|
78
78
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md
CHANGED
|
@@ -1,84 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 协作角色
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
主会话负责需求、决策、授权、集成和结果接受。协作只有两类,各自由原生 owner 管理:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- `trellis-
|
|
5
|
+
| 机制与实例 | 适用工作 | 项目资产与入口 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| trellis teamwork / trellis teammates | 明确工作包的只读研究、审查与验证 | `.trellis/agents/teammate.md`、`teammate-profiles.json`、`profiles/`;使用 `trellis-teamwork` |
|
|
8
|
+
| paseo-based-parallelism / paseo delegated-agent | 已授权实施阶段的完整实施结果包 | `.trellis/agents/delegated-worktree-primary-agent.md`、`worktree-delegation-node.md`;使用 `trellis-worktree-delegation` |
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
修改前读取当前任务合同、目标角色文件和对应 Skill 的原生说明。角色卡描述职责、输入、写入边界和报告格式;任务状态、接受与授权仍由 Task CLI 管理。节点收到明确工作包后执行,遇到缺失输入或权限冲突向主会话报告,由主会话处理用户决策。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
工程规范写入 `.trellis/spec/`;可复用方法写入 Skills。可选 JSONL 只是上下文清单,存在清单不授权协作。禁止通过宿主角色文件、裸 CLI 进程或历史启动记录另建派发路线。
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
| --- | --- |
|
|
15
|
-
| `trellis-research` | Investigate the question and write findings into the current task's `research/`. |
|
|
16
|
-
| `trellis-implement` | Implement against `prd.md`, optional `design.md` / `implement.md`, `implement.jsonl`, and related spec/research. |
|
|
17
|
-
| `trellis-check` | Review changes, fix discovered issues, and run necessary checks. |
|
|
18
|
-
|
|
19
|
-
Agent files should not become generic chat prompts. They should define input sources, write boundaries, whether code may be changed, and how results are reported.
|
|
20
|
-
|
|
21
|
-
## Common Paths
|
|
22
|
-
|
|
23
|
-
| Platform | Agent path |
|
|
24
|
-
| --- | --- |
|
|
25
|
-
| Claude Code | `.claude/agents/trellis-*.md` |
|
|
26
|
-
| Cursor | `.cursor/agents/trellis-*.md` |
|
|
27
|
-
| OpenCode | `.opencode/agents/trellis-*.md` |
|
|
28
|
-
| Codex | `.codex/agents/trellis-*.toml` |
|
|
29
|
-
| Kiro | `.kiro/agents/trellis-*.json` |
|
|
30
|
-
| Gemini CLI | `.gemini/agents/trellis-*.md` |
|
|
31
|
-
| Qoder | `.qoder/agents/trellis-*.md` |
|
|
32
|
-
| CodeBuddy | `.codebuddy/agents/trellis-*.md` |
|
|
33
|
-
| Factory Droid | `.factory/droids/trellis-*.md` |
|
|
34
|
-
| Pi Agent | `.pi/agents/trellis-*.md` |
|
|
35
|
-
| Reasonix | `.reasonix/skills/trellis-*/SKILL.md` (subagent frontmatter) |
|
|
36
|
-
| ZCode | `.zcode/agents/trellis-*.md` |
|
|
37
|
-
| Kimi Code | `.kimi-code/skills/trellis-*/SKILL.md` (agent prompts as skills, dispatched to the built-in `coder`; research needs its file-editing tools to persist findings) |
|
|
38
|
-
| DeepSeek Harness | `.dsh/skills/trellis-agent-*/SKILL.md` (role prompts as child-only skills; optional `trellis_wait` enables continuable background settlement; without it, dispatch every child with `run_in_background: false` from the outset) |
|
|
39
|
-
|
|
40
|
-
GitHub Copilot agent/prompt support is provided by a combination of directories such as `.github/agents/`, `.github/prompts/`, and `.github/skills/`; inspect the files actually generated in the user project.
|
|
41
|
-
|
|
42
|
-
Main-session workflow platforms such as Kilo, Antigravity, and Devin may not have Trellis sub-agent files. They usually rely on workflows/skills to guide the main session.
|
|
43
|
-
|
|
44
|
-
## Two Context Loading Modes
|
|
45
|
-
|
|
46
|
-
### hook push
|
|
47
|
-
|
|
48
|
-
The platform hook injects task context before the agent starts. The agent file itself can focus more on responsibilities and boundaries.
|
|
49
|
-
|
|
50
|
-
Common on platforms that support agent hooks.
|
|
51
|
-
|
|
52
|
-
### agent pull
|
|
53
|
-
|
|
54
|
-
The agent file instructs the agent to read after startup:
|
|
55
|
-
|
|
56
|
-
- `python3 ./.trellis/scripts/task.py current --source`
|
|
57
|
-
- `implement.jsonl` or `check.jsonl`
|
|
58
|
-
- spec/research files referenced by JSONL
|
|
59
|
-
- current task `prd.md`
|
|
60
|
-
- `design.md` if present
|
|
61
|
-
- `implement.md` if present
|
|
62
|
-
|
|
63
|
-
This mode fits platforms whose hooks cannot reliably rewrite sub-agent prompts.
|
|
64
|
-
|
|
65
|
-
## Local Change Scenarios
|
|
66
|
-
|
|
67
|
-
| User need | Edit location |
|
|
68
|
-
| --- | --- |
|
|
69
|
-
| Implement agent must follow extra restrictions | The platform's `trellis-implement` agent file. |
|
|
70
|
-
| Check agent must run project-specific commands | `trellis-check` agent file, and `.trellis/spec/` if needed. |
|
|
71
|
-
| Research agent must output a fixed format | `trellis-research` agent file. |
|
|
72
|
-
| Agent cannot read task context | Agent prelude or `inject-subagent-context` hook. |
|
|
73
|
-
| Add a project-specific agent | Platform agent directory + related workflow/command/skill entry point. |
|
|
74
|
-
|
|
75
|
-
## Modification Principles
|
|
76
|
-
|
|
77
|
-
1. **Keep responsibilities single-purpose**. Do not mix research, implement, and check responsibilities into one agent.
|
|
78
|
-
2. **Specify the read order**. Agents must know to start from the active task, read jsonl/spec context, then read `prd.md`, `design.md` if present, and `implement.md` if present.
|
|
79
|
-
3. **Specify write boundaries**. Research usually only writes `research/`; implement can write code; check can fix issues.
|
|
80
|
-
4. **Keep semantics synchronized in multi-platform projects**. If the user configured Claude, Codex, and Cursor together, decide whether changes to one platform's agent also need to be applied to others.
|
|
81
|
-
|
|
82
|
-
## Do Not Default To Editing Upstream Templates
|
|
83
|
-
|
|
84
|
-
Local AI should default to modifying platform agent files inside the user project. Discuss upstream template source only when the user explicitly wants to contribute the change back to Trellis.
|
|
14
|
+
Kiro 的 `.kiro/agents/trellis.json` 是主会话入口;普通 `trellis-check` 是检查方法 Skill。两者都不承担旧角色分发。修改安装资产必须沿所属组件的原生更新入口;只修改源模板不会更新既有项目。
|
|
@@ -8,7 +8,6 @@ settings/config files usually register:
|
|
|
8
8
|
|
|
9
9
|
- session-start hook: injects a Trellis overview when a new session starts or context resets.
|
|
10
10
|
- workflow-state hook: parses `[workflow-state:STATUS]` blocks from `.trellis/workflow.md` and emits the body matching the current task `status` on each user input. Parser-only; the script does not embed fallback content.
|
|
11
|
-
- sub-agent context hook: injects task context when implementation/check/research agents start.
|
|
12
11
|
- shell/session bridge: lets shell commands see the same Trellis session identity.
|
|
13
12
|
- platform plugin or extension entry points.
|
|
14
13
|
|
|
@@ -29,7 +28,7 @@ Common files:
|
|
|
29
28
|
| Pi Agent | `.pi/settings.json`, `.pi/extensions/trellis/` |
|
|
30
29
|
| Trae IDE | `.trae/hooks.json` |
|
|
31
30
|
|
|
32
|
-
Reasonix
|
|
31
|
+
Reasonix、Kimi Code 和 DeepSeek Harness 通过项目 Skills 提供主会话方法入口;ZCode 通过主会话 Hook 注入阶段和 shell 身份。Trellis 不部署宿主实施、检查或研究角色。
|
|
33
32
|
|
|
34
33
|
Whether these files exist in a project depends on which `trellis init --<platform>` flags the user ran.
|
|
35
34
|
|
|
@@ -39,7 +38,6 @@ Whether these files exist in a project depends on which `trellis init --<platfor
|
|
|
39
38
|
| --- | --- |
|
|
40
39
|
| `session-start.py` | Generates session-start context. |
|
|
41
40
|
| `inject-workflow-state.py` | Parses `[workflow-state:STATUS]` blocks in `.trellis/workflow.md` and emits the body matching the current task status. Falls back to `Refer to workflow.md for current step.` when no matching block exists. |
|
|
42
|
-
| `inject-subagent-context.py` | Injects PRD, JSONL context, and related spec/research into sub-agents. |
|
|
43
41
|
| `inject-spec-context.py` | Matches path-scoped specs and manages budgeted delivery state. |
|
|
44
42
|
| `inject-shell-session-context.py` | Lets shell commands inherit Trellis session identity. |
|
|
45
43
|
|
|
@@ -51,7 +49,7 @@ Not every platform has every hook. Do not copy files from another platform just
|
|
|
51
49
|
| --- | --- |
|
|
52
50
|
| AI should see more/less context in a new session | Platform `session-start` hook. |
|
|
53
51
|
| Per-turn hint policy should change | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The hook parses workflow.md verbatim — no script edit required. |
|
|
54
|
-
|
|
|
52
|
+
| 协作节点缺少 PRD/spec | 原生工作包输入与节点合同。 |
|
|
55
53
|
| `task.py current` in shell has no active task | Shell/session bridge hook or platform environment variable configuration. |
|
|
56
54
|
| Disable an automatic injection | The corresponding hook registration in settings/config. |
|
|
57
55
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md
CHANGED
|
@@ -15,7 +15,7 @@ Platform files do not store business state. They let the corresponding AI tool r
|
|
|
15
15
|
| --- | --- | --- |
|
|
16
16
|
| settings/config | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Register hooks, plugins, extensions, or platform behavior. |
|
|
17
17
|
| hooks/plugins/extensions | `.claude/hooks/`, `.opencode/plugins/`, `.pi/extensions/` | Inject context at session start, user input, agent startup, shell execution, and similar events. |
|
|
18
|
-
|
|
|
18
|
+
| 协作角色 | `.trellis/agents/` | Teamwork 只读角色与 Paseo 实施节点;Kiro 另有主会话入口。 |
|
|
19
19
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/`, `.zcode/skills/` | Capability descriptions that auto-trigger or can be read on demand. |
|
|
20
20
|
| commands/prompts/workflows | `.cursor/commands/`, `.github/prompts/`, `.devin/workflows/`, `.zcode/commands/` | Entry points explicitly invoked by the user. |
|
|
21
21
|
|
|
@@ -29,20 +29,17 @@ Common capabilities:
|
|
|
29
29
|
|
|
30
30
|
- session-start injection of a `.trellis/` overview.
|
|
31
31
|
- workflow-state hints for each user turn.
|
|
32
|
-
- PRD/spec/research injection when sub-agents start.
|
|
33
32
|
- Shell commands inheriting session identity.
|
|
34
33
|
|
|
35
34
|
To change "when the AI knows what," inspect hooks/plugins/extensions and settings first.
|
|
36
35
|
|
|
37
36
|
### 2. Agent Prelude / Pull-Based
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
To change how sub-agents load context, inspect the agent files themselves.
|
|
38
|
+
协作上下文由原生工作包或节点合同提供,职责见 `agents.md`。
|
|
42
39
|
|
|
43
40
|
### 3. Main-Session Workflow
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
没有启动 Hook 的平台通过 workflow、Skills 和命令引导主会话读取文件、运行脚本并推进任务。
|
|
46
43
|
|
|
47
44
|
To change behavior, inspect platform workflows/skills/commands and `.trellis/workflow.md`.
|
|
48
45
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md
CHANGED
|
@@ -4,110 +4,31 @@ This page lists common Trellis file locations in a user project by platform. Whe
|
|
|
4
4
|
|
|
5
5
|
## Matrix
|
|
6
6
|
|
|
7
|
-
| Platform | CLI flag | Main directory | Skill directory |
|
|
8
|
-
| --- | --- | --- | --- | --- |
|
|
9
|
-
| Claude Code | `--claude` | `.claude/` | `.claude/skills/` | `.claude/
|
|
10
|
-
| Cursor | `--cursor` | `.cursor/` | `.cursor/skills/` | `.cursor/
|
|
11
|
-
| OpenCode | `--opencode` | `.opencode/` | `.opencode/skills/` | `.opencode/
|
|
12
|
-
| Codex | `--codex` | `.codex/` | `.agents/skills/` | `.codex/
|
|
13
|
-
| Kilo | `--kilo` | `.kilocode/` | `.kilocode/skills/` |
|
|
14
|
-
| Kiro | `--kiro` | `.kiro/` | `.kiro/skills/` | `.kiro/
|
|
15
|
-
| Gemini CLI | `--gemini` | `.gemini/` | `.agents/skills/` | `.gemini/
|
|
16
|
-
| Antigravity | `--antigravity` | `.agent/` | `.agent/skills/` |
|
|
17
|
-
| Devin | `--devin` | `.devin/` | `.devin/skills/` |
|
|
18
|
-
| Qoder | `--qoder` | `.qoder/` | `.qoder/skills/` | `.qoder/
|
|
19
|
-
| CodeBuddy | `--codebuddy` | `.codebuddy/` | `.codebuddy/skills/` | `.codebuddy/
|
|
20
|
-
| GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/
|
|
21
|
-
| Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/
|
|
22
|
-
| Pi Agent | `--pi` | `.pi/` | `.agents/skills/` | `.pi/
|
|
23
|
-
| Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/
|
|
24
|
-
| Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None
|
|
25
|
-
| ZCode | `--zcode` | `.zcode/` | `.zcode/skills/` |
|
|
26
|
-
| Grok Build | `--grok` | `.grok/` | `.grok/skills/` |
|
|
27
|
-
| Kimi Code | `--kimi` | `.kimi-code/` | `.agents/skills/` (shared) + `.kimi-code/skills/` | None
|
|
28
|
-
| Snow CLI | `--snow` | `.snow/` | `.snow/skills/` |
|
|
29
|
-
| DeepSeek Harness | `--dsh` | `.dsh/` | `.agents/skills/` (shared) + `.dsh/skills/` | None
|
|
7
|
+
| Platform | CLI flag | Main directory | Skill directory | Hooks/extensions |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| Claude Code | `--claude` | `.claude/` | `.claude/skills/` | `.claude/hooks/` + `.claude/settings.json` |
|
|
10
|
+
| Cursor | `--cursor` | `.cursor/` | `.cursor/skills/` | `.cursor/hooks.json` + `.cursor/hooks/` |
|
|
11
|
+
| OpenCode | `--opencode` | `.opencode/` | `.opencode/skills/` | `.opencode/plugins/` |
|
|
12
|
+
| Codex | `--codex` | `.codex/` | `.agents/skills/` | `.codex/hooks/` + `.codex/hooks.json` |
|
|
13
|
+
| Kilo | `--kilo` | `.kilocode/` | `.kilocode/skills/` | `.kilocode/workflows/` |
|
|
14
|
+
| Kiro | `--kiro` | `.kiro/` | `.kiro/skills/` | `.kiro/hooks/` |
|
|
15
|
+
| Gemini CLI | `--gemini` | `.gemini/` | `.agents/skills/` | `.gemini/settings.json` + `.gemini/hooks/` |
|
|
16
|
+
| Antigravity | `--antigravity` | `.agent/` | `.agent/skills/` | `.agent/workflows/` |
|
|
17
|
+
| Devin | `--devin` | `.devin/` | `.devin/skills/` | `.devin/workflows/` |
|
|
18
|
+
| Qoder | `--qoder` | `.qoder/` | `.qoder/skills/` | `.qoder/hooks/` + `.qoder/settings.json` |
|
|
19
|
+
| CodeBuddy | `--codebuddy` | `.codebuddy/` | `.codebuddy/skills/` | `.codebuddy/hooks/` + `.codebuddy/settings.json` |
|
|
20
|
+
| GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/copilot/hooks/` + prompts |
|
|
21
|
+
| Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/hooks/` + settings |
|
|
22
|
+
| Pi Agent | `--pi` | `.pi/` | `.agents/skills/` | `.pi/extensions/trellis/` (native `trellis_subagent` tool) + `.pi/settings.json` |
|
|
23
|
+
| Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/hooks/` + `.trae/hooks.json` |
|
|
24
|
+
| Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None |
|
|
25
|
+
| ZCode | `--zcode` | `.zcode/` | `.zcode/skills/` | 主会话原生接入;以当前 configurator 输出为准 |
|
|
26
|
+
| Grok Build | `--grok` | `.grok/` | `.grok/skills/` | pull-based prelude (no hooks; flat `.grok/commands/trellis-*.md`) |
|
|
27
|
+
| Kimi Code | `--kimi` | `.kimi-code/` | `.agents/skills/` (shared) + `.kimi-code/skills/` | None (pull-based prelude; no project hooks/settings) |
|
|
28
|
+
| Snow CLI | `--snow` | `.snow/` | `.snow/skills/` | 主会话原生接入;以当前 configurator 输出为准 |
|
|
29
|
+
| DeepSeek Harness | `--dsh` | `.dsh/` | `.agents/skills/` (shared) + `.dsh/skills/` | None installed by Trellis (pull-based roles; optional `dsh-trellis` adds event-driven wait, otherwise foreground dispatch) |
|
|
30
30
|
|
|
31
31
|
## Capability Groups
|
|
32
32
|
|
|
33
|
-
### Trellis Sub-Agent Support
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- Claude Code
|
|
38
|
-
- Cursor
|
|
39
|
-
- OpenCode
|
|
40
|
-
- Codex
|
|
41
|
-
- Kiro
|
|
42
|
-
- Gemini CLI
|
|
43
|
-
- Qoder
|
|
44
|
-
- CodeBuddy
|
|
45
|
-
- GitHub Copilot
|
|
46
|
-
- Factory Droid
|
|
47
|
-
- Pi Agent
|
|
48
|
-
- Trae IDE
|
|
49
|
-
- Reasonix (delivered as skills with `runAs: subagent` under `.reasonix/skills/`, not as a separate `agents/` directory)
|
|
50
|
-
- ZCode
|
|
51
|
-
- Grok Build (`.grok/agents/`; dispatch via `spawn_subagent` with `subagent_type`)
|
|
52
|
-
- Kimi Code (delivered as skills under `.kimi-code/skills/`; dispatched to the built-in `coder`, including research because it must persist files)
|
|
53
|
-
- Snow CLI (`.snow/agents/`; auto-discovered project agents + class-1 hooks)
|
|
54
|
-
- DeepSeek Harness (role prompts delivered as `.dsh/skills/trellis-agent-*/SKILL.md`; dispatched through the continuable `subagent` tool)
|
|
55
|
-
|
|
56
|
-
When changing implementation/check/research behavior, look for the corresponding platform agent files first.
|
|
57
|
-
|
|
58
|
-
### Native Trellis Sub-Agent Tool
|
|
59
|
-
|
|
60
|
-
Some platforms expose a first-class tool that the host runtime understands. The model calls it like any other tool and the host renders progress cards, validates the agent name against `.<platform>/agents/`, and enforces dispatch modes.
|
|
61
|
-
|
|
62
|
-
- Pi Agent — `trellis_subagent` tool, defined in `.pi/extensions/trellis/index.ts`. Supports `single` / `parallel` / `chain` dispatch modes and emits live `trellis-subagent-progress` events.
|
|
63
|
-
|
|
64
|
-
When changing sub-agent dispatch behavior on these platforms, edit the extension file, **not** the agent markdown — the agent markdown defines responsibilities, but the host extension owns dispatch, validation, and progress rendering.
|
|
65
|
-
|
|
66
|
-
### Main-Session Workflow Platforms
|
|
67
|
-
|
|
68
|
-
These platforms rely more on workflows/skills to guide the main session:
|
|
69
|
-
|
|
70
|
-
- Kilo
|
|
71
|
-
- Antigravity
|
|
72
|
-
- Devin
|
|
73
|
-
|
|
74
|
-
When changing behavior, inspect workflows and skills first. Do not assume Trellis sub-agents exist.
|
|
75
|
-
|
|
76
|
-
### Shared `.agents/skills/`
|
|
77
|
-
|
|
78
|
-
Codex, Gemini CLI, Pi Agent, Kimi Code, and DeepSeek Harness write the shared `.agents/skills/` layer. Some tools that support agentskills.io can also read this directory. If the user wants multiple compatible tools to share one skill, consider `.agents/skills/` first, but do not assume every platform reads it. ZCode keeps Trellis-managed skills under `.zcode/skills/`.
|
|
79
|
-
|
|
80
|
-
## Decision Rules When Modifying Platform Files
|
|
81
|
-
|
|
82
|
-
1. User specified a platform: modify only that platform directory unless shared workflow/spec files must also change.
|
|
83
|
-
2. User says "all platforms should do this": synchronize equivalent entry points platform by platform; do not modify only one directory.
|
|
84
|
-
3. User only says "my AI": inspect the configuration directories that actually exist in the project and infer the current AI platform.
|
|
85
|
-
4. User wants project rules: prefer `.trellis/spec/` or a project-local skill.
|
|
86
|
-
5. User wants Trellis behavior: edit `.trellis/workflow.md` plus platform hooks/agents/skills/commands.
|
|
87
|
-
|
|
88
|
-
## When Paths Differ
|
|
89
|
-
|
|
90
|
-
Platform ecosystems change, and user projects may already be customized. If this table disagrees with local files, use the actual settings/config in the user project as authoritative:
|
|
91
|
-
|
|
92
|
-
- Check the hook that settings registers.
|
|
93
|
-
- Check the script that a command/prompt/workflow points to.
|
|
94
|
-
- Judge behavior by the read rules currently written in the agent file.
|
|
95
|
-
|
|
96
|
-
Do not delete a custom file just because it is not listed in this path table.
|
|
97
|
-
|
|
98
|
-
### `.omp/` — Oh My Pi (OMP)
|
|
99
|
-
|
|
100
|
-
Extension-backed platform. OMP native provider auto-discovers all subdirectories.
|
|
101
|
-
|
|
102
|
-
```text
|
|
103
|
-
.omp/
|
|
104
|
-
├── commands/ # Slash commands (flat .md)
|
|
105
|
-
├── skills/ # Auto-triggered skills (SKILL.md per dir)
|
|
106
|
-
├── agents/ # Agent definitions (.md)
|
|
107
|
-
└── extensions/
|
|
108
|
-
└── trellis/
|
|
109
|
-
└── index.ts # Trellis extension (context injection)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
No `settings.json` — OMP scans `.omp/` subdirectories automatically.
|
|
113
|
-
No Python hooks — hook-equivalent behavior lives in the TypeScript extension.
|
|
34
|
+
协作使用 `trellis teamwork` 或 `paseo-based-parallelism`。平台资产仅提供主会话接入,具体角色与节点见 `agents.md`。
|
|
@@ -9,7 +9,7 @@ Skills and commands are textual entry points for user interaction with Trellis.
|
|
|
9
9
|
| skill | AI auto-match or explicit user mention | Long-term capabilities, workflow rules, modification guides. |
|
|
10
10
|
| command | Explicit user invocation | Clear operation entry points such as continue and finish-work. |
|
|
11
11
|
| prompt | Explicit user invocation or platform selection | Similar to command, but in a platform prompt format. |
|
|
12
|
-
| workflow | Explicit user selection or platform auto-match | Guides the main session when no
|
|
12
|
+
| workflow | Explicit user selection or platform auto-match | Guides the main session when no startup hook exists. |
|
|
13
13
|
|
|
14
14
|
Trellis skills can cover reusable capabilities or dedicated workflow areas. Multi-file bundled skills such as `trellis-meta` keep supporting material in layered references.
|
|
15
15
|
|
|
@@ -32,7 +32,7 @@ If none of these apply, don't call `mem`. It is a tool, not a ceremony.
|
|
|
32
32
|
|
|
33
33
|
- The relevant context is already in the current turn, `prd.md`, `design.md`, recent `git log`, or the open files. `mem` is for stuff that has fallen out of immediate reach.
|
|
34
34
|
- The user is asking about a fact in the code, not a fact from a past conversation. `git log -p` / `grep` / reading the file directly is faster and more authoritative.
|
|
35
|
-
-
|
|
35
|
+
- An authorized teammate or delegated-agent work package already contains the relevant evidence and context. Read history only if the assigned question requires it; history does not expand the assignment or authorization.
|
|
36
36
|
- The user has explicitly said "don't dig through history, just answer what I asked".
|
|
37
37
|
|
|
38
38
|
## What to do with what `mem` returns
|
|
@@ -61,7 +61,7 @@ trellis teamwork context list <session> --scope global --thread <thread>
|
|
|
61
61
|
- Trellis teammates do not ask the user directly or require a user-question tool. Return missing input, limitations, unresolved choices or contract-valid blocked reports to the main agent; the main agent first resolves evidence and allocation before deciding whether a user choice is needed.
|
|
62
62
|
- `general`, `advisor`, and `committee` are coordination modes, independent from profiles, providers, `run`, batch execution, and forum sessions. Read project defaults with `teamwork config`; construct a frozen plan with `teamwork plan` and execute it with `teamwork batch --task <task-dir>`.
|
|
63
63
|
- For a managed batch, invoke one foreground `teamwork batch --json` command and wait for its receipt. The CLI owns FIFO admission, capacity, provider waits, retries, cancellation, report validation, and settlement; the main agent must not schedule per-assignment waits or retries.
|
|
64
|
-
- If the host yields that call, silently continue its original handle. Do not emit repetitive progress, query status, start unrelated work, or create another batch.
|
|
64
|
+
- If the host yields that call, silently continue its original handle. Do not emit repetitive progress, query unrelated status, start unrelated work, or create another batch. If the handle is unavailable, use `teamwork reconcile <original-plan> --task <task-dir> --wait 30` to observe that same batch read-only. A pending snapshot permits another bounded observation; a yielded observation continues its own handle. Neither path redispatches, extends the original deadline, releases capacity, or accepts reports. Codex's native projection and supported PreToolUse guard provide the recovery locator; they do not prevent model wake-ups or ordinary messages. After coordinator loss, use explicit native reconciliation and retain reservations until provider exit is proven.
|
|
65
65
|
- Agent/program callers must use `run --json`, `batch --json`, or `wait --json --from <worker>` for final results. Default run text and default wait events are compatibility/operator views. Read `execution`, every `reports[].validation` and content status, then perform semantic review; `done`, exit zero, `complete`, and `ALL_ACCEPTED` alone do not accept a task result. `semanticValidation: not_run` explicitly leaves that decision to the main agent.
|
|
66
66
|
- Tool permissions are automatically allowed; the default Codex launch has no sandbox. Source/Git, memory, and delegation boundaries are prompt obligations. Do not add tool/path permission gates or describe the role as technical isolation.
|
|
67
67
|
- Initialization carries common/professional rules and the mode-specific result contract. Task messages carry task data, acceptance and exact identity/path references. Context manifests may choose inline, required full reading, or on-demand references; reference text never becomes system instructions. ACP has user content only and cannot claim system priority.
|
package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md
CHANGED
|
@@ -125,12 +125,32 @@ with `--confirm <preview-digest>` deletes those files; a changed preview or an
|
|
|
125
125
|
unresolved reservation is rejected. Read and accept needed evidence before
|
|
126
126
|
cleanup. Session removal alone does not delete task-owned attempt evidence.
|
|
127
127
|
|
|
128
|
+
For a managed batch whose original host handle is unavailable, use
|
|
129
|
+
`teamwork reconcile <original-plan> --task <task-dir> --wait 30`. The observation
|
|
130
|
+
budget is an integer from 1 to 60 seconds, not an extension of the batch deadline.
|
|
131
|
+
The JSON `mode: observe` result binds the original identity and deadline.
|
|
132
|
+
`outcome: pending` permits another bounded observation; `settled` contains the
|
|
133
|
+
durable receipt and the ordinary batch `result`, including report artifacts and
|
|
134
|
+
pending semantic review. A terminal transition without its receipt stays pending.
|
|
135
|
+
`reconciliation_required` directs explicit recovery; `blocked` describes missing
|
|
136
|
+
proof. Observation never launches a provider, acquires execution capacity, writes
|
|
137
|
+
coordination events, cancels the batch or accepts a report. Interrupting the
|
|
138
|
+
observer only ends observation. Resume its own continuation if the host yields;
|
|
139
|
+
if that handle is also lost, repeat the read-only observation. Do not search
|
|
140
|
+
private host histories, disable hooks, replay batch or manually edit projections
|
|
141
|
+
as the default recovery path. Old projections without locators still require the
|
|
142
|
+
original plan/task; unknown identities cannot be reconstructed automatically.
|
|
143
|
+
|
|
128
144
|
Use `teamwork reconcile <original-plan> --task <task-dir>` to preview recovery
|
|
129
145
|
after coordinator loss. `--execute --reason <disposition>` only settles when
|
|
130
146
|
native process-exit facts or process birth identity prove termination. A missing
|
|
131
147
|
PID, absent report, or dead coordinator alone is insufficient. This command
|
|
132
148
|
preserves accepted assignments and releases only the original batch's leases.
|
|
133
|
-
It does not restart providers or accept task results.
|
|
149
|
+
It does not restart providers or accept task results. When the original
|
|
150
|
+
reservation proves the coordinator has exited, preview can describe recovery
|
|
151
|
+
from RUNNING without writing a transition; explicit execute reuses the existing
|
|
152
|
+
reconciliation bridge. A live or unverifiable owner cannot be taken over.
|
|
153
|
+
`--wait` cannot be combined with execute, reason or unknown-exit confirmation.
|
|
134
154
|
|
|
135
155
|
After a durable failed settlement and explicit bounded retry approval, construct
|
|
136
156
|
`teamwork retry <original-plan> --task <task-dir> --output <new-plan> --batch <new-id>
|
|
@@ -96,6 +96,13 @@ closes admission, marks undispatched FIFO work `FINAL_FAILED`, then cancels and
|
|
|
96
96
|
drains active attempts. Confirmed outcomes settle as `SETTLED_WITH_FAILURE`;
|
|
97
97
|
unconfirmed process exit requires reconciliation.
|
|
98
98
|
|
|
99
|
+
If the host handle becomes unavailable, observe only that original frozen plan
|
|
100
|
+
with `trellis teamwork reconcile <plan> --task <task-dir> --wait 30`. This is
|
|
101
|
+
bounded read-only recovery, not another batch or a new execution deadline.
|
|
102
|
+
Only a verified durable receipt exposes a settled result; reports still need
|
|
103
|
+
main-agent review. Coordinator loss follows explicit reconciliation and never
|
|
104
|
+
proves provider termination by itself.
|
|
105
|
+
|
|
99
106
|
A valid `blocked` report with evidence ends only that assignment as
|
|
100
107
|
`FINAL_FAILED`; the CLI continues with the remaining FIFO work and preserves
|
|
101
108
|
the blocker report. Missing reports may use the assignment's declared retry
|
|
@@ -130,7 +130,7 @@ def _has_curated_jsonl_entry(jsonl_path: Path) -> bool:
|
|
|
130
130
|
A newly created jsonl is empty, and older tasks may still carry a
|
|
131
131
|
``{"_example": ...}`` placeholder row (no ``file`` key) — neither is
|
|
132
132
|
"ready". Readiness requires at least one curated entry. Matches the
|
|
133
|
-
contract used by
|
|
133
|
+
contract used by main-session context readers.
|
|
134
134
|
"""
|
|
135
135
|
try:
|
|
136
136
|
for line in jsonl_path.read_text(encoding="utf-8").splitlines():
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
3
|
"hooks": {
|
|
4
|
-
"preToolUse": [
|
|
5
|
-
{
|
|
6
|
-
"command": "{{PYTHON_CMD}} .cursor/hooks/inject-subagent-context.py",
|
|
7
|
-
"matcher": "Task|Subagent",
|
|
8
|
-
"timeout": 30
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
4
|
"sessionStart": [
|
|
12
5
|
{
|
|
13
6
|
"command": "{{PYTHON_CMD}} .cursor/hooks/session-start.py",
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor templates
|
|
3
|
-
*
|
|
4
|
-
* Directory structure:
|
|
5
|
-
* cursor/
|
|
6
|
-
* ├── agents/ # Sub-agent definitions
|
|
7
|
-
* └── hooks.json # Hooks configuration
|
|
8
|
-
*/
|
|
9
|
-
import { type AgentTemplate } from "../template-utils.js";
|
|
10
|
-
export type { AgentTemplate };
|
|
11
|
-
export declare const getAllAgents: () => AgentTemplate[];
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
12
2
|
export declare const getHooksConfig: () => string;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,eAAO,MAAM,cAAc,QAAO,MAAiC,CAAC"}
|