@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.
Files changed (307) 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/teamwork/batch-reservation.d.ts.map +1 -1
  5. package/dist/commands/teamwork/batch-reservation.js +16 -8
  6. package/dist/commands/teamwork/batch-reservation.js.map +1 -1
  7. package/dist/commands/teamwork/batch.d.ts +1 -0
  8. package/dist/commands/teamwork/batch.d.ts.map +1 -1
  9. package/dist/commands/teamwork/batch.js +112 -1
  10. package/dist/commands/teamwork/batch.js.map +1 -1
  11. package/dist/commands/teamwork/coordinator.d.ts +3 -0
  12. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  13. package/dist/commands/teamwork/coordinator.js +21 -3
  14. package/dist/commands/teamwork/coordinator.js.map +1 -1
  15. package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
  16. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
  17. package/dist/commands/teamwork/foreground-wait.js +8 -1
  18. package/dist/commands/teamwork/foreground-wait.js.map +1 -1
  19. package/dist/commands/teamwork/index.d.ts.map +1 -1
  20. package/dist/commands/teamwork/index.js +1 -0
  21. package/dist/commands/teamwork/index.js.map +1 -1
  22. package/dist/commands/update.d.ts.map +1 -1
  23. package/dist/commands/update.js +23 -10
  24. package/dist/commands/update.js.map +1 -1
  25. package/dist/commands/workflow.d.ts.map +1 -1
  26. package/dist/commands/workflow.js +5 -7
  27. package/dist/commands/workflow.js.map +1 -1
  28. package/dist/configurators/codebuddy.d.ts +1 -8
  29. package/dist/configurators/codebuddy.d.ts.map +1 -1
  30. package/dist/configurators/codebuddy.js +2 -12
  31. package/dist/configurators/codebuddy.js.map +1 -1
  32. package/dist/configurators/codex.d.ts +0 -36
  33. package/dist/configurators/codex.d.ts.map +1 -1
  34. package/dist/configurators/codex.js +2 -99
  35. package/dist/configurators/codex.js.map +1 -1
  36. package/dist/configurators/copilot.d.ts +1 -12
  37. package/dist/configurators/copilot.d.ts.map +1 -1
  38. package/dist/configurators/copilot.js +2 -20
  39. package/dist/configurators/copilot.js.map +1 -1
  40. package/dist/configurators/cursor.d.ts +1 -8
  41. package/dist/configurators/cursor.d.ts.map +1 -1
  42. package/dist/configurators/cursor.js +2 -12
  43. package/dist/configurators/cursor.js.map +1 -1
  44. package/dist/configurators/droid.d.ts +1 -8
  45. package/dist/configurators/droid.d.ts.map +1 -1
  46. package/dist/configurators/droid.js +2 -12
  47. package/dist/configurators/droid.js.map +1 -1
  48. package/dist/configurators/dsh.d.ts +1 -21
  49. package/dist/configurators/dsh.d.ts.map +1 -1
  50. package/dist/configurators/dsh.js +4 -37
  51. package/dist/configurators/dsh.js.map +1 -1
  52. package/dist/configurators/gemini.d.ts +1 -16
  53. package/dist/configurators/gemini.d.ts.map +1 -1
  54. package/dist/configurators/gemini.js +3 -21
  55. package/dist/configurators/gemini.js.map +1 -1
  56. package/dist/configurators/grok.d.ts +1 -12
  57. package/dist/configurators/grok.d.ts.map +1 -1
  58. package/dist/configurators/grok.js +2 -18
  59. package/dist/configurators/grok.js.map +1 -1
  60. package/dist/configurators/kimi.d.ts +1 -21
  61. package/dist/configurators/kimi.d.ts.map +1 -1
  62. package/dist/configurators/kimi.js +2 -38
  63. package/dist/configurators/kimi.js.map +1 -1
  64. package/dist/configurators/kiro.d.ts +1 -9
  65. package/dist/configurators/kiro.d.ts.map +1 -1
  66. package/dist/configurators/kiro.js +1 -9
  67. package/dist/configurators/kiro.js.map +1 -1
  68. package/dist/configurators/omp.d.ts.map +1 -1
  69. package/dist/configurators/omp.js +1 -5
  70. package/dist/configurators/omp.js.map +1 -1
  71. package/dist/configurators/pi.d.ts.map +1 -1
  72. package/dist/configurators/pi.js +2 -5
  73. package/dist/configurators/pi.js.map +1 -1
  74. package/dist/configurators/qoder.d.ts +1 -10
  75. package/dist/configurators/qoder.d.ts.map +1 -1
  76. package/dist/configurators/qoder.js +3 -15
  77. package/dist/configurators/qoder.js.map +1 -1
  78. package/dist/configurators/reasonix.d.ts +1 -12
  79. package/dist/configurators/reasonix.d.ts.map +1 -1
  80. package/dist/configurators/reasonix.js +3 -22
  81. package/dist/configurators/reasonix.js.map +1 -1
  82. package/dist/configurators/shared.d.ts +1 -24
  83. package/dist/configurators/shared.d.ts.map +1 -1
  84. package/dist/configurators/shared.js +5 -184
  85. package/dist/configurators/shared.js.map +1 -1
  86. package/dist/configurators/snow.d.ts +1 -20
  87. package/dist/configurators/snow.d.ts.map +1 -1
  88. package/dist/configurators/snow.js +2 -25
  89. package/dist/configurators/snow.js.map +1 -1
  90. package/dist/configurators/trae.d.ts +1 -14
  91. package/dist/configurators/trae.d.ts.map +1 -1
  92. package/dist/configurators/trae.js +3 -19
  93. package/dist/configurators/trae.js.map +1 -1
  94. package/dist/configurators/zcode.d.ts +1 -13
  95. package/dist/configurators/zcode.d.ts.map +1 -1
  96. package/dist/configurators/zcode.js +2 -18
  97. package/dist/configurators/zcode.js.map +1 -1
  98. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  99. package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
  100. package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
  101. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  102. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  103. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  104. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  105. package/dist/migrations/retired-native-paths.d.ts +109 -0
  106. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  107. package/dist/migrations/retired-native-paths.js +263 -0
  108. package/dist/migrations/retired-native-paths.js.map +1 -0
  109. package/dist/templates/claude/index.d.ts +1 -16
  110. package/dist/templates/claude/index.d.ts.map +1 -1
  111. package/dist/templates/claude/index.js +5 -32
  112. package/dist/templates/claude/index.js.map +1 -1
  113. package/dist/templates/claude/settings.json +0 -22
  114. package/dist/templates/codebuddy/index.d.ts +2 -3
  115. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  116. package/dist/templates/codebuddy/index.js +2 -3
  117. package/dist/templates/codebuddy/index.js.map +1 -1
  118. package/dist/templates/codebuddy/settings.json +0 -10
  119. package/dist/templates/codex/config.toml +2 -19
  120. package/dist/templates/codex/hooks/session-start.py +1 -1
  121. package/dist/templates/codex/hooks.json +0 -12
  122. package/dist/templates/codex/index.d.ts +0 -5
  123. package/dist/templates/codex/index.d.ts.map +1 -1
  124. package/dist/templates/codex/index.js +0 -13
  125. package/dist/templates/codex/index.js.map +1 -1
  126. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  127. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  128. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  129. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  130. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  131. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  132. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  133. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  134. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  135. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  136. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  137. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  138. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  139. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  140. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +1 -1
  141. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
  142. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +7 -0
  143. package/dist/templates/copilot/hooks/session-start.py +1 -1
  144. package/dist/templates/cursor/hooks.json +0 -7
  145. package/dist/templates/cursor/index.d.ts +1 -11
  146. package/dist/templates/cursor/index.d.ts.map +1 -1
  147. package/dist/templates/cursor/index.js +2 -10
  148. package/dist/templates/cursor/index.js.map +1 -1
  149. package/dist/templates/droid/index.d.ts +2 -3
  150. package/dist/templates/droid/index.d.ts.map +1 -1
  151. package/dist/templates/droid/index.js +2 -3
  152. package/dist/templates/droid/index.js.map +1 -1
  153. package/dist/templates/droid/settings.json +0 -10
  154. package/dist/templates/dsh/DSH.md +2 -33
  155. package/dist/templates/dsh/index.d.ts +1 -19
  156. package/dist/templates/dsh/index.d.ts.map +1 -1
  157. package/dist/templates/dsh/index.js +2 -21
  158. package/dist/templates/dsh/index.js.map +1 -1
  159. package/dist/templates/gemini/index.d.ts +1 -11
  160. package/dist/templates/gemini/index.d.ts.map +1 -1
  161. package/dist/templates/gemini/index.js +2 -10
  162. package/dist/templates/gemini/index.js.map +1 -1
  163. package/dist/templates/kiro/index.d.ts +1 -13
  164. package/dist/templates/kiro/index.d.ts.map +1 -1
  165. package/dist/templates/kiro/index.js +1 -13
  166. package/dist/templates/kiro/index.js.map +1 -1
  167. package/dist/templates/markdown/agents.md +6 -3
  168. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  169. package/dist/templates/omp/index.d.ts +0 -2
  170. package/dist/templates/omp/index.d.ts.map +1 -1
  171. package/dist/templates/omp/index.js +1 -4
  172. package/dist/templates/omp/index.js.map +1 -1
  173. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  174. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  175. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  176. package/dist/templates/opencode/plugins/session-start.js +2 -6
  177. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  178. package/dist/templates/pi/index.d.ts +1 -2
  179. package/dist/templates/pi/index.d.ts.map +1 -1
  180. package/dist/templates/pi/index.js +2 -5
  181. package/dist/templates/pi/index.js.map +1 -1
  182. package/dist/templates/qoder/index.d.ts +2 -3
  183. package/dist/templates/qoder/index.d.ts.map +1 -1
  184. package/dist/templates/qoder/index.js +2 -3
  185. package/dist/templates/qoder/index.js.map +1 -1
  186. package/dist/templates/shared-hooks/guard-teamwork-wait.py +110 -12
  187. package/dist/templates/shared-hooks/index.d.ts +2 -56
  188. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  189. package/dist/templates/shared-hooks/index.js +3 -70
  190. package/dist/templates/shared-hooks/index.js.map +1 -1
  191. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  192. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  193. package/dist/templates/shared-hooks/session-start.py +1 -1
  194. package/dist/templates/snow/SNOW.md +6 -18
  195. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  196. package/dist/templates/snow/index.d.ts +2 -21
  197. package/dist/templates/snow/index.d.ts.map +1 -1
  198. package/dist/templates/snow/index.js +3 -24
  199. package/dist/templates/snow/index.js.map +1 -1
  200. package/dist/templates/template-utils.d.ts +1 -2
  201. package/dist/templates/template-utils.d.ts.map +1 -1
  202. package/dist/templates/template-utils.js +1 -11
  203. package/dist/templates/template-utils.js.map +1 -1
  204. package/dist/templates/trae/index.d.ts +2 -3
  205. package/dist/templates/trae/index.d.ts.map +1 -1
  206. package/dist/templates/trae/index.js +2 -3
  207. package/dist/templates/trae/index.js.map +1 -1
  208. package/dist/templates/trellis/config.yaml +7 -36
  209. package/dist/templates/trellis/scripts/common/config.py +1 -36
  210. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  211. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  212. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  213. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  214. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  215. package/dist/templates/trellis/scripts/task.py +2 -2
  216. package/dist/templates/trellis/workflow.md +1 -7
  217. package/dist/templates/zcode/config.json +0 -10
  218. package/dist/templates/zcode/index.d.ts +3 -22
  219. package/dist/templates/zcode/index.d.ts.map +1 -1
  220. package/dist/templates/zcode/index.js +3 -24
  221. package/dist/templates/zcode/index.js.map +1 -1
  222. package/dist/types/ai-tools.d.ts +0 -4
  223. package/dist/types/ai-tools.d.ts.map +1 -1
  224. package/dist/types/ai-tools.js +4 -109
  225. package/dist/types/ai-tools.js.map +1 -1
  226. package/dist/utils/ablation-store.d.ts.map +1 -1
  227. package/dist/utils/ablation-store.js +24 -0
  228. package/dist/utils/ablation-store.js.map +1 -1
  229. package/dist/utils/asset-backup.d.ts.map +1 -1
  230. package/dist/utils/asset-backup.js +3 -0
  231. package/dist/utils/asset-backup.js.map +1 -1
  232. package/dist/utils/retired-native-assets.d.ts +16 -0
  233. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  234. package/dist/utils/retired-native-assets.js +234 -0
  235. package/dist/utils/retired-native-assets.js.map +1 -0
  236. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  237. package/dist/utils/uninstall-scrubbers.js +1 -1
  238. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  239. package/package.json +2 -2
  240. package/dist/templates/claude/agents/trellis-check.md +0 -115
  241. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  242. package/dist/templates/claude/agents/trellis-research.md +0 -137
  243. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  244. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  245. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  246. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  247. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  248. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  249. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  250. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  251. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  252. package/dist/templates/droid/droids/trellis-check.md +0 -107
  253. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  254. package/dist/templates/droid/droids/trellis-research.md +0 -137
  255. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  256. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  257. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  258. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  259. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  260. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  261. package/dist/templates/grok/agents/trellis-check.md +0 -105
  262. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  263. package/dist/templates/grok/agents/trellis-research.md +0 -146
  264. package/dist/templates/grok/index.d.ts +0 -16
  265. package/dist/templates/grok/index.d.ts.map +0 -1
  266. package/dist/templates/grok/index.js +0 -19
  267. package/dist/templates/grok/index.js.map +0 -1
  268. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  269. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  270. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  271. package/dist/templates/kimi/index.d.ts +0 -20
  272. package/dist/templates/kimi/index.d.ts.map +0 -1
  273. package/dist/templates/kimi/index.js +0 -23
  274. package/dist/templates/kimi/index.js.map +0 -1
  275. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  276. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  277. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  278. package/dist/templates/omp/agents/trellis-check.md +0 -41
  279. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  280. package/dist/templates/omp/agents/trellis-research.md +0 -30
  281. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  282. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  283. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  284. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  285. package/dist/templates/pi/agents/trellis-check.md +0 -37
  286. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  287. package/dist/templates/pi/agents/trellis-research.md +0 -25
  288. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  289. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  290. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  291. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  292. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  293. package/dist/templates/reasonix/index.d.ts +0 -13
  294. package/dist/templates/reasonix/index.d.ts.map +0 -1
  295. package/dist/templates/reasonix/index.js +0 -16
  296. package/dist/templates/reasonix/index.js.map +0 -1
  297. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  298. package/dist/templates/snow/agents/trellis-check.md +0 -135
  299. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  300. package/dist/templates/snow/agents/trellis-research.md +0 -114
  301. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  302. package/dist/templates/trae/agents/trellis-check.md +0 -108
  303. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  304. package/dist/templates/trae/agents/trellis-research.md +0 -137
  305. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  306. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  307. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1,118 +0,0 @@
1
- ---
2
- description: |
3
- Code implementation expert. Understands specs and requirements, then implements features. No git commit allowed.
4
- mode: subagent
5
- permission:
6
- read: allow
7
- write: allow
8
- edit: allow
9
- bash: allow
10
- glob: allow
11
- grep: allow
12
- mcp__exa__*: allow
13
- ---
14
- # Implement Agent
15
-
16
- You are the Implement Agent in the Trellis workflow.
17
-
18
- ## Recursion Guard
19
-
20
- You are already the `trellis-implement` sub-agent that the main session dispatched. Do the implementation work directly.
21
-
22
- - Do NOT spawn another `trellis-implement` or `trellis-check` sub-agent.
23
- - If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `trellis-implement` / `trellis-check`, treat that as a main-session instruction that is already satisfied by your current role.
24
- - Only the main session may dispatch Trellis implement/check agents. If more parallel work is needed, report that recommendation instead of spawning.
25
-
26
- ## Trellis Context Loading Protocol
27
-
28
- Look for the `<!-- trellis-hook-injected -->` marker in your input above.
29
-
30
- - **If the marker is present**: task artifacts, spec, and research files have already been auto-loaded for you above. Proceed with the implementation work directly.
31
- - **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>` (or run `python3 ./.trellis/scripts/task.py current --source` as a fallback), then Read `<task-path>/implement.jsonl`, each listed file, `<task-path>/prd.md`, `<task-path>/design.md` if present, and `<task-path>/implement.md` if present before doing the work.
32
-
33
- ## Context
34
-
35
- Before implementing, read:
36
- - `.trellis/workflow.md` - Project workflow
37
- - `.trellis/spec/` - Development guidelines
38
- - Task `prd.md` - Requirements document
39
- - Task `design.md` - Technical design (if exists)
40
- - Task `implement.md` - Execution plan (if exists)
41
-
42
- ## Core Responsibilities
43
-
44
- 1. **Understand specs** - Read relevant spec files in `.trellis/spec/`
45
- 2. **Understand task artifacts** - Read prd.md, design.md if present, and implement.md if present
46
- 3. **Implement features** - Write code following specs and task artifacts
47
- 4. **Self-check** - Ensure code quality
48
- 5. **Report results** - Report completion status
49
-
50
- ## Forbidden Operations
51
-
52
- **Do NOT execute these git commands:**
53
-
54
- - `git commit`
55
- - `git push`
56
- - `git merge`
57
-
58
- ---
59
-
60
- ## Workflow
61
-
62
- ### 1. Understand Specs
63
-
64
- Read relevant specs based on task type:
65
-
66
- - Read available spec indexes: `.trellis/spec/index.md`, `.trellis/spec/<package>/index.md`, and existing `.trellis/spec/<package>/<layer>/index.md` (legacy single-repo layers remain valid).
67
- - Shared guides: `.trellis/spec/guides/`
68
- - Guides: `.trellis/spec/guides/`
69
-
70
- ### 2. Understand Requirements
71
-
72
- Read the task's prd.md, design.md if present, and implement.md if present:
73
-
74
- - What are the core requirements
75
- - Key points of technical design
76
- - Implementation order, validation commands, and rollback points
77
-
78
- ### 3. Implement Features
79
-
80
- - Write code following specs and task artifacts
81
- - Follow existing code patterns
82
- - Only do what's required, no over-engineering
83
-
84
- ### 4. Verify
85
-
86
- Run project's lint and typecheck commands to verify changes.
87
-
88
- ---
89
-
90
- ## Report Format
91
-
92
- ```markdown
93
- ## Implementation Complete
94
-
95
- ### Files Modified
96
-
97
- - `src/components/Feature.tsx` - New component
98
- - `src/hooks/useFeature.ts` - New hook
99
-
100
- ### Implementation Summary
101
-
102
- 1. Created Feature component...
103
- 2. Added useFeature hook...
104
-
105
- ### Verification Results
106
-
107
- - Lint: Passed
108
- - TypeCheck: Passed
109
- ```
110
-
111
- ---
112
-
113
- ## Code Standards
114
-
115
- - Follow existing code patterns
116
- - Don't add unnecessary abstractions
117
- - Only do what's required, no over-engineering
118
- - Keep code readable
@@ -1,145 +0,0 @@
1
- ---
2
- description: |
3
- Code and tech search expert. Finds files, patterns, and tech solutions, and PERSISTS every finding to the current task's research/ directory. No code modifications outside that directory.
4
- mode: subagent
5
- permission:
6
- read: allow
7
- write: allow
8
- edit: allow
9
- bash: allow
10
- glob: allow
11
- grep: allow
12
- mcp__exa__*: allow
13
- mcp__chrome-devtools__*: allow
14
- ---
15
- # Research Agent
16
-
17
- You are the Research Agent in the Trellis workflow.
18
-
19
- ## Core Principle
20
-
21
- **You do one thing: find, explain, and PERSIST information.**
22
-
23
- Conversations get compacted; files don't. Every research output MUST end up as a file under `{TASK_DIR}/research/`. Returning findings only through the chat reply is a failure — the caller cannot read them next session.
24
-
25
- ---
26
-
27
- ## Core Responsibilities
28
-
29
- 1. **Internal Search** — locate files/components, understand code logic, discover patterns (Glob, Grep, Read)
30
- 2. **External Search** — library docs, API references, best practices (web search)
31
- 3. **Persist** — write each research topic to `{TASK_DIR}/research/<topic>.md`
32
- 4. **Report** — return file paths + one-line summaries to the main agent (not full content)
33
-
34
- ---
35
-
36
- ## Workflow
37
-
38
- ### Step 1: Resolve Current Task
39
-
40
- Run `python3 ./.trellis/scripts/task.py current --source` → active task path. If no active task is set, ask the user where to write output; do NOT guess.
41
-
42
- Ensure `{TASK_DIR}/research/` exists:
43
-
44
- ```bash
45
- mkdir -p <TASK_DIR>/research
46
- ```
47
-
48
- ### Step 2: Understand Search Request
49
-
50
- Classify: internal / external / mixed. Determine scope (global / specific directory) and expected shape (file list / pattern notes / tech comparison).
51
-
52
- ### Step 3: Execute Search
53
-
54
- Run independent searches in parallel (Glob + Grep + web) for efficiency.
55
-
56
- ### Step 4: Persist Each Topic
57
-
58
- For each distinct research topic, Write a markdown file at `{TASK_DIR}/research/<topic-slug>.md`. Use the File Format below.
59
-
60
- ### Step 5: Report to Main Agent
61
-
62
- Reply with ONLY:
63
-
64
- - List of files written (paths relative to repo root)
65
- - One-line summary per file
66
- - Any critical caveats that the main agent needs to know right now
67
-
68
- Do NOT paste full research content into the reply. The files are the contract.
69
-
70
- ---
71
-
72
- ## Scope Limits (Strict)
73
-
74
- ### Write ALLOWED
75
-
76
- - `{TASK_DIR}/research/*.md` — your own output
77
- - Creating `{TASK_DIR}/research/` if it doesn't exist (via `mkdir -p`)
78
-
79
- ### Write FORBIDDEN
80
-
81
- - Code files (`src/`, `lib/`, …)
82
- - Spec files (`.trellis/spec/`) — main agent should use `update-spec` skill instead
83
- - `.trellis/scripts/`, `.trellis/workflow.md`, platform config (`.claude/`, `.cursor/`, `.opencode/`, etc.)
84
- - Other task directories
85
- - Any git operation (commit / push / branch / merge)
86
-
87
- If the user asks you to edit code, decline and suggest spawning `implement` instead.
88
-
89
- ---
90
-
91
- ## File Format
92
-
93
- Each `{TASK_DIR}/research/<topic>.md` should follow:
94
-
95
- ```markdown
96
- # Research: <topic>
97
-
98
- - **Query**: <original query>
99
- - **Scope**: <internal / external / mixed>
100
- - **Date**: <YYYY-MM-DD>
101
-
102
- ## Findings
103
-
104
- ### Files Found
105
-
106
- | File Path | Description |
107
- |---|---|
108
- | `src/services/xxx.ts` | Main implementation |
109
- | `src/types/xxx.ts` | Type definitions |
110
-
111
- ### Code Patterns
112
-
113
- <describe patterns, cite file:line>
114
-
115
- ### External References
116
-
117
- - [Library X docs](url) — <why relevant, version constraints>
118
-
119
- ### Related Specs
120
-
121
- - `.trellis/spec/xxx.md` — <description>
122
-
123
- ## Caveats / Not Found
124
-
125
- <anything incomplete or uncertain>
126
- ```
127
-
128
- ---
129
-
130
- ## Guidelines
131
-
132
- ### DO
133
-
134
- - Provide specific file paths and line numbers
135
- - Quote actual code snippets
136
- - Persist every topic to its own file
137
- - Return file paths in your reply, not the full content
138
- - Mark "not found" explicitly when searches come up empty
139
-
140
- ### DON'T
141
-
142
- - Don't write code or modify files outside `{TASK_DIR}/research/`
143
- - Don't guess uncertain info
144
- - Don't paste full research text into the reply (files are the deliverable)
145
- - Don't propose improvements or critique implementation (that's not your role)