@pennixrv/trellis 0.7.1 → 0.7.2-beta.10
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 +10 -7
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.d.ts.map +1 -1
- package/dist/commands/ablate.js +2 -0
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/backup.d.ts +4 -0
- package/dist/commands/backup.d.ts.map +1 -0
- package/dist/commands/backup.js +75 -0
- package/dist/commands/backup.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +705 -681
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mem.d.ts.map +1 -1
- package/dist/commands/mem.js +49 -7
- package/dist/commands/mem.js.map +1 -1
- package/dist/commands/task-progress.d.ts +1 -0
- package/dist/commands/task-progress.d.ts.map +1 -1
- package/dist/commands/task-progress.js +67 -25
- package/dist/commands/task-progress.js.map +1 -1
- package/dist/commands/teamwork/adapters/acp.d.ts +20 -0
- package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -0
- package/dist/commands/teamwork/adapters/acp.js +271 -0
- package/dist/commands/teamwork/adapters/acp.js.map +1 -0
- package/dist/commands/teamwork/adapters/claude.d.ts +1 -0
- package/dist/commands/teamwork/adapters/claude.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/claude.js +5 -0
- package/dist/commands/teamwork/adapters/claude.js.map +1 -1
- package/dist/commands/teamwork/adapters/codex.d.ts +3 -2
- package/dist/commands/teamwork/adapters/codex.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/codex.js +14 -15
- package/dist/commands/teamwork/adapters/codex.js.map +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts +24 -2
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/index.js +163 -24
- package/dist/commands/teamwork/adapters/index.js.map +1 -1
- package/dist/commands/teamwork/agent-loader.d.ts +2 -1
- package/dist/commands/teamwork/agent-loader.d.ts.map +1 -1
- package/dist/commands/teamwork/agent-loader.js +2 -1
- package/dist/commands/teamwork/agent-loader.js.map +1 -1
- package/dist/commands/teamwork/artifact.d.ts +42 -14
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +188 -85
- package/dist/commands/teamwork/artifact.js.map +1 -1
- package/dist/commands/teamwork/batch-reservation.d.ts +16 -0
- package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -0
- package/dist/commands/teamwork/batch-reservation.js +43 -0
- package/dist/commands/teamwork/batch-reservation.js.map +1 -0
- package/dist/commands/teamwork/batch.d.ts +23 -0
- package/dist/commands/teamwork/batch.d.ts.map +1 -0
- package/dist/commands/teamwork/batch.js +415 -0
- package/dist/commands/teamwork/batch.js.map +1 -0
- package/dist/commands/teamwork/context-loader.d.ts +1 -1
- package/dist/commands/teamwork/context-loader.d.ts.map +1 -1
- package/dist/commands/teamwork/context-loader.js +19 -6
- package/dist/commands/teamwork/context-loader.js.map +1 -1
- package/dist/commands/teamwork/coordination.d.ts +88 -0
- package/dist/commands/teamwork/coordination.d.ts.map +1 -0
- package/dist/commands/teamwork/coordination.js +153 -0
- package/dist/commands/teamwork/coordination.js.map +1 -0
- package/dist/commands/teamwork/coordinator.d.ts +33 -6
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
- package/dist/commands/teamwork/coordinator.js +948 -342
- package/dist/commands/teamwork/coordinator.js.map +1 -1
- package/dist/commands/teamwork/create.d.ts +1 -0
- package/dist/commands/teamwork/create.d.ts.map +1 -1
- package/dist/commands/teamwork/create.js +2 -1
- package/dist/commands/teamwork/create.js.map +1 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts +2 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts.map +1 -1
- package/dist/commands/teamwork/dev-parse-trace.js +2 -0
- package/dist/commands/teamwork/dev-parse-trace.js.map +1 -1
- package/dist/commands/teamwork/foreground-wait.d.ts +6 -0
- package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -0
- package/dist/commands/teamwork/foreground-wait.js +65 -0
- package/dist/commands/teamwork/foreground-wait.js.map +1 -0
- package/dist/commands/teamwork/guard.d.ts +2 -2
- package/dist/commands/teamwork/guard.d.ts.map +1 -1
- package/dist/commands/teamwork/guard.js +25 -7
- package/dist/commands/teamwork/guard.js.map +1 -1
- package/dist/commands/teamwork/index.d.ts.map +1 -1
- package/dist/commands/teamwork/index.js +164 -11
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/teamwork/kill.d.ts +2 -0
- package/dist/commands/teamwork/kill.d.ts.map +1 -1
- package/dist/commands/teamwork/kill.js +79 -38
- package/dist/commands/teamwork/kill.js.map +1 -1
- package/dist/commands/teamwork/messages.d.ts.map +1 -1
- package/dist/commands/teamwork/messages.js +3 -0
- package/dist/commands/teamwork/messages.js.map +1 -1
- package/dist/commands/teamwork/plan.d.ts +22 -0
- package/dist/commands/teamwork/plan.d.ts.map +1 -0
- package/dist/commands/teamwork/plan.js +288 -0
- package/dist/commands/teamwork/plan.js.map +1 -0
- package/dist/commands/teamwork/process-identity.d.ts +3 -0
- package/dist/commands/teamwork/process-identity.d.ts.map +1 -0
- package/dist/commands/teamwork/process-identity.js +24 -0
- package/dist/commands/teamwork/process-identity.js.map +1 -0
- package/dist/commands/teamwork/profiles.d.ts +43 -6
- package/dist/commands/teamwork/profiles.d.ts.map +1 -1
- package/dist/commands/teamwork/profiles.js +138 -110
- package/dist/commands/teamwork/profiles.js.map +1 -1
- package/dist/commands/teamwork/prompt.d.ts +4 -0
- package/dist/commands/teamwork/prompt.d.ts.map +1 -0
- package/dist/commands/teamwork/prompt.js +33 -0
- package/dist/commands/teamwork/prompt.js.map +1 -0
- package/dist/commands/teamwork/result.d.ts +55 -0
- package/dist/commands/teamwork/result.d.ts.map +1 -0
- package/dist/commands/teamwork/result.js +94 -0
- package/dist/commands/teamwork/result.js.map +1 -0
- package/dist/commands/teamwork/rm.d.ts.map +1 -1
- package/dist/commands/teamwork/rm.js +64 -64
- package/dist/commands/teamwork/rm.js.map +1 -1
- package/dist/commands/teamwork/run.d.ts +5 -0
- package/dist/commands/teamwork/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +120 -24
- package/dist/commands/teamwork/run.js.map +1 -1
- package/dist/commands/teamwork/runtime.d.ts +9 -0
- package/dist/commands/teamwork/runtime.d.ts.map +1 -0
- package/dist/commands/teamwork/runtime.js +402 -0
- package/dist/commands/teamwork/runtime.js.map +1 -0
- package/dist/commands/teamwork/send.d.ts +1 -0
- package/dist/commands/teamwork/send.d.ts.map +1 -1
- package/dist/commands/teamwork/send.js +2 -1
- package/dist/commands/teamwork/send.js.map +1 -1
- package/dist/commands/teamwork/spawn.d.ts +10 -3
- package/dist/commands/teamwork/spawn.d.ts.map +1 -1
- package/dist/commands/teamwork/spawn.js +44 -27
- package/dist/commands/teamwork/spawn.js.map +1 -1
- package/dist/commands/teamwork/store/lock.js +28 -4
- package/dist/commands/teamwork/store/lock.js.map +1 -1
- package/dist/commands/teamwork/supervisor/inbox.d.ts +1 -0
- package/dist/commands/teamwork/supervisor/inbox.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/inbox.js +28 -9
- package/dist/commands/teamwork/supervisor/inbox.js.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.js +2 -3
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
- package/dist/commands/teamwork/supervisor/warning.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/warning.js +2 -3
- package/dist/commands/teamwork/supervisor/warning.js.map +1 -1
- package/dist/commands/teamwork/supervisor.d.ts +6 -1
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor.js +21 -12
- package/dist/commands/teamwork/supervisor.js.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.d.ts +3 -5
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.js +23 -61
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
- package/dist/commands/teamwork/teammate-config.d.ts +5 -1
- package/dist/commands/teamwork/teammate-config.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-config.js +62 -19
- package/dist/commands/teamwork/teammate-config.js.map +1 -1
- package/dist/commands/teamwork/teammate-launch.d.ts +15 -6
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-launch.js +129 -22
- package/dist/commands/teamwork/teammate-launch.js.map +1 -1
- package/dist/commands/teamwork/wait.d.ts +2 -0
- package/dist/commands/teamwork/wait.d.ts.map +1 -1
- package/dist/commands/teamwork/wait.js +44 -3
- package/dist/commands/teamwork/wait.js.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +92 -84
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +635 -592
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +94 -89
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/shared.js +2 -2
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +14 -32
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +3 -10
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +4 -13
- package/dist/constants/paths.js.map +1 -1
- package/dist/migrations/manifests/0.7.1-beta.0.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.1.json +186 -0
- package/dist/migrations/manifests/0.7.1-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.14.json +11 -0
- package/dist/migrations/manifests/0.7.1-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.19.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.2.json +522 -0
- package/dist/migrations/manifests/0.7.1-beta.3.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.4.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.5.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.6.json +10 -0
- package/dist/migrations/manifests/0.7.1-beta.7.json +8 -0
- package/dist/migrations/manifests/0.7.1-beta.8.json +481 -0
- package/dist/migrations/manifests/0.7.1-beta.9.json +191 -0
- package/dist/migrations/manifests/0.7.2-beta.0.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.1.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.2.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.3.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
- package/dist/templates/claude/hooks/statusline.py +9 -4
- package/dist/templates/codex/hooks/session-start.py +28 -11
- package/dist/templates/codex/hooks.json +10 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +8 -2
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/add-project-local-conventions.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +5 -5
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +3 -2
- 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/context-injection.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +20 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +8 -2
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +2 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/triggering-patterns.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +22 -5
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +4 -2
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +6 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +25 -3
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md +34 -3
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-configuration-matrix.md +37 -26
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +128 -14
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +152 -20
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +17 -0
- package/dist/templates/common/commands/continue.md +2 -0
- package/dist/templates/common/commands/start.md +4 -2
- package/dist/templates/common/skills/before-dev.md +1 -4
- package/dist/templates/common/skills/break-loop.md +7 -18
- package/dist/templates/common/skills/check.md +7 -11
- package/dist/templates/common/skills/request-intake.md +25 -0
- package/dist/templates/common/skills/update-spec.md +5 -7
- package/dist/templates/copilot/hooks/session-start.py +14 -11
- package/dist/templates/copilot/index.d.ts +1 -6
- package/dist/templates/copilot/index.d.ts.map +1 -1
- package/dist/templates/copilot/index.js +1 -14
- package/dist/templates/copilot/index.js.map +1 -1
- package/dist/templates/extract.js +4 -0
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/kiro/agents/trellis.json +1 -1
- package/dist/templates/markdown/spec/backend/index.md.txt +4 -35
- package/dist/templates/markdown/spec/frontend/index.md.txt +4 -36
- package/dist/templates/omp/extensions/trellis/index.ts.txt +2 -2
- package/dist/templates/opencode/lib/session-utils.js +301 -209
- package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1
- package/dist/templates/shared-hooks/guard-teamwork-wait.py +58 -0
- package/dist/templates/shared-hooks/index.d.ts +1 -1
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +1 -0
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-workflow-state.py +23 -3
- package/dist/templates/shared-hooks/session-start.py +16 -12
- package/dist/templates/snow/SNOW.md +1 -1
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +18 -11
- package/dist/templates/trellis/agents/profiles/architecture.md +9 -0
- package/dist/templates/trellis/agents/profiles/diagnosis.md +9 -0
- package/dist/templates/trellis/agents/profiles/exploration.md +9 -0
- package/dist/templates/trellis/agents/profiles/research.md +9 -0
- package/dist/templates/trellis/agents/profiles/review.md +9 -0
- package/dist/templates/trellis/agents/profiles/verification.md +9 -0
- package/dist/templates/trellis/agents/teammate-profiles.json +56 -4
- package/dist/templates/trellis/agents/teammate.md +6 -52
- package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -0
- package/dist/templates/trellis/config.yaml +2 -5
- package/dist/templates/trellis/index.d.ts +4 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +23 -4
- 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/active_task.py +3 -47
- package/dist/templates/trellis/scripts/common/config.py +5 -0
- package/dist/templates/trellis/scripts/common/git_context.py +10 -0
- package/dist/templates/trellis/scripts/common/io.py +2 -2
- package/dist/templates/trellis/scripts/common/paths.py +9 -25
- package/dist/templates/trellis/scripts/common/safe_commit.py +8 -8
- package/dist/templates/trellis/scripts/common/task_context.py +11 -51
- package/dist/templates/trellis/scripts/common/task_continuity.py +202 -60
- package/dist/templates/trellis/scripts/common/task_layout.py +80 -0
- package/dist/templates/trellis/scripts/common/task_move.py +345 -0
- package/dist/templates/trellis/scripts/common/task_store.py +57 -57
- package/dist/templates/trellis/scripts/common/task_utils.py +23 -19
- package/dist/templates/trellis/scripts/common/task_workflow.py +400 -50
- package/dist/templates/trellis/scripts/common/tasks.py +6 -5
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +561 -0
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +13 -3
- package/dist/templates/trellis/scripts/task.py +109 -24
- package/dist/templates/trellis/teamwork.json +10 -0
- package/dist/templates/trellis/workflow.md +31 -5
- package/dist/utils/ablation-store.d.ts +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +58 -24
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts +138 -0
- package/dist/utils/asset-backup.d.ts.map +1 -0
- package/dist/utils/asset-backup.js +525 -0
- package/dist/utils/asset-backup.js.map +1 -0
- package/dist/utils/atomic-write.d.ts +1 -1
- package/dist/utils/atomic-write.d.ts.map +1 -1
- package/dist/utils/atomic-write.js +6 -3
- package/dist/utils/atomic-write.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts +4 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +17 -6
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts +4 -19
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +9 -45
- package/dist/utils/template-fetcher.js.map +1 -1
- package/dist/utils/template-hash.d.ts +5 -4
- package/dist/utils/template-hash.d.ts.map +1 -1
- package/dist/utils/template-hash.js +24 -17
- package/dist/utils/template-hash.js.map +1 -1
- package/package.json +3 -2
- package/dist/templates/common/skills/brainstorm.md +0 -21
- package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -13
- package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
- package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -170
- package/dist/templates/copilot/prompts/check.prompt.md +0 -110
- package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
- package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -22
- package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
- package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
- package/dist/templates/copilot/prompts/record-session.prompt.md +0 -58
- package/dist/templates/copilot/prompts/start.prompt.md +0 -65
- package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
GitNexus and ABCoder are recommended when bootstrapping Trellis specs because they expose architecture and AST context to the agent. They are tool choices, not platform requirements. Configure them through whatever MCP mechanism your agent host provides.
|
|
4
4
|
|
|
5
|
+
First discover the project's approved, available tools and existing indexes. Use source and tests directly when no suitable index is available; record that limit. Spec bootstrapping does not authorize installing tools, configuring MCP servers, downloading executables, or creating or refreshing indexes. The setup examples below apply only after those operations have separate authorization and the target repository is explicit. Prefer an already installed, pinned owner entry point over an unpinned download.
|
|
6
|
+
|
|
5
7
|
## GitNexus
|
|
6
8
|
|
|
7
9
|
GitNexus builds a code knowledge graph from the repository. Use it for module boundaries, execution flows, dependency relationships, blast radius, and graph queries.
|
|
@@ -15,7 +17,7 @@ npx gitnexus analyze
|
|
|
15
17
|
# Check index status.
|
|
16
18
|
npx gitnexus status
|
|
17
19
|
|
|
18
|
-
# Re-index
|
|
20
|
+
# Re-index only when explicitly authorized for this repository.
|
|
19
21
|
npx gitnexus analyze
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -82,7 +84,7 @@ abcoder mcp ~/abcoder-asts
|
|
|
82
84
|
|
|
83
85
|
## Verification
|
|
84
86
|
|
|
85
|
-
After configuration, verify from the agent host
|
|
87
|
+
After an authorized configuration change, verify the selected MCP server from the agent host and run a simple query. Neither server is mandatory; unavailable tooling does not block a source-backed spec pass.
|
|
86
88
|
|
|
87
89
|
```bash
|
|
88
90
|
ls .gitnexus/meta.json
|
package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md
CHANGED
|
@@ -14,7 +14,7 @@ Avoid artificial decomposition. A small library usually needs one focused spec p
|
|
|
14
14
|
|
|
15
15
|
## Task Shape
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Reuse the current task when the spec work belongs to its authorized scope. Otherwise route the request through request-intake and the project's native phases. The following is an example of useful coverage; preserve the project's actual artifact structure rather than requiring a new PRD or these exact headings:
|
|
18
18
|
|
|
19
19
|
```markdown
|
|
20
20
|
# Fill <package-or-layer> Trellis Specs
|
|
@@ -55,7 +55,7 @@ If the host supports subagents, helpers can inspect independent packages or run
|
|
|
55
55
|
Helper tasks must have clear ownership:
|
|
56
56
|
|
|
57
57
|
- Read-only research tasks may inspect any source needed for the assigned scope.
|
|
58
|
-
-
|
|
58
|
+
- Native helper write tasks require explicit project authorization and disjoint spec directories. Trellis Teamwork teammates remain in their research, review, or verification role and return findings in the assigned format; the coordinator applies accepted spec edits.
|
|
59
59
|
- Verification tasks should check placeholder removal, broken links, and consistency.
|
|
60
60
|
|
|
61
61
|
Do not encode helper-agent names, vendor-specific commands, or platform-specific routing in the skill. Put only the required work and acceptance criteria in the task.
|
|
@@ -5,6 +5,8 @@ description: 当前任务处于任务实施与测试验证阶段时,按已授
|
|
|
5
5
|
|
|
6
6
|
# 任务实施与测试验证阶段
|
|
7
7
|
|
|
8
|
+
按实际问题选用宿主已声明的诊断、检索或设计辅助方法;执行摩擦确需解释时可有界复盘,不能因此自动改环境。方法明确时直接使用,组合不清时按需读取可用总路由;完成证据后继续已授权工作,不增加可选集合依赖或重问已定选择。
|
|
9
|
+
|
|
8
10
|
当 `current_phase_id` 为 `task_implementation` 时使用。先阅读本 Skill 同目录的 `workflow.md`,再加载目标仓库适用的 `AGENTS.md`、Trellis spec 和实现合同。
|
|
9
11
|
|
|
10
12
|
按合同依赖和优先级逐项实施;主工作树主代理负责阶段接受和集成。只在执行路线获准时使用 Paseo 委派写入;Trellis Teamwork teammate 只提供只读证据。默认在当前阶段修复和验证,只有合同、授权、依赖、基线或接受条件实质失效且无法安全恢复时,才回到最早受影响的阶段。
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
开始前核验当前 `implementation_contract`、实施授权、路线 revision、必要依赖和执行基线。使用 `trellis-before-dev` 读取目标仓库实际适用的规范;按组件 owner 合同选择主工作树或已批准的独立写入路线。调用项目任务 `start` 只在实施授权有效时将任务置为 `in_progress`。
|
|
4
4
|
|
|
5
|
+
实施阶段为 `blocked` 或 `waiting_user` 时,先解决阻塞并经原生 `phase resume` 恢复,再重新核验准入。`delegate-start` 核验父任务已有的 ownership 围栏和子任务状态;存在未消费交接、当前会话不符合已有 ownership 记录,或子任务已完成、取消时,不启动或复用委派执行。没有 ownership 记录的任务不具备默认会话独占保护。
|
|
6
|
+
|
|
7
|
+
父授权有效且本轮允许委派写入时,先加载 `trellis-worktree-delegation`,通过其原生新协议入口冻结明确目标、设置与能力要求,再准备、核验 ready、执行和观察。委派节点沿 `TRELLIS_DELEGATION_CONTEXT` 与共享节点方法执行本包,不进入主控阶段或新建任务。输入漂移先保全并核对授权;未知创建或发送只做原生 inspect 和显式 recover,不覆盖映射或重放。结果由 owner 审查并在目标分支 merge/FF,验证 ancestry 后再显式核销;idle/cancel 不替代 writer 停止证据。
|
|
8
|
+
|
|
5
9
|
按合同的依赖和优先级选取当前工作包,实施满足目标的最小变更,并运行与风险和影响相称的局部验证。主工作树主代理核对来源、revision、Git 基线、差异和结果后接受工作包。多包任务按合同集成;单一交付不人为拆分。Trellis Teamwork 仅用于冻结计划下的只读比较或评议,不能改写任务状态或接受实施结果。实际写入委派依父任务规定使用 Trellis 受控入口与 Paseo;各组件源码仍在 owner 仓库内修改。
|
|
6
10
|
|
|
7
11
|
局部失败、暂时不可用或当前状态已满足接受条件时,先在任务实施与测试验证阶段中处理。依赖或资源暂不可用且现场安全时记录恢复条件;未授权不产生外部副作用;未知现场先停止并核验。合同允许未运行验证且风险可接受时,记录原因、影响和替代证据。替代路线若改变授权、成本、隐私或接受条件,回到解决方案设计与收敛阶段;目标、范围变化按影响回到目标探索与需求核对阶段或决策空间构造与归并阶段。只有合同范围内工作包均已接受、适用必需验证完成或有有效未运行处置、按范围和风险需要的集成验证通过,才将交付候选交由交付审查与现场收尾阶段;仅当路线实际创建或委派资源时,才核验其处置事实。
|
|
@@ -26,4 +30,6 @@ flowchart TD
|
|
|
26
30
|
|
|
27
31
|
### 委派、回退与收敛
|
|
28
32
|
|
|
33
|
+
合同不变的局部修复在当前活动阶段处理;需要撤销实施或交付接受事实时,使用 `phase return --return-kind execution_rework` 并提供原因、证据及目标阶段。仅在需求、合同摘要、路线和依赖仍有效时保留实施授权;CLI 拒绝时核对真实失效原因,不重复索取已有效的用户决定。合同实质变化使用默认 `contract_change` 回到最早受影响阶段并重新接受、授权。终态任务先经独立的 `reopen` 恢复到 `planning`,再操作工作流阶段;重开不复用旧授权。
|
|
34
|
+
|
|
29
35
|
回退使用当前 owner 的 Git 和资源合同,不覆盖无关改动,也不删除仍需核验的现场。只有当前合同无法安全覆盖目标、授权、依赖、基线、接受条件或停止条件的变化时,才回退到最早受影响阶段。结束任务实施与测试验证阶段前,记录适用验证结果、未运行处置、合同差异和未结发现;仅当路线实际创建或委派资源时,记录其处置状态。
|
|
@@ -5,6 +5,12 @@ description: Use Trellis Teamwork for live multi-agent collaboration, Teamwork S
|
|
|
5
5
|
|
|
6
6
|
# trellis-teamwork
|
|
7
7
|
|
|
8
|
+
Mechanism: **Trellis Teamwork** (Trellis 团队协作). One executor is a
|
|
9
|
+
**Trellis teammate**; plural **Trellis teammates** (Trellis 团队成员).
|
|
10
|
+
**Paseo-based-parallelism** (Paseo 并行协作) and its **Paseo delegated-agent**
|
|
11
|
+
(Paseo 委派 Agent) are a separate implementation mechanism and executor role.
|
|
12
|
+
Sessions, worktrees, nodes and attempts retain their own object names.
|
|
13
|
+
|
|
8
14
|
`trellis teamwork` is the local multi-agent collaboration runtime. A
|
|
9
15
|
Teamwork Session is the persistent chat or forum object used by the runtime;
|
|
10
16
|
it is independent from the Trellis task lifecycle and does not own business-phase progress.
|
|
@@ -22,6 +28,7 @@ trellis --version
|
|
|
22
28
|
trellis teamwork --help
|
|
23
29
|
trellis teamwork list --all
|
|
24
30
|
trellis teamwork list --scope global --all
|
|
31
|
+
trellis teamwork config
|
|
25
32
|
```
|
|
26
33
|
|
|
27
34
|
If the user names a Teamwork Session or thread, inspect it before asking for
|
|
@@ -37,8 +44,12 @@ trellis teamwork context list <session> --scope global --thread <thread>
|
|
|
37
44
|
|
|
38
45
|
| User intent | Read |
|
|
39
46
|
|---|---|
|
|
47
|
+
| `general`: bounded research, review, or verification assignments | `references/teamwork-plan-construction.md`, then `references/coordination-modes.md` |
|
|
48
|
+
| Advisor: one to three bounded consultations | `references/coordination-modes.md`, then `references/teamwork-plan-construction.md` |
|
|
49
|
+
| `committee`: parallel assessment by two or three distinct lenses | `references/coordination-modes.md`, then `references/teamwork-plan-construction.md` |
|
|
50
|
+
| Profile, model, provider, reasoning effort, or role-card configuration | `references/teammate-configuration-matrix.md` |
|
|
40
51
|
| “和 codex/claude 讨论一下”, “brainstorm with another agent” | `references/teamwork-plan-construction.md`, then `references/coordination-modes.md` |
|
|
41
|
-
|
|
|
52
|
+
| “派 teammate 做研究或验证”, “让 agent review”, “spawn a worker” | `references/teamwork-plan-construction.md`, then `references/teammate-processes.md` |
|
|
42
53
|
| “开 issue 区 / topic 群 / changelog / board”, “make a forum” | `references/teamwork-plan-construction.md` |
|
|
43
54
|
| “看看这个 thread”, “inspect a thread” | `references/teamwork-plan-construction.md` |
|
|
44
55
|
| “Teamwork 卡住了 / 没输出 / progress 被截断”, “teammate stalled” | `references/teammate-processes.md` |
|
|
@@ -46,14 +57,25 @@ trellis teamwork context list <session> --scope global --thread <thread>
|
|
|
46
57
|
|
|
47
58
|
## Core Rules
|
|
48
59
|
|
|
60
|
+
- Teammates provide research, review, verification, evidence, and advice under a role contract; they do not implement product code. Coding tools or provider permission modes do not grant that role authority. Return results in the assigned format and let the coordinator review them.
|
|
61
|
+
- Trellis teammates do not ask the user directly or require a user-question tool. Return missing input, limitations, unresolved choices or contract-valid blocked reports to the main agent; the main agent first resolves evidence and allocation before deciding whether a user choice is needed.
|
|
62
|
+
- `general`, `advisor`, and `committee` are coordination modes, independent from profiles, providers, `run`, batch execution, and forum sessions. Read project defaults with `teamwork config`; construct a frozen plan with `teamwork plan` and execute it with `teamwork batch --task <task-dir>`.
|
|
63
|
+
- For a managed batch, invoke one foreground `teamwork batch --json` command and wait for its receipt. The CLI owns FIFO admission, capacity, provider waits, retries, cancellation, report validation, and settlement; the main agent must not schedule per-assignment waits or retries.
|
|
64
|
+
- If the host yields that call, silently continue its original handle. Do not emit repetitive progress, query status, start unrelated work, or create another batch. Host continuation is not CLI scheduling. Codex ships a native wait projection and PreToolUse guard for supported tool events; neither prevents model wake-ups or ordinary model messages. After a lost coordinator, use native `teamwork reconcile` and retain reservations until process exit is proven.
|
|
65
|
+
- Agent/program callers must use `run --json`, `batch --json`, or `wait --json --from <worker>` for final results. Default run text and default wait events are compatibility/operator views. Read `execution`, every `reports[].validation` and content status, then perform semantic review; `done`, exit zero, `complete`, and `ALL_ACCEPTED` alone do not accept a task result. `semanticValidation: not_run` explicitly leaves that decision to the main agent.
|
|
66
|
+
- Tool permissions are automatically allowed; the default Codex launch has no sandbox. Source/Git, memory, and delegation boundaries are prompt obligations. Do not add tool/path permission gates or describe the role as technical isolation.
|
|
67
|
+
- Initialization carries common/professional rules and the mode-specific result contract. Task messages carry task data, acceptance and exact identity/path references. Context manifests may choose inline, required full reading, or on-demand references; reference text never becomes system instructions. ACP has user content only and cannot claim system priority.
|
|
68
|
+
- A batch runtime continuation waits on the same provider process under the same frozen deadline. It does not send another provider prompt or consume a full-attempt retry. A live `teamwork wait` host-tool continuation is a separate interactive-session workflow.
|
|
69
|
+
- Select one of the six professional profiles and one of its named configurations. For multiple teammates, consider the second and third candidates and record the selection reason; using the same configuration is allowed. See the configuration matrix reference before constructing a new plan.
|
|
70
|
+
- Teamwork does not create or operate Paseo workspaces, Git worktrees, or source-writing implementation agents. Those mechanisms remain independent.
|
|
49
71
|
- New forum Teamwork Sessions use `--type forum`. A `thread` is one item inside a forum Teamwork Session.
|
|
50
72
|
- Use `--context-file` / `--context-raw` and `trellis teamwork context add/delete/list`.
|
|
51
73
|
- Use `--stdin` or `--text-file` for long messages. Do not put long mixed Chinese/English text in the positional shell argument.
|
|
52
74
|
- Pretty `messages` output is an operator dashboard and may truncate progress. Use `--raw` for audit.
|
|
53
75
|
- `--as` is the speaker or worker handle, depending on the command. Use explicit, stable names when multiple agents or sessions are involved.
|
|
54
76
|
- `--scope project` (default) operates on the current cwd's project bucket; `--scope global` operates on the shared `__global__` bucket. Pick scope deliberately — a global board is invisible from project listings unless `--scope global` is passed.
|
|
55
|
-
- For
|
|
56
|
-
- **Dispatcher wait pattern**: use `--kind done` / `--kind turn_finished
|
|
77
|
+
- For exploratory discussion, choose distinct questions and pressure-test unresolved assumptions. Continue only while another exchange can change the decision or its evidence; do not require a fixed number of rounds or relabel a confirmation as new evidence.
|
|
78
|
+
- **Dispatcher wait pattern**: use `wait --json --from <worker>` for a final content report. Operator event waits may use `--kind done` / `--kind turn_finished`; tags are labels, not runtime completion events. Resume an outstanding host continuation before any other host action.
|
|
57
79
|
- Teamwork Sessions are event-sourced. Do not parse `events.jsonl` first; use `forum`, `thread`, `messages --thread`, and `context list`.
|
|
58
80
|
- `@pennixrv/trellis-core` owns reusable Teamwork Session/thread state, event append, sequence allocation, context/title projection, reducers, and task helpers. The CLI owns flags, terminal rendering, prompts, teammate lifecycle, and process exits.
|
|
59
81
|
- Teamwork plan construction belongs to the current phase coordinator. Teamwork validates and executes a frozen plan; it does not select the task phase, change task status, or create a second task state machine.
|
package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
The plan's `coordination_mode` selects the call shape. It is independent from
|
|
4
4
|
the teammate role, execution profile, and Teamwork Session type.
|
|
5
5
|
|
|
6
|
+
All modes use the same schema-2 content report and common `--json` result
|
|
7
|
+
envelope. Mode selection does not waive result validation or main-agent
|
|
8
|
+
semantic review. It also does not transfer FIFO or process control to a model.
|
|
9
|
+
|
|
10
|
+
Project defaults live in `.trellis/teamwork.json`: general defaults to one
|
|
11
|
+
member, advisor to three, and committee to three. Schema 2 also owns the mode
|
|
12
|
+
concurrency limits (general 8, advisor 3, committee 3) and the shared live-process
|
|
13
|
+
budget (8, with 0 reserved for non-batch work). Read them with
|
|
14
|
+
`trellis teamwork config --mode <mode>`. The coordinator uses `defaultMembers`
|
|
15
|
+
when composing assignments; it must write each member explicitly. The runtime
|
|
16
|
+
does not invent assignments or silently duplicate one to reach the default.
|
|
17
|
+
Changing defaults affects only newly constructed plans. Advisor must have one to
|
|
18
|
+
three members, committee two or three, and general one or more within capacity.
|
|
19
|
+
|
|
20
|
+
Member count guides plan composition; concurrency limits simultaneous work.
|
|
21
|
+
Effective capacity is bounded by the selected mode, requested capacity, shared
|
|
22
|
+
live budget after reservations, and verified host capability. Existing live
|
|
23
|
+
workers and batch reservations share admission control. Environment overrides
|
|
24
|
+
are explicit and reported in `capacityPolicy.diagnostics`. Legacy schema 1 and
|
|
25
|
+
YAML capacity remain readable for compatibility. Schema 2 ignores legacy YAML
|
|
26
|
+
capacity keys with a diagnostic, so a stale YAML limit of 1 cannot silently
|
|
27
|
+
override the new policy. YAML retains idle-cleanup settings.
|
|
28
|
+
|
|
6
29
|
## `general`
|
|
7
30
|
|
|
8
31
|
Use general coordination for one or more independent assignments. Each
|
|
@@ -12,8 +35,8 @@ each assignment independently.
|
|
|
12
35
|
|
|
13
36
|
## `advisor`
|
|
14
37
|
|
|
15
|
-
Use advisor coordination for one bounded
|
|
16
|
-
|
|
38
|
+
Use advisor coordination for one to three bounded consultations. Each advisor
|
|
39
|
+
returns independent advice for the current coordinator; the default is three.
|
|
17
40
|
The result still carries a source digest and acceptance evidence and does not
|
|
18
41
|
change the task or phase by itself.
|
|
19
42
|
|
|
@@ -22,7 +45,15 @@ change the task or phase by itself.
|
|
|
22
45
|
Use committee coordination when one question benefits from parallel distinct
|
|
23
46
|
lenses. The plan contains two or three assignments in one evaluation group.
|
|
24
47
|
All members share the assignment contract and use distinct lenses. They return
|
|
25
|
-
|
|
48
|
+
independently authored reports; the coordinator compares them after they finish.
|
|
49
|
+
Members may cite the same authoritative sources. Distinct lenses do not
|
|
50
|
+
guarantee independent evidence or require different providers, models, or profiles.
|
|
51
|
+
|
|
52
|
+
`lens` is the member's “本次关注点”, not another role directory. It is optional
|
|
53
|
+
in general and advisor mode. Committee members receive the same task, evidence
|
|
54
|
+
and acceptance contract; they must not read peer reports before submitting
|
|
55
|
+
their own. Profiles and configurations may differ, with a recorded selection
|
|
56
|
+
reason. Paseo workspace and Git worktree collaboration are independent.
|
|
26
57
|
|
|
27
58
|
Committee members do not debate with one another, run a consensus loop, or use
|
|
28
59
|
a directional counter relationship. If a question does not need independent
|
|
@@ -1,31 +1,42 @@
|
|
|
1
|
-
# Teammate
|
|
1
|
+
# Teammate 配置矩阵
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
configuration matrix. It is a selection input, not a new role system. A
|
|
5
|
-
profile may provide a default provider and model plus provider-specific
|
|
6
|
-
options. The frozen plan stores the selected execution values in the
|
|
7
|
-
`Teammate Execution Configuration` snapshot so a running batch is unaffected
|
|
8
|
-
by later matrix changes.
|
|
3
|
+
配置由项目文件持有,运行时读取;下表解释默认选择,不替代实际文件。
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
| 文件 | 职责 |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| `.trellis/agents/teammate-profiles.json`,schema 2 | `default_profile`;每个 profile 的 `role`、`default_configuration` 和 2–3 套命名 `configurations` |
|
|
8
|
+
| `.trellis/agents/teammate.md` | 通用角色、只读职责和结果合同 |
|
|
9
|
+
| `.trellis/agents/profiles/<profile>.md` | 精确专业角色卡;普通 Markdown,通过 Trellis 注入,不注册宿主原生角色 |
|
|
10
|
+
| `.trellis/teamwork.json`,schema 2 | `default_mode`;各模式的 `default_members`、`max_concurrency`;`resources` 中的共享进程预算与非 batch 预留 |
|
|
11
|
+
| `.trellis/config.yaml` 的 `teamwork.teammate_guard.idle_timeout` | 空闲清理;旧容量键仅在未迁移到 schema 2 时兼容读取 |
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
默认成员数为 general 1、advisor 3、committee 3;默认并发上限分别为 8、3、3,共享存活进程预算为 8,非 batch 预留为 0。成员数用于构造计划,不要求同时运行;有效并发还受显式请求、共享预算和宿主能力约束。schema 2 不再叠加旧 YAML 容量上限,兼容读取和环境覆盖均在 `capacityPolicy.diagnostics` 中说明。`capacityPolicy` 是解析结果,不是另一套配置。
|
|
14
|
+
|
|
15
|
+
每套执行配置包含 `provider`、`model`,可选 `reasoning_effort` 和适配器支持的 `options`。上下文长度沿用 provider 默认,不配置 token 或预算机制。`teammate` 是内部执行者类型,公开计划不填写 `role_id`;`lens` 只表示成员的“本次关注点”。
|
|
16
|
+
|
|
17
|
+
| Profile | 工作职责 | 默认配置 | 第二候选 | 第三候选 |
|
|
18
|
+
| --- | --- | --- | --- | --- |
|
|
19
|
+
| `architecture` | 架构、接口、依赖与取舍 | codex / gpt-6.1-sol / xhigh | copilot / gpt-6.1-sol / xhigh | copilot / claude-opus-5.5 / xhigh |
|
|
20
|
+
| `review` | 基于当前差异的正确性审查 | codex / gpt-6.1-sol / high | copilot / gpt-6.1-sol / high | copilot / claude-opus-5.5 / high |
|
|
21
|
+
| `research` | 外部资料、先例与时效核验 | codex / gpt-6.1-sol / high | copilot / gpt-6.1-sol / high | copilot / claude-sonnet-5.5 / high |
|
|
22
|
+
| `verification` | 独立验收、验证和证据核对 | codex / gpt-6.1-sol / high | copilot / gpt-6.1-sol / high | copilot / claude-sonnet-5.5 / high |
|
|
23
|
+
| `exploration` | 围绕主题探索本地源码、调用和边界 | codex / gpt-6.1-sol / high | copilot / gpt-6.1-sol / high | copilot / claude-sonnet-5.5 / high |
|
|
24
|
+
| `diagnosis` | 针对已知故障验证根因假设 | codex / gpt-6.1-sol / high | copilot / gpt-6.1-sol / high | copilot / claude-opus-5.5 / high |
|
|
25
|
+
|
|
26
|
+
候选名为 `codex-sol`、`copilot-sol`,以及 `copilot-opus` 或 `copilot-sonnet`。默认 profile 为 `exploration`。先查实际设置:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
trellis teamwork config --profile architecture --configuration copilot-opus --mode committee
|
|
14
30
|
```
|
|
15
31
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
The bundled role card is `.trellis/agents/teammate.md`. It is provider-neutral
|
|
29
|
-
and limits a teammate to the frozen context and current attempt artifacts. A
|
|
30
|
-
Teamwork teammate is not the native host-created `subagent`; the two have
|
|
31
|
-
different creation paths and contracts.
|
|
32
|
+
成员显式覆盖执行值只作用于该成员,不改项目默认。多成员应考虑同 provider 不同模型、跨 provider 同模型或不同专业的收益,填写 `selection_reason`;不强制异构、不自动轮换、不静默 fallback。`architecture + committee` 可以让 2–3 位架构成员分别使用不同配置。
|
|
33
|
+
|
|
34
|
+
构造器冻结有效执行值、通用加专业角色指令、模式结果合同、上下文、模式配置摘要和能力摘要。能力的 `evidence: adapter-contract` 说明它来自静态适配器合同,不是已安装后端的成功探测。后续改配置只影响新计划,已有计划执行时不重新解析角色文件;新计划的参考文件在派发前后核对冻结摘要。模型不可用、推理强度未被后端声明或选项不支持时明确失败,并保留实际配置协商阶段及后端声明信息。
|
|
35
|
+
|
|
36
|
+
四种 transport 为 Codex app-server、Claude Code stream-json、Copilot ACP 和 DSH ACP。Copilot 原生 CLI 支持非交互调用;这里选择 ACP 是为了统一会话、配置与取消回执。DSH 使用 `dsh --profile acp`,恢复使用其声明的 `session/resume`;Copilot 使用 `session/load`。安装、账号和真实调用结果须单独核验,fixture 通过不证明某个后端已可用。
|
|
37
|
+
|
|
38
|
+
Codex 使用 `developerInstructions`,Claude 使用独立的 append-system-prompt;ACP v1 只有用户内容块,Trellis 将角色与任务放在两个明确区分的纯文本块,但不宣称具有独立 system 优先级。完整角色在同一会话成功完成一轮后不重复发送,恢复或首次失败后重新建立。参考资料通过任务数据通道发送。不会动态改写 `AGENTS.md` 或注册 provider 原生 persona。
|
|
39
|
+
|
|
40
|
+
源码、Git、递归委派和隐式历史使用限制是角色义务。宿主能力检查只声明实际运行能力:前台等待、受控产物、transport 和容量;不声称完成文件系统只读或记忆隔离。可用工具与宽权限模式不授予 teammate 编写产品代码的职责。
|
|
41
|
+
|
|
42
|
+
工具权限自动允许,不设置默认沙箱或工具/路径准入限制。Codex 默认 `danger-full-access`、`approvalPolicy: never`;ACP 自动选择后端提供的允许选项。宿主仍可能附加 AGENTS、Skills 和环境记忆,角色摘要不代表整个有效上下文摘要。
|
package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md
CHANGED
|
@@ -7,21 +7,37 @@ evidence, path, secret, and symlink rules. The teammate writes only its
|
|
|
7
7
|
current attempt artifacts. It does not modify product source, Git state, task
|
|
8
8
|
status, or another teammate's artifacts.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
When a managed batch runtime wait yields before the frozen deadline, the CLI
|
|
11
|
+
may continue waiting on the same provider process and attempt identity. This
|
|
12
|
+
continuation does not send another provider prompt, extend the deadline, or
|
|
13
|
+
consume the full-attempt retry budget. The CLI keeps other active slots moving
|
|
14
|
+
while that wait is pending. At the deadline it closes FIFO admission and
|
|
15
|
+
cancels active attempts. A confirmed execution or acceptance failure may
|
|
16
|
+
consume the assignment's explicit retry budget and create a new attempt
|
|
17
|
+
identity. A `blocked` report with evidence ends only that assignment and does
|
|
18
|
+
not stop later FIFO work. An uncertain command, changed host identity,
|
|
19
|
+
incomplete report write, or unconfirmed cancellation enters reconciliation and
|
|
20
|
+
is not automatically duplicated. Reconciliation is a runtime outcome; the
|
|
21
|
+
task coordinator decides whether a later task phase needs a return.
|
|
22
|
+
|
|
23
|
+
For an interactive Teamwork Session `wait` invoked as a host tool, resume only
|
|
24
|
+
that host continuation until it resolves, times out, or errors. Do not run
|
|
25
|
+
another host action meanwhile, including another wait, shell command, or
|
|
26
|
+
status/message query. An empty transport slice does not mean the wait has
|
|
27
|
+
completed. Run diagnostics only after the continuation returns and diagnosis
|
|
28
|
+
is needed. This host-tool rule does not control a managed `teamwork batch`:
|
|
29
|
+
that foreground CLI call owns the batch lifecycle and returns one receipt.
|
|
16
30
|
|
|
17
31
|
Use the ordinary Teamwork Session commands for a deliberate one-shot or
|
|
18
32
|
interactive discussion:
|
|
19
33
|
|
|
20
34
|
```bash
|
|
21
|
-
trellis teamwork run [name]
|
|
22
|
-
trellis teamwork spawn <name> --
|
|
35
|
+
trellis teamwork run [name] --profile exploration --configuration codex-sol --stdin --json
|
|
36
|
+
trellis teamwork spawn <name> --profile review --configuration copilot-opus \
|
|
37
|
+
--as reviewer --file .trellis/tasks/in_progress/<task-dir>/prd.md \
|
|
38
|
+
--jsonl .trellis/tasks/in_progress/<task-dir>/research.jsonl
|
|
23
39
|
trellis teamwork send <name> --as <agent> --stdin
|
|
24
|
-
trellis teamwork wait <name> --as <agent> --
|
|
40
|
+
trellis teamwork wait <name> --as <agent> --from reviewer --json
|
|
25
41
|
trellis teamwork interrupt <name> --as <agent> --to <teammate> --stdin
|
|
26
42
|
trellis teamwork kill <name> --as <teammate>
|
|
27
43
|
```
|
|
@@ -30,8 +46,106 @@ These commands operate a Teamwork Session and do not replace a frozen plan or
|
|
|
30
46
|
create a second scheduler. Do not use them to bypass a rejected batch or to
|
|
31
47
|
steer an active managed assignment manually.
|
|
32
48
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
`spawn` registers an idle teammate; the first targeted `send` starts its turn.
|
|
50
|
+
The project profile supplies the common and professional role cards plus
|
|
51
|
+
execution defaults. `--profile` and `--configuration` select them;
|
|
52
|
+
`--reasoning-effort`, `--provider`, `--model`,
|
|
53
|
+
`--cwd`, `--resume`, `--sandbox`, `--timeout`, and `--warn-before` refine one
|
|
54
|
+
launch. `--file` accepts repeatable paths or globs. `--jsonl` accepts a
|
|
55
|
+
repeatable Trellis JSONL manifest whose entries have `{ "file", "reason", "delivery" }`.
|
|
56
|
+
Both forms are resolved relative to the spawn cwd, reject paths outside the
|
|
57
|
+
cwd or configured trusted roots, skip missing entries with a warning, and
|
|
58
|
+
enforce per-file and total-context limits before building reference data.
|
|
59
|
+
`delivery` defaults to `inline`; `required` supplies a path, digest and an
|
|
60
|
+
instruction to read the complete file before work; `on-demand` supplies a
|
|
61
|
+
path, digest and retrieval condition. Required/on-demand missing files fail
|
|
62
|
+
explicitly. New frozen batches recheck reference bytes before dispatch and
|
|
63
|
+
after completion; changed references require a new plan. This check binds
|
|
64
|
+
source versions, but does not prove the model actually read every byte.
|
|
65
|
+
Legacy generic `--agent <card>` remains available for deliberately custom
|
|
66
|
+
agent cards, but it cannot be combined with professional profile selection.
|
|
67
|
+
Interactive roles return a schema-2 JSON content report; they do not invent batch
|
|
68
|
+
claims, report paths or attempt identities.
|
|
69
|
+
|
|
70
|
+
Common/professional role rules and the mode-specific result contract are
|
|
71
|
+
initialization instructions. Codex uses `developerInstructions`; Claude uses
|
|
72
|
+
append-system-prompt. Reference material travels with the first task as data.
|
|
73
|
+
ACP has user blocks only: the role is sent once after a confirmed turn, retained
|
|
74
|
+
for follow-ups, and injected again after recovery or an unsuccessful first
|
|
75
|
+
turn. No JSON transport envelope is serialized into the role/task prose.
|
|
76
|
+
The host may add AGENTS, Skills and memory; `TRELLIS_HOOKS=0` disables Trellis
|
|
77
|
+
hooks, not all host context. No environment or memory isolation is claimed.
|
|
78
|
+
|
|
79
|
+
All providers automatically allow tool permissions. Codex defaults to
|
|
80
|
+
`danger-full-access` with `approvalPolicy: never`; an explicit user sandbox
|
|
81
|
+
override is still supported. ACP selects the offered allow option and reports
|
|
82
|
+
an error if none exists. Role boundaries remain prompt obligations.
|
|
83
|
+
|
|
84
|
+
Use `--inbox-policy explicitOnly|broadcastAndExplicit` to control which
|
|
85
|
+
messages are delivered to a teammate. `send --to` selects recipients and
|
|
86
|
+
`--delivery-mode appendOnly|requireKnownWorker|requireRunningWorker` controls
|
|
87
|
+
target validation. The runtime records the injected files, manifest paths,
|
|
88
|
+
provider identity, and terminal event in the session log.
|
|
89
|
+
|
|
90
|
+
The live budget and mode capacity come from schema-2 `.trellis/teamwork.json`;
|
|
91
|
+
explicit CLI flags and environment overrides may tighten the frozen policy.
|
|
92
|
+
Legacy `.trellis/config.yaml` teammate keys are ignored with diagnostics;
|
|
93
|
+
the separate idle timeout remains a process-lifecycle setting.
|
|
94
|
+
`--idle-timeout` cleans a continuously idle teammate; `--max-live-teammates`
|
|
95
|
+
limits live processes. A value of `0` disables the corresponding guard. An
|
|
96
|
+
idle teammate is not cleaned while it is in a turn. `interrupt` requests a
|
|
97
|
+
replacement instruction, `kill` attempts graceful shutdown, and `kill --force`
|
|
98
|
+
uses the hard termination path. `--resume` supplies the provider session or
|
|
99
|
+
thread identifier for a later attempt.
|
|
100
|
+
|
|
101
|
+
Codex interrupts use `turn/interrupt` and await the old terminal turn before
|
|
102
|
+
submitting the replacement. ACP sends `session/cancel` and awaits the terminal
|
|
103
|
+
prompt response; sending a notification alone is not cancellation proof.
|
|
104
|
+
Batch cancellation additionally confirms provider process exit. Unconfirmed
|
|
105
|
+
termination preserves reconciliation and its capacity reservation. Session
|
|
106
|
+
removal and prune preserve sessions with unresolved batch reservations.
|
|
107
|
+
|
|
108
|
+
For short independent work, `teamwork run` creates an ephemeral session,
|
|
109
|
+
injects the selected context, sends one prompt, waits for `done`, prints the
|
|
110
|
+
answer, and removes the session only after a valid complete content report.
|
|
111
|
+
`run --json` returns the common machine envelope and keeps failure diagnostics;
|
|
112
|
+
early supervisor errors/kills terminate the wait without hiding the cause.
|
|
113
|
+
`wait --json --from <one-worker>` binds the final report to `inputSeq` and
|
|
114
|
+
`turnId`; it does not stop the persistent worker. Default event waits retain
|
|
115
|
+
their existing behavior. For a managed plan, the coordinator owns
|
|
116
|
+
claim, dispatch, retry budget, terminal receipt, and reconciliation. An
|
|
117
|
+
uncertain provider action is reconciled instead of being duplicated. Settled
|
|
118
|
+
attempt reports and worklogs, including rejected attempts, remain until explicit
|
|
119
|
+
native cleanup; the result includes every attempt index. The
|
|
120
|
+
Teamwork Session event log follows its own lifecycle.
|
|
121
|
+
|
|
122
|
+
`teamwork cleanup-artifacts <plan> --task <task-dir>` previews the exact retained
|
|
123
|
+
report/worklog/stderr files of a durably settled batch. Only an explicit repeat
|
|
124
|
+
with `--confirm <preview-digest>` deletes those files; a changed preview or an
|
|
125
|
+
unresolved reservation is rejected. Read and accept needed evidence before
|
|
126
|
+
cleanup. Session removal alone does not delete task-owned attempt evidence.
|
|
127
|
+
|
|
128
|
+
Use `teamwork reconcile <original-plan> --task <task-dir>` to preview recovery
|
|
129
|
+
after coordinator loss. `--execute --reason <disposition>` only settles when
|
|
130
|
+
native process-exit facts or process birth identity prove termination. A missing
|
|
131
|
+
PID, absent report, or dead coordinator alone is insufficient. This command
|
|
132
|
+
preserves accepted assignments and releases only the original batch's leases.
|
|
133
|
+
It does not restart providers or accept task results.
|
|
134
|
+
|
|
135
|
+
After a durable failed settlement and explicit bounded retry approval, construct
|
|
136
|
+
`teamwork retry <original-plan> --task <task-dir> --output <new-plan> --batch <new-id>
|
|
137
|
+
--assignments <failed-id,...> --deadline <ISO-time> --approval-ref <approval>`.
|
|
138
|
+
Only failed assignments enter the new plan; frozen inputs and parent lineage
|
|
139
|
+
are retained. Repeating the same output is idempotent. Execute the new plan
|
|
140
|
+
normally; the original terminal result remains unchanged. A recovered subset
|
|
141
|
+
does not retroactively accept the original committee evaluation.
|
|
142
|
+
|
|
143
|
+
For a stalled process, inspect `teamwork list`,
|
|
144
|
+
`teamwork messages <session> --raw --no-progress`, the provider log, and the
|
|
145
|
+
host process state in that order. Use `messages --follow` for live output and
|
|
146
|
+
the `--since`, `--kind`, `--from`, `--to`, `--thread`, and `--action` filters
|
|
147
|
+
to isolate a turn. Use `kill` only when the process owner and current state
|
|
148
|
+
are known. The runtime event log is the source of truth for coordination
|
|
149
|
+
state; sidecar process files are diagnostic evidence. The hidden
|
|
150
|
+
`teamwork __supervisor` and `__parse-trace` commands are runtime internals,
|
|
151
|
+
not user-facing dispatch entry points.
|