@chankov/agent-fleet 1.0.0 → 1.0.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/.pi/agents/model-profiles.yaml +2 -2
- package/.pi/harnesses/agent-hub/README.md +12 -3
- package/.pi/harnesses/agent-hub/hub-state-audit.js +55 -0
- package/.pi/harnesses/agent-hub/index.ts +121 -57
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/run-budget.js +61 -0
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/fleet-dashboard-ops.ts +37 -0
- package/.versions/1.0.1/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/1.0.1/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/1.0.1/.pi/agents/peers.yaml +142 -0
- package/.versions/1.0.1/.pi/agents/teams.yaml +41 -0
- package/.versions/1.0.1/.pi/damage-control-rules.yaml +297 -0
- package/.versions/1.0.1/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/1.0.1/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/1.0.1/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/btw/README.md +120 -0
- package/.versions/1.0.1/.pi/extensions/btw/index.ts +914 -0
- package/.versions/1.0.1/.pi/extensions/btw/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/btw/state.js +179 -0
- package/.versions/1.0.1/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/1.0.1/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/1.0.1/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/1.0.1/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/1.0.1/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/1.0.1/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/1.0.1/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/package-lock.json +1143 -0
- package/.versions/1.0.1/.pi/extensions/package.json +9 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/1.0.1/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/README.md +1065 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/delegate.ts +435 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/drift-watchdog.js +211 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/footer.ts +35 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/hub-state-audit.js +55 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/index.ts +9343 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/posture.ts +103 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/run-budget.js +540 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/spawn.ts +354 -0
- package/.versions/1.0.1/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/1.0.1/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/1.0.1/.pi/harnesses/ask-user-remote/index.ts +477 -0
- package/.versions/1.0.1/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/1.0.1/.pi/harnesses/coms/README.md +100 -0
- package/.versions/1.0.1/.pi/harnesses/coms/index.ts +1767 -0
- package/.versions/1.0.1/.pi/harnesses/coms/package.json +7 -0
- package/.versions/1.0.1/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/1.0.1/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/1.0.1/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/1.0.1/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/1.0.1/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/1.0.1/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/1.0.1/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-dashboard-view.ts +140 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-detail-view.ts +43 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/1.0.1/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/1.0.1/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/1.0.1/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/1.0.1/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/1.0.1/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/1.0.1/.pi/harnesses/package-lock.json +2046 -0
- package/.versions/1.0.1/.pi/harnesses/package.json +10 -0
- package/.versions/1.0.1/.pi/prompts/af-build.md +24 -0
- package/.versions/1.0.1/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/1.0.1/.pi/prompts/af-plan.md +16 -0
- package/.versions/1.0.1/.pi/prompts/af-review.md +16 -0
- package/.versions/1.0.1/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/1.0.1/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/1.0.1/.pi/prompts/af-ship.md +17 -0
- package/.versions/1.0.1/.pi/prompts/af-spec.md +15 -0
- package/.versions/1.0.1/.pi/prompts/af-test.md +19 -0
- package/.versions/1.0.1/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/1.0.1/.version +1 -0
- package/.versions/1.0.1/agents/architect.md +24 -0
- package/.versions/1.0.1/agents/bowser.md +27 -0
- package/.versions/1.0.1/agents/builder.md +54 -0
- package/.versions/1.0.1/agents/code-reviewer.md +208 -0
- package/.versions/1.0.1/agents/deep-researcher.md +32 -0
- package/.versions/1.0.1/agents/documenter.md +18 -0
- package/.versions/1.0.1/agents/orchestrator.md +72 -0
- package/.versions/1.0.1/agents/plan-reviewer.md +83 -0
- package/.versions/1.0.1/agents/planner.md +70 -0
- package/.versions/1.0.1/agents/releaser.md +24 -0
- package/.versions/1.0.1/agents/researcher.md +28 -0
- package/.versions/1.0.1/agents/security-auditor.md +167 -0
- package/.versions/1.0.1/agents/test-engineer.md +153 -0
- package/.versions/1.0.1/agents/web-debugger.md +43 -0
- package/.versions/1.0.1/agents/web-performance-auditor.md +193 -0
- package/.versions/1.0.1/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/1.0.1/codex/CONDUCTOR.md +148 -0
- package/.versions/1.0.1/docs/ARCHITECTURE.md +337 -0
- package/.versions/1.0.1/docs/agent-fleet-setup.md +437 -0
- package/.versions/1.0.1/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/1.0.1/docs/codex-remote-conductor.md +170 -0
- package/.versions/1.0.1/docs/coms-hermes-bridge.md +189 -0
- package/.versions/1.0.1/docs/getting-started.md +98 -0
- package/.versions/1.0.1/docs/npm-install.md +292 -0
- package/.versions/1.0.1/docs/pi-extensions.md +412 -0
- package/.versions/1.0.1/docs/pi-setup.md +74 -0
- package/.versions/1.0.1/docs/skill-anatomy.md +150 -0
- package/.versions/1.0.1/hermes/README.md +347 -0
- package/.versions/1.0.1/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/1.0.1/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/1.0.1/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/1.0.1/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/1.0.1/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/1.0.1/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/1.0.1/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/1.0.1/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/1.0.1/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/1.0.1/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/1.0.1/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/1.0.1/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/1.0.1/install-manifest.json +2745 -0
- package/.versions/1.0.1/justfile +272 -0
- package/.versions/1.0.1/manifest-meta.json +882 -0
- package/.versions/1.0.1/references/accessibility-checklist.md +160 -0
- package/.versions/1.0.1/references/definition-of-done.md +67 -0
- package/.versions/1.0.1/references/fleet-coordination-patterns.md +151 -0
- package/.versions/1.0.1/references/observability-checklist.md +91 -0
- package/.versions/1.0.1/references/orchestration-patterns.md +370 -0
- package/.versions/1.0.1/references/performance-checklist.md +153 -0
- package/.versions/1.0.1/references/prompting-patterns.md +380 -0
- package/.versions/1.0.1/references/security-checklist.md +179 -0
- package/.versions/1.0.1/references/testing-patterns.md +236 -0
- package/.versions/1.0.1/scripts/codex-conductor.ts +41 -0
- package/.versions/1.0.1/scripts/codex-remote-control.ts +167 -0
- package/.versions/1.0.1/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/1.0.1/scripts/coms-cli.ts +484 -0
- package/.versions/1.0.1/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/1.0.1/scripts/fleet.ts +185 -0
- package/.versions/1.0.1/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/1.0.1/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/1.0.1/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/1.0.1/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/1.0.1/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/1.0.1/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/1.0.1/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/1.0.1/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/1.0.1/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/1.0.1/scripts/lib/fleet-command.ts +266 -0
- package/.versions/1.0.1/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/1.0.1/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/1.0.1/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/1.0.1/scripts/lib/monitor-env.ts +146 -0
- package/.versions/1.0.1/scripts/lib/peer-launch.ts +318 -0
- package/.versions/1.0.1/scripts/lib/persona-banner.ts +62 -0
- package/.versions/1.0.1/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/1.0.1/scripts/lib/team-project.ts +213 -0
- package/.versions/1.0.1/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/1.0.1/scripts/peer-banner.ts +40 -0
- package/.versions/1.0.1/scripts/peer-launch.ts +259 -0
- package/.versions/1.0.1/scripts/team-snapshot.ts +237 -0
- package/.versions/1.0.1/scripts/team-up.ts +406 -0
- package/.versions/1.0.1/skills/_internal/grilling.md +11 -0
- package/.versions/1.0.1/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/1.0.1/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/1.0.1/skills/compound-learning/SKILL.md +137 -0
- package/.versions/1.0.1/skills/context-engineering/SKILL.md +291 -0
- package/.versions/1.0.1/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/1.0.1/skills/designing-agents/SKILL.md +394 -0
- package/.versions/1.0.1/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/1.0.1/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.1/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/1.0.1/skills/idea-refine/SKILL.md +182 -0
- package/.versions/1.0.1/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.1/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.1/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.1/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.1/skills/incremental-implementation/SKILL.md +287 -0
- package/.versions/1.0.1/skills/interview-me/SKILL.md +226 -0
- package/.versions/1.0.1/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/1.0.1/skills/peer-coms/SKILL.md +90 -0
- package/.versions/1.0.1/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.1/skills/planning-and-task-breakdown/SKILL.md +254 -0
- package/.versions/1.0.1/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/1.0.1/skills/spec-driven-development/SKILL.md +257 -0
- package/.versions/1.0.1/skills/using-agent-skills/SKILL.md +199 -0
- package/.versions/1.0.1/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/1.0.1/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +6 -0
- package/agents/code-reviewer.md +1 -1
- package/agents/deep-researcher.md +1 -1
- package/agents/plan-reviewer.md +1 -1
- package/agents/planner.md +1 -1
- package/agents/security-auditor.md +1 -1
- package/agents/test-engineer.md +1 -1
- package/install-manifest.json +1 -1
- package/package.json +2 -2
|
@@ -9,8 +9,8 @@ mix-max:
|
|
|
9
9
|
builder: openai-codex/gpt-5.6-sol
|
|
10
10
|
planner: github-copilot/claude-fable-5
|
|
11
11
|
plan-reviewer: openai-codex/gpt-5.6-sol
|
|
12
|
-
security-auditor: xai/grok-4.
|
|
13
|
-
test-engineer: xai/grok-4.
|
|
12
|
+
security-auditor: xai/grok-4.6
|
|
13
|
+
test-engineer: xai/grok-4.6
|
|
14
14
|
sol:
|
|
15
15
|
code-reviewer: openai-codex/gpt-5.6-sol
|
|
16
16
|
builder: openai-codex/gpt-5.6-sol
|
|
@@ -476,8 +476,14 @@ task, most of it re-billed stale specialist context).
|
|
|
476
476
|
|
|
477
477
|
When a budget is exhausted, `dispatch_agent`/`spawn_research` **refuse** with instructions
|
|
478
478
|
to summarize and ask the user; the next user message opens a fresh window. Switch modes
|
|
479
|
-
live with `/af-hub-mode fast|standard|strict` (no argument shows the current mode and usage)
|
|
480
|
-
|
|
479
|
+
live with `/af-hub-mode fast|standard|strict` (no argument shows the current mode and usage).
|
|
480
|
+
The live switch is deliberately **process/session-local**: it does not mutate another repository,
|
|
481
|
+
another pane, or the project's override file. A later `session_start` reapplies that repository's
|
|
482
|
+
configured default. Successful live switches and session-start default application append
|
|
483
|
+
`agent-hub-mode` entries to the Pi session record with an allowlisted identity (`cwd`, PID, Hub
|
|
484
|
+
session/project, and Herdr workspace/pane when available), so a mode change can be attributed to
|
|
485
|
+
the process that actually handled it. Set the project default and per-axis overrides in the
|
|
486
|
+
overrides file:
|
|
481
487
|
|
|
482
488
|
```markdown
|
|
483
489
|
## agent-hub
|
|
@@ -509,7 +515,10 @@ counters are **not** reset by a user message:
|
|
|
509
515
|
Exhausting it is a **hard stop**: the refusal says so, and another user message does not
|
|
510
516
|
reopen it. Only `/af-new-task [label]` (or `set_task_tier` with `new_task: true`) opens a
|
|
511
517
|
new task window — clearing the counters, the tier, the review-round count, the duplicate
|
|
512
|
-
guard, and any external-blocker stop.
|
|
518
|
+
guard, and any external-blocker stop. A successful slash-command reset or
|
|
519
|
+
`set_task_tier(new_task: true)` appends an `agent-hub-task-reset` entry with the reset source,
|
|
520
|
+
prior counters/active time, and the same allowlisted process/session/pane identity. The status
|
|
521
|
+
chip shows both (`… · task 4/18`).
|
|
513
522
|
|
|
514
523
|
The reasoning: a task that has burned three full envelopes has not hit a budget problem, it
|
|
515
524
|
has outgrown its scope, and re-scoping is the human's call.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Pure, allowlisted serializers for Hub mode/task lifecycle audit entries.
|
|
2
|
+
// Callers provide only runtime identity fields; unknown properties are ignored.
|
|
3
|
+
|
|
4
|
+
function text(value, max = 4096) {
|
|
5
|
+
if (typeof value !== "string") return null;
|
|
6
|
+
const clean = value.replace(/[\r\n]+/g, " ").trim();
|
|
7
|
+
return clean ? clean.slice(0, max) : null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function count(value) {
|
|
11
|
+
return Number.isFinite(value) ? Math.max(0, Math.round(value)) : 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Return only non-secret process/session routing identity. */
|
|
15
|
+
export function buildHubAuditIdentity(input = {}) {
|
|
16
|
+
return {
|
|
17
|
+
cwd: text(input.cwd),
|
|
18
|
+
pid: count(input.pid),
|
|
19
|
+
session_id: text(input.sessionId, 256),
|
|
20
|
+
project: text(input.project, 256),
|
|
21
|
+
herdr_workspace_id: text(input.workspaceId, 256),
|
|
22
|
+
herdr_pane_id: text(input.paneId, 256),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function buildHubModeAudit(input = {}) {
|
|
27
|
+
return {
|
|
28
|
+
schema_version: 1,
|
|
29
|
+
previous_mode: text(input.previousMode, 32),
|
|
30
|
+
mode: text(input.mode, 32),
|
|
31
|
+
source: text(input.source, 64),
|
|
32
|
+
override_file: text(input.overrideFile),
|
|
33
|
+
task_tier: text(input.taskTier, 32),
|
|
34
|
+
turn_dispatches: count(input.turnDispatches),
|
|
35
|
+
turn_research: count(input.turnResearch),
|
|
36
|
+
identity: buildHubAuditIdentity(input.identity),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function buildTaskResetAudit(input = {}) {
|
|
41
|
+
const prior = input.prior ?? {};
|
|
42
|
+
return {
|
|
43
|
+
schema_version: 1,
|
|
44
|
+
source: text(input.source, 64),
|
|
45
|
+
label: text(input.label, 160),
|
|
46
|
+
prior: {
|
|
47
|
+
tier: text(prior.tier, 32),
|
|
48
|
+
dispatches: count(prior.dispatches),
|
|
49
|
+
research: count(prior.research),
|
|
50
|
+
review_rounds: count(prior.reviewRounds),
|
|
51
|
+
active_ms: count(prior.activeMs),
|
|
52
|
+
},
|
|
53
|
+
identity: buildHubAuditIdentity(input.identity),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -89,7 +89,8 @@ import {
|
|
|
89
89
|
exemptionsFilePath, type AccessRequest,
|
|
90
90
|
} from "../lib/damage-control-shared.ts";
|
|
91
91
|
import { applyModelOverride, clampDelegateDepth, DELEGATE_TREE_SPAWN_BUDGET, fallbackModelFor, isReadOnlyToolList, MAX_DELEGATE_DEPTH, normalizeAgentInput, orchestratorNeedsRoster, parseTeamsYaml, resolveStartupRoster, safeAgentKey, safePathWithin, taskFingerprint, upsertTeamInYaml } from "./helpers.ts";
|
|
92
|
-
import { DEFAULT_HUB_MODE, DEFAULT_TASK_TIER, HUB_MODES, TASK_BUDGET_MULTIPLIER, applyTierChange, blockingFindingCap, budgetStatusLine, checkReviewRoundCap, checkTaskBudget, checkTierPersonaGate, checkTurnBudget, contextOverflowDiagnostic, isReviewPersona, normalizeHubMode, remainingTaskResearch, resolveTaskBudget, resolveTurnBudget, reviewBudgetClause, reviewRoundCap, shouldRecycleSession,
|
|
92
|
+
import { DEFAULT_HUB_MODE, DEFAULT_TASK_TIER, HUB_MODES, TASK_BUDGET_MULTIPLIER, addTaskClockWait, applyTierChange, blockingFindingCap, budgetStatusLine, checkReviewRoundCap, checkTaskBudget, checkTierPersonaGate, checkTurnBudget, closeTaskClock, contextOverflowDiagnostic, createTaskClock, isReviewPersona, normalizeHubMode, openTaskClock, remainingTaskResearch, resetTaskClock, resolveTaskBudget, resolveTurnBudget, reviewBudgetClause, reviewRoundCap, shouldRecycleSession, taskClockElapsedMs } from "./run-budget.js";
|
|
93
|
+
import { buildHubAuditIdentity, buildHubModeAudit, buildTaskResetAudit } from "./hub-state-audit.js";
|
|
93
94
|
import { countReviewFindings, findingBudgetNotice } from "./review-findings.js";
|
|
94
95
|
import { checkDocsLane, docsLaneNotice } from "./docs-lane.js";
|
|
95
96
|
import { checkExternalBlockerGate, externalBlockedProtocol, extractExternalBlockers } from "./external-blocker.js";
|
|
@@ -133,7 +134,7 @@ import { buildLiveRegistryEntry, type ComsRegistryEntry } from "../lib/coms-regi
|
|
|
133
134
|
import { FULLSCREEN_OVERLAY, bodyRows, clampScroll, fitToHeight } from "../lib/fleet-overlay.ts";
|
|
134
135
|
import { createPanelResources } from "../lib/fleet-panel.ts";
|
|
135
136
|
import { buildFleetRows, fleetTiming, summarise, unionMs, type DelegateInput, type FleetRow, type FleetSource, type PeerInput, type ResearchInput, type SpecialistInput } from "../lib/fleet-read-model.ts";
|
|
136
|
-
import { attachFleetDashboardTicker, compactWidgetsEnabled, liveTimeline, resolveFleetKill, resolveFleetRestart } from "../lib/fleet-dashboard-ops.ts";
|
|
137
|
+
import { attachFleetDashboardTicker, compactWidgetsEnabled, gridColumnsForItems, gridColumnsForSize, liveTimeline, renderCardGrid, resolveFleetKill, resolveFleetRestart } from "../lib/fleet-dashboard-ops.ts";
|
|
137
138
|
import { dashboardTransition, renderFleetDashboard, FLEET_CHROME_ROWS, type DashboardConfirm } from "../lib/fleet-dashboard-view.ts";
|
|
138
139
|
import { detailContent, detailTransition, renderFleetDetail, DETAIL_CHROME_ROWS } from "../lib/fleet-detail-view.ts";
|
|
139
140
|
import { reconcileSelection, type Selection } from "../lib/fleet-selection.ts";
|
|
@@ -458,6 +459,7 @@ interface AgentTeamOverrides {
|
|
|
458
459
|
researchKeep: number;
|
|
459
460
|
reconSearchTimeoutMs: number | null;
|
|
460
461
|
hubMode: string;
|
|
462
|
+
hubModeSource: "default" | "project-override";
|
|
461
463
|
// Per-axis turn-budget overrides for run-budget.js resolveTurnBudget():
|
|
462
464
|
// number replaces the mode default, null = "off", undefined = keep default.
|
|
463
465
|
budgetOverrides: {
|
|
@@ -488,6 +490,7 @@ const DEFAULT_OVERRIDES: AgentTeamOverrides = {
|
|
|
488
490
|
researchKeep: DEFAULT_RESEARCH_KEEP,
|
|
489
491
|
reconSearchTimeoutMs: 120_000,
|
|
490
492
|
hubMode: DEFAULT_HUB_MODE,
|
|
493
|
+
hubModeSource: "default",
|
|
491
494
|
budgetOverrides: {},
|
|
492
495
|
watchdogSetting: DEFAULT_WATCHDOG_SETTING,
|
|
493
496
|
watchdogJudgeModel: null,
|
|
@@ -573,6 +576,7 @@ function parseAgentTeamOverrides(cwd: string): AgentTeamOverrides {
|
|
|
573
576
|
const mode = normalizeHubMode(value);
|
|
574
577
|
if (mode) {
|
|
575
578
|
result.hubMode = mode;
|
|
579
|
+
result.hubModeSource = "project-override";
|
|
576
580
|
} else {
|
|
577
581
|
result.warnings.push(`mode "${value}" is not one of ${HUB_MODES.join("|")} — using the default (${DEFAULT_HUB_MODE})`);
|
|
578
582
|
}
|
|
@@ -2092,9 +2096,9 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2092
2096
|
// at fast mode's 45-minute envelope that hard-stops a task with two dispatches
|
|
2093
2097
|
// spent. A false stop is worse than no stop: it teaches people to reset the
|
|
2094
2098
|
// task window reflexively, which is the one thing that must stay deliberate.
|
|
2095
|
-
//
|
|
2096
|
-
|
|
2097
|
-
let
|
|
2099
|
+
// The explicit clock state makes `active` authoritative: a stale timestamp can
|
|
2100
|
+
// never turn inter-turn idle time into task work.
|
|
2101
|
+
let taskClock = createTaskClock();
|
|
2098
2102
|
// Review dispatches spent on this task (review-round cap).
|
|
2099
2103
|
let taskReviewRounds = 0;
|
|
2100
2104
|
// Task tier (complexity triage): declared by the dispatcher via set_task_tier.
|
|
@@ -2140,24 +2144,20 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2140
2144
|
* minus its ask_user waits. An ask_user still in flight is subtracted too, so
|
|
2141
2145
|
* the clock does not tick while the dispatcher sits at a question.
|
|
2142
2146
|
*/
|
|
2143
|
-
function taskActiveElapsedMs(): number {
|
|
2147
|
+
function taskActiveElapsedMs(now = Date.now()): number {
|
|
2144
2148
|
let openWait = 0;
|
|
2145
|
-
const now = Date.now();
|
|
2146
2149
|
for (const startedAt of askUserStarts.values()) openWait += Math.max(0, now - startedAt);
|
|
2147
|
-
return
|
|
2150
|
+
return taskClockElapsedMs(taskClock, now, openWait);
|
|
2148
2151
|
}
|
|
2149
2152
|
/** Fold the turn that is ending into the task's active-time accumulator. */
|
|
2150
|
-
function closeTurnActiveTime() {
|
|
2151
|
-
|
|
2152
|
-
taskActiveMs += turnActiveMs(currentTurnStartedAt, Date.now(), turnAskUserWaitMs);
|
|
2153
|
-
turnAskUserWaitMs = 0;
|
|
2153
|
+
function closeTurnActiveTime(now = Date.now()) {
|
|
2154
|
+
taskClock = closeTaskClock(taskClock, now);
|
|
2154
2155
|
}
|
|
2155
2156
|
/** Clear the task window: counters, tier, clock, review rounds, blocker breaker. */
|
|
2156
|
-
function resetTaskWindow(label: string | null = null) {
|
|
2157
|
+
function resetTaskWindow(label: string | null = null, now = Date.now()) {
|
|
2157
2158
|
taskDispatchCount = 0;
|
|
2158
2159
|
taskResearchCount = 0;
|
|
2159
|
-
|
|
2160
|
-
turnAskUserWaitMs = 0;
|
|
2160
|
+
taskClock = resetTaskClock(taskClock, now);
|
|
2161
2161
|
taskReviewRounds = 0;
|
|
2162
2162
|
taskLabel = label;
|
|
2163
2163
|
taskTier = null;
|
|
@@ -2168,6 +2168,56 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2168
2168
|
turnDispatchFingerprints.clear();
|
|
2169
2169
|
updateModeStatus();
|
|
2170
2170
|
}
|
|
2171
|
+
function hubAuditIdentity(ctx?: ExtensionContext) {
|
|
2172
|
+
return buildHubAuditIdentity({
|
|
2173
|
+
cwd: ctx?.cwd ?? identity?.cwd ?? currentCtx?.cwd ?? process.cwd(),
|
|
2174
|
+
pid: process.pid,
|
|
2175
|
+
sessionId: identity?.session_id,
|
|
2176
|
+
project: identity?.project,
|
|
2177
|
+
workspaceId: process.env.HERDR_WORKSPACE_ID,
|
|
2178
|
+
paneId: process.env.HERDR_PANE_ID,
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
function hubLocationSuffix(ctx?: ExtensionContext): string {
|
|
2182
|
+
const where = hubAuditIdentity(ctx);
|
|
2183
|
+
return `\nRepository: ${where.cwd ?? "unknown"}${where.herdr_pane_id ? ` · pane ${where.herdr_pane_id}` : ""}`;
|
|
2184
|
+
}
|
|
2185
|
+
function appendHubModeEntry(input: {
|
|
2186
|
+
previousMode: string;
|
|
2187
|
+
mode: string;
|
|
2188
|
+
source: "slash-command" | "project-override" | "default";
|
|
2189
|
+
overrideFile?: string | null;
|
|
2190
|
+
ctx?: ExtensionContext;
|
|
2191
|
+
}) {
|
|
2192
|
+
try {
|
|
2193
|
+
pi.appendEntry("agent-hub-mode", buildHubModeAudit({
|
|
2194
|
+
...input,
|
|
2195
|
+
taskTier,
|
|
2196
|
+
turnDispatches: turnDispatchCount,
|
|
2197
|
+
turnResearch: turnResearchCount,
|
|
2198
|
+
identity: hubAuditIdentity(input.ctx),
|
|
2199
|
+
}));
|
|
2200
|
+
} catch { /* diagnostics are best-effort; state changes still succeed */ }
|
|
2201
|
+
}
|
|
2202
|
+
function taskResetSnapshot(now = Date.now()) {
|
|
2203
|
+
return {
|
|
2204
|
+
tier: taskTier,
|
|
2205
|
+
dispatches: taskDispatchCount,
|
|
2206
|
+
research: taskResearchCount,
|
|
2207
|
+
reviewRounds: taskReviewRounds,
|
|
2208
|
+
activeMs: taskActiveElapsedMs(now),
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
function appendTaskResetEntry(source: "slash-command" | "tool:set_task_tier", label: string | null, prior: ReturnType<typeof taskResetSnapshot>, ctx?: ExtensionContext) {
|
|
2212
|
+
try {
|
|
2213
|
+
pi.appendEntry("agent-hub-task-reset", buildTaskResetAudit({
|
|
2214
|
+
source,
|
|
2215
|
+
label,
|
|
2216
|
+
prior,
|
|
2217
|
+
identity: hubAuditIdentity(ctx),
|
|
2218
|
+
}));
|
|
2219
|
+
} catch { /* diagnostics are best-effort; state changes still succeed */ }
|
|
2220
|
+
}
|
|
2171
2221
|
function updateModeStatus() {
|
|
2172
2222
|
try {
|
|
2173
2223
|
widgetCtx?.ui?.setStatus(
|
|
@@ -2665,8 +2715,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2665
2715
|
|
|
2666
2716
|
// Auto-size grid columns based on team size
|
|
2667
2717
|
function recomputeGrid() {
|
|
2668
|
-
|
|
2669
|
-
gridCols = size <= 3 ? size : size === 4 ? 2 : 3;
|
|
2718
|
+
gridCols = gridColumnsForSize(agentStates.size);
|
|
2670
2719
|
}
|
|
2671
2720
|
|
|
2672
2721
|
function activateTeam(teamName: string) {
|
|
@@ -2975,28 +3024,19 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2975
3024
|
// into the belowEditor "agent-running" widget instead.
|
|
2976
3025
|
if (!compactWidgetsEnabled(viewMode)) return [];
|
|
2977
3026
|
|
|
2978
|
-
const cols =
|
|
3027
|
+
const cols = gridColumnsForItems(gridCols, states.length);
|
|
2979
3028
|
const gap = 1;
|
|
2980
3029
|
const colWidth = Math.floor((width - gap * (cols - 1)) / cols);
|
|
2981
3030
|
const labelText = "── research ";
|
|
2982
3031
|
const header = theme.fg("dim", labelText + "─".repeat(Math.max(0, width - labelText.length)));
|
|
2983
|
-
const
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
}
|
|
2992
|
-
|
|
2993
|
-
const cardHeight = cards[0].length;
|
|
2994
|
-
for (let line = 0; line < cardHeight; line++) {
|
|
2995
|
-
rows.push(cards.map(card => card[line] || ""));
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
const grid = rows.map(cs => cs.join(" ".repeat(gap)));
|
|
3032
|
+
const grid = renderCardGrid(
|
|
3033
|
+
states,
|
|
3034
|
+
cols,
|
|
3035
|
+
CARD_HEIGHT,
|
|
3036
|
+
s => renderResearchCard(s, colWidth, theme),
|
|
3037
|
+
" ".repeat(gap),
|
|
3038
|
+
" ".repeat(Math.max(0, colWidth)),
|
|
3039
|
+
);
|
|
3000
3040
|
text.setText([header, ...grid].join("\n"));
|
|
3001
3041
|
return text.render(width);
|
|
3002
3042
|
},
|
|
@@ -5607,17 +5647,22 @@ Finish with the artifact-relative path plus a digest of no more than 10 lines. I
|
|
|
5607
5647
|
}),
|
|
5608
5648
|
async execute(_callId, params, _signal, _onUpdate, _ctx) {
|
|
5609
5649
|
const { tier, reason, new_task } = params as { tier: string; reason?: string; new_task?: boolean };
|
|
5610
|
-
|
|
5611
|
-
//
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
const change = applyTierChange(taskTierAssumed ? null : taskTier, tier, reason);
|
|
5650
|
+
// A new task classifies from an empty ratchet. Validate the requested tier
|
|
5651
|
+
// before mutating/resetting anything so invalid input cannot erase a task.
|
|
5652
|
+
const currentTier = new_task ? null : (taskTierAssumed ? null : taskTier);
|
|
5653
|
+
const change = applyTierChange(currentTier, tier, reason);
|
|
5615
5654
|
if (!change.ok) {
|
|
5616
5655
|
return {
|
|
5617
5656
|
content: [{ type: "text" as const, text: change.message }],
|
|
5618
5657
|
details: { status: "error", reason: change.reason, tier: change.tier },
|
|
5619
5658
|
};
|
|
5620
5659
|
}
|
|
5660
|
+
if (new_task) {
|
|
5661
|
+
const resetAt = Date.now();
|
|
5662
|
+
const prior = taskResetSnapshot(resetAt);
|
|
5663
|
+
resetTaskWindow(null, resetAt);
|
|
5664
|
+
appendTaskResetEntry("tool:set_task_tier", null, prior, _ctx);
|
|
5665
|
+
}
|
|
5621
5666
|
taskTier = change.tier;
|
|
5622
5667
|
taskTierAssumed = false;
|
|
5623
5668
|
turnReport.tier = change.tier;
|
|
@@ -6876,9 +6921,14 @@ Finish with the artifact-relative path plus a digest of no more than 10 lines. I
|
|
|
6876
6921
|
ctx.ui.notify(`Unknown mode "${requested}" — expected one of: ${HUB_MODES.join(", ")}`, "error");
|
|
6877
6922
|
return;
|
|
6878
6923
|
}
|
|
6924
|
+
const previousMode = hubMode;
|
|
6879
6925
|
hubMode = mode;
|
|
6880
6926
|
updateModeStatus();
|
|
6881
|
-
|
|
6927
|
+
appendHubModeEntry({ previousMode, mode, source: "slash-command", ctx });
|
|
6928
|
+
ctx.ui.notify(
|
|
6929
|
+
`Execution mode → ${mode} (budgets apply from the next dispatch; prompt updates next turn)` + hubLocationSuffix(ctx),
|
|
6930
|
+
"success",
|
|
6931
|
+
);
|
|
6882
6932
|
},
|
|
6883
6933
|
});
|
|
6884
6934
|
|
|
@@ -6892,17 +6942,15 @@ Finish with the artifact-relative path plus a digest of no more than 10 lines. I
|
|
|
6892
6942
|
handler: async (args, ctx) => {
|
|
6893
6943
|
widgetCtx = ctx;
|
|
6894
6944
|
const label = (args || "").trim() || null;
|
|
6895
|
-
const
|
|
6896
|
-
const
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
const priorTier = taskTier;
|
|
6900
|
-
resetTaskWindow(label);
|
|
6945
|
+
const resetAt = Date.now();
|
|
6946
|
+
const prior = taskResetSnapshot(resetAt);
|
|
6947
|
+
resetTaskWindow(label, resetAt);
|
|
6948
|
+
appendTaskResetEntry("slash-command", label, prior, ctx);
|
|
6901
6949
|
ctx.ui.notify(
|
|
6902
6950
|
`New task window${label ? `: ${label}` : ""}\n` +
|
|
6903
|
-
`Previous task${
|
|
6904
|
-
`${
|
|
6905
|
-
`Tier is unset — the dispatcher re-triages on its next dispatch
|
|
6951
|
+
`Previous task${prior.tier ? ` (tier ${prior.tier})` : ""} spent ${prior.dispatches} dispatches, ` +
|
|
6952
|
+
`${prior.research} research, ${prior.reviewRounds} review round(s), ${Math.round(prior.activeMs / 60_000)} min active.\n` +
|
|
6953
|
+
`Tier is unset — the dispatcher re-triages on its next dispatch.` + hubLocationSuffix(ctx),
|
|
6906
6954
|
"success",
|
|
6907
6955
|
);
|
|
6908
6956
|
},
|
|
@@ -8185,9 +8233,10 @@ Finish with the artifact-relative path plus a digest of no more than 10 lines. I
|
|
|
8185
8233
|
askUserStarts.delete(event.toolCallId);
|
|
8186
8234
|
// The task clock bills active time only — the human's answer is not the
|
|
8187
8235
|
// fleet's work, and billing it is what would false-stop a steered session.
|
|
8188
|
-
|
|
8236
|
+
const endedAt = Date.now();
|
|
8237
|
+
if (startedAt) taskClock = addTaskClockWait(taskClock, Math.max(0, endedAt - startedAt));
|
|
8189
8238
|
if (startedAt == null) return;
|
|
8190
|
-
const interval: [number, number] = [startedAt,
|
|
8239
|
+
const interval: [number, number] = [startedAt, endedAt];
|
|
8191
8240
|
// Attach to the live dispatcher entry, or buffer until one is created this turn.
|
|
8192
8241
|
if (currentOrchestratorEntry) (currentOrchestratorEntry.awaitIntervals ??= []).push(interval);
|
|
8193
8242
|
else turnAskUserIntervals.push(interval);
|
|
@@ -8211,9 +8260,11 @@ Finish with the artifact-relative path plus a digest of no more than 10 lines. I
|
|
|
8211
8260
|
// Fold the turn that just ended into the task's active-time accumulator
|
|
8212
8261
|
// before the clock is re-based; inter-turn idle is never charged because
|
|
8213
8262
|
// no turn is open across it.
|
|
8214
|
-
|
|
8263
|
+
const turnStartedAt = Date.now();
|
|
8264
|
+
closeTurnActiveTime(turnStartedAt);
|
|
8265
|
+
taskClock = openTaskClock(taskClock, turnStartedAt);
|
|
8215
8266
|
turnActive = true;
|
|
8216
|
-
currentTurnStartedAt =
|
|
8267
|
+
currentTurnStartedAt = turnStartedAt;
|
|
8217
8268
|
currentOrchestratorEntry = null;
|
|
8218
8269
|
askUserStarts.clear();
|
|
8219
8270
|
turnAskUserIntervals.length = 0;
|
|
@@ -8601,6 +8652,8 @@ ${researchCatalog}`;
|
|
|
8601
8652
|
executionHistory.length = 0;
|
|
8602
8653
|
currentOrchestratorEntry = null;
|
|
8603
8654
|
turnActive = false;
|
|
8655
|
+
currentTurnStartedAt = 0;
|
|
8656
|
+
taskClock = createTaskClock();
|
|
8604
8657
|
askUserStarts.clear();
|
|
8605
8658
|
turnAskUserIntervals.length = 0;
|
|
8606
8659
|
if (widgetCtx) {
|
|
@@ -8893,6 +8946,7 @@ ${researchCatalog}`;
|
|
|
8893
8946
|
userLanguage = overrides.language;
|
|
8894
8947
|
researchKeep = overrides.researchKeep;
|
|
8895
8948
|
reconSearchTimeoutMs = overrides.reconSearchTimeoutMs;
|
|
8949
|
+
const previousMode = hubMode;
|
|
8896
8950
|
hubMode = overrides.hubMode;
|
|
8897
8951
|
budgetOverrides = overrides.budgetOverrides;
|
|
8898
8952
|
watchdogSetting = overrides.watchdogSetting;
|
|
@@ -8902,6 +8956,13 @@ ${researchCatalog}`;
|
|
|
8902
8956
|
// A new session is a new task by definition.
|
|
8903
8957
|
resetTaskWindow(null);
|
|
8904
8958
|
updateModeStatus();
|
|
8959
|
+
appendHubModeEntry({
|
|
8960
|
+
previousMode,
|
|
8961
|
+
mode: hubMode,
|
|
8962
|
+
source: overrides.hubModeSource,
|
|
8963
|
+
overrideFile: overrides.hubModeSource === "project-override" ? ".ai/agent-fleet-overrides.md" : null,
|
|
8964
|
+
ctx: _ctx,
|
|
8965
|
+
});
|
|
8905
8966
|
if (overrides.warnings.length > 0) {
|
|
8906
8967
|
_ctx.ui.notify(`agent-fleet-overrides warnings:\n${overrides.warnings.join("\n")}`, "warning");
|
|
8907
8968
|
}
|
|
@@ -9138,15 +9199,18 @@ ${researchCatalog}`;
|
|
|
9138
9199
|
// When this agent was addressed by a peer (an inbound prompt in the queue), the
|
|
9139
9200
|
// turn's final assistant text becomes the response we ship back to the sender.
|
|
9140
9201
|
pi.on("agent_end", async (_event, ctx) => {
|
|
9141
|
-
// Close the /af-agents-history dispatcher turn
|
|
9142
|
-
//
|
|
9202
|
+
// Close both the task clock and /af-agents-history dispatcher turn at the
|
|
9203
|
+
// actual end event, so time awaiting the next user message is never charged.
|
|
9204
|
+
const turnEndedAt = Date.now();
|
|
9205
|
+
closeTurnActiveTime(turnEndedAt);
|
|
9143
9206
|
turnActive = false;
|
|
9144
9207
|
if (currentOrchestratorEntry) {
|
|
9145
|
-
currentOrchestratorEntry.endedAt =
|
|
9208
|
+
currentOrchestratorEntry.endedAt = turnEndedAt;
|
|
9146
9209
|
if (currentOrchestratorEntry.status === "running") currentOrchestratorEntry.status = "done";
|
|
9147
9210
|
currentOrchestratorEntry = null;
|
|
9148
9211
|
historyRender?.();
|
|
9149
9212
|
}
|
|
9213
|
+
currentTurnStartedAt = 0;
|
|
9150
9214
|
|
|
9151
9215
|
// End-of-turn sweep: a peer spawned this turn and never sent to is still
|
|
9152
9216
|
// running. Named once per turn it stays unaddressed; the close itself is
|
|
@@ -305,6 +305,67 @@ export function turnActiveMs(turnStartedAt, now, askUserWaitMs = 0) {
|
|
|
305
305
|
return Math.max(0, now - turnStartedAt - Math.max(0, askUserWaitMs || 0));
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
/** A serializable, deterministic task clock. `active` is authoritative. */
|
|
309
|
+
export function createTaskClock() {
|
|
310
|
+
return { active: false, accumulatedMs: 0, turnStartedAt: 0, askUserWaitMs: 0 };
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Open a task turn. A still-open prior interval is closed first as defensive
|
|
315
|
+
* recovery for a missing end event; normal turns are closed by agent_end.
|
|
316
|
+
*/
|
|
317
|
+
export function openTaskClock(clock, now) {
|
|
318
|
+
const base = clock?.active ? closeTaskClock(clock, now) : { ...createTaskClock(), ...clock };
|
|
319
|
+
return { ...base, active: true, turnStartedAt: now, askUserWaitMs: 0 };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Add a completed ask_user wait to the currently open turn. */
|
|
323
|
+
export function addTaskClockWait(clock, waitMs) {
|
|
324
|
+
if (!clock?.active) return { ...createTaskClock(), ...clock };
|
|
325
|
+
return {
|
|
326
|
+
...clock,
|
|
327
|
+
askUserWaitMs: Math.max(0, clock.askUserWaitMs || 0) + Math.max(0, waitMs || 0),
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/** Finished turns plus the open turn, excluding completed and in-flight waits. */
|
|
332
|
+
export function taskClockElapsedMs(clock, now, openWaitMs = 0) {
|
|
333
|
+
if (!clock) return 0;
|
|
334
|
+
const accumulated = Math.max(0, clock.accumulatedMs || 0);
|
|
335
|
+
if (!clock.active) return accumulated;
|
|
336
|
+
return accumulated + turnActiveMs(
|
|
337
|
+
clock.turnStartedAt,
|
|
338
|
+
now,
|
|
339
|
+
Math.max(0, clock.askUserWaitMs || 0) + Math.max(0, openWaitMs || 0),
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/** Close the current turn once. Repeated closes are no-ops. */
|
|
344
|
+
export function closeTaskClock(clock, now) {
|
|
345
|
+
const base = { ...createTaskClock(), ...clock };
|
|
346
|
+
if (!base.active) return base;
|
|
347
|
+
return {
|
|
348
|
+
active: false,
|
|
349
|
+
accumulatedMs: taskClockElapsedMs(base, now),
|
|
350
|
+
turnStartedAt: 0,
|
|
351
|
+
askUserWaitMs: 0,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Open a fresh task window. During an active turn, the new task begins at the
|
|
357
|
+
* reset instant; between turns, no timestamp is carried into the next task.
|
|
358
|
+
*/
|
|
359
|
+
export function resetTaskClock(clock, now) {
|
|
360
|
+
const active = clock?.active === true;
|
|
361
|
+
return {
|
|
362
|
+
active,
|
|
363
|
+
accumulatedMs: 0,
|
|
364
|
+
turnStartedAt: active ? now : 0,
|
|
365
|
+
askUserWaitMs: 0,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
|
|
308
369
|
/**
|
|
309
370
|
* Gate one dispatcher tool call against the TASK budget (checked before the
|
|
310
371
|
* turn budget: it is the more severe stop).
|
|
@@ -100,6 +100,43 @@ export function liveTimeline<T>(target: { timeline?: readonly T[] } | null | und
|
|
|
100
100
|
return target?.timeline ?? [];
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
/** A zero-member operator roster still needs a valid column for research cards. */
|
|
104
|
+
export function gridColumnsForSize(size: number): number {
|
|
105
|
+
if (size <= 0) return 1;
|
|
106
|
+
return size <= 3 ? size : size === 4 ? 2 : 3;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Defensive render bound: a non-empty card list can never be split by zero. */
|
|
110
|
+
export function gridColumnsForItems(columns: number, itemCount: number): number {
|
|
111
|
+
const safeColumns = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;
|
|
112
|
+
const safeItems = Number.isFinite(itemCount) ? Math.max(1, Math.floor(itemCount)) : 1;
|
|
113
|
+
return Math.min(safeColumns, safeItems);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Render card lines in a grid without ever indexing an empty first column. */
|
|
117
|
+
export function renderCardGrid<T>(
|
|
118
|
+
items: readonly T[],
|
|
119
|
+
columns: number,
|
|
120
|
+
cardHeight: number,
|
|
121
|
+
renderCard: (item: T) => string[],
|
|
122
|
+
gap = " ",
|
|
123
|
+
blankLine = "",
|
|
124
|
+
): string[] {
|
|
125
|
+
if (items.length === 0) return [];
|
|
126
|
+
const cols = gridColumnsForItems(columns, items.length);
|
|
127
|
+
const height = Number.isFinite(cardHeight) ? Math.max(0, Math.floor(cardHeight)) : 0;
|
|
128
|
+
const lines: string[] = [];
|
|
129
|
+
for (let i = 0; i < items.length; i += cols) {
|
|
130
|
+
const cards = items.slice(i, i + cols).map(renderCard);
|
|
131
|
+
while (cards.length < cols) cards.push(Array(height).fill(blankLine));
|
|
132
|
+
const rowHeight = cards[0]?.length ?? height;
|
|
133
|
+
for (let line = 0; line < rowHeight; line++) {
|
|
134
|
+
lines.push(cards.map(card => card[line] || "").join(gap));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return lines;
|
|
138
|
+
}
|
|
139
|
+
|
|
103
140
|
/** Compact below-editor / research-card widgets render only in compact mode. */
|
|
104
141
|
export function compactWidgetsEnabled(viewMode: "compact" | "off"): boolean {
|
|
105
142
|
return viewMode === "compact";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Backend routing for the agent-hub dispatcher (dispatch_agent). Decided at
|
|
2
|
+
# DISPATCH time, never at team activation — the hub and its peers boot in
|
|
3
|
+
# parallel (`just fleet team <team>`), so a member's coms peer may register
|
|
4
|
+
# after the session starts.
|
|
5
|
+
#
|
|
6
|
+
# default: native | coms — coms substitutes ANY active-team member that has
|
|
7
|
+
# a live same-name peer in the coms pool
|
|
8
|
+
# grace_s: <seconds> — how long a `fallback: none` member polls the pool
|
|
9
|
+
# for its peer before the dispatch is refused
|
|
10
|
+
# substitutions:
|
|
11
|
+
# <member>: — team-member/persona name (case-insensitive)
|
|
12
|
+
# prefer: native|coms — bare member block defaults to coms
|
|
13
|
+
# fallback: native|none — none = coms-required (refuse when no live peer)
|
|
14
|
+
# timeout_s: <seconds> — per-member reply timeout (default PI_COMS_TIMEOUT_MS)
|
|
15
|
+
#
|
|
16
|
+
# Missing file = everything native (no behavior change). This file is an
|
|
17
|
+
# orchestration decision; HOW each peer runs (model, runner: claude-code, env)
|
|
18
|
+
# stays in peers.yaml.
|
|
19
|
+
|
|
20
|
+
default: native
|
|
21
|
+
grace_s: 30
|
|
22
|
+
|
|
23
|
+
substitutions:
|
|
24
|
+
plan-reviewer:
|
|
25
|
+
prefer: coms
|
|
26
|
+
fallback: native
|
|
27
|
+
code-reviewer:
|
|
28
|
+
prefer: coms
|
|
29
|
+
fallback: native
|
|
30
|
+
documenter:
|
|
31
|
+
prefer: coms
|
|
32
|
+
fallback: native
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Named model profiles for /models — each entry must be one of the persona's
|
|
2
|
+
# declared candidates (frontmatter `model:` + `models:` list). A profile with
|
|
3
|
+
# any invalid entry is dropped whole at session start, with an error notify.
|
|
4
|
+
#
|
|
5
|
+
# Profiles only switch the personas they list; everyone else keeps their
|
|
6
|
+
# current model. They never touch delegate-children (`subagents:`) models.
|
|
7
|
+
mix-max:
|
|
8
|
+
code-reviewer: github-copilot/claude-opus-5
|
|
9
|
+
builder: openai-codex/gpt-5.6-sol
|
|
10
|
+
planner: github-copilot/claude-fable-5
|
|
11
|
+
plan-reviewer: openai-codex/gpt-5.6-sol
|
|
12
|
+
security-auditor: xai/grok-4.6
|
|
13
|
+
test-engineer: xai/grok-4.6
|
|
14
|
+
sol:
|
|
15
|
+
code-reviewer: openai-codex/gpt-5.6-sol
|
|
16
|
+
builder: openai-codex/gpt-5.6-sol
|
|
17
|
+
planner: openai-codex/gpt-5.6-sol
|
|
18
|
+
plan-reviewer: openai-codex/gpt-5.6-sol
|
|
19
|
+
security-auditor: openai-codex/gpt-5.6-sol
|
|
20
|
+
test-engineer: openai-codex/gpt-5.6-sol
|
|
21
|
+
terra:
|
|
22
|
+
code-reviewer: openai-codex/gpt-5.6-terra
|
|
23
|
+
builder: openai-codex/gpt-5.6-terra
|
|
24
|
+
planner: openai-codex/gpt-5.6-terra
|
|
25
|
+
plan-reviewer: openai-codex/gpt-5.6-terra
|
|
26
|
+
security-auditor: openai-codex/gpt-5.6-terra
|
|
27
|
+
test-engineer: openai-codex/gpt-5.6-terra
|