@chankov/agent-fleet 1.0.1 → 1.0.3
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/extensions/package-lock.json +77 -45
- package/.pi/harnesses/agent-hub/README.md +167 -76
- package/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.pi/harnesses/agent-hub/context-window.js +1 -1
- package/.pi/harnesses/agent-hub/drift-watchdog.js +11 -4
- package/.pi/harnesses/agent-hub/execution-profile.ts +69 -0
- package/.pi/harnesses/agent-hub/footer.ts +3 -2
- package/.pi/harnesses/agent-hub/hub-state-audit.js +14 -10
- package/.pi/harnesses/agent-hub/index.ts +1316 -660
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/posture.ts +72 -17
- package/.pi/harnesses/agent-hub/provider-semaphore.js +1 -1
- package/.pi/harnesses/agent-hub/run-budget.js +77 -80
- package/.pi/harnesses/agent-hub/spawn.ts +14 -2
- package/.pi/harnesses/ask-user-remote/index.ts +59 -4
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +3 -1
- package/.pi/harnesses/lib/fleet-detail-view.ts +127 -2
- package/.pi/harnesses/package-lock.json +73 -80
- package/.versions/1.0.2/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/1.0.2/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/1.0.2/.pi/agents/peers.yaml +142 -0
- package/.versions/1.0.2/.pi/agents/teams.yaml +41 -0
- package/.versions/1.0.2/.pi/damage-control-rules.yaml +297 -0
- package/.versions/1.0.2/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/1.0.2/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/1.0.2/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/btw/README.md +120 -0
- package/.versions/1.0.2/.pi/extensions/btw/index.ts +914 -0
- package/.versions/1.0.2/.pi/extensions/btw/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/btw/state.js +179 -0
- package/.versions/1.0.2/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/1.0.2/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/1.0.2/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/1.0.2/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/1.0.2/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/1.0.2/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/1.0.2/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/package-lock.json +1175 -0
- package/.versions/1.0.2/.pi/extensions/package.json +9 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/1.0.2/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/README.md +1156 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/delegate.ts +435 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/drift-watchdog.js +211 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/footer.ts +35 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/hub-state-audit.js +73 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/index.ts +9909 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/posture.ts +158 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/run-budget.js +539 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/spawn.ts +366 -0
- package/.versions/1.0.2/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/1.0.2/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/1.0.2/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/1.0.2/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/1.0.2/.pi/harnesses/coms/README.md +100 -0
- package/.versions/1.0.2/.pi/harnesses/coms/index.ts +1767 -0
- package/.versions/1.0.2/.pi/harnesses/coms/package.json +7 -0
- package/.versions/1.0.2/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/1.0.2/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/1.0.2/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/1.0.2/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/1.0.2/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/1.0.2/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/1.0.2/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/1.0.2/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/1.0.2/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/1.0.2/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/1.0.2/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-dashboard-view.ts +140 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-detail-view.ts +133 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/1.0.2/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/1.0.2/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/1.0.2/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/1.0.2/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/1.0.2/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/1.0.2/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/1.0.2/.pi/harnesses/package.json +10 -0
- package/.versions/1.0.2/.pi/prompts/af-build.md +24 -0
- package/.versions/1.0.2/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/1.0.2/.pi/prompts/af-plan.md +16 -0
- package/.versions/1.0.2/.pi/prompts/af-review.md +16 -0
- package/.versions/1.0.2/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/1.0.2/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/1.0.2/.pi/prompts/af-ship.md +17 -0
- package/.versions/1.0.2/.pi/prompts/af-spec.md +15 -0
- package/.versions/1.0.2/.pi/prompts/af-test.md +19 -0
- package/.versions/1.0.2/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/1.0.2/.version +1 -0
- package/.versions/1.0.2/agents/architect.md +24 -0
- package/.versions/1.0.2/agents/bowser.md +27 -0
- package/.versions/1.0.2/agents/builder.md +54 -0
- package/.versions/1.0.2/agents/code-reviewer.md +208 -0
- package/.versions/1.0.2/agents/deep-researcher.md +32 -0
- package/.versions/1.0.2/agents/documenter.md +18 -0
- package/.versions/1.0.2/agents/orchestrator.md +20 -0
- package/.versions/1.0.2/agents/plan-reviewer.md +83 -0
- package/.versions/1.0.2/agents/planner.md +70 -0
- package/.versions/1.0.2/agents/releaser.md +24 -0
- package/.versions/1.0.2/agents/researcher.md +28 -0
- package/.versions/1.0.2/agents/security-auditor.md +167 -0
- package/.versions/1.0.2/agents/test-engineer.md +153 -0
- package/.versions/1.0.2/agents/web-debugger.md +43 -0
- package/.versions/1.0.2/agents/web-performance-auditor.md +193 -0
- package/.versions/1.0.2/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/1.0.2/codex/CONDUCTOR.md +148 -0
- package/.versions/1.0.2/docs/ARCHITECTURE.md +369 -0
- package/.versions/1.0.2/docs/agent-fleet-setup.md +468 -0
- package/.versions/1.0.2/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/1.0.2/docs/codex-remote-conductor.md +170 -0
- package/.versions/1.0.2/docs/coms-hermes-bridge.md +189 -0
- package/.versions/1.0.2/docs/getting-started.md +98 -0
- package/.versions/1.0.2/docs/npm-install.md +292 -0
- package/.versions/1.0.2/docs/pi-extensions.md +439 -0
- package/.versions/1.0.2/docs/pi-setup.md +74 -0
- package/.versions/1.0.2/docs/skill-anatomy.md +150 -0
- package/.versions/1.0.2/hermes/README.md +347 -0
- package/.versions/1.0.2/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/1.0.2/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/1.0.2/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/1.0.2/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/1.0.2/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/1.0.2/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/1.0.2/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/1.0.2/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/1.0.2/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/1.0.2/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/1.0.2/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/1.0.2/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/1.0.2/install-manifest.json +2745 -0
- package/.versions/1.0.2/justfile +272 -0
- package/.versions/1.0.2/manifest-meta.json +882 -0
- package/.versions/1.0.2/references/accessibility-checklist.md +160 -0
- package/.versions/1.0.2/references/definition-of-done.md +67 -0
- package/.versions/1.0.2/references/fleet-coordination-patterns.md +151 -0
- package/.versions/1.0.2/references/observability-checklist.md +91 -0
- package/.versions/1.0.2/references/orchestration-patterns.md +370 -0
- package/.versions/1.0.2/references/performance-checklist.md +153 -0
- package/.versions/1.0.2/references/prompting-patterns.md +380 -0
- package/.versions/1.0.2/references/security-checklist.md +179 -0
- package/.versions/1.0.2/references/testing-patterns.md +236 -0
- package/.versions/1.0.2/scripts/codex-conductor.ts +41 -0
- package/.versions/1.0.2/scripts/codex-remote-control.ts +167 -0
- package/.versions/1.0.2/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/1.0.2/scripts/coms-cli.ts +484 -0
- package/.versions/1.0.2/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/1.0.2/scripts/fleet.ts +185 -0
- package/.versions/1.0.2/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/1.0.2/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/1.0.2/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/1.0.2/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/1.0.2/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/1.0.2/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/1.0.2/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/1.0.2/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/1.0.2/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/1.0.2/scripts/lib/fleet-command.ts +266 -0
- package/.versions/1.0.2/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/1.0.2/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/1.0.2/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/1.0.2/scripts/lib/monitor-env.ts +146 -0
- package/.versions/1.0.2/scripts/lib/peer-launch.ts +318 -0
- package/.versions/1.0.2/scripts/lib/persona-banner.ts +62 -0
- package/.versions/1.0.2/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/1.0.2/scripts/lib/team-project.ts +213 -0
- package/.versions/1.0.2/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/1.0.2/scripts/peer-banner.ts +40 -0
- package/.versions/1.0.2/scripts/peer-launch.ts +259 -0
- package/.versions/1.0.2/scripts/team-snapshot.ts +237 -0
- package/.versions/1.0.2/scripts/team-up.ts +406 -0
- package/.versions/1.0.2/skills/_internal/grilling.md +11 -0
- package/.versions/1.0.2/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/1.0.2/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/1.0.2/skills/compound-learning/SKILL.md +137 -0
- package/.versions/1.0.2/skills/context-engineering/SKILL.md +291 -0
- package/.versions/1.0.2/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/1.0.2/skills/designing-agents/SKILL.md +394 -0
- package/.versions/1.0.2/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/1.0.2/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.2/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/1.0.2/skills/idea-refine/SKILL.md +182 -0
- package/.versions/1.0.2/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.2/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.2/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.2/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.2/skills/incremental-implementation/SKILL.md +287 -0
- package/.versions/1.0.2/skills/interview-me/SKILL.md +226 -0
- package/.versions/1.0.2/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/1.0.2/skills/peer-coms/SKILL.md +90 -0
- package/.versions/1.0.2/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.2/skills/planning-and-task-breakdown/SKILL.md +254 -0
- package/.versions/1.0.2/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/1.0.2/skills/spec-driven-development/SKILL.md +257 -0
- package/.versions/1.0.2/skills/using-agent-skills/SKILL.md +199 -0
- package/.versions/1.0.2/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/1.0.2/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/.versions/1.0.3/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/1.0.3/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/1.0.3/.pi/agents/peers.yaml +142 -0
- package/.versions/1.0.3/.pi/agents/teams.yaml +41 -0
- package/.versions/1.0.3/.pi/damage-control-rules.yaml +297 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/btw/README.md +120 -0
- package/.versions/1.0.3/.pi/extensions/btw/index.ts +914 -0
- package/.versions/1.0.3/.pi/extensions/btw/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/btw/state.js +179 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/package-lock.json +1175 -0
- package/.versions/1.0.3/.pi/extensions/package.json +9 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/README.md +1156 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/delegate.ts +435 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/execution-profile.ts +69 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/footer.ts +36 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/index.ts +9999 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/posture.ts +158 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/spawn.ts +366 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/1.0.3/.pi/harnesses/coms/README.md +100 -0
- package/.versions/1.0.3/.pi/harnesses/coms/index.ts +1767 -0
- package/.versions/1.0.3/.pi/harnesses/coms/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/1.0.3/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-detail-view.ts +168 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/1.0.3/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/1.0.3/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/1.0.3/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/1.0.3/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/1.0.3/.pi/harnesses/package.json +10 -0
- package/.versions/1.0.3/.pi/prompts/af-build.md +24 -0
- package/.versions/1.0.3/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/1.0.3/.pi/prompts/af-plan.md +16 -0
- package/.versions/1.0.3/.pi/prompts/af-review.md +16 -0
- package/.versions/1.0.3/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/1.0.3/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/1.0.3/.pi/prompts/af-ship.md +17 -0
- package/.versions/1.0.3/.pi/prompts/af-spec.md +15 -0
- package/.versions/1.0.3/.pi/prompts/af-test.md +19 -0
- package/.versions/1.0.3/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/1.0.3/.version +1 -0
- package/.versions/1.0.3/agents/architect.md +25 -0
- package/.versions/1.0.3/agents/bowser.md +28 -0
- package/.versions/1.0.3/agents/builder.md +55 -0
- package/.versions/1.0.3/agents/code-reviewer.md +209 -0
- package/.versions/1.0.3/agents/deep-researcher.md +33 -0
- package/.versions/1.0.3/agents/documenter.md +19 -0
- package/.versions/1.0.3/agents/orchestrator.md +21 -0
- package/.versions/1.0.3/agents/plan-reviewer.md +84 -0
- package/.versions/1.0.3/agents/planner.md +71 -0
- package/.versions/1.0.3/agents/releaser.md +25 -0
- package/.versions/1.0.3/agents/researcher.md +29 -0
- package/.versions/1.0.3/agents/security-auditor.md +168 -0
- package/.versions/1.0.3/agents/test-engineer.md +154 -0
- package/.versions/1.0.3/agents/web-debugger.md +44 -0
- package/.versions/1.0.3/agents/web-performance-auditor.md +194 -0
- package/.versions/1.0.3/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/1.0.3/codex/CONDUCTOR.md +148 -0
- package/.versions/1.0.3/docs/ARCHITECTURE.md +375 -0
- package/.versions/1.0.3/docs/agent-fleet-setup.md +468 -0
- package/.versions/1.0.3/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/1.0.3/docs/codex-remote-conductor.md +170 -0
- package/.versions/1.0.3/docs/coms-hermes-bridge.md +189 -0
- package/.versions/1.0.3/docs/getting-started.md +98 -0
- package/.versions/1.0.3/docs/npm-install.md +292 -0
- package/.versions/1.0.3/docs/pi-extensions.md +441 -0
- package/.versions/1.0.3/docs/pi-setup.md +74 -0
- package/.versions/1.0.3/docs/skill-anatomy.md +150 -0
- package/.versions/1.0.3/hermes/README.md +347 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/1.0.3/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/1.0.3/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/1.0.3/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/1.0.3/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/1.0.3/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/1.0.3/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/1.0.3/install-manifest.json +2745 -0
- package/.versions/1.0.3/justfile +272 -0
- package/.versions/1.0.3/manifest-meta.json +882 -0
- package/.versions/1.0.3/references/accessibility-checklist.md +160 -0
- package/.versions/1.0.3/references/definition-of-done.md +67 -0
- package/.versions/1.0.3/references/fleet-coordination-patterns.md +151 -0
- package/.versions/1.0.3/references/observability-checklist.md +91 -0
- package/.versions/1.0.3/references/orchestration-patterns.md +370 -0
- package/.versions/1.0.3/references/performance-checklist.md +153 -0
- package/.versions/1.0.3/references/prompting-patterns.md +380 -0
- package/.versions/1.0.3/references/security-checklist.md +179 -0
- package/.versions/1.0.3/references/testing-patterns.md +236 -0
- package/.versions/1.0.3/scripts/codex-conductor.ts +41 -0
- package/.versions/1.0.3/scripts/codex-remote-control.ts +167 -0
- package/.versions/1.0.3/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/1.0.3/scripts/coms-cli.ts +484 -0
- package/.versions/1.0.3/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/1.0.3/scripts/fleet.ts +185 -0
- package/.versions/1.0.3/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/1.0.3/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/1.0.3/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/1.0.3/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/1.0.3/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/1.0.3/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/1.0.3/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/1.0.3/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/1.0.3/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/1.0.3/scripts/lib/fleet-command.ts +266 -0
- package/.versions/1.0.3/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/1.0.3/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/1.0.3/scripts/lib/monitor-env.ts +146 -0
- package/.versions/1.0.3/scripts/lib/peer-launch.ts +318 -0
- package/.versions/1.0.3/scripts/lib/persona-banner.ts +62 -0
- package/.versions/1.0.3/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/1.0.3/scripts/lib/team-project.ts +213 -0
- package/.versions/1.0.3/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/1.0.3/scripts/peer-banner.ts +40 -0
- package/.versions/1.0.3/scripts/peer-launch.ts +259 -0
- package/.versions/1.0.3/scripts/team-snapshot.ts +237 -0
- package/.versions/1.0.3/scripts/team-up.ts +406 -0
- package/.versions/1.0.3/skills/_internal/grilling.md +11 -0
- package/.versions/1.0.3/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/1.0.3/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/1.0.3/skills/compound-learning/SKILL.md +137 -0
- package/.versions/1.0.3/skills/context-engineering/SKILL.md +291 -0
- package/.versions/1.0.3/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/1.0.3/skills/designing-agents/SKILL.md +394 -0
- package/.versions/1.0.3/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/1.0.3/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.3/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/1.0.3/skills/idea-refine/SKILL.md +182 -0
- package/.versions/1.0.3/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.3/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.3/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.3/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.3/skills/incremental-implementation/SKILL.md +287 -0
- package/.versions/1.0.3/skills/interview-me/SKILL.md +226 -0
- package/.versions/1.0.3/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/1.0.3/skills/peer-coms/SKILL.md +90 -0
- package/.versions/1.0.3/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.3/skills/planning-and-task-breakdown/SKILL.md +254 -0
- package/.versions/1.0.3/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/1.0.3/skills/spec-driven-development/SKILL.md +257 -0
- package/.versions/1.0.3/skills/using-agent-skills/SKILL.md +199 -0
- package/.versions/1.0.3/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +15 -0
- package/README.md +8 -5
- package/agents/architect.md +1 -0
- package/agents/bowser.md +1 -0
- package/agents/builder.md +1 -0
- package/agents/code-reviewer.md +1 -0
- package/agents/deep-researcher.md +1 -0
- package/agents/documenter.md +1 -0
- package/agents/orchestrator.md +5 -56
- package/agents/plan-reviewer.md +1 -0
- package/agents/planner.md +1 -0
- package/agents/releaser.md +1 -0
- package/agents/researcher.md +1 -0
- package/agents/security-auditor.md +1 -0
- package/agents/test-engineer.md +1 -0
- package/agents/web-debugger.md +1 -0
- package/agents/web-performance-auditor.md +1 -0
- package/bin/lib/validate-overrides.js +1 -1
- package/docs/ARCHITECTURE.md +72 -34
- package/docs/agent-fleet-setup.md +39 -8
- package/docs/pi-extensions.md +33 -4
- package/install-manifest.json +2 -2
- package/package.json +2 -2
- package/scripts/fleet.ts +1 -1
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
export const POSTURES = ["operator", "orchestrator"] as const;
|
|
2
2
|
export type Posture = (typeof POSTURES)[number];
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"team_adjust",
|
|
9
|
-
"set_assertions",
|
|
10
|
-
"update_assertion",
|
|
11
|
-
"get_assertions",
|
|
12
|
-
] as const;
|
|
4
|
+
export const FLEET_TOOLS = ["dispatch_agent", "spawn_research", "set_task_tier", "team_adjust"] as const;
|
|
5
|
+
export const VERIFICATION_TOOLS = ["set_assertions", "update_assertion", "get_assertions"] as const;
|
|
6
|
+
/** Compatibility export for callers that need every orchestration-owned tool. */
|
|
7
|
+
export const ORCHESTRATION_TOOLS = [...FLEET_TOOLS, ...VERIFICATION_TOOLS] as const;
|
|
13
8
|
|
|
14
9
|
export const COMS_TOOLS = ["coms_list", "coms_send", "coms_get", "coms_await"] as const;
|
|
15
10
|
|
|
@@ -21,7 +16,7 @@ export const HERDR_TOOLS = [
|
|
|
21
16
|
"herdr_notify",
|
|
22
17
|
] as const;
|
|
23
18
|
|
|
24
|
-
const CONDITIONAL_TOOLS = new Set<string>([...COMS_TOOLS, ...HERDR_TOOLS, "ask_user"]);
|
|
19
|
+
const CONDITIONAL_TOOLS = new Set<string>([...COMS_TOOLS, ...HERDR_TOOLS, "ask_user", "request_compaction"]);
|
|
25
20
|
const HUB_OWNED_TOOLS = new Set<string>([
|
|
26
21
|
...ORCHESTRATION_TOOLS,
|
|
27
22
|
...CONDITIONAL_TOOLS,
|
|
@@ -67,6 +62,62 @@ export function resolveSessionPosture(options: {
|
|
|
67
62
|
?? resolveStartupPosture({ hasExplicitRoster: options.hasExplicitRoster });
|
|
68
63
|
}
|
|
69
64
|
|
|
65
|
+
export const NATIVE_ROSTER_STATE_VERSION = 1 as const;
|
|
66
|
+
export const NATIVE_ROSTER_ENTRY_TYPE = "agent-hub-native-roster";
|
|
67
|
+
|
|
68
|
+
export function persistedNativeRosterState(team: string): { version: 1; team: string } {
|
|
69
|
+
const normalized = String(team ?? "").trim();
|
|
70
|
+
if (!normalized) throw new Error("Native roster team name cannot be empty.");
|
|
71
|
+
return { version: NATIVE_ROSTER_STATE_VERSION, team: normalized };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function latestPersistedNativeRoster(entries: readonly unknown[]): string | null {
|
|
75
|
+
for (let index = entries.length - 1; index >= 0; index--) {
|
|
76
|
+
const entry = entries[index] as { type?: unknown; customType?: unknown; data?: { version?: unknown; team?: unknown } } | null;
|
|
77
|
+
if (entry?.type !== "custom" || entry.customType !== NATIVE_ROSTER_ENTRY_TYPE) continue;
|
|
78
|
+
if (entry.data?.version !== NATIVE_ROSTER_STATE_VERSION || typeof entry.data.team !== "string") continue;
|
|
79
|
+
const team = entry.data.team.trim();
|
|
80
|
+
if (team) return team;
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface SessionRosterResolution {
|
|
86
|
+
source: "none" | "explicit" | "persisted";
|
|
87
|
+
roster: { name: string; members: string[] } | null;
|
|
88
|
+
diagnostic: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function resolveSessionRoster(options: {
|
|
92
|
+
teams: Readonly<Record<string, readonly string[]>>;
|
|
93
|
+
entries: readonly unknown[];
|
|
94
|
+
explicitRoster?: unknown;
|
|
95
|
+
availablePersonas: readonly string[];
|
|
96
|
+
includePersisted?: boolean;
|
|
97
|
+
}): SessionRosterResolution {
|
|
98
|
+
const explicit = typeof options.explicitRoster === "string" ? options.explicitRoster.trim() : "";
|
|
99
|
+
const persisted = options.includePersisted === false ? null : latestPersistedNativeRoster(options.entries);
|
|
100
|
+
const requested = explicit || persisted;
|
|
101
|
+
const source: SessionRosterResolution["source"] = explicit ? "explicit" : persisted ? "persisted" : "none";
|
|
102
|
+
if (!requested) return { source, roster: null, diagnostic: null };
|
|
103
|
+
|
|
104
|
+
const name = Object.keys(options.teams).find(candidate => candidate.toLowerCase() === requested.toLowerCase());
|
|
105
|
+
if (!name) {
|
|
106
|
+
const available = Object.keys(options.teams).sort().join(", ") || "(none)";
|
|
107
|
+
return { source, roster: null, diagnostic: `Native roster "${requested}" is unavailable. Select one of: ${available}.` };
|
|
108
|
+
}
|
|
109
|
+
const members = [...options.teams[name]];
|
|
110
|
+
if (members.length === 0) {
|
|
111
|
+
return { source, roster: null, diagnostic: `Native roster "${name}" has no specialists.` };
|
|
112
|
+
}
|
|
113
|
+
const available = new Set(options.availablePersonas.map(persona => persona.toLowerCase()));
|
|
114
|
+
const missing = members.filter(member => !available.has(member.toLowerCase()));
|
|
115
|
+
if (missing.length > 0) {
|
|
116
|
+
return { source, roster: null, diagnostic: `Native roster "${name}" references missing personas: ${missing.join(", ")}.` };
|
|
117
|
+
}
|
|
118
|
+
return { source, roster: { name, members }, diagnostic: null };
|
|
119
|
+
}
|
|
120
|
+
|
|
70
121
|
export function posturePrompt(posture: Posture): { intro: string; hardRules: string } {
|
|
71
122
|
if (posture === "operator") {
|
|
72
123
|
return {
|
|
@@ -79,8 +130,7 @@ export function posturePrompt(posture: Posture): { intro: string; hardRules: str
|
|
|
79
130
|
return {
|
|
80
131
|
intro: "You are a dispatcher agent — an orchestrator. You coordinate specialist agents to accomplish tasks. You do NOT have direct access to the codebase.",
|
|
81
132
|
hardRules: `- NEVER try to read, write, or execute code directly — you have no such tools.
|
|
82
|
-
- ALWAYS use \`dispatch_agent\` to get implementation work done; use \`spawn_research\` for read-only recon
|
|
83
|
-
- \`herdr_spawn_pane\` is only for auxiliary processes such as watchers or servers; NEVER use it to bypass delegation by reading, editing, testing, or implementing code in a raw pane.`,
|
|
133
|
+
- ALWAYS use \`dispatch_agent\` to get implementation work done; use \`spawn_research\` for read-only recon.`,
|
|
84
134
|
};
|
|
85
135
|
}
|
|
86
136
|
|
|
@@ -90,14 +140,19 @@ export function resolvePostureTools(options: {
|
|
|
90
140
|
comsReady: boolean;
|
|
91
141
|
herdrReady: boolean;
|
|
92
142
|
askUserAvailable: boolean;
|
|
143
|
+
/** Active and provisional packs; omitted only for legacy callers. */
|
|
144
|
+
capabilityPacks?: readonly ("core" | "fleet" | "verification" | "peer" | "workspace" | "compaction")[];
|
|
93
145
|
}): string[] {
|
|
94
|
-
const
|
|
146
|
+
const packs = new Set(options.capabilityPacks ?? ["core", "fleet", "verification", "peer", "workspace"]);
|
|
147
|
+
const tools = options.posture === "operator" && packs.has("core")
|
|
95
148
|
? options.baselineTools.filter(name => !HUB_OWNED_TOOLS.has(name))
|
|
96
149
|
: [];
|
|
97
150
|
|
|
98
|
-
tools.push(...
|
|
99
|
-
if (
|
|
100
|
-
if (options.
|
|
101
|
-
if (options.herdrReady) tools.push(...HERDR_TOOLS);
|
|
151
|
+
if (packs.has("fleet")) tools.push(...FLEET_TOOLS);
|
|
152
|
+
if (packs.has("verification")) tools.push(...VERIFICATION_TOOLS);
|
|
153
|
+
if (packs.has("peer") && options.comsReady) tools.push(...COMS_TOOLS);
|
|
154
|
+
if (packs.has("workspace") && options.herdrReady) tools.push(...HERDR_TOOLS);
|
|
155
|
+
if (packs.has("core") && options.askUserAvailable) tools.push("ask_user");
|
|
156
|
+
if (packs.has("compaction")) tools.push("request_compaction");
|
|
102
157
|
return [...new Set(tools)];
|
|
103
158
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/** Only the local endpoint is capped by default; hosted providers scale on their side. */
|
|
19
19
|
export const DEFAULT_PROVIDER_LIMITS = Object.freeze({ custom: 2 });
|
|
20
20
|
|
|
21
|
-
/** "custom/Qwen3.
|
|
21
|
+
/** "custom/Qwen3.8-27B-Uncensored-MLX-4bit" → "custom"; the part before the first slash. */
|
|
22
22
|
export function providerKey(model) {
|
|
23
23
|
const spec = String(model ?? "").trim().toLowerCase();
|
|
24
24
|
const slash = spec.indexOf("/");
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
1
|
+
// Task-tier budgets — the pure policy core behind the hub's runaway-orchestration
|
|
2
|
+
// guardrails. Budgets are PER USER TURN: a new user message opens a fresh window,
|
|
3
|
+
// so "budget exhausted" naturally means "stop, summarize, ask the user". Everything
|
|
4
|
+
// here is data + pure functions so the policy is unit-testable away from the
|
|
5
|
+
// 7k-line harness.
|
|
6
6
|
//
|
|
7
|
-
// A budget value of `null` means "off"/unlimited for that axis.
|
|
7
|
+
// A budget value of `null` means "off"/unlimited for that axis. Live envelopes
|
|
8
|
+
// never use null: every tier has explicit numbers. Override `off` cannot lift a
|
|
9
|
+
// tier cap — it stays bounded by the tier.
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Task tiers — the dispatcher's per-turn complexity triage. Tier caps only
|
|
13
|
-
// lower the dispatch/research axes (min with the mode budget): a trivial ask
|
|
14
|
-
// must not burn a standard-mode budget on ceremony, while `project` defers
|
|
15
|
-
// entirely to the mode. Unset tier is treated as "feature".
|
|
11
|
+
// Task tiers — the dispatcher's complexity triage AND the budget envelope.
|
|
12
|
+
// Unset/junk tier is treated as DEFAULT_TASK_TIER (`small`).
|
|
16
13
|
export const TASK_TIERS = ["trivial", "small", "feature", "project"];
|
|
17
14
|
// The tier ASSUMED when the dispatcher never called set_task_tier. It is
|
|
18
15
|
// deliberately not the middle of the range: the tier is task-scoped, so a skipped
|
|
@@ -24,13 +21,6 @@ export const TASK_TIERS = ["trivial", "small", "feature", "project"];
|
|
|
24
21
|
// reason) when the work really is bigger, which is the cheap direction to be wrong in.
|
|
25
22
|
export const DEFAULT_TASK_TIER = "small";
|
|
26
23
|
|
|
27
|
-
export const TIER_CAPS = {
|
|
28
|
-
trivial: { maxDispatches: 1, maxResearch: 1 },
|
|
29
|
-
small: { maxDispatches: 2, maxResearch: 2 },
|
|
30
|
-
feature: { maxDispatches: 6, maxResearch: 4 },
|
|
31
|
-
project: { maxDispatches: null, maxResearch: null },
|
|
32
|
-
};
|
|
33
|
-
|
|
34
24
|
/** "Small", " TRIVIAL " → canonical tier name, or null when unrecognized. */
|
|
35
25
|
export function normalizeTaskTier(value) {
|
|
36
26
|
const v = String(value ?? "").trim().toLowerCase();
|
|
@@ -48,16 +38,24 @@ export const RECYCLE_CONTEXT_PCT = 60;
|
|
|
48
38
|
// still being consulted as if it were advisory.
|
|
49
39
|
export const HARD_RECYCLE_CONTEXT_PCT = 100;
|
|
50
40
|
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
maxDispatches:
|
|
41
|
+
export const TIER_BUDGETS = {
|
|
42
|
+
trivial: {
|
|
43
|
+
maxDispatches: 1,
|
|
54
44
|
maxResearch: 1,
|
|
55
45
|
wallMs: 15 * 60_000,
|
|
56
46
|
agentTurnMs: 10 * 60_000,
|
|
57
47
|
recycleRuns: 3,
|
|
58
48
|
delegation: false,
|
|
59
49
|
},
|
|
60
|
-
|
|
50
|
+
small: {
|
|
51
|
+
maxDispatches: 2,
|
|
52
|
+
maxResearch: 2,
|
|
53
|
+
wallMs: 15 * 60_000,
|
|
54
|
+
agentTurnMs: 10 * 60_000,
|
|
55
|
+
recycleRuns: 3,
|
|
56
|
+
delegation: false,
|
|
57
|
+
},
|
|
58
|
+
feature: {
|
|
61
59
|
maxDispatches: 8,
|
|
62
60
|
maxResearch: 4,
|
|
63
61
|
wallMs: 60 * 60_000,
|
|
@@ -65,57 +63,56 @@ export const MODE_BUDGETS = {
|
|
|
65
63
|
recycleRuns: 5,
|
|
66
64
|
delegation: true,
|
|
67
65
|
},
|
|
68
|
-
|
|
69
|
-
maxDispatches:
|
|
70
|
-
maxResearch:
|
|
71
|
-
wallMs:
|
|
72
|
-
agentTurnMs:
|
|
66
|
+
project: {
|
|
67
|
+
maxDispatches: 12,
|
|
68
|
+
maxResearch: 6,
|
|
69
|
+
wallMs: 90 * 60_000,
|
|
70
|
+
agentTurnMs: 30 * 60_000,
|
|
73
71
|
recycleRuns: 5,
|
|
74
72
|
delegation: true,
|
|
75
73
|
},
|
|
76
74
|
};
|
|
77
75
|
|
|
78
|
-
/**
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
/** Dispatch/research slice of TIER_BUDGETS — kept for callers that only need caps. */
|
|
77
|
+
export const TIER_CAPS = Object.fromEntries(
|
|
78
|
+
TASK_TIERS.map((tier) => [tier, {
|
|
79
|
+
maxDispatches: TIER_BUDGETS[tier].maxDispatches,
|
|
80
|
+
maxResearch: TIER_BUDGETS[tier].maxResearch,
|
|
81
|
+
}]),
|
|
82
|
+
);
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Effective budget for a
|
|
85
|
+
* Effective budget for a task tier with per-project overrides applied as a ceiling.
|
|
86
86
|
* Override fields (all optional): maxDispatches, maxResearch, wallMs,
|
|
87
|
-
* agentTurnMs, recycleRuns — a number
|
|
88
|
-
* the
|
|
89
|
-
*
|
|
90
|
-
* the tier cap — overrides raise/disable the mode side, but the tier keeps a
|
|
91
|
-
* simple ask from spending the whole envelope. No tier (null/undefined) means
|
|
92
|
-
* no tier caps: the caller decides when to assume DEFAULT_TASK_TIER.
|
|
87
|
+
* agentTurnMs, recycleRuns — a number is min()'d with the tier; `null`/`off`
|
|
88
|
+
* stays bounded by the tier; `undefined` keeps the tier default. `delegation`
|
|
89
|
+
* is tier-owned and never overridable. Unset/junk tier → DEFAULT_TASK_TIER.
|
|
93
90
|
*/
|
|
94
|
-
export function resolveTurnBudget(
|
|
95
|
-
const base =
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
return Math.min(value, cap);
|
|
91
|
+
export function resolveTurnBudget(tier, overrides = {}) {
|
|
92
|
+
const base = TIER_BUDGETS[normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER];
|
|
93
|
+
const ceiling = (key) => {
|
|
94
|
+
const override = overrides[key];
|
|
95
|
+
if (override === undefined || override === null) return base[key];
|
|
96
|
+
if (base[key] == null) return override;
|
|
97
|
+
return Math.min(base[key], override);
|
|
102
98
|
};
|
|
103
99
|
return {
|
|
104
|
-
maxDispatches:
|
|
105
|
-
maxResearch:
|
|
106
|
-
wallMs:
|
|
107
|
-
agentTurnMs:
|
|
108
|
-
recycleRuns:
|
|
100
|
+
maxDispatches: ceiling("maxDispatches"),
|
|
101
|
+
maxResearch: ceiling("maxResearch"),
|
|
102
|
+
wallMs: ceiling("wallMs"),
|
|
103
|
+
agentTurnMs: ceiling("agentTurnMs"),
|
|
104
|
+
recycleRuns: ceiling("recycleRuns"),
|
|
109
105
|
delegation: base.delegation,
|
|
110
106
|
};
|
|
111
107
|
}
|
|
112
108
|
|
|
113
|
-
function refusalTail(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
"
|
|
109
|
+
function refusalTail(tier) {
|
|
110
|
+
const label = normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER;
|
|
111
|
+
return "Do NOT retry this call before human confirmation. Summarize progress so far (including " +
|
|
112
|
+
"unproven assertions and artifact paths), then use the Hub's one-click budget continuation " +
|
|
113
|
+
"confirmation. Do not ask for a typed continue message or a slash command. Raise the task " +
|
|
114
|
+
`tier with set_task_tier when the work outgrew "${label}", or tighten/widen future ceilings ` +
|
|
115
|
+
"with the max-*-per-turn / turn-wall-time-s keys in .ai/agent-fleet-overrides.md.";
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
/**
|
|
@@ -123,26 +120,27 @@ function refusalTail(mode) {
|
|
|
123
120
|
* kind: "dispatch" | "research"; counters: { dispatches, research } — calls
|
|
124
121
|
* already made this turn. Returns null when allowed, else { reason, message }.
|
|
125
122
|
*/
|
|
126
|
-
export function checkTurnBudget(kind, counters, budget, elapsedWallMs,
|
|
123
|
+
export function checkTurnBudget(kind, counters, budget, elapsedWallMs, tier = DEFAULT_TASK_TIER) {
|
|
124
|
+
const label = normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER;
|
|
127
125
|
if (budget.wallMs != null && elapsedWallMs >= budget.wallMs) {
|
|
128
126
|
return {
|
|
129
127
|
reason: "wall",
|
|
130
128
|
message: `⚠ Turn budget exhausted: wall clock at ${Math.round(elapsedWallMs / 60_000)} min ` +
|
|
131
|
-
`(limit ${Math.round(budget.wallMs / 60_000)} min
|
|
129
|
+
`(limit ${Math.round(budget.wallMs / 60_000)} min at tier ${label}). ${refusalTail(label)}`,
|
|
132
130
|
};
|
|
133
131
|
}
|
|
134
132
|
if (kind === "dispatch" && budget.maxDispatches != null && counters.dispatches >= budget.maxDispatches) {
|
|
135
133
|
return {
|
|
136
134
|
reason: "dispatches",
|
|
137
135
|
message: `⚠ Turn budget exhausted: ${counters.dispatches} of ${budget.maxDispatches} ` +
|
|
138
|
-
`dispatch_agent calls used
|
|
136
|
+
`dispatch_agent calls used at tier ${label}. ${refusalTail(label)}`,
|
|
139
137
|
};
|
|
140
138
|
}
|
|
141
139
|
if (kind === "research" && budget.maxResearch != null && counters.research >= budget.maxResearch) {
|
|
142
140
|
return {
|
|
143
141
|
reason: "research",
|
|
144
142
|
message: `⚠ Turn budget exhausted: ${counters.research} of ${budget.maxResearch} ` +
|
|
145
|
-
`spawn_research calls used
|
|
143
|
+
`spawn_research calls used at tier ${label}. ${refusalTail(label)}`,
|
|
146
144
|
};
|
|
147
145
|
}
|
|
148
146
|
return null;
|
|
@@ -180,14 +178,14 @@ export function contextOverflowDiagnostic(runsSinceFresh, contextPct, { agent =
|
|
|
180
178
|
);
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
/** One-line status chip: "
|
|
184
|
-
export function budgetStatusLine(
|
|
181
|
+
/** One-line status chip: "Tier: small · 1/2 disp · 0/2 res · task 4/6". */
|
|
182
|
+
export function budgetStatusLine(counters, budget, tier = null, task = null) {
|
|
185
183
|
const cap = (n) => (n == null ? "∞" : String(n));
|
|
186
|
-
const
|
|
184
|
+
const tierLabel = tier || DEFAULT_TASK_TIER;
|
|
187
185
|
const taskSuffix = task
|
|
188
186
|
? ` · task ${task.counters.dispatches}/${cap(task.budget.maxDispatches)}`
|
|
189
187
|
: "";
|
|
190
|
-
return `
|
|
188
|
+
return `Tier: ${tierLabel} · ${counters.dispatches}/${cap(budget.maxDispatches)} disp · ` +
|
|
191
189
|
`${counters.research}/${cap(budget.maxResearch)} res${taskSuffix}`;
|
|
192
190
|
}
|
|
193
191
|
|
|
@@ -203,8 +201,7 @@ export function budgetStatusLine(mode, counters, budget, tier = null, task = nul
|
|
|
203
201
|
//
|
|
204
202
|
// The tier now survives the turn and moves by ratchet: DOWN is free (cheap and
|
|
205
203
|
// self-limiting), UP costs an explicit reason that is recorded and shown. Only
|
|
206
|
-
// an explicit new task (set_task_tier `new_task: true
|
|
207
|
-
// it.
|
|
204
|
+
// an explicit new task (`set_task_tier` with `new_task: true`) clears it.
|
|
208
205
|
|
|
209
206
|
export const TIER_RANK = { trivial: 0, small: 1, feature: 2, project: 3 };
|
|
210
207
|
|
|
@@ -265,9 +262,9 @@ export function applyTierChange(current, next, reason = "") {
|
|
|
265
262
|
// Turn budgets are a per-message allowance, and a per-message allowance cannot
|
|
266
263
|
// bound a task: the observed 47-hour run never hit one, because every steering
|
|
267
264
|
// message opened a fresh window of 8 dispatches and 60 minutes. The task budget
|
|
268
|
-
// is the same envelope multiplied once and NOT reset by a user message
|
|
269
|
-
//
|
|
270
|
-
//
|
|
265
|
+
// is the same envelope multiplied once and NOT reset by a user message.
|
|
266
|
+
// Exhaustion is a hard stop until the human accepts one audited continuation
|
|
267
|
+
// tranche; opening a genuinely new task remains a separate lifecycle action.
|
|
271
268
|
|
|
272
269
|
export const TASK_BUDGET_MULTIPLIER = 3;
|
|
273
270
|
|
|
@@ -284,9 +281,9 @@ export function resolveTaskBudget(turnBudget, multiplier = TASK_BUDGET_MULTIPLIE
|
|
|
284
281
|
function taskRefusalTail() {
|
|
285
282
|
return "This is a HARD STOP for the current task, not a turn refusal — another user message does " +
|
|
286
283
|
"NOT reopen it. Summarize what is proven (with evidence and artifact paths), what is unproven, " +
|
|
287
|
-
"and what remains, then
|
|
288
|
-
"
|
|
289
|
-
"
|
|
284
|
+
"and what remains, then use the Hub's one-click task-budget continuation confirmation. A confirmed " +
|
|
285
|
+
"continuation opens one audited tranche while preserving task state. Use `set_task_tier` with " +
|
|
286
|
+
"`new_task: true` only when the human genuinely moved to different work.";
|
|
290
287
|
}
|
|
291
288
|
|
|
292
289
|
/**
|
|
@@ -294,7 +291,7 @@ function taskRefusalTail() {
|
|
|
294
291
|
*
|
|
295
292
|
* The task clock must never charge for human time. A task's wall clock spans
|
|
296
293
|
* every message on it, so a lunch break, an overnight pause, or a long `ask_user`
|
|
297
|
-
* answer would all count as budget — and at `
|
|
294
|
+
* answer would all count as budget — and at `small` tier's 45-minute task wall a
|
|
298
295
|
* single coffee break would hard-stop a task with two dispatches spent. That is a
|
|
299
296
|
* false positive that teaches people to reset the task window reflexively, which
|
|
300
297
|
* costs more than the guardrail buys. Dispatch/research counts stay the honest
|
|
@@ -433,8 +430,8 @@ const GATED_TIERS = new Set(["trivial", "small"]);
|
|
|
433
430
|
|
|
434
431
|
/**
|
|
435
432
|
* Refuse a heavy persona at a low tier. Returns null when allowed, else
|
|
436
|
-
* { reason, message }. Unknown/absent tier never gates
|
|
437
|
-
*
|
|
433
|
+
* { reason, message }. Unknown/absent tier never gates here; the harness assumes
|
|
434
|
+
* DEFAULT_TASK_TIER before calling.
|
|
438
435
|
*/
|
|
439
436
|
export function checkTierPersonaGate(tier, persona) {
|
|
440
437
|
const t = normalizeTaskTier(tier);
|
|
@@ -500,7 +497,7 @@ export function checkReviewRoundCap(tier, persona, roundsSoFar) {
|
|
|
500
497
|
`the fix produced new findings is the ratchet — each round's findings become requirements, and the ` +
|
|
501
498
|
`enlarged requirement set justifies the next round.\n` +
|
|
502
499
|
`If this genuinely is a different review (a different subsystem, or work the earlier round never saw), ` +
|
|
503
|
-
`raise the tier with a reason via set_task_tier, or
|
|
500
|
+
`raise the tier with a reason via set_task_tier, or call it with new_task: true for genuinely different work.`,
|
|
504
501
|
};
|
|
505
502
|
}
|
|
506
503
|
|
|
@@ -49,7 +49,14 @@ export interface SpawnPiAgentOptions {
|
|
|
49
49
|
model: string;
|
|
50
50
|
tools: string;
|
|
51
51
|
thinking: string;
|
|
52
|
-
appendSystemPrompt
|
|
52
|
+
/** Replacement prompt; mutually exclusive with appendSystemPrompt when spawning. */
|
|
53
|
+
systemPrompt?: string;
|
|
54
|
+
/** Prompt appended to Pi's inherited prompt (legacy/default child policy). */
|
|
55
|
+
appendSystemPrompt?: string;
|
|
56
|
+
/** Disable automatic global skill discovery for a minimized child. */
|
|
57
|
+
noSkills?: boolean;
|
|
58
|
+
/** Disable AGENTS.md/CLAUDE.md and other automatic context-file discovery. */
|
|
59
|
+
noContextFiles?: boolean;
|
|
53
60
|
sessionFile: string;
|
|
54
61
|
resume?: boolean;
|
|
55
62
|
prompt: string;
|
|
@@ -122,11 +129,16 @@ export function spawnPiAgent(
|
|
|
122
129
|
opts: SpawnPiAgentOptions,
|
|
123
130
|
cbs: SpawnPiAgentCallbacks = {},
|
|
124
131
|
): Promise<SpawnPiAgentResult> {
|
|
132
|
+
const promptArg = opts.systemPrompt !== undefined
|
|
133
|
+
? ["--system-prompt", opts.systemPrompt]
|
|
134
|
+
: ["--append-system-prompt", opts.appendSystemPrompt ?? ""];
|
|
125
135
|
const args = [
|
|
126
136
|
"--mode", "json", "-p", "--no-extensions",
|
|
137
|
+
...(opts.noSkills ? ["--no-skills"] : []),
|
|
138
|
+
...(opts.noContextFiles ? ["--no-context-files"] : []),
|
|
127
139
|
...(opts.extensions || []).flatMap(e => ["-e", e]),
|
|
128
140
|
"--model", opts.model, "--tools", opts.tools, "--thinking", opts.thinking,
|
|
129
|
-
|
|
141
|
+
...promptArg, "--session", opts.sessionFile,
|
|
130
142
|
];
|
|
131
143
|
if (opts.resume) args.push("-c");
|
|
132
144
|
|
|
@@ -35,6 +35,26 @@ interface InstallOptions {
|
|
|
35
35
|
remoteProject?: string | (() => string);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export interface AskUserResultObservation {
|
|
39
|
+
params: { question?: unknown; context?: unknown; options?: unknown };
|
|
40
|
+
result?: unknown;
|
|
41
|
+
phase: "start" | "result";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const askUserResultObservers = new Set<(observation: AskUserResultObservation) => void>();
|
|
45
|
+
|
|
46
|
+
/** Observe compact ask calls without inspecting human prose. */
|
|
47
|
+
export function observeAskUserResults(observer: (observation: AskUserResultObservation) => void): () => void {
|
|
48
|
+
askUserResultObservers.add(observer);
|
|
49
|
+
return () => askUserResultObservers.delete(observer);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function emitAskUserObservation(observation: AskUserResultObservation): void {
|
|
53
|
+
for (const observer of askUserResultObservers) {
|
|
54
|
+
try { observer(observation); } catch { /* observers cannot break asking */ }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
38
58
|
interface ResolveStockOptions {
|
|
39
59
|
moduleUrl?: string;
|
|
40
60
|
cwd?: string;
|
|
@@ -329,26 +349,59 @@ async function defaultCancelRemote(qid: string, reason: string, project: string)
|
|
|
329
349
|
}
|
|
330
350
|
}
|
|
331
351
|
|
|
352
|
+
// Keep UI preferences in the stock implementation; expose only question semantics.
|
|
353
|
+
export const COMPACT_ASK_USER_PARAMETERS = {
|
|
354
|
+
type: "object",
|
|
355
|
+
properties: {
|
|
356
|
+
question: { type: "string", description: "One focused question." },
|
|
357
|
+
context: { type: "string", description: "Short decision context." },
|
|
358
|
+
options: { type: "array", items: { type: "string", description: "Choice label." }, minItems: 2, maxItems: 6, description: "Two to six choices." },
|
|
359
|
+
allowMultiple: { type: "boolean", description: "Allow several choices." },
|
|
360
|
+
allowFreeform: { type: "boolean", description: "Allow a typed answer." },
|
|
361
|
+
allowComment: { type: "boolean", description: "Allow an optional comment." },
|
|
362
|
+
},
|
|
363
|
+
required: ["question"],
|
|
364
|
+
} as const;
|
|
365
|
+
|
|
366
|
+
export function compactAskUserParams(params: any): any {
|
|
367
|
+
return {
|
|
368
|
+
question: params?.question,
|
|
369
|
+
...(params?.context === undefined ? {} : { context: params.context }),
|
|
370
|
+
...(params?.options === undefined ? {} : { options: normalizeOptions(params.options) }),
|
|
371
|
+
...(params?.allowMultiple === undefined ? {} : { allowMultiple: params.allowMultiple }),
|
|
372
|
+
...(params?.allowFreeform === undefined ? {} : { allowFreeform: params.allowFreeform }),
|
|
373
|
+
...(params?.allowComment === undefined ? {} : { allowComment: params.allowComment }),
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
332
377
|
export function wrapAskUserTool(stockTool: ToolRegistration, options: InstallOptions = {}): ToolRegistration {
|
|
333
378
|
return {
|
|
334
379
|
...stockTool,
|
|
380
|
+
description: "Ask one focused human question; choices are optional.",
|
|
381
|
+
promptSnippet: "Ask one focused human question",
|
|
382
|
+
promptGuidelines: ["Ask one focused question per call."],
|
|
383
|
+
parameters: COMPACT_ASK_USER_PARAMETERS,
|
|
335
384
|
async execute(toolCallId: string, params: any, signal?: AbortSignal, onUpdate?: any, ctx?: any) {
|
|
385
|
+
const stockParams = compactAskUserParams(params);
|
|
386
|
+
emitAskUserObservation({ params: stockParams, phase: "start" });
|
|
336
387
|
const configuredProject = typeof options.remoteProject === "function" ? options.remoteProject() : options.remoteProject;
|
|
337
388
|
const remoteProject = configuredProject ?? process.env.PI_COMS_PROJECT?.trim() ?? "default";
|
|
338
389
|
const startRemote = options.startRemote ?? ((remoteParams: any) => defaultStartRemote(remoteParams, remoteProject));
|
|
339
390
|
let remoteStart: { qid: string; result: Promise<any> } | null = null;
|
|
340
391
|
try {
|
|
341
|
-
remoteStart = await startRemote(
|
|
392
|
+
remoteStart = await startRemote(stockParams, ctx);
|
|
342
393
|
} catch {
|
|
343
394
|
remoteStart = null;
|
|
344
395
|
}
|
|
345
396
|
|
|
346
397
|
if (!remoteStart) {
|
|
347
|
-
|
|
398
|
+
const result = await stockTool.execute?.(toolCallId, stockParams, signal, onUpdate, ctx);
|
|
399
|
+
emitAskUserObservation({ params: stockParams, result, phase: "result" });
|
|
400
|
+
return result;
|
|
348
401
|
}
|
|
349
402
|
|
|
350
|
-
|
|
351
|
-
runLocal: (localSignal: AbortSignal) => stockTool.execute?.(toolCallId,
|
|
403
|
+
const result = await raceAskUser({
|
|
404
|
+
runLocal: (localSignal: AbortSignal) => stockTool.execute?.(toolCallId, stockParams, localSignal, onUpdate, ctx),
|
|
352
405
|
startRemote: () => remoteStart,
|
|
353
406
|
cancelRemote: options.cancelRemote ?? ((qid: string, reason: string) => defaultCancelRemote(qid, reason, remoteProject)),
|
|
354
407
|
createAbortController: () => {
|
|
@@ -358,6 +411,8 @@ export function wrapAskUserTool(stockTool: ToolRegistration, options: InstallOpt
|
|
|
358
411
|
},
|
|
359
412
|
signal,
|
|
360
413
|
});
|
|
414
|
+
emitAskUserObservation({ params: stockParams, result, phase: "result" });
|
|
415
|
+
return result;
|
|
361
416
|
},
|
|
362
417
|
};
|
|
363
418
|
}
|