@pennixrv/trellis 0.7.0-beta.8 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +14 -26
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.js +1 -1
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +30 -56
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/task-progress.d.ts +2 -0
- package/dist/commands/task-progress.d.ts.map +1 -1
- package/dist/commands/task-progress.js +37 -30
- package/dist/commands/task-progress.js.map +1 -1
- package/dist/commands/{channel → teamwork}/adapters/claude.d.ts +3 -3
- package/dist/commands/teamwork/adapters/claude.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/claude.js +3 -3
- package/dist/commands/teamwork/adapters/claude.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/codex.d.ts +1 -15
- package/dist/commands/teamwork/adapters/codex.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/codex.js +5 -42
- package/dist/commands/teamwork/adapters/codex.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/index.d.ts +6 -6
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/index.js +16 -52
- package/dist/commands/teamwork/adapters/index.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/types.d.ts +2 -2
- package/dist/commands/teamwork/adapters/types.d.ts.map +1 -0
- package/dist/commands/teamwork/adapters/types.js.map +1 -0
- package/dist/commands/{channel → teamwork}/agent-loader.d.ts +2 -4
- package/dist/commands/teamwork/agent-loader.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/agent-loader.js +4 -35
- package/dist/commands/teamwork/agent-loader.js.map +1 -0
- package/dist/commands/teamwork/artifact.d.ts +177 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -0
- package/dist/commands/teamwork/artifact.js +908 -0
- package/dist/commands/teamwork/artifact.js.map +1 -0
- package/dist/commands/{channel → teamwork}/context-loader.d.ts +1 -1
- package/dist/commands/teamwork/context-loader.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context-loader.js +12 -12
- package/dist/commands/teamwork/context-loader.js.map +1 -0
- package/dist/commands/{channel → teamwork}/context-trust.d.ts +6 -6
- package/dist/commands/teamwork/context-trust.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context-trust.js +16 -16
- package/dist/commands/teamwork/context-trust.js.map +1 -0
- package/dist/commands/teamwork/context.d.ts +16 -0
- package/dist/commands/teamwork/context.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context.js +17 -17
- package/dist/commands/teamwork/context.js.map +1 -0
- package/dist/commands/teamwork/coordinator.d.ts +89 -0
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -0
- package/dist/commands/teamwork/coordinator.js +1198 -0
- package/dist/commands/teamwork/coordinator.js.map +1 -0
- package/dist/commands/teamwork/create.d.ts +23 -0
- package/dist/commands/teamwork/create.d.ts.map +1 -0
- package/dist/commands/teamwork/create.js +39 -0
- package/dist/commands/teamwork/create.js.map +1 -0
- package/dist/commands/{channel → teamwork}/dev-parse-trace.d.ts +1 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/dev-parse-trace.js +1 -1
- package/dist/commands/teamwork/dev-parse-trace.js.map +1 -0
- package/dist/commands/{channel → teamwork}/guard.d.ts +27 -46
- package/dist/commands/teamwork/guard.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/guard.js +54 -156
- package/dist/commands/teamwork/guard.js.map +1 -0
- package/dist/commands/teamwork/index.d.ts +3 -0
- package/dist/commands/teamwork/index.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/index.js +135 -165
- package/dist/commands/teamwork/index.js.map +1 -0
- package/dist/commands/{channel → teamwork}/interrupt.d.ts +1 -1
- package/dist/commands/teamwork/interrupt.d.ts.map +1 -0
- package/dist/commands/teamwork/interrupt.js +22 -0
- package/dist/commands/teamwork/interrupt.js.map +1 -0
- package/dist/commands/teamwork/kill.d.ts +7 -0
- package/dist/commands/teamwork/kill.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/kill.js +21 -21
- package/dist/commands/teamwork/kill.js.map +1 -0
- package/dist/commands/teamwork/list.d.ts +17 -0
- package/dist/commands/teamwork/list.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/list.js +18 -27
- package/dist/commands/teamwork/list.js.map +1 -0
- package/dist/commands/{channel → teamwork}/messages.d.ts +1 -1
- package/dist/commands/teamwork/messages.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/messages.js +18 -18
- package/dist/commands/teamwork/messages.js.map +1 -0
- package/dist/commands/teamwork/profiles.d.ts +25 -0
- package/dist/commands/teamwork/profiles.d.ts.map +1 -0
- package/dist/commands/teamwork/profiles.js +125 -0
- package/dist/commands/teamwork/profiles.js.map +1 -0
- package/dist/commands/teamwork/rm.d.ts +27 -0
- package/dist/commands/teamwork/rm.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/rm.js +21 -22
- package/dist/commands/teamwork/rm.js.map +1 -0
- package/dist/commands/teamwork/run.d.ts +29 -0
- package/dist/commands/{channel → teamwork}/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +129 -0
- package/dist/commands/teamwork/run.js.map +1 -0
- package/dist/commands/{channel → teamwork}/send.d.ts +1 -1
- package/dist/commands/teamwork/send.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/send.js +7 -7
- package/dist/commands/teamwork/send.js.map +1 -0
- package/dist/commands/{channel → teamwork}/spawn.d.ts +8 -12
- package/dist/commands/teamwork/spawn.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/spawn.js +51 -112
- package/dist/commands/teamwork/spawn.js.map +1 -0
- package/dist/commands/teamwork/store/events.d.ts +22 -0
- package/dist/commands/teamwork/store/events.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/events.js +8 -8
- package/dist/commands/teamwork/store/events.js.map +1 -0
- package/dist/commands/teamwork/store/filter.d.ts +3 -0
- package/dist/commands/teamwork/store/filter.d.ts.map +1 -0
- package/dist/commands/teamwork/store/filter.js +2 -0
- package/dist/commands/teamwork/store/filter.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/lock.d.ts +1 -1
- package/dist/commands/teamwork/store/lock.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/lock.js +2 -2
- package/dist/commands/teamwork/store/lock.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/paths.d.ts +18 -32
- package/dist/commands/teamwork/store/paths.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/paths.js +42 -109
- package/dist/commands/teamwork/store/paths.js.map +1 -0
- package/dist/commands/teamwork/store/schema.d.ts +18 -0
- package/dist/commands/teamwork/store/schema.d.ts.map +1 -0
- package/dist/commands/teamwork/store/schema.js +23 -0
- package/dist/commands/teamwork/store/schema.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/thread-state.d.ts +3 -3
- package/dist/commands/teamwork/store/thread-state.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/thread-state.js +1 -1
- package/dist/commands/teamwork/store/thread-state.js.map +1 -0
- package/dist/commands/teamwork/store/watch.d.ts +19 -0
- package/dist/commands/teamwork/store/watch.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/watch.js +8 -8
- package/dist/commands/teamwork/store/watch.js.map +1 -0
- package/dist/commands/teamwork/supervisor/idle.d.ts.map +1 -0
- package/dist/commands/teamwork/supervisor/idle.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/inbox.d.ts +2 -2
- package/dist/commands/teamwork/supervisor/inbox.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/inbox.js +14 -14
- package/dist/commands/teamwork/supervisor/inbox.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/shutdown.d.ts +3 -6
- package/dist/commands/teamwork/supervisor/shutdown.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/shutdown.js +7 -17
- package/dist/commands/teamwork/supervisor/shutdown.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/stdout.d.ts +3 -5
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/stdout.js +12 -23
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -0
- package/dist/commands/teamwork/supervisor/turns.d.ts.map +1 -0
- package/dist/commands/teamwork/supervisor/turns.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/warning.d.ts +5 -5
- package/dist/commands/teamwork/supervisor/warning.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/warning.js +6 -6
- package/dist/commands/teamwork/supervisor/warning.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor.d.ts +21 -21
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor.js +53 -63
- package/dist/commands/teamwork/supervisor.js.map +1 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts +31 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-adapters.js +96 -0
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -0
- package/dist/commands/teamwork/teammate-config.d.ts +19 -0
- package/dist/commands/teamwork/teammate-config.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-config.js +97 -0
- package/dist/commands/teamwork/teammate-config.js.map +1 -0
- package/dist/commands/teamwork/teammate-launch.d.ts +58 -0
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-launch.js +125 -0
- package/dist/commands/teamwork/teammate-launch.js.map +1 -0
- package/dist/commands/teamwork/text-body.d.ts +13 -0
- package/dist/commands/teamwork/text-body.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/text-body.js +3 -3
- package/dist/commands/teamwork/text-body.js.map +1 -0
- package/dist/commands/teamwork/threads.d.ts +35 -0
- package/dist/commands/teamwork/threads.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/threads.js +19 -19
- package/dist/commands/teamwork/threads.js.map +1 -0
- package/dist/commands/teamwork/title.d.ts +12 -0
- package/dist/commands/teamwork/title.d.ts.map +1 -0
- package/dist/commands/teamwork/title.js +24 -0
- package/dist/commands/teamwork/title.js.map +1 -0
- package/dist/commands/{channel → teamwork}/wait.d.ts +1 -5
- package/dist/commands/teamwork/wait.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/wait.js +8 -21
- package/dist/commands/teamwork/wait.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +48 -89
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +9 -10
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/claude.d.ts +0 -17
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +2 -61
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +2 -2
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.js +1 -1
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/workflow.d.ts +1 -1
- package/dist/configurators/workflow.js +5 -5
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +1 -1
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +1 -1
- package/dist/constants/paths.js.map +1 -1
- package/dist/migrations/manifests/0.7.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.19.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.20.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.21.json +17 -0
- package/dist/migrations/manifests/0.7.0-beta.22.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.23.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.24.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.25.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.26.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.27.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.28.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.29.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.30.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.31.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.32.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.33.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.34.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.35.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.36.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.37.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.38.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.39.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.40.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.41.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.42.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.43.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.44.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.45.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.46.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.47.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.48.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.49.json +13 -0
- package/dist/migrations/manifests/0.7.0-beta.50.json +12 -0
- package/dist/migrations/manifests/0.7.0-beta.51.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.52.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.53.json +27 -0
- package/dist/migrations/manifests/0.7.0-beta.54.json +8 -0
- package/dist/migrations/manifests/0.7.0-beta.9.json +9 -0
- package/dist/migrations/manifests/0.7.1.json +9 -0
- package/dist/templates/claude/hooks/statusline.py +0 -7
- package/dist/templates/codex/hooks/session-start.py +31 -38
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +40 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +55 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +33 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +25 -25
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +13 -19
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-spec-structure.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +27 -75
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-workflow.md +17 -56
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +14 -11
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +0 -33
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +32 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +25 -111
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/workflow.md +19 -60
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +36 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +29 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +73 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md +29 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-configuration-matrix.md +31 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +37 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +78 -0
- package/dist/templates/common/commands/continue.md +9 -49
- package/dist/templates/common/commands/finish-work.md +10 -58
- package/dist/templates/common/commands/start.md +19 -49
- package/dist/templates/common/skills/brainstorm.md +11 -191
- package/dist/templates/copilot/hooks/session-start.py +30 -26
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +7 -150
- package/dist/templates/copilot/prompts/finish-work.prompt.md +11 -88
- package/dist/templates/copilot/prompts/record-session.prompt.md +4 -12
- package/dist/templates/copilot/prompts/start.prompt.md +12 -10
- package/dist/templates/dsh/DSH.md +2 -2
- package/dist/templates/kiro/agents/trellis.json +2 -2
- package/dist/templates/markdown/agents.md +14 -3
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +9 -8
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +1 -1
- package/dist/templates/markdown/workspace-index.md +0 -1
- package/dist/templates/omp/extensions/trellis/index.ts.txt +28 -17
- package/dist/templates/opencode/lib/session-utils.js +20 -25
- package/dist/templates/opencode/lib/trellis-context.js +4 -76
- package/dist/templates/opencode/plugins/inject-subagent-context.js +5 -4
- package/dist/templates/opencode/plugins/inject-workflow-state.js +14 -17
- package/dist/templates/shared-hooks/inject-shell-session-context.py +3 -3
- package/dist/templates/shared-hooks/inject-subagent-context.py +445 -67
- package/dist/templates/shared-hooks/inject-workflow-state.py +44 -36
- package/dist/templates/shared-hooks/session-start.py +21 -33
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +18 -0
- package/dist/templates/trellis/agents/teammate-profiles.json +8 -0
- package/dist/templates/trellis/agents/teammate.md +63 -0
- package/dist/templates/trellis/config.yaml +29 -38
- package/dist/templates/trellis/gitignore.txt +1 -0
- package/dist/templates/trellis/index.d.ts +8 -12
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +14 -25
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +1 -1
- package/dist/templates/trellis/scripts/common/__init__.py +0 -1
- package/dist/templates/trellis/scripts/common/active_task.py +136 -100
- package/dist/templates/trellis/scripts/common/config.py +7 -9
- package/dist/templates/trellis/scripts/common/git_context.py +1 -1
- package/dist/templates/trellis/scripts/common/io.py +19 -0
- package/dist/templates/trellis/scripts/common/paths.py +0 -1
- package/dist/templates/trellis/scripts/common/safe_commit.py +11 -90
- package/dist/templates/trellis/scripts/common/session_context.py +1 -8
- package/dist/templates/trellis/scripts/common/spec_match.py +1 -1
- package/dist/templates/trellis/scripts/common/task_context.py +152 -59
- package/dist/templates/trellis/scripts/common/task_continuity.py +563 -0
- package/dist/templates/trellis/scripts/common/task_store.py +70 -548
- package/dist/templates/trellis/scripts/common/task_utils.py +4 -98
- package/dist/templates/trellis/scripts/common/task_workflow.py +1096 -0
- package/dist/templates/trellis/scripts/common/tasks.py +5 -8
- package/dist/templates/trellis/scripts/common/workflow_phase.py +8 -7
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +3 -3
- package/dist/templates/trellis/scripts/task.py +114 -377
- package/dist/templates/trellis/workflow.md +111 -699
- package/dist/utils/agent-refs.d.ts +5 -5
- package/dist/utils/agent-refs.js +6 -6
- package/dist/utils/file-writer.d.ts +3 -2
- package/dist/utils/file-writer.d.ts.map +1 -1
- package/dist/utils/file-writer.js +3 -2
- package/dist/utils/file-writer.js.map +1 -1
- package/dist/utils/managed-paths.d.ts +0 -7
- package/dist/utils/managed-paths.d.ts.map +1 -1
- package/dist/utils/managed-paths.js +0 -40
- package/dist/utils/managed-paths.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +2 -11
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +3 -3
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/dist/utils/workflow-resolver.d.ts +10 -16
- package/dist/utils/workflow-resolver.d.ts.map +1 -1
- package/dist/utils/workflow-resolver.js +25 -36
- package/dist/utils/workflow-resolver.js.map +1 -1
- package/package.json +2 -2
- package/dist/commands/channel/adapters/claude.d.ts.map +0 -1
- package/dist/commands/channel/adapters/claude.js.map +0 -1
- package/dist/commands/channel/adapters/codex.d.ts.map +0 -1
- package/dist/commands/channel/adapters/codex.js.map +0 -1
- package/dist/commands/channel/adapters/index.d.ts.map +0 -1
- package/dist/commands/channel/adapters/index.js.map +0 -1
- package/dist/commands/channel/adapters/types.d.ts.map +0 -1
- package/dist/commands/channel/adapters/types.js.map +0 -1
- package/dist/commands/channel/agent-loader.d.ts.map +0 -1
- package/dist/commands/channel/agent-loader.js.map +0 -1
- package/dist/commands/channel/context-loader.d.ts.map +0 -1
- package/dist/commands/channel/context-loader.js.map +0 -1
- package/dist/commands/channel/context-trust.d.ts.map +0 -1
- package/dist/commands/channel/context-trust.js.map +0 -1
- package/dist/commands/channel/context.d.ts +0 -16
- package/dist/commands/channel/context.d.ts.map +0 -1
- package/dist/commands/channel/context.js.map +0 -1
- package/dist/commands/channel/create.d.ts +0 -29
- package/dist/commands/channel/create.d.ts.map +0 -1
- package/dist/commands/channel/create.js +0 -47
- package/dist/commands/channel/create.js.map +0 -1
- package/dist/commands/channel/dev-parse-trace.d.ts.map +0 -1
- package/dist/commands/channel/dev-parse-trace.js.map +0 -1
- package/dist/commands/channel/guard.d.ts.map +0 -1
- package/dist/commands/channel/guard.js.map +0 -1
- package/dist/commands/channel/index.d.ts +0 -3
- package/dist/commands/channel/index.d.ts.map +0 -1
- package/dist/commands/channel/index.js.map +0 -1
- package/dist/commands/channel/interrupt.d.ts.map +0 -1
- package/dist/commands/channel/interrupt.js +0 -22
- package/dist/commands/channel/interrupt.js.map +0 -1
- package/dist/commands/channel/kill.d.ts +0 -7
- package/dist/commands/channel/kill.d.ts.map +0 -1
- package/dist/commands/channel/kill.js.map +0 -1
- package/dist/commands/channel/list.d.ts +0 -18
- package/dist/commands/channel/list.d.ts.map +0 -1
- package/dist/commands/channel/list.js.map +0 -1
- package/dist/commands/channel/messages.d.ts.map +0 -1
- package/dist/commands/channel/messages.js.map +0 -1
- package/dist/commands/channel/rm.d.ts +0 -27
- package/dist/commands/channel/rm.d.ts.map +0 -1
- package/dist/commands/channel/rm.js.map +0 -1
- package/dist/commands/channel/run.d.ts +0 -32
- package/dist/commands/channel/run.js +0 -141
- package/dist/commands/channel/run.js.map +0 -1
- package/dist/commands/channel/send.d.ts.map +0 -1
- package/dist/commands/channel/send.js.map +0 -1
- package/dist/commands/channel/spawn.d.ts.map +0 -1
- package/dist/commands/channel/spawn.js.map +0 -1
- package/dist/commands/channel/store/events.d.ts +0 -22
- package/dist/commands/channel/store/events.d.ts.map +0 -1
- package/dist/commands/channel/store/events.js.map +0 -1
- package/dist/commands/channel/store/filter.d.ts +0 -3
- package/dist/commands/channel/store/filter.d.ts.map +0 -1
- package/dist/commands/channel/store/filter.js +0 -2
- package/dist/commands/channel/store/filter.js.map +0 -1
- package/dist/commands/channel/store/lock.d.ts.map +0 -1
- package/dist/commands/channel/store/lock.js.map +0 -1
- package/dist/commands/channel/store/paths.d.ts.map +0 -1
- package/dist/commands/channel/store/paths.js.map +0 -1
- package/dist/commands/channel/store/schema.d.ts +0 -27
- package/dist/commands/channel/store/schema.d.ts.map +0 -1
- package/dist/commands/channel/store/schema.js +0 -34
- package/dist/commands/channel/store/schema.js.map +0 -1
- package/dist/commands/channel/store/thread-state.d.ts.map +0 -1
- package/dist/commands/channel/store/thread-state.js.map +0 -1
- package/dist/commands/channel/store/watch.d.ts +0 -19
- package/dist/commands/channel/store/watch.d.ts.map +0 -1
- package/dist/commands/channel/store/watch.js.map +0 -1
- package/dist/commands/channel/supervisor/idle.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/idle.js.map +0 -1
- package/dist/commands/channel/supervisor/inbox.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/inbox.js.map +0 -1
- package/dist/commands/channel/supervisor/shutdown.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/shutdown.js.map +0 -1
- package/dist/commands/channel/supervisor/stdout.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/stdout.js.map +0 -1
- package/dist/commands/channel/supervisor/turns.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/turns.js.map +0 -1
- package/dist/commands/channel/supervisor/warning.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/warning.js.map +0 -1
- package/dist/commands/channel/supervisor.d.ts.map +0 -1
- package/dist/commands/channel/supervisor.js.map +0 -1
- package/dist/commands/channel/text-body.d.ts +0 -13
- package/dist/commands/channel/text-body.d.ts.map +0 -1
- package/dist/commands/channel/text-body.js.map +0 -1
- package/dist/commands/channel/threads.d.ts +0 -39
- package/dist/commands/channel/threads.d.ts.map +0 -1
- package/dist/commands/channel/threads.js.map +0 -1
- package/dist/commands/channel/title.d.ts +0 -12
- package/dist/commands/channel/title.d.ts.map +0 -1
- package/dist/commands/channel/title.js +0 -24
- package/dist/commands/channel/title.js.map +0 -1
- package/dist/commands/channel/wait.d.ts.map +0 -1
- package/dist/commands/channel/wait.js.map +0 -1
- package/dist/commands/channel/workers.d.ts +0 -9
- package/dist/commands/channel/workers.d.ts.map +0 -1
- package/dist/commands/channel/workers.js +0 -31
- package/dist/commands/channel/workers.js.map +0 -1
- package/dist/templates/common/bundled-skills/trellis-channel/SKILL.md +0 -69
- package/dist/templates/common/bundled-skills/trellis-channel/references/command-reference.md +0 -549
- package/dist/templates/common/bundled-skills/trellis-channel/references/forum.md +0 -233
- package/dist/templates/common/bundled-skills/trellis-channel/references/progress-debugging.md +0 -237
- package/dist/templates/common/bundled-skills/trellis-channel/references/subnode-work.md +0 -193
- package/dist/templates/common/bundled-skills/trellis-channel/references/workers.md +0 -295
- package/dist/templates/common/bundled-skills/trellis-channel/references/workflows.md +0 -131
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-channel.md +0 -70
- package/dist/templates/common/bundled-skills/trellis-research-record/SKILL.md +0 -14
- package/dist/templates/copilot/prompts/parallel.prompt.md +0 -204
- package/dist/templates/trellis/agents/check.md +0 -70
- package/dist/templates/trellis/agents/implement.md +0 -71
- package/dist/templates/trellis/agents/subnode.env +0 -4
- package/dist/templates/trellis/agents/subnode.md +0 -69
- package/dist/templates/trellis/scripts/common/context_projection.py +0 -508
- package/dist/templates/trellis/scripts/common/continuation_record.py +0 -450
- package/dist/templates/trellis/scripts/common/ownership_record.py +0 -439
- package/dist/templates/trellis/scripts/subnode_artifact.py +0 -597
- package/dist/templates/trellis/scripts/workspace_note.py +0 -126
- /package/dist/commands/{channel → teamwork}/adapters/types.js +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/idle.d.ts +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/idle.js +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/turns.d.ts +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/turns.js +0 -0
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Trellis Copilot prompt: Multi-Agent Pipeline Orchestrator"
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Multi-Agent Pipeline Orchestrator
|
|
6
|
-
|
|
7
|
-
You are the Multi-Agent Pipeline Orchestrator Agent, running in the main repository, responsible for collaborating with users to manage parallel development tasks.
|
|
8
|
-
|
|
9
|
-
## Role Definition
|
|
10
|
-
|
|
11
|
-
- **You are in the main repository**, not in a worktree
|
|
12
|
-
- **You don't write code directly** - code work is done by agents in worktrees
|
|
13
|
-
- **You are responsible for planning and dispatching**: discuss requirements, create plans, configure context, start worktree agents
|
|
14
|
-
- **Delegate complex analysis to research agent**: finding specs, analyzing code structure
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Operation Types
|
|
19
|
-
|
|
20
|
-
Operations in this document are categorized as:
|
|
21
|
-
|
|
22
|
-
| Marker | Meaning | Executor |
|
|
23
|
-
|--------|---------|----------|
|
|
24
|
-
| `[AI]` | Bash scripts or Task calls executed by AI | You (AI) |
|
|
25
|
-
| `[USER]` | Slash commands executed by user | User |
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Startup Flow
|
|
30
|
-
|
|
31
|
-
### Step 1: Understand Trellis Workflow `[AI]`
|
|
32
|
-
|
|
33
|
-
First, read the workflow guide to understand the development process:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
cat .trellis/workflow.md # Development process, conventions, and quick start guide
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Step 2: Get Current Status `[AI]`
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
python3 ./.trellis/scripts/get_context.py
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Step 3: Read Project Guidelines `[AI]`
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
python3 ./.trellis/scripts/get_context.py --mode packages # Discover available spec layers
|
|
49
|
-
cat .trellis/spec/guides/index.md # Thinking guides
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Step 4: Ask User for Requirements
|
|
53
|
-
|
|
54
|
-
Ask the user:
|
|
55
|
-
|
|
56
|
-
1. What feature to develop?
|
|
57
|
-
2. Which modules are involved?
|
|
58
|
-
3. Development type? (backend / frontend / fullstack)
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## Planning: Choose Your Approach
|
|
63
|
-
|
|
64
|
-
Based on requirement complexity, choose one of these approaches:
|
|
65
|
-
|
|
66
|
-
### Option A: Plan Agent (Recommended for complex features) `[AI]`
|
|
67
|
-
|
|
68
|
-
Use when:
|
|
69
|
-
- Requirements need analysis and validation
|
|
70
|
-
- Multiple modules or cross-layer changes
|
|
71
|
-
- Unclear scope that needs research
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
python3 ./.trellis/scripts/multi_agent/plan.py \
|
|
75
|
-
--name "<feature-name>" \
|
|
76
|
-
--type "<backend|frontend|fullstack>" \
|
|
77
|
-
--requirement "<user requirement description>"
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Plan Agent will:
|
|
81
|
-
1. Evaluate requirement validity (may reject if unclear/too large)
|
|
82
|
-
2. Call research agent to analyze codebase
|
|
83
|
-
3. Create and configure task directory
|
|
84
|
-
4. Write prd.md with acceptance criteria
|
|
85
|
-
5. Output ready-to-use task directory
|
|
86
|
-
|
|
87
|
-
After plan.py completes, start the worktree agent:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR"
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Option B: Manual Configuration (For simple/clear features) `[AI]`
|
|
94
|
-
|
|
95
|
-
Use when:
|
|
96
|
-
- Requirements are already clear and specific
|
|
97
|
-
- You know exactly which files are involved
|
|
98
|
-
- Simple, well-scoped changes
|
|
99
|
-
|
|
100
|
-
#### Step 1: Create Task Directory
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
# title is task description, --slug for task directory name
|
|
104
|
-
TASK_DIR=$(python3 ./.trellis/scripts/task.py create "<title>" --description "<one-line summary>" --slug <task-name>)
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
#### Step 2: Configure Task
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
# Initialize jsonl context files
|
|
111
|
-
python3 ./.trellis/scripts/task.py init-context "$TASK_DIR" <dev_type>
|
|
112
|
-
|
|
113
|
-
# Set branch and scope
|
|
114
|
-
python3 ./.trellis/scripts/task.py set-branch "$TASK_DIR" feature/<name>
|
|
115
|
-
python3 ./.trellis/scripts/task.py set-scope "$TASK_DIR" <scope>
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
#### Step 3: Add Context (optional: use research agent)
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" implement "<path>" "<reason>"
|
|
122
|
-
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" check "<path>" "<reason>"
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
#### Step 4: Update prd.md
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
# task.py create already created prd.md; edit it with requirements and acceptance criteria.
|
|
129
|
-
$EDITOR "$TASK_DIR/prd.md"
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Use this shape:
|
|
133
|
-
|
|
134
|
-
```markdown
|
|
135
|
-
# Feature: <name>
|
|
136
|
-
|
|
137
|
-
## Goal
|
|
138
|
-
...
|
|
139
|
-
|
|
140
|
-
## Requirements
|
|
141
|
-
- ...
|
|
142
|
-
|
|
143
|
-
## Acceptance Criteria
|
|
144
|
-
- [ ] ...
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
#### Step 5: Validate and Start
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
python3 ./.trellis/scripts/task.py validate "$TASK_DIR"
|
|
151
|
-
python3 ./.trellis/scripts/multi_agent/start.py "$TASK_DIR"
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## After Starting: Report Status
|
|
157
|
-
|
|
158
|
-
Tell the user the agent has started and provide monitoring commands.
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## User Available Commands `[USER]`
|
|
163
|
-
|
|
164
|
-
The following slash commands are for users (not AI):
|
|
165
|
-
|
|
166
|
-
| Command | Description |
|
|
167
|
-
|---------|-------------|
|
|
168
|
-
| `/` | Start Multi-Agent Pipeline (this command) |
|
|
169
|
-
| `/` | Start normal development mode (single process) |
|
|
170
|
-
| `/` | Record session progress |
|
|
171
|
-
| `/` | Pre-completion checklist |
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Monitoring Commands (for user reference)
|
|
176
|
-
|
|
177
|
-
Tell the user they can use these commands to monitor:
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
python3 ./.trellis/scripts/multi_agent/status.py # Overview
|
|
181
|
-
python3 ./.trellis/scripts/multi_agent/status.py --log <name> # View log
|
|
182
|
-
python3 ./.trellis/scripts/multi_agent/status.py --watch <name> # Real-time monitoring
|
|
183
|
-
python3 ./.trellis/scripts/multi_agent/cleanup.py <branch> # Cleanup worktree
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
## Pipeline Phases
|
|
189
|
-
|
|
190
|
-
The dispatch agent in worktree will automatically execute:
|
|
191
|
-
|
|
192
|
-
1. implement �?Implement feature
|
|
193
|
-
2. check �?Check code quality
|
|
194
|
-
3. finish �?Final verification
|
|
195
|
-
4. create-pr �?Create PR
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
|
-
## Core Rules
|
|
200
|
-
|
|
201
|
-
- **Don't write code directly** - delegate to agents in worktree
|
|
202
|
-
- **Don't execute git commit** - agent does it via create-pr action
|
|
203
|
-
- **Delegate complex analysis to research** - finding specs, analyzing code structure
|
|
204
|
-
- **All sub agents use opus model** - ensure output quality
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: check
|
|
3
|
-
description: |
|
|
4
|
-
Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.
|
|
5
|
-
provider: claude
|
|
6
|
-
labels: [trellis, check]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Check Agent (channel runtime)
|
|
10
|
-
|
|
11
|
-
You are the Check Agent spawned by `trellis channel spawn --agent check` inside the Trellis channel runtime. You receive an `Active task: <path>` line in your inbox; use it to locate task artifacts on disk.
|
|
12
|
-
|
|
13
|
-
## Context
|
|
14
|
-
|
|
15
|
-
Before reviewing, read in this order:
|
|
16
|
-
|
|
17
|
-
1. `<task-path>/check.jsonl` if present — spec manifest curated for this turn; read every listed file
|
|
18
|
-
2. `<task-path>/prd.md` — requirements
|
|
19
|
-
3. `<task-path>/design.md` if present — technical design
|
|
20
|
-
4. `<task-path>/implement.md` if present — execution plan
|
|
21
|
-
5. `.trellis/spec/` — project-wide guidelines (load only what is relevant to the diff under review)
|
|
22
|
-
|
|
23
|
-
## Core Responsibilities
|
|
24
|
-
|
|
25
|
-
1. **Get the diff** — `git diff` / `git diff --staged` for uncommitted changes
|
|
26
|
-
2. **Review against task artifacts** — does the diff satisfy `prd.md` (and `design.md` / `implement.md` if present)?
|
|
27
|
-
3. **Review against specs** — naming, structure, type safety, error handling, conventions in `.trellis/spec/`
|
|
28
|
-
4. **Self-fix** — when an issue is mechanical and small, fix it directly with the editing tools you have
|
|
29
|
-
5. **Run verification** — project lint and typecheck on the changed scope
|
|
30
|
-
6. **Report** — concrete findings with `file:line` citations and what was fixed vs. what is open
|
|
31
|
-
|
|
32
|
-
## Forbidden Operations
|
|
33
|
-
|
|
34
|
-
- `git commit`
|
|
35
|
-
- `git push`
|
|
36
|
-
- `git merge`
|
|
37
|
-
|
|
38
|
-
The supervising main session owns commits. Report the post-fix state; do not commit on its behalf.
|
|
39
|
-
|
|
40
|
-
## Workflow
|
|
41
|
-
|
|
42
|
-
1. Run `git diff --name-only` and `git diff` to scope the changes
|
|
43
|
-
2. Read the task artifacts and relevant spec files
|
|
44
|
-
3. For each issue:
|
|
45
|
-
- If mechanical (lint nit, missing type, wrong import, dead branch) → fix in-place
|
|
46
|
-
- If a design/judgment issue → record and report, do not silently rewrite
|
|
47
|
-
4. Run the project's lint and typecheck on the changed scope after self-fixes
|
|
48
|
-
5. Report
|
|
49
|
-
|
|
50
|
-
## Report Format
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
## Self-Check Complete
|
|
54
|
-
|
|
55
|
-
### Files Checked
|
|
56
|
-
- <path>
|
|
57
|
-
|
|
58
|
-
### Issues Found and Fixed
|
|
59
|
-
1. `<file>:<line>` — <what was wrong> → <what you changed>
|
|
60
|
-
|
|
61
|
-
### Issues Not Fixed
|
|
62
|
-
- `<file>:<line>` — <issue> — <why deferred to the main session>
|
|
63
|
-
|
|
64
|
-
### Verification Results
|
|
65
|
-
- TypeCheck: <pass|fail|skipped + reason>
|
|
66
|
-
- Lint: <pass|fail|skipped + reason>
|
|
67
|
-
|
|
68
|
-
### Summary
|
|
69
|
-
Checked <N> files, found <X> issues, fixed <Y>, <X-Y> open.
|
|
70
|
-
```
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implement
|
|
3
|
-
description: |
|
|
4
|
-
Code implementation expert for the Trellis channel runtime. Understands specs and task artifacts, then implements features. No git commit allowed.
|
|
5
|
-
provider: claude
|
|
6
|
-
labels: [trellis, implement]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Implement Agent (channel runtime)
|
|
10
|
-
|
|
11
|
-
You are the Implement Agent spawned by `trellis channel spawn --agent implement` inside the Trellis channel runtime. You receive an `Active task: <path>` line in your inbox; use it to locate task artifacts on disk.
|
|
12
|
-
|
|
13
|
-
## Context
|
|
14
|
-
|
|
15
|
-
Before implementing, read in this order:
|
|
16
|
-
|
|
17
|
-
1. `<task-path>/implement.jsonl` if present — spec manifest curated for this turn; read every listed file
|
|
18
|
-
2. `<task-path>/prd.md` — requirements
|
|
19
|
-
3. `<task-path>/design.md` if present — technical design
|
|
20
|
-
4. `<task-path>/implement.md` if present — execution plan
|
|
21
|
-
5. `.trellis/spec/` — project-wide guidelines (load only what is relevant to the diff you are about to write)
|
|
22
|
-
|
|
23
|
-
## Core Responsibilities
|
|
24
|
-
|
|
25
|
-
1. **Understand specs** — read relevant spec files in `.trellis/spec/`
|
|
26
|
-
2. **Understand task artifacts** — read the artifacts listed above
|
|
27
|
-
3. **Implement features** — write code that follows specs and existing patterns
|
|
28
|
-
4. **Self-check** — run lint and typecheck on the changed scope before reporting
|
|
29
|
-
|
|
30
|
-
## Forbidden Operations
|
|
31
|
-
|
|
32
|
-
- `git commit`
|
|
33
|
-
- `git push`
|
|
34
|
-
- `git merge`
|
|
35
|
-
|
|
36
|
-
The supervising main session owns commits. Report what changed; do not commit on its behalf.
|
|
37
|
-
|
|
38
|
-
## Workflow
|
|
39
|
-
|
|
40
|
-
1. Read relevant specs based on task type and the files in `implement.jsonl` if present
|
|
41
|
-
2. Read the task's `prd.md`, `design.md` if present, and `implement.md` if present
|
|
42
|
-
3. Implement features following specs and existing patterns
|
|
43
|
-
4. Run the project's lint and typecheck commands on the changed scope
|
|
44
|
-
5. Report files touched, key decisions, and verification results back to the channel
|
|
45
|
-
|
|
46
|
-
## Code Standards
|
|
47
|
-
|
|
48
|
-
- Follow existing code patterns
|
|
49
|
-
- Don't add unnecessary abstractions
|
|
50
|
-
- Only do what the PRD asks for; no speculative scope expansion
|
|
51
|
-
- Surface uncertainty back to the channel rather than guessing
|
|
52
|
-
|
|
53
|
-
## Report Format
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
## Implementation Complete
|
|
57
|
-
|
|
58
|
-
### Files Modified
|
|
59
|
-
- <path> — <one-line description>
|
|
60
|
-
|
|
61
|
-
### Implementation Summary
|
|
62
|
-
1. <step>
|
|
63
|
-
2. <step>
|
|
64
|
-
|
|
65
|
-
### Verification Results
|
|
66
|
-
- Lint: <pass|fail|skipped + reason>
|
|
67
|
-
- TypeCheck: <pass|fail|skipped + reason>
|
|
68
|
-
|
|
69
|
-
### Open Questions
|
|
70
|
-
- <if any, otherwise omit>
|
|
71
|
-
```
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: subnode
|
|
3
|
-
description: |
|
|
4
|
-
Bounded independent-evidence worker. It preserves its assigned task artifacts,
|
|
5
|
-
never changes protected target files, and leaves acceptance to the coordinator.
|
|
6
|
-
provider: codex
|
|
7
|
-
labels: [trellis, subnode]
|
|
8
|
-
env_file: subnode.env
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Subnode (channel runtime)
|
|
12
|
-
|
|
13
|
-
You are a bounded Trellis subnode spawned through `trellis channel`. Your job is
|
|
14
|
-
to produce independently reviewable evidence for one assigned question. You are
|
|
15
|
-
not an implementation worker, task owner, reviewer-of-record, or Git operator.
|
|
16
|
-
|
|
17
|
-
## Required Context
|
|
18
|
-
|
|
19
|
-
Before starting, read the `brief.json` path named in the coordinator message.
|
|
20
|
-
It fixes your task identity, scope, protected targets, evidence method, source
|
|
21
|
-
snapshot, deadline, stop conditions, channel handle, and final `report_path`.
|
|
22
|
-
Read the necessary current project and external sources needed to answer that
|
|
23
|
-
brief. A source snapshot records evidence; it is not a filesystem allowlist.
|
|
24
|
-
|
|
25
|
-
## Ownership And Write Boundary
|
|
26
|
-
|
|
27
|
-
You may write only within the artifact directory named by the brief:
|
|
28
|
-
|
|
29
|
-
- `worklog.md` — append substantive observations, corrections, blockers, and
|
|
30
|
-
completion notes as they occur.
|
|
31
|
-
- `report.json` — write your one final pending-review report at the exact path
|
|
32
|
-
in `brief.json`.
|
|
33
|
-
|
|
34
|
-
Do not modify `brief.json`. Do not edit any protected target, business source,
|
|
35
|
-
test, task artifact, project rule, coordinator workspace note, or unrelated
|
|
36
|
-
file. Do not run Git commands that change state (`commit`, `push`, `merge`,
|
|
37
|
-
`rebase`, `reset`, `checkout`, `stash`, or branch/worktree operations). Do not
|
|
38
|
-
spawn or control another worker. These are behavioral requirements, not a
|
|
39
|
-
sandbox claim.
|
|
40
|
-
|
|
41
|
-
## Work Method
|
|
42
|
-
|
|
43
|
-
1. Confirm the brief identity and artifact paths before doing substantive work.
|
|
44
|
-
2. Inspect evidence using the stated lens and method. Keep the assigned scope
|
|
45
|
-
narrow; stop when a stop condition is met or the evidence is sufficient.
|
|
46
|
-
3. Append a concise worklog entry when you make a material discovery, retract a
|
|
47
|
-
conclusion, encounter a blocker, or finish. Preserve corrections rather
|
|
48
|
-
than silently rewriting the historical trail.
|
|
49
|
-
4. Write `report.json` only when you are ready to stop. Its status is one of
|
|
50
|
-
`complete`, `blocked`, `incomplete`, or `error`; it is always
|
|
51
|
-
**pending coordinator review**, never accepted/rejected/deferred.
|
|
52
|
-
5. A complete report includes independently checkable evidence. A non-complete
|
|
53
|
-
report explains completed scope and the blocker or error. Include the exact
|
|
54
|
-
identity, scope, and lens required by the artifact helper.
|
|
55
|
-
6. Finish with one short final assistant reply that states the status and report
|
|
56
|
-
path. Do not place the report JSON in the reply and do not run
|
|
57
|
-
`trellis channel send`: the supervisor routes this final reply into the
|
|
58
|
-
durable Channel message and `done` events.
|
|
59
|
-
|
|
60
|
-
The final reply ends the worker runtime; it does not accept the report.
|
|
61
|
-
The coordinator later checks the durable worker terminal projection and records
|
|
62
|
-
the disposition. A report without a terminal worker remains pending.
|
|
63
|
-
|
|
64
|
-
## Report Boundary
|
|
65
|
-
|
|
66
|
-
The coordinator independently runs the artifact validator and then records the
|
|
67
|
-
task disposition (`accepted`, `rejected`, or `deferred`) with its own source and
|
|
68
|
-
protected-target checks. Do not claim that a report has been accepted, and do
|
|
69
|
-
not infer a disposition from a successful Channel delivery.
|