@pennixrv/trellis 0.7.2-beta.12 → 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.
Files changed (283) hide show
  1. package/dist/commands/init.d.ts.map +1 -1
  2. package/dist/commands/init.js +11 -13
  3. package/dist/commands/init.js.map +1 -1
  4. package/dist/commands/update.d.ts.map +1 -1
  5. package/dist/commands/update.js +23 -10
  6. package/dist/commands/update.js.map +1 -1
  7. package/dist/commands/workflow.d.ts.map +1 -1
  8. package/dist/commands/workflow.js +5 -7
  9. package/dist/commands/workflow.js.map +1 -1
  10. package/dist/configurators/codebuddy.d.ts +1 -8
  11. package/dist/configurators/codebuddy.d.ts.map +1 -1
  12. package/dist/configurators/codebuddy.js +2 -12
  13. package/dist/configurators/codebuddy.js.map +1 -1
  14. package/dist/configurators/codex.d.ts +0 -36
  15. package/dist/configurators/codex.d.ts.map +1 -1
  16. package/dist/configurators/codex.js +2 -99
  17. package/dist/configurators/codex.js.map +1 -1
  18. package/dist/configurators/copilot.d.ts +1 -12
  19. package/dist/configurators/copilot.d.ts.map +1 -1
  20. package/dist/configurators/copilot.js +2 -20
  21. package/dist/configurators/copilot.js.map +1 -1
  22. package/dist/configurators/cursor.d.ts +1 -8
  23. package/dist/configurators/cursor.d.ts.map +1 -1
  24. package/dist/configurators/cursor.js +2 -12
  25. package/dist/configurators/cursor.js.map +1 -1
  26. package/dist/configurators/droid.d.ts +1 -8
  27. package/dist/configurators/droid.d.ts.map +1 -1
  28. package/dist/configurators/droid.js +2 -12
  29. package/dist/configurators/droid.js.map +1 -1
  30. package/dist/configurators/dsh.d.ts +1 -21
  31. package/dist/configurators/dsh.d.ts.map +1 -1
  32. package/dist/configurators/dsh.js +4 -37
  33. package/dist/configurators/dsh.js.map +1 -1
  34. package/dist/configurators/gemini.d.ts +1 -16
  35. package/dist/configurators/gemini.d.ts.map +1 -1
  36. package/dist/configurators/gemini.js +3 -21
  37. package/dist/configurators/gemini.js.map +1 -1
  38. package/dist/configurators/grok.d.ts +1 -12
  39. package/dist/configurators/grok.d.ts.map +1 -1
  40. package/dist/configurators/grok.js +2 -18
  41. package/dist/configurators/grok.js.map +1 -1
  42. package/dist/configurators/kimi.d.ts +1 -21
  43. package/dist/configurators/kimi.d.ts.map +1 -1
  44. package/dist/configurators/kimi.js +2 -38
  45. package/dist/configurators/kimi.js.map +1 -1
  46. package/dist/configurators/kiro.d.ts +1 -9
  47. package/dist/configurators/kiro.d.ts.map +1 -1
  48. package/dist/configurators/kiro.js +1 -9
  49. package/dist/configurators/kiro.js.map +1 -1
  50. package/dist/configurators/omp.d.ts.map +1 -1
  51. package/dist/configurators/omp.js +1 -5
  52. package/dist/configurators/omp.js.map +1 -1
  53. package/dist/configurators/pi.d.ts.map +1 -1
  54. package/dist/configurators/pi.js +2 -5
  55. package/dist/configurators/pi.js.map +1 -1
  56. package/dist/configurators/qoder.d.ts +1 -10
  57. package/dist/configurators/qoder.d.ts.map +1 -1
  58. package/dist/configurators/qoder.js +3 -15
  59. package/dist/configurators/qoder.js.map +1 -1
  60. package/dist/configurators/reasonix.d.ts +1 -12
  61. package/dist/configurators/reasonix.d.ts.map +1 -1
  62. package/dist/configurators/reasonix.js +3 -22
  63. package/dist/configurators/reasonix.js.map +1 -1
  64. package/dist/configurators/shared.d.ts +1 -24
  65. package/dist/configurators/shared.d.ts.map +1 -1
  66. package/dist/configurators/shared.js +5 -184
  67. package/dist/configurators/shared.js.map +1 -1
  68. package/dist/configurators/snow.d.ts +1 -20
  69. package/dist/configurators/snow.d.ts.map +1 -1
  70. package/dist/configurators/snow.js +2 -25
  71. package/dist/configurators/snow.js.map +1 -1
  72. package/dist/configurators/trae.d.ts +1 -14
  73. package/dist/configurators/trae.d.ts.map +1 -1
  74. package/dist/configurators/trae.js +3 -19
  75. package/dist/configurators/trae.js.map +1 -1
  76. package/dist/configurators/zcode.d.ts +1 -13
  77. package/dist/configurators/zcode.d.ts.map +1 -1
  78. package/dist/configurators/zcode.js +2 -18
  79. package/dist/configurators/zcode.js.map +1 -1
  80. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  81. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  82. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  83. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  84. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  85. package/dist/migrations/retired-native-paths.d.ts +109 -0
  86. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  87. package/dist/migrations/retired-native-paths.js +263 -0
  88. package/dist/migrations/retired-native-paths.js.map +1 -0
  89. package/dist/templates/claude/index.d.ts +1 -16
  90. package/dist/templates/claude/index.d.ts.map +1 -1
  91. package/dist/templates/claude/index.js +5 -32
  92. package/dist/templates/claude/index.js.map +1 -1
  93. package/dist/templates/claude/settings.json +0 -22
  94. package/dist/templates/codebuddy/index.d.ts +2 -3
  95. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  96. package/dist/templates/codebuddy/index.js +2 -3
  97. package/dist/templates/codebuddy/index.js.map +1 -1
  98. package/dist/templates/codebuddy/settings.json +0 -10
  99. package/dist/templates/codex/config.toml +2 -19
  100. package/dist/templates/codex/hooks/session-start.py +1 -1
  101. package/dist/templates/codex/hooks.json +0 -12
  102. package/dist/templates/codex/index.d.ts +0 -5
  103. package/dist/templates/codex/index.d.ts.map +1 -1
  104. package/dist/templates/codex/index.js +0 -13
  105. package/dist/templates/codex/index.js.map +1 -1
  106. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  107. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  108. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  109. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  110. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  111. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  112. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  113. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  114. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  115. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  116. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  117. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  118. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  119. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  120. package/dist/templates/copilot/hooks/session-start.py +1 -1
  121. package/dist/templates/cursor/hooks.json +0 -7
  122. package/dist/templates/cursor/index.d.ts +1 -11
  123. package/dist/templates/cursor/index.d.ts.map +1 -1
  124. package/dist/templates/cursor/index.js +2 -10
  125. package/dist/templates/cursor/index.js.map +1 -1
  126. package/dist/templates/droid/index.d.ts +2 -3
  127. package/dist/templates/droid/index.d.ts.map +1 -1
  128. package/dist/templates/droid/index.js +2 -3
  129. package/dist/templates/droid/index.js.map +1 -1
  130. package/dist/templates/droid/settings.json +0 -10
  131. package/dist/templates/dsh/DSH.md +2 -33
  132. package/dist/templates/dsh/index.d.ts +1 -19
  133. package/dist/templates/dsh/index.d.ts.map +1 -1
  134. package/dist/templates/dsh/index.js +2 -21
  135. package/dist/templates/dsh/index.js.map +1 -1
  136. package/dist/templates/gemini/index.d.ts +1 -11
  137. package/dist/templates/gemini/index.d.ts.map +1 -1
  138. package/dist/templates/gemini/index.js +2 -10
  139. package/dist/templates/gemini/index.js.map +1 -1
  140. package/dist/templates/kiro/index.d.ts +1 -13
  141. package/dist/templates/kiro/index.d.ts.map +1 -1
  142. package/dist/templates/kiro/index.js +1 -13
  143. package/dist/templates/kiro/index.js.map +1 -1
  144. package/dist/templates/markdown/agents.md +6 -3
  145. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  146. package/dist/templates/omp/index.d.ts +0 -2
  147. package/dist/templates/omp/index.d.ts.map +1 -1
  148. package/dist/templates/omp/index.js +1 -4
  149. package/dist/templates/omp/index.js.map +1 -1
  150. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  151. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  152. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  153. package/dist/templates/opencode/plugins/session-start.js +2 -6
  154. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  155. package/dist/templates/pi/index.d.ts +1 -2
  156. package/dist/templates/pi/index.d.ts.map +1 -1
  157. package/dist/templates/pi/index.js +2 -5
  158. package/dist/templates/pi/index.js.map +1 -1
  159. package/dist/templates/qoder/index.d.ts +2 -3
  160. package/dist/templates/qoder/index.d.ts.map +1 -1
  161. package/dist/templates/qoder/index.js +2 -3
  162. package/dist/templates/qoder/index.js.map +1 -1
  163. package/dist/templates/shared-hooks/index.d.ts +2 -56
  164. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  165. package/dist/templates/shared-hooks/index.js +3 -70
  166. package/dist/templates/shared-hooks/index.js.map +1 -1
  167. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  168. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  169. package/dist/templates/shared-hooks/session-start.py +1 -1
  170. package/dist/templates/snow/SNOW.md +6 -18
  171. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  172. package/dist/templates/snow/index.d.ts +2 -21
  173. package/dist/templates/snow/index.d.ts.map +1 -1
  174. package/dist/templates/snow/index.js +3 -24
  175. package/dist/templates/snow/index.js.map +1 -1
  176. package/dist/templates/template-utils.d.ts +1 -2
  177. package/dist/templates/template-utils.d.ts.map +1 -1
  178. package/dist/templates/template-utils.js +1 -11
  179. package/dist/templates/template-utils.js.map +1 -1
  180. package/dist/templates/trae/index.d.ts +2 -3
  181. package/dist/templates/trae/index.d.ts.map +1 -1
  182. package/dist/templates/trae/index.js +2 -3
  183. package/dist/templates/trae/index.js.map +1 -1
  184. package/dist/templates/trellis/config.yaml +7 -36
  185. package/dist/templates/trellis/scripts/common/config.py +1 -36
  186. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  187. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  188. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  189. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  190. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  191. package/dist/templates/trellis/scripts/task.py +2 -2
  192. package/dist/templates/trellis/workflow.md +1 -7
  193. package/dist/templates/zcode/config.json +0 -10
  194. package/dist/templates/zcode/index.d.ts +3 -22
  195. package/dist/templates/zcode/index.d.ts.map +1 -1
  196. package/dist/templates/zcode/index.js +3 -24
  197. package/dist/templates/zcode/index.js.map +1 -1
  198. package/dist/types/ai-tools.d.ts +0 -4
  199. package/dist/types/ai-tools.d.ts.map +1 -1
  200. package/dist/types/ai-tools.js +4 -109
  201. package/dist/types/ai-tools.js.map +1 -1
  202. package/dist/utils/ablation-store.d.ts.map +1 -1
  203. package/dist/utils/ablation-store.js +24 -0
  204. package/dist/utils/ablation-store.js.map +1 -1
  205. package/dist/utils/asset-backup.d.ts.map +1 -1
  206. package/dist/utils/asset-backup.js +3 -0
  207. package/dist/utils/asset-backup.js.map +1 -1
  208. package/dist/utils/retired-native-assets.d.ts +16 -0
  209. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  210. package/dist/utils/retired-native-assets.js +234 -0
  211. package/dist/utils/retired-native-assets.js.map +1 -0
  212. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  213. package/dist/utils/uninstall-scrubbers.js +1 -1
  214. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  215. package/package.json +2 -2
  216. package/dist/templates/claude/agents/trellis-check.md +0 -115
  217. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  218. package/dist/templates/claude/agents/trellis-research.md +0 -137
  219. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  220. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  221. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  222. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  223. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  224. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  225. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  226. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  227. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  228. package/dist/templates/droid/droids/trellis-check.md +0 -107
  229. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  230. package/dist/templates/droid/droids/trellis-research.md +0 -137
  231. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  232. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  233. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  234. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  235. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  236. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  237. package/dist/templates/grok/agents/trellis-check.md +0 -105
  238. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  239. package/dist/templates/grok/agents/trellis-research.md +0 -146
  240. package/dist/templates/grok/index.d.ts +0 -16
  241. package/dist/templates/grok/index.d.ts.map +0 -1
  242. package/dist/templates/grok/index.js +0 -19
  243. package/dist/templates/grok/index.js.map +0 -1
  244. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  245. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  246. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  247. package/dist/templates/kimi/index.d.ts +0 -20
  248. package/dist/templates/kimi/index.d.ts.map +0 -1
  249. package/dist/templates/kimi/index.js +0 -23
  250. package/dist/templates/kimi/index.js.map +0 -1
  251. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  252. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  253. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  254. package/dist/templates/omp/agents/trellis-check.md +0 -41
  255. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  256. package/dist/templates/omp/agents/trellis-research.md +0 -30
  257. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  258. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  259. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  260. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  261. package/dist/templates/pi/agents/trellis-check.md +0 -37
  262. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  263. package/dist/templates/pi/agents/trellis-research.md +0 -25
  264. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  265. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  266. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  267. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  268. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  269. package/dist/templates/reasonix/index.d.ts +0 -13
  270. package/dist/templates/reasonix/index.d.ts.map +0 -1
  271. package/dist/templates/reasonix/index.js +0 -16
  272. package/dist/templates/reasonix/index.js.map +0 -1
  273. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  274. package/dist/templates/snow/agents/trellis-check.md +0 -135
  275. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  276. package/dist/templates/snow/agents/trellis-research.md +0 -114
  277. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  278. package/dist/templates/trae/agents/trellis-check.md +0 -108
  279. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  280. package/dist/templates/trae/agents/trellis-research.md +0 -137
  281. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  282. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  283. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -32,19 +32,6 @@ function listFiles(dir) {
32
32
  return [];
33
33
  }
34
34
  }
35
- // Shared skills are now sourced from common/ templates (see templates/common/index.ts)
36
- export function getAllAgents() {
37
- const agents = [];
38
- for (const file of listFiles("agents")) {
39
- if (!file.endsWith(".toml")) {
40
- continue;
41
- }
42
- const name = file.replace(".toml", "");
43
- const content = readTemplate(`agents/${file}`);
44
- agents.push({ name, content });
45
- }
46
- return agents;
47
- }
48
35
  export function getAllHooks() {
49
36
  const hooks = [];
50
37
  for (const file of listFiles("hooks")) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/codex/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAYD,uFAAuF;AAEvF,MAAM,UAAU,YAAY;IAC1B,MAAM,MAAM,GAAoB,EAAE,CAAC;IAEnC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,SAAS;QACX,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAOD,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAmB,EAAE,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,YAAY,CAAC,aAAa,CAAC;KACrC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/codex/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAYD,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAmB,EAAE,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,YAAY,CAAC,aAAa,CAAC;KACrC,CAAC;AACJ,CAAC"}
@@ -37,7 +37,7 @@ Do not assume the user has the Trellis source repository. Do not default to modi
37
37
  - `references/local-architecture/task-system.md`: Task directories, active task, JSONL context, parent/child task trees, and task runtime.
38
38
  - `references/local-architecture/spec-system.md`: How `.trellis/spec/` is organized, injected, and refreshed from a `registry.spec` source.
39
39
  - `references/local-architecture/workspace-memory.md`: `.trellis/workspace/` journals plus `trellis mem` cross-session recall and the `@pennixrv/trellis-core/mem` SDK.
40
- - `references/local-architecture/context-injection.md`: Hooks, sub-agent preludes, and Teamwork message inbox routing.
40
+ - `references/local-architecture/context-injection.md`: Main-session hooks, task context, and Teamwork message inbox routing.
41
41
  - `references/local-architecture/multi-agent-teamwork.md`: `trellis teamwork`, Teamwork Session storage, teammate process guard, task ownership boundary, and bundled `.trellis/agents/` runtime instructions.
42
42
  - `references/local-architecture/bundled-skills.md`: Bundled skills under `packages/cli/src/templates/common/bundled-skills/` and how `getBundledSkillTemplates()` ships them to platform skill roots.
43
43
 
@@ -45,8 +45,8 @@ Do not assume the user has the Trellis source repository. Do not default to modi
45
45
 
46
46
  - `references/platform-files/overview.md`: How shared `.trellis/` files relate to platform directories and the three platform integration modes (hook-driven, agent prelude, main-session workflow).
47
47
  - `references/platform-files/platform-map.md`: Platform directories and paths for skills, agents, hooks, and extensions across all supported platforms including DeepSeek Harness, Reasonix, and Pi's native `trellis_subagent` extension.
48
- - `references/platform-files/hooks-and-settings.md`: How settings/config files, hooks, plugins, and extensions connect to Trellis; covers `teamwork.teammate_guard.*` and `codex.dispatch_mode`.
49
- - `references/platform-files/agents.md`: Per-platform `trellis-research` / `trellis-implement` / `trellis-check` sub-agent files plus the bundled `.trellis/agents/teammate.md` role card.
48
+ - `references/platform-files/hooks-and-settings.md`: How settings/config files, hooks, plugins, and extensions connect to Trellis; covers `teamwork.teammate_guard.*` and main-session context.
49
+ - `references/platform-files/agents.md`: Teamwork role cards, Paseo node methods, and the Kiro main-session entry.
50
50
  - `references/platform-files/skills-and-commands.md`: Differences between skills, commands, prompts, and workflows, plus how to change them.
51
51
 
52
52
  ### Local Customization
@@ -56,7 +56,7 @@ Do not assume the user has the Trellis source repository. Do not default to modi
56
56
  - `references/customize-local/change-task-lifecycle.md`: Change task creation, lifecycle and phase state, parent/child links, and lifecycle hooks.
57
57
  - `references/customize-local/change-context-loading.md`: Change how tasks, specs, journals, hook context, Teamwork inbox messages, and `trellis mem` recall are loaded.
58
58
  - `references/customize-local/change-hooks.md`: Change platform hooks, settings, task lifecycle hooks (`hooks.after_*`), and shell session bridges.
59
- - `references/customize-local/change-agents.md`: Change research, implement, and check agent behavior across platform sub-agents, the Teamwork teammate role card, and the Codex `dispatch_mode` toggle.
59
+ - `references/customize-local/change-agents.md`: Change Teamwork read-only profiles and Paseo implementation node methods.
60
60
  - `references/customize-local/change-skills-or-commands.md`: Add or modify local skills, commands, prompts, and workflows; covers upstream bundled-skill auto-dispatch.
61
61
  - `references/customize-local/change-spec-structure.md`: Adjust the project spec structure under `.trellis/spec/`, including registry-backed sources.
62
62
  - `references/customize-local/add-project-local-conventions.md`: Put team rules into project-local specs or local skills.
@@ -64,11 +64,11 @@ Do not assume the user has the Trellis source repository. Do not default to modi
64
64
  ## Current Rules
65
65
 
66
66
  - `.trellis/workflow.md` is the local workflow source of truth. By default, `trellis init` writes the bundled `native` workflow; a custom workflow is available only when its source is explicitly supplied, and can be re-selected via `trellis workflow --template <id> --workflow-source <source>`. Missing `.trellis/agents/<name>.md` files referenced by the active template trigger a non-blocking stderr warning pointing at `trellis update`.
67
- - `.trellis/config.yaml` is the project-level Trellis configuration entry point. It hosts task lifecycle hooks (`hooks.after_create` / `after_start` / `after_finish`), journal shape (`session_commit_message` / `max_journal_lines` / `session_auto_commit`), Teamwork teammate guard (`teamwork.teammate_guard.idle_timeout` / `max_live_teammates`), Codex dispatch mode (`codex.dispatch_mode: inline | sub-agent`), and the spec registry block (`registry.spec.source` + `registry.spec.template`).
67
+ - `.trellis/config.yaml` is the project-level Trellis configuration entry point. It hosts task lifecycle hooks (`hooks.after_create` / `after_start` / `after_finish`), journal shape (`session_commit_message` / `max_journal_lines` / `session_auto_commit`), Teamwork teammate guard (`teamwork.teammate_guard.idle_timeout` / `max_live_teammates`), the spec registry block (`registry.spec.source` + `registry.spec.template`).
68
68
  - `.trellis/spec/` stores the user's project-specific coding conventions and design constraints. When `registry.spec` is set, files are refreshed by `trellis update`; local edits surface as `modified by user` conflicts in `.trellis/.template-hashes.json`.
69
69
  - `.trellis/tasks/` stores task records, planning artifacts, research, and JSONL context. Tasks follow their status directory: planning, in_progress, completed/YYYY-MM, or cancelled. Native relocation preserves identity and history and updates machine references transactionally. Tasks form parent/child trees through `task.py create --parent`, `add-subtask`, `remove-subtask`, and `list-context`.
70
70
  - `.trellis/workspace/` stores **deliberately written** developer journals. Raw cross-session dialogue is **not** stored here — it lives on disk under `~/.claude/projects/`, `~/.codex/sessions/`, and `~/.pi/agent/sessions/` and is recovered via `trellis mem search|extract|context`. The bundled `trellis-session-insight` skill teaches when to reach for `mem`.
71
- - `.trellis/agents/teammate.md` is the bundled, platform-agnostic instruction card loaded for a teammate by `trellis teamwork spawn --agent teammate`. Editable; `trellis update` backfills it if missing. Editing the per-platform `trellis-implement.md` / `trellis-check.md` does **not** change Teamwork teammate behavior.
71
+ - `.trellis/agents/teammate.md` is the bundled, platform-agnostic instruction card loaded for a teammate by `trellis teamwork spawn --agent teammate`. Editable; `trellis update` backfills it if missing.
72
72
  - `~/.trellis/teamwork/<project>/<session>/events.jsonl` is the Teamwork Session event log. User-owned, file-locked sequence numbering, durable `idempotencyKey` support; never under `.trellis/`.
73
73
  - Directories under `packages/cli/src/templates/common/bundled-skills/` are auto-dispatched to platform skill roots by `getBundledSkillTemplates()` in `packages/cli/src/templates/common/index.ts`. Adding a directory there is enough for the shared loader to include it on the next `trellis init` or `trellis update`.
74
74
  - Platform settings/config files decide which hooks, agents, skills, commands, prompts, and workflows actually run. Reasonix has no settings file — behavior is encoded inside skill frontmatter.
@@ -81,5 +81,5 @@ Do not assume the user has the Trellis source repository. Do not default to modi
81
81
  - Do not overwrite user-modified local files with default templates; check `.trellis/.template-hashes.json` first and prefer `.new` sidecar files over destructive overwrites.
82
82
  - Do not put team-private project rules into a public bundled skill; put project rules in `.trellis/spec/`, a project-local skill, the current task, or the workspace journal — `trellis update` will overwrite anything inside a bundled skill directory.
83
83
  - Do not hand-edit `~/.trellis/teamwork/<project>/<session>/events.jsonl`; sequence numbers are assigned under a file lock and replay-safe writes go through the `trellis teamwork` CLI or the `@pennixrv/trellis-core/teamwork` SDK.
84
- - Do not edit `.claude/agents/trellis-implement.md` (or any other per-platform sub-agent file) when the goal is to change Teamwork teammate behavior — edit `.trellis/agents/teammate.md` instead.
84
+ - Teamwork behavior belongs in `.trellis/agents/teammate.md` and profiles; Paseo implementation behavior belongs in its node methods. The main session owns task decisions and integration.
85
85
  - Do not describe removed or never-shipped mechanisms as current Trellis behavior; cross-check against the local `.trellis/config.yaml` and the installed CLI's `trellis --help` before claiming a knob exists.
@@ -1,56 +1,14 @@
1
- # Change Local Agents
1
+ # 调整项目协作角色
2
2
 
3
- When the user wants to change `trellis-research`, `trellis-implement`, or `trellis-check` behavior, edit platform agent files in the user project.
3
+ 主会话负责需求、决策、授权、集成和结果接受。协作只有两类,各自由原生 owner 管理:
4
4
 
5
- ## Read These Files First
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
- 1. Target platform agent directory
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
- ## Common Paths
12
+ 工程规范写入 `.trellis/spec/`;可复用方法写入 Skills。可选 JSONL 只是上下文清单,存在清单不授权协作。禁止通过宿主角色文件、裸 CLI 进程或历史启动记录另建派发路线。
14
13
 
15
- | Platform | Path |
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
- | Agent did not read specs | Task JSONL, agent prelude, `inject-subagent-context` hook. |
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
- ## Change Sub-Agent Context
59
+ ## 调整协作上下文
60
60
 
61
- First determine which mode the platform uses:
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
 
@@ -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
- If the task and JSONL are correct, determine whether the platform uses hook push or agent pull. For hook push, edit `inject-subagent-context`; for agent pull, edit the agent file.
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
- ## sub-agent context
33
+ ## 任务与协作上下文
34
34
 
35
- Implement and check agents need task context. Trellis has two loading modes:
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
- | Change how sub-agents read context | Platform agent definitions, the `inject-subagent-context` hook, or agent preludes. |
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 sub-agents can see the correct task artifacts/spec/research.
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 sub-agent context. |
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
- | agents | `.claude/agents/`, `.codex/agents/`, `.kiro/agents/`, `.zcode/agents/` | Define agents such as `trellis-research`, `trellis-implement`, and `trellis-check`. |
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
 
@@ -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 sub-agent context loading, read `context-injection.md`.
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
- Sub-agents or platform preludes read these JSONL files and load the referenced specs. On platforms without sub-agent support, the AI should read the relevant specs directly according to the workflow.
75
+ 主会话按工作流读取适用规范;可选 JSONL 提供上下文引用,Teamwork 也可通过原生显式输入消费。清单不决定执行者或授权。
76
76
 
77
77
  ## What Specs Should Contain
78
78
 
@@ -1,84 +1,14 @@
1
- # Agents
1
+ # 协作角色
2
2
 
3
- Trellis agent files define specialized roles. Common Trellis agents in a user project are:
3
+ 主会话负责需求、决策、授权、集成和结果接受。协作只有两类,各自由原生 owner 管理:
4
4
 
5
- - `trellis-research`
6
- - `trellis-implement`
7
- - `trellis-check`
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
- File locations and formats differ by platform, but responsibility boundaries should stay consistent.
10
+ 修改前读取当前任务合同、目标角色文件和对应 Skill 的原生说明。角色卡描述职责、输入、写入边界和报告格式;任务状态、接受与授权仍由 Task CLI 管理。节点收到明确工作包后执行,遇到缺失输入或权限冲突向主会话报告,由主会话处理用户决策。
10
11
 
11
- ## Agent Responsibilities
12
+ 工程规范写入 `.trellis/spec/`;可复用方法写入 Skills。可选 JSONL 只是上下文清单,存在清单不授权协作。禁止通过宿主角色文件、裸 CLI 进程或历史启动记录另建派发路线。
12
13
 
13
- | Agent | Responsibility |
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 is a pull-based platform whose agent files contain prelude instructions to read context after startup. ZCode uses `.zcode/config.json` with shared hooks, including PreToolUse for sub-agent prompt injection. Kimi Code is likewise pull-based and has no project-level settings/hooks file Trellis writes (hooks live only in the user-level `~/.kimi-code/config.toml`), so its agent prompts ship as skills with the same prelude. DeepSeek Harness also has no project-level hook/settings surface Trellis writes; the optional `dsh-trellis` profile plugin supplies per-turn breadcrumbs and event-driven `trellis_wait`, while DSH role skills pull task context in both plugin and no-plugin paths.
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
- | Sub-agent cannot read PRD/spec | `inject-subagent-context` hook or agent prelude. |
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
 
@@ -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
- | agents | `.claude/agents/`, `.codex/agents/`, `.kiro/agents/`, `.zcode/agents/` | Define `trellis-research`, `trellis-implement`, and `trellis-check`. |
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
- Some platforms cannot reliably let hooks rewrite sub-agent prompts, so the agent file itself instructs the agent to read the active task, PRD, and JSONL context after startup.
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
- Some platforms do not have Trellis sub-agent or hook capabilities. They rely on workflows/skills/commands to guide the main-session AI to read files, run scripts, and move tasks forward.
42
+ 没有启动 Hook 的平台通过 workflow、Skills 和命令引导主会话读取文件、运行脚本并推进任务。
46
43
 
47
44
  To change behavior, inspect platform workflows/skills/commands and `.trellis/workflow.md`.
48
45
 
@@ -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 | Agent directory | Hooks/extensions |
8
- | --- | --- | --- | --- | --- | --- |
9
- | Claude Code | `--claude` | `.claude/` | `.claude/skills/` | `.claude/agents/` | `.claude/hooks/` + `.claude/settings.json` |
10
- | Cursor | `--cursor` | `.cursor/` | `.cursor/skills/` | `.cursor/agents/` | `.cursor/hooks.json` + `.cursor/hooks/` |
11
- | OpenCode | `--opencode` | `.opencode/` | `.opencode/skills/` | `.opencode/agents/` | `.opencode/plugins/` |
12
- | Codex | `--codex` | `.codex/` | `.agents/skills/` | `.codex/agents/` | `.codex/hooks/` + `.codex/hooks.json` |
13
- | Kilo | `--kilo` | `.kilocode/` | `.kilocode/skills/` | Usually none | `.kilocode/workflows/` |
14
- | Kiro | `--kiro` | `.kiro/` | `.kiro/skills/` | `.kiro/agents/` | `.kiro/hooks/` |
15
- | Gemini CLI | `--gemini` | `.gemini/` | `.agents/skills/` | `.gemini/agents/` | `.gemini/settings.json` + `.gemini/hooks/` |
16
- | Antigravity | `--antigravity` | `.agent/` | `.agent/skills/` | Usually none | `.agent/workflows/` |
17
- | Devin | `--devin` | `.devin/` | `.devin/skills/` | Usually none | `.devin/workflows/` |
18
- | Qoder | `--qoder` | `.qoder/` | `.qoder/skills/` | `.qoder/agents/` | `.qoder/hooks/` + `.qoder/settings.json` |
19
- | CodeBuddy | `--codebuddy` | `.codebuddy/` | `.codebuddy/skills/` | `.codebuddy/agents/` | `.codebuddy/hooks/` + `.codebuddy/settings.json` |
20
- | GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/agents/` | `.github/copilot/hooks/` + prompts |
21
- | Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/droids/` | `.factory/hooks/` + settings |
22
- | Pi Agent | `--pi` | `.pi/` | `.agents/skills/` | `.pi/agents/` | `.pi/extensions/trellis/` (native `trellis_subagent` tool) + `.pi/settings.json` |
23
- | Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/agents/` | `.trae/hooks/` + `.trae/hooks.json` |
24
- | Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None — sub-agents are skills with `runAs: subagent` frontmatter | None |
25
- | ZCode | `--zcode` | `.zcode/` | `.zcode/skills/` | `.zcode/agents/` | `.zcode/hooks/` + `.zcode/config.json` (SessionStart + UserPromptSubmit + PreToolUse Agent/Task); sub-agents use hook-injected context |
26
- | Grok Build | `--grok` | `.grok/` | `.grok/skills/` | `.grok/agents/` | pull-based prelude (no hooks; flat `.grok/commands/trellis-*.md`) |
27
- | Kimi Code | `--kimi` | `.kimi-code/` | `.agents/skills/` (shared) + `.kimi-code/skills/` | None — agent prompts are skills under `.kimi-code/skills/` and dispatch to the built-in `coder` | None (pull-based prelude; no project hooks/settings) |
28
- | Snow CLI | `--snow` | `.snow/` | `.snow/skills/` | `.snow/agents/` (auto-discovered; primary path) | class-1: auto inject + project agents + `beforeSubAgentStart` (`.snow/hooks/` `session`/`user`/`subagent` modes -> `additionalContext` JSON); no legacy sub-agent JSON; commands `.snow/commands/trellis-*.json` |
29
- | DeepSeek Harness | `--dsh` | `.dsh/` | `.agents/skills/` (shared) + `.dsh/skills/` | None — role prompts are collision-free `trellis-agent-*` skills under `.dsh/skills/` | None installed by Trellis (pull-based roles; optional `dsh-trellis` adds event-driven wait, otherwise foreground dispatch) |
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
- These platforms usually have `trellis-research`, `trellis-implement`, and `trellis-check` files:
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 sub-agent/hook exists. |
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
- - You are in a sub-agent (`trellis-implement` / `trellis-check`) whose dispatch prompt already includes the curated `implement.jsonl` / `check.jsonl` context. Adding `mem` on top usually just clutters.
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
@@ -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 ``inject-subagent-context.py``.
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():