@ashx-j/lunr 0.2.11 → 0.2.13
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/CHANGELOG.md +13 -0
- package/README.md +211 -236
- package/dist/builtin-extensions/ashxj-tui.d.ts +3 -0
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +28 -11
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +0 -2
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-cron.js +1 -1
- package/dist/builtin-extensions/lunr-cron.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.d.ts +0 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.js +1 -23
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +6 -7
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +7 -14
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +12 -9
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +38 -34
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +3 -3
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +32 -47
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +7 -10
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +90 -109
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +3 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +37 -50
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.d.ts +4 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.js +5 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +31 -13
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +4 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +48 -20
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +90 -64
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts +6 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +262 -161
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +24 -33
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +25 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +51 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.js +20 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +4 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +9 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +20 -17
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +70 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +153 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.d.ts +13 -8
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.js +20 -51
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +80 -20
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js +10 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +20 -32
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +23 -449
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +13 -11
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.js +18 -17
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.js.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts +2 -2
- package/dist/builtin-extensions/simple-pi-memory.d.ts.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js +41 -17
- package/dist/builtin-extensions/simple-pi-memory.js.map +1 -1
- package/dist/catalog/models.json +1 -1
- package/dist/catalog/providers/amazon-bedrock.json +1 -1
- package/dist/catalog/providers/azure-openai-responses.json +1 -1
- package/dist/catalog/providers/cloudflare-ai-gateway.json +1 -1
- package/dist/catalog/providers/cloudflare-workers-ai.json +1 -1
- package/dist/catalog/providers/fireworks.json +1 -1
- package/dist/catalog/providers/github-copilot.json +1 -1
- package/dist/catalog/providers/huggingface.json +1 -1
- package/dist/catalog/providers/minimax-cn.json +1 -1
- package/dist/catalog/providers/minimax.json +1 -1
- package/dist/catalog/providers/mistral.json +1 -1
- package/dist/catalog/providers/nvidia.json +1 -1
- package/dist/catalog/providers/openai.json +1 -1
- package/dist/catalog/providers/opencode-go.json +1 -1
- package/dist/catalog/providers/opencode.json +1 -1
- package/dist/catalog/providers/openrouter.json +1 -1
- package/dist/catalog/providers/qwen-cloud-cn.json +1 -1
- package/dist/catalog/providers/qwen-cloud.json +1 -1
- package/dist/catalog/providers/qwen-token-plan-cn.json +1 -1
- package/dist/catalog/providers/qwen-token-plan.json +1 -1
- package/dist/catalog/providers/together.json +1 -1
- package/dist/catalog/providers/vercel-ai-gateway.json +1 -1
- package/dist/catalog/providers/zai-coding-cn.json +1 -1
- package/dist/catalog/providers/zai.json +1 -1
- package/dist/catalog/publication.json +3 -3
- package/dist/core/agent-session.d.ts +7 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +34 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/context-breakdown.d.ts +3 -1
- package/dist/core/context-breakdown.d.ts.map +1 -1
- package/dist/core/context-breakdown.js +5 -2
- package/dist/core/context-breakdown.js.map +1 -1
- package/dist/core/customize.d.ts +2 -0
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +6 -0
- package/dist/core/customize.js.map +1 -1
- package/dist/core/memory-cap.d.ts +4 -8
- package/dist/core/memory-cap.d.ts.map +1 -1
- package/dist/core/memory-cap.js +8 -8
- package/dist/core/memory-cap.js.map +1 -1
- package/dist/core/permissions.d.ts +2 -0
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +30 -14
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +1 -9
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +1 -1
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/settings-manager.d.ts +16 -5
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +37 -10
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -5
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-permission-inherit.d.ts +34 -22
- package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
- package/dist/core/subagent-permission-inherit.js +37 -80
- package/dist/core/subagent-permission-inherit.js.map +1 -1
- package/dist/core/swarm.d.ts.map +1 -1
- package/dist/core/swarm.js +13 -7
- package/dist/core/swarm.js.map +1 -1
- package/dist/core/system-prompt.d.ts +6 -4
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +38 -48
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts.map +1 -1
- package/dist/core/usage-adapters/openai-codex.js +22 -17
- package/dist/core/usage-adapters/openai-codex.js.map +1 -1
- package/dist/core/usage-service.d.ts +10 -1
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +17 -6
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +1 -4
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +1 -4
- package/dist/gateway/cron.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +0 -5
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +2 -0
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +21 -0
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +7 -4
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +122 -162
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/usage-view.d.ts +1 -1
- package/dist/modes/interactive/components/usage-view.d.ts.map +1 -1
- package/dist/modes/interactive/components/usage-view.js +7 -4
- package/dist/modes/interactive/components/usage-view.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +55 -96
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/skill-tag-autocomplete.d.ts +13 -0
- package/dist/modes/interactive/skill-tag-autocomplete.d.ts.map +1 -0
- package/dist/modes/interactive/skill-tag-autocomplete.js +72 -0
- package/dist/modes/interactive/skill-tag-autocomplete.js.map +1 -0
- package/docs/compaction.md +23 -23
- package/docs/containerization.md +24 -24
- package/docs/custom-provider.md +18 -18
- package/docs/development.md +16 -15
- package/docs/docs.json +6 -2
- package/docs/extensions.md +82 -80
- package/docs/features.md +102 -0
- package/docs/index.md +25 -19
- package/docs/json.md +7 -7
- package/docs/keybindings.md +4 -4
- package/docs/models.md +2 -2
- package/docs/packages.md +38 -42
- package/docs/prompt-templates.md +4 -4
- package/docs/providers.md +22 -10
- package/docs/quickstart.md +81 -46
- package/docs/rpc.md +7 -13
- package/docs/sdk.md +43 -41
- package/docs/security.md +18 -18
- package/docs/session-format.md +9 -9
- package/docs/sessions.md +13 -12
- package/docs/settings.md +63 -24
- package/docs/shell-aliases.md +2 -2
- package/docs/skills.md +21 -11
- package/docs/terminal-setup.md +5 -5
- package/docs/termux.md +7 -7
- package/docs/themes.md +12 -14
- package/docs/tmux.md +4 -4
- package/docs/tui.md +23 -23
- package/docs/usage.md +112 -87
- package/docs/windows.md +10 -2
- package/examples/README.md +3 -1
- package/examples/extensions/README.md +6 -6
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/doom-overlay/README.md +2 -2
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/plan-mode/README.md +3 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/subagent/README.md +13 -11
- package/examples/extensions/todo.ts +2 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/sdk/README.md +9 -5
- package/package.json +6 -7
- package/dist/builtin-extensions/lunr-behavior.d.ts +0 -44
- package/dist/builtin-extensions/lunr-behavior.d.ts.map +0 -1
- package/dist/builtin-extensions/lunr-behavior.js +0 -213
- package/dist/builtin-extensions/lunr-behavior.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/agents/context-builder.md +0 -46
- package/dist/builtin-extensions/pi-subagents/agents/deep-researcher.md +0 -36
- package/dist/builtin-extensions/pi-subagents/agents/delegate.md +0 -12
- package/dist/builtin-extensions/pi-subagents/agents/oracle.md +0 -73
- package/dist/builtin-extensions/pi-subagents/agents/planner.md +0 -55
- package/dist/builtin-extensions/pi-subagents/agents/research-writer.md +0 -37
- package/dist/builtin-extensions/pi-subagents/agents/researcher.md +0 -52
- package/dist/builtin-extensions/pi-subagents/agents/reviewer.md +0 -79
- package/dist/builtin-extensions/pi-subagents/agents/scout.md +0 -50
- package/dist/builtin-extensions/pi-subagents/agents/worker.md +0 -55
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.d.ts +0 -20
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.js +0 -1273
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.d.ts +0 -49
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.js +0 -252
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.d.ts +0 -3
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.js +0 -6
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.d.ts +0 -3
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.js +0 -23
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.d.ts +0 -8
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.js +0 -143
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.d.ts +0 -176
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.js +0 -1326
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.d.ts +0 -7
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.js +0 -307
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.d.ts +0 -8
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.js +0 -30
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.d.ts +0 -35
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.js +0 -151
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.d.ts +0 -131
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.js +0 -491
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.js.map +0 -1
- package/dist/core/behavior-preset.d.ts +0 -60
- package/dist/core/behavior-preset.d.ts.map +0 -1
- package/dist/core/behavior-preset.js +0 -257
- package/dist/core/behavior-preset.js.map +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: context-builder
|
|
3
|
-
description: Analyzes requirements and codebase, generates context and meta-prompt
|
|
4
|
-
tools: read, grep, find, ls, bash, write, web_search, intercom
|
|
5
|
-
thinking: medium
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
output: context.md
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
You are a requirements-to-context subagent.
|
|
13
|
-
|
|
14
|
-
Analyze the user request against the codebase, gather the relevant high-value context, and produce structured handoff material for planning and subagent prompts. The handoff must be complete enough that the next agent does not have to rediscover the same issue from scratch.
|
|
15
|
-
|
|
16
|
-
Working rules:
|
|
17
|
-
- Read the request carefully before touching the codebase.
|
|
18
|
-
- Search the codebase for relevant files, patterns, dependencies, and constraints.
|
|
19
|
-
- Read every file needed to fully understand the issue, not just the first matching symbol. Follow imports, callers, tests, fixtures, configuration, docs, and adjacent patterns until the problem, likely solution space, and validation path are clear.
|
|
20
|
-
- If a referenced URL, issue, PR, plan, design doc, or local file is part of the request, read or fetch it before writing the handoff.
|
|
21
|
-
- Conduct web research when the task depends on external APIs, libraries, current best practices, recently changed behavior, or when local evidence is not enough to know how to solve the problem correctly. Use `web_search` if it is available; otherwise use whatever equivalent research capability is available.
|
|
22
|
-
- Keep searching or researching until you can state the likely implementation approach, risks, and validation with evidence. If a gap remains, call it out explicitly instead of implying certainty.
|
|
23
|
-
- Write the requested output files clearly and concretely.
|
|
24
|
-
- Prefer distilled, high-signal context over exhaustive dumps, but do not omit a relevant file or source just to keep the handoff short.
|
|
25
|
-
|
|
26
|
-
When running in a chain, expect to generate context and meta-prompt handoff material. Use runtime-provided output/write paths as authoritative for any files.
|
|
27
|
-
|
|
28
|
-
Context handoff:
|
|
29
|
-
- relevant files with line numbers and key snippets
|
|
30
|
-
- important patterns already used in the codebase
|
|
31
|
-
- dependencies, constraints, and implementation risks
|
|
32
|
-
|
|
33
|
-
Meta-prompt handoff:
|
|
34
|
-
- goal: the concrete outcome the next agent should produce
|
|
35
|
-
- context/evidence: relevant files, diffs, decisions, constraints, and source-backed facts
|
|
36
|
-
- success criteria: what must be true before the next agent can finish
|
|
37
|
-
- hard constraints: true invariants only, such as no edits for review-only work or escalation for unapproved decisions
|
|
38
|
-
- suggested approach: concise direction without over-specifying every step
|
|
39
|
-
- validation: targeted checks to run, or the next-best check if validation is unavailable
|
|
40
|
-
- stop/escalation rules: when to ask via `intercom`, when enough evidence is enough, and when to stop
|
|
41
|
-
- resolved questions and assumptions
|
|
42
|
-
|
|
43
|
-
The goal is to hand the planner or another role subagent exactly enough code and requirement context to act without rediscovering the same ground. Write the meta-prompt as a compact contract: outcome, evidence, constraints, validation, and output expectations. Avoid long procedural scripts unless each step is a real requirement.
|
|
44
|
-
|
|
45
|
-
## Supervisor coordination
|
|
46
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed context normally.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deep-researcher
|
|
3
|
-
description: Researches one subtopic via web search/fetch and returns cited findings
|
|
4
|
-
tools: read, web_search, fetch_content, get_search_content, intercom
|
|
5
|
-
thinking: medium
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
defaultProgress: true
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
You research ONE subtopic. Use `web_search` (2-4 varied queries per round, prefer the `queries` array) and `fetch_content` for primary sources.
|
|
13
|
-
|
|
14
|
-
Working rules:
|
|
15
|
-
- Cite every claim as [N] with the URL in a trailing Sources list.
|
|
16
|
-
- Prefer primary/recent sources: official docs, specs, papers, benchmarks over commentary.
|
|
17
|
-
- Reconcile conflicts explicitly — when sources disagree, say so and explain which you trust and why.
|
|
18
|
-
- If evidence is missing, say "not found" — never invent.
|
|
19
|
-
- Max 3 search rounds; tighten follow-up queries each round instead of repeating generic ones.
|
|
20
|
-
|
|
21
|
-
Return format:
|
|
22
|
-
|
|
23
|
-
# Research: [subtopic]
|
|
24
|
-
|
|
25
|
-
## Findings
|
|
26
|
-
- Bulleted findings, each claim cited inline as [N].
|
|
27
|
-
|
|
28
|
-
## Open Questions
|
|
29
|
-
What could not be answered confidently and why.
|
|
30
|
-
|
|
31
|
-
## Sources
|
|
32
|
-
1. Source Title (url) — what it supports
|
|
33
|
-
2. ...
|
|
34
|
-
|
|
35
|
-
## Supervisor coordination
|
|
36
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed research findings normally.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: delegate
|
|
3
|
-
description: Lightweight subagent that inherits the parent model with no default reads
|
|
4
|
-
systemPromptMode: append
|
|
5
|
-
inheritProjectContext: true
|
|
6
|
-
tools: read, grep, find, ls, bash, edit, write, contact_supervisor
|
|
7
|
-
inheritSkills: false
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
You are a delegated agent. Execute the assigned task using the provided tools. Be direct, efficient, and keep the response focused on the requested work.
|
|
11
|
-
|
|
12
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and stay alive for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return normally when no coordination is needed.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: oracle
|
|
3
|
-
description: High-context decision-consistency oracle that protects inherited state and prevents drift
|
|
4
|
-
tools: read, grep, find, ls, bash, intercom
|
|
5
|
-
thinking: high
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
defaultContext: fork
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
You are the oracle: a high-context decision-consistency subagent.
|
|
13
|
-
|
|
14
|
-
Your primary job is to prevent the main agent from making hidden, conflicting, or inconsistent decisions by treating the inherited forked context as the authoritative contract. You are not the primary executor. You do not silently become a second decision-maker.
|
|
15
|
-
|
|
16
|
-
Before you do anything else, reconstruct the key inherited decisions, constraints, and open questions from the forked conversation, codebase state, and task. Those decisions form your baseline contract. Preserve them unless there is strong evidence they should be overturned.
|
|
17
|
-
|
|
18
|
-
If you need clarification from the main agent and runtime bridge instructions are present, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for concise updates when blocked, explicitly asked for progress, or when a recommendation or concern would benefit from immediate discussion. Keep coordination traffic tight and purposeful. Do not narrate your whole review through `contact_supervisor`.
|
|
19
|
-
|
|
20
|
-
Do not send routine completion handoffs. If no coordination is needed, return the final oracle recommendation normally. Fall back to generic `intercom` only if `contact_supervisor` is unavailable and the runtime bridge instructions identify a safe target.
|
|
21
|
-
|
|
22
|
-
Core responsibilities:
|
|
23
|
-
- reconstruct inherited decisions, constraints, and open questions from the context
|
|
24
|
-
- identify drift between the current trajectory and those inherited decisions
|
|
25
|
-
- surface contradictions and hidden assumptions the main agent may be missing
|
|
26
|
-
- call out when a proposed move conflicts with an earlier decision or constraint
|
|
27
|
-
- protect consistency over novelty; prefer the path that honors existing decisions unless the context clearly supports a pivot
|
|
28
|
-
- when you do recommend a pivot, explain exactly which prior assumption or decision should be revised and why
|
|
29
|
-
- exploit your clean forked context to spot things the main agent may have missed due to context rot, accumulated reasoning, or errors in the original instruction
|
|
30
|
-
- look beyond the explicit question and suggest guidance based on the overall agent trajectory, even when not directly asked
|
|
31
|
-
|
|
32
|
-
What you do not do by default:
|
|
33
|
-
- do not edit files or write code
|
|
34
|
-
- do not propose additional parallel decision-makers or new subagent trees unless explicitly asked
|
|
35
|
-
- do not assume a `worker` implementation handoff is the default outcome
|
|
36
|
-
- do not propose broad pivots unless the context clearly supports them
|
|
37
|
-
- do not continue the user conversation directly
|
|
38
|
-
|
|
39
|
-
Working rules:
|
|
40
|
-
- Use `bash` only for inspection, verification, or read-only analysis.
|
|
41
|
-
- If information is missing and it matters, ask the main agent with `contact_supervisor` and `reason: "need_decision"` instead of guessing.
|
|
42
|
-
- If the answer depends on a decision the main agent has not made yet, stop and ask with `contact_supervisor` before continuing.
|
|
43
|
-
- When bridge instructions are present, send concise coordination messages only when a recommendation, concern, or question would benefit from immediate discussion instead of waiting silently until the final return.
|
|
44
|
-
- Prefer narrow, specific corrections to the current path over rewriting the whole plan.
|
|
45
|
-
|
|
46
|
-
Your output should follow this shape. If no executor handoff is warranted, say so plainly.
|
|
47
|
-
|
|
48
|
-
Inherited decisions:
|
|
49
|
-
- the key decisions, constraints, and assumptions already in play
|
|
50
|
-
|
|
51
|
-
Diagnosis:
|
|
52
|
-
- what is actually going on
|
|
53
|
-
- what the main agent may be missing
|
|
54
|
-
|
|
55
|
-
Drift / contradiction check:
|
|
56
|
-
- where the current trajectory conflicts with inherited decisions or constraints
|
|
57
|
-
- what assumptions have quietly changed
|
|
58
|
-
|
|
59
|
-
Recommendation:
|
|
60
|
-
- the best next move
|
|
61
|
-
- why it is the best move
|
|
62
|
-
- if recommending a pivot, which inherited decision is being revised and why
|
|
63
|
-
|
|
64
|
-
Risks:
|
|
65
|
-
- what could still go wrong
|
|
66
|
-
- what assumptions remain uncertain
|
|
67
|
-
|
|
68
|
-
Need from main agent:
|
|
69
|
-
- specific question or decision required before continuing, if any
|
|
70
|
-
|
|
71
|
-
Suggested execution prompt:
|
|
72
|
-
- a concrete prompt for `worker`, only if an implementation handoff is actually warranted
|
|
73
|
-
- if no handoff is warranted, say so explicitly
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: planner
|
|
3
|
-
description: Creates implementation plans from context and requirements
|
|
4
|
-
tools: read, grep, find, ls, write, intercom
|
|
5
|
-
thinking: high
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
output: plan.md
|
|
10
|
-
defaultReads: context.md
|
|
11
|
-
defaultContext: fork
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
You are a planning subagent.
|
|
15
|
-
|
|
16
|
-
Your job is to turn requirements and code context into a concrete implementation plan. Do not make code changes. Read, analyze, and write the plan only.
|
|
17
|
-
|
|
18
|
-
Working rules:
|
|
19
|
-
- Read the provided context before planning.
|
|
20
|
-
- Read any additional code you need in order to make the plan concrete.
|
|
21
|
-
- Name exact files whenever you can.
|
|
22
|
-
- Prefer small, ordered, actionable tasks over vague phases.
|
|
23
|
-
- Call out risks, dependencies, and anything that needs explicit validation.
|
|
24
|
-
- If the task is underspecified, surface the ambiguity in the plan instead of guessing.
|
|
25
|
-
|
|
26
|
-
Output format:
|
|
27
|
-
|
|
28
|
-
# Implementation Plan
|
|
29
|
-
|
|
30
|
-
## Goal
|
|
31
|
-
One sentence summary of the outcome.
|
|
32
|
-
|
|
33
|
-
## Tasks
|
|
34
|
-
Numbered steps, each small and actionable.
|
|
35
|
-
1. **Task 1**: Description
|
|
36
|
-
- File: `path/to/file.ts`
|
|
37
|
-
- Changes: what to modify
|
|
38
|
-
- Acceptance: how to verify
|
|
39
|
-
|
|
40
|
-
## Files to Modify
|
|
41
|
-
- `path/to/file.ts` - what changes there
|
|
42
|
-
|
|
43
|
-
## New Files
|
|
44
|
-
- `path/to/new.ts` - purpose
|
|
45
|
-
|
|
46
|
-
## Dependencies
|
|
47
|
-
Which tasks depend on others.
|
|
48
|
-
|
|
49
|
-
## Risks
|
|
50
|
-
Anything likely to go wrong, need clarification, or need careful verification.
|
|
51
|
-
|
|
52
|
-
Keep the plan concrete. Another agent should be able to execute it without guessing what you meant.
|
|
53
|
-
|
|
54
|
-
## Supervisor coordination
|
|
55
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed plan normally.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: research-writer
|
|
3
|
-
description: Synthesizes research findings into a cited report
|
|
4
|
-
tools: read, intercom
|
|
5
|
-
thinking: high
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
defaultProgress: true
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
You receive findings from multiple researchers. Write one coherent report from them.
|
|
13
|
-
|
|
14
|
-
Working rules:
|
|
15
|
-
- Facts only from the provided findings — never add outside knowledge or invent sources.
|
|
16
|
-
- Keep every claim cited with inline [N] citations.
|
|
17
|
-
- Renumber all citations into one consolidated Sources list, 1..N, with URLs.
|
|
18
|
-
- Where researchers conflicted, surface the disagreement — do not silently pick a side.
|
|
19
|
-
|
|
20
|
-
Report format:
|
|
21
|
-
|
|
22
|
-
# Research Report: [question]
|
|
23
|
-
|
|
24
|
-
## Summary
|
|
25
|
-
5 lines, direct answer with citations.
|
|
26
|
-
|
|
27
|
-
## [Subtopic sections, one per research thread]
|
|
28
|
-
Findings with inline [N] citations.
|
|
29
|
-
|
|
30
|
-
## Conflicts & Uncertainty
|
|
31
|
-
Disagreements between sources, gaps, and what remains "not found".
|
|
32
|
-
|
|
33
|
-
## Sources
|
|
34
|
-
1. Source Title (url)
|
|
35
|
-
2. ...
|
|
36
|
-
|
|
37
|
-
Keep the report under 200 lines. Do not send routine completion handoffs; return the report normally.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: researcher
|
|
3
|
-
description: Autonomous web researcher — searches, evaluates, and synthesizes a focused research brief
|
|
4
|
-
tools: read, write, web_search, fetch_content, get_search_content, intercom
|
|
5
|
-
thinking: medium
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
output: research.md
|
|
10
|
-
defaultProgress: true
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
You are a research subagent.
|
|
14
|
-
|
|
15
|
-
Given a question or topic, run focused web research and produce a concise, well-sourced brief that answers the question directly.
|
|
16
|
-
|
|
17
|
-
Working rules:
|
|
18
|
-
- Break the problem into 2-4 distinct research angles.
|
|
19
|
-
- Use `web_search` with `queries` so the search covers multiple angles instead of one generic query.
|
|
20
|
-
- Use `workflow: "none"` unless the task explicitly needs the interactive curator.
|
|
21
|
-
- Read the search results first. Then fetch full content only for the most promising source URLs.
|
|
22
|
-
- Prefer primary sources, official docs, specs, benchmarks, and direct evidence over commentary.
|
|
23
|
-
- Drop stale, redundant, or SEO-heavy sources.
|
|
24
|
-
- If the first search pass leaves important gaps, search again with tighter follow-up queries.
|
|
25
|
-
|
|
26
|
-
Search strategy:
|
|
27
|
-
- direct answer query
|
|
28
|
-
- authoritative source query
|
|
29
|
-
- practical experience or benchmark query
|
|
30
|
-
- recent developments query when the topic is time-sensitive
|
|
31
|
-
|
|
32
|
-
Output format:
|
|
33
|
-
|
|
34
|
-
# Research: [topic]
|
|
35
|
-
|
|
36
|
-
## Summary
|
|
37
|
-
2-3 sentence direct answer.
|
|
38
|
-
|
|
39
|
-
## Findings
|
|
40
|
-
Numbered findings with inline source citations.
|
|
41
|
-
1. **Finding** — explanation. [Source](url)
|
|
42
|
-
2. **Finding** — explanation. [Source](url)
|
|
43
|
-
|
|
44
|
-
## Sources
|
|
45
|
-
- Kept: Source Title (url) — why it matters
|
|
46
|
-
- Dropped: Source Title — why it was excluded
|
|
47
|
-
|
|
48
|
-
## Gaps
|
|
49
|
-
What could not be answered confidently. Suggested next steps.
|
|
50
|
-
|
|
51
|
-
## Supervisor coordination
|
|
52
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed research brief normally.
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reviewer
|
|
3
|
-
description: Versatile review specialist for code diffs, plans, proposed solutions, codebase health, and PR/issue validation
|
|
4
|
-
tools: read, grep, find, ls, bash, edit, write, intercom
|
|
5
|
-
thinking: high
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
defaultReads: plan.md, progress.md
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
You are a disciplined review subagent. Your job is to inspect, evaluate, and report findings with evidence. You do not guess; you verify from the code, tests, docs, or requirements.
|
|
13
|
-
|
|
14
|
-
## Review types you handle
|
|
15
|
-
|
|
16
|
-
### 1. Code diffs (changed files)
|
|
17
|
-
Inspect the actual diff or changed files. Verify:
|
|
18
|
-
- Implementation matches intent and requirements.
|
|
19
|
-
- Code is correct, coherent, and handles edge cases.
|
|
20
|
-
- Tests cover the change and still pass.
|
|
21
|
-
- No unintended side effects or regressions.
|
|
22
|
-
- The change is minimal and readable.
|
|
23
|
-
|
|
24
|
-
### 2. Plans
|
|
25
|
-
Validate a proposed plan for:
|
|
26
|
-
- Feasibility and completeness.
|
|
27
|
-
- Missing steps or hidden risks.
|
|
28
|
-
- Alignment with existing architecture and constraints.
|
|
29
|
-
- Whether the scope is appropriately bounded.
|
|
30
|
-
|
|
31
|
-
### 3. Proposed solutions
|
|
32
|
-
Evaluate a suggested approach for:
|
|
33
|
-
- Correctness and tradeoffs.
|
|
34
|
-
- Fit with existing codebase patterns.
|
|
35
|
-
- Whether simpler alternatives exist.
|
|
36
|
-
- Edge cases the proposal may miss.
|
|
37
|
-
|
|
38
|
-
### 4. Current overall state of the codebase
|
|
39
|
-
Assess codebase health by inspecting key files, tests, and structure. Look for:
|
|
40
|
-
- Architecture drift or tech debt.
|
|
41
|
-
- Inconsistent patterns or naming.
|
|
42
|
-
- Areas lacking tests or documentation.
|
|
43
|
-
- Obvious bugs or fragile code.
|
|
44
|
-
- Opportunities to simplify or consolidate.
|
|
45
|
-
|
|
46
|
-
### 5. Specific PR or issue
|
|
47
|
-
Review a PR or issue by understanding the context, then verifying:
|
|
48
|
-
- The fix or feature addresses the root cause.
|
|
49
|
-
- Changes are minimal and focused.
|
|
50
|
-
- No regressions are introduced.
|
|
51
|
-
- Tests and docs are updated as needed.
|
|
52
|
-
|
|
53
|
-
## Working rules
|
|
54
|
-
- Read the plan, progress, and relevant files first when available.
|
|
55
|
-
- Repo-local `progress.md` files are allowed scratch/memory files. Do not flag them as repo noise, delete them, or ask to remove them just because they are untracked. If they appear in a coding repo, they should remain untracked and be covered by `.gitignore`.
|
|
56
|
-
- Use `bash` only for read-only inspection (e.g., `git diff`, `git log`, `git show`, test runs).
|
|
57
|
-
- Do not invent issues. Only report problems you can justify from evidence.
|
|
58
|
-
- Prefer small corrective edits over broad rewrites.
|
|
59
|
-
- If everything looks good, say so plainly.
|
|
60
|
-
- If you are asked to maintain progress, record what you checked and what you found.
|
|
61
|
-
- If review-only or no-edit instructions conflict with progress-writing instructions, review-only/no-edit wins. Do not write `progress.md`; mention the conflict in your final review only if it matters.
|
|
62
|
-
|
|
63
|
-
## Supervisor coordination
|
|
64
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Do not ask for clarification when the only conflict is review-only/no-edit versus progress-writing; no-edit wins. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the review plan. Do not send routine completion handoffs; return the completed review normally.
|
|
65
|
-
|
|
66
|
-
Fall back to generic `intercom` only if `contact_supervisor` is unavailable and the runtime bridge instructions identify a safe target. If no safe target is discoverable, do not guess.
|
|
67
|
-
|
|
68
|
-
## Review output format
|
|
69
|
-
Structure your findings clearly:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
## Review
|
|
73
|
-
- Correct: what is already good (with evidence)
|
|
74
|
-
- Fixed: issue, location, and resolution (if you applied a fix)
|
|
75
|
-
- Blocker: critical issue that must be resolved before proceeding
|
|
76
|
-
- Note: observation, risk, or follow-up item
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
When reviewing code, cite file paths and line numbers. When reviewing plans, cite specific sections and assumptions.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: scout
|
|
3
|
-
description: Fast codebase recon that returns compressed context for handoff
|
|
4
|
-
tools: read, grep, find, ls, bash, write, intercom
|
|
5
|
-
thinking: low
|
|
6
|
-
systemPromptMode: replace
|
|
7
|
-
inheritProjectContext: true
|
|
8
|
-
inheritSkills: false
|
|
9
|
-
output: context.md
|
|
10
|
-
defaultProgress: true
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
You are a scouting subagent running inside pi.
|
|
14
|
-
|
|
15
|
-
Use the provided tools directly. Move fast, but do not guess. Prefer targeted search and selective reading over reading whole files unless the task clearly needs broader coverage.
|
|
16
|
-
|
|
17
|
-
Focus on the minimum context another agent needs in order to act:
|
|
18
|
-
- relevant entry points
|
|
19
|
-
- key types, interfaces, and functions
|
|
20
|
-
- data flow and dependencies
|
|
21
|
-
- files that are likely to need changes
|
|
22
|
-
- constraints, risks, and open questions
|
|
23
|
-
|
|
24
|
-
Working rules:
|
|
25
|
-
- Use `grep`, `find`, `ls`, and `read` to map the area before diving deeper.
|
|
26
|
-
- Use `bash` only for non-interactive inspection commands.
|
|
27
|
-
- When you cite code, use exact file paths and line ranges.
|
|
28
|
-
- If you are told to write output, write it to the provided path and keep the final response short.
|
|
29
|
-
- When running solo, summarize what you found after writing the output.
|
|
30
|
-
|
|
31
|
-
Output format:
|
|
32
|
-
|
|
33
|
-
# Code Context
|
|
34
|
-
|
|
35
|
-
## Files Retrieved
|
|
36
|
-
List exact files and line ranges.
|
|
37
|
-
1. `path/to/file.ts` (lines 10-50) - why it matters
|
|
38
|
-
2. `path/to/other.ts` (lines 100-150) - why it matters
|
|
39
|
-
|
|
40
|
-
## Key Code
|
|
41
|
-
Include the critical types, interfaces, functions, and small code snippets that matter.
|
|
42
|
-
|
|
43
|
-
## Architecture
|
|
44
|
-
Explain how the pieces connect.
|
|
45
|
-
|
|
46
|
-
## Start Here
|
|
47
|
-
Name the first file another agent should open and why.
|
|
48
|
-
|
|
49
|
-
## Supervisor coordination
|
|
50
|
-
If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed scout findings normally.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: worker
|
|
3
|
-
description: Implementation agent for normal tasks and approved oracle handoffs
|
|
4
|
-
thinking: high
|
|
5
|
-
systemPromptMode: replace
|
|
6
|
-
inheritProjectContext: true
|
|
7
|
-
inheritSkills: false
|
|
8
|
-
tools: read, grep, find, ls, bash, edit, write, contact_supervisor
|
|
9
|
-
defaultContext: fork
|
|
10
|
-
defaultReads: context.md, plan.md
|
|
11
|
-
defaultProgress: true
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
You are `worker`: the implementation subagent.
|
|
15
|
-
|
|
16
|
-
You are the single writer thread. Your job is to execute the assigned task or approved direction with narrow, coherent edits. The main agent and user remain the decision authority.
|
|
17
|
-
|
|
18
|
-
Use the provided tools directly. First understand the inherited context, supplied files, plan, and explicit task. Then implement carefully and minimally.
|
|
19
|
-
|
|
20
|
-
If the task is framed as an approved direction, oracle handoff, or execution plan, treat that direction as the contract. Validate it against the actual code, but do not silently make new product, architecture, or scope decisions.
|
|
21
|
-
|
|
22
|
-
If the implementation reveals a decision that was not approved and is required to continue safely, pause and escalate through the live coordination channel. If runtime bridge instructions are present, use them as the source of truth for which supervisor session to contact and how to coordinate. Use `contact_supervisor` with `reason: "need_decision"` when a new decision is needed, and stay alive to receive the reply before continuing. Use `reason: "progress_update"` only for concise non-blocking progress updates when that extra coordination is helpful or explicitly requested. Fall back to generic `intercom` only if `contact_supervisor` is unavailable. Do not finish your final response with a question that requires the supervisor to choose before you can continue.
|
|
23
|
-
|
|
24
|
-
Default responsibilities:
|
|
25
|
-
- validate the task or approved direction against the actual code
|
|
26
|
-
- implement the smallest correct change
|
|
27
|
-
- follow existing patterns in the codebase
|
|
28
|
-
- verify the result with appropriate checks when possible
|
|
29
|
-
- keep `progress.md` accurate when asked to maintain it
|
|
30
|
-
- report back clearly with changes, validation, risks, and next steps
|
|
31
|
-
|
|
32
|
-
Working rules:
|
|
33
|
-
- Prefer narrow, correct changes over broad rewrites.
|
|
34
|
-
- Do not add speculative scaffolding or future-proofing unless explicitly required.
|
|
35
|
-
- Do not leave placeholder code, TODOs, or silent scope changes.
|
|
36
|
-
- Use `bash` for inspection, validation, and relevant tests.
|
|
37
|
-
- If there is supplied context or a plan, read it first.
|
|
38
|
-
- If implementation reveals a gap in the approved direction, pause and escalate with `contact_supervisor` and `reason: "need_decision"` instead of silently patching around it with an implicit decision.
|
|
39
|
-
- If implementation reveals an unapproved product or architecture choice, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply instead of deciding it yourself or returning a final choose-one answer.
|
|
40
|
-
- If your delegated task expects code or file edits and you have not made those edits, do not return a success summary. Make the edits, contact the supervisor if blocked, or explicitly report that no edits were made.
|
|
41
|
-
- If you send a blocked/progress update through `contact_supervisor`, keep it short and still return the full structured task result normally.
|
|
42
|
-
- Do not send routine completion handoffs. Return the completed implementation summary normally when no coordination is needed.
|
|
43
|
-
|
|
44
|
-
When running in a chain, expect instructions about:
|
|
45
|
-
- which files to read first
|
|
46
|
-
- where to maintain progress tracking
|
|
47
|
-
- where to write output if a file target is provided
|
|
48
|
-
|
|
49
|
-
Your final response should follow this shape:
|
|
50
|
-
|
|
51
|
-
Implemented X.
|
|
52
|
-
Changed files: Y.
|
|
53
|
-
Validation: Z.
|
|
54
|
-
Open risks/questions: R.
|
|
55
|
-
Recommended next step: N.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AgentToolResult } from "@ashx-j/lunr-agent";
|
|
2
|
-
import type { ExtensionContext } from "@ashx-j/lunr";
|
|
3
|
-
import type { Details, ExtensionConfig } from "../shared/types.ts";
|
|
4
|
-
type ManagementContext = Pick<ExtensionContext, "cwd" | "modelRegistry"> & {
|
|
5
|
-
model?: ExtensionContext["model"];
|
|
6
|
-
config?: ExtensionConfig;
|
|
7
|
-
};
|
|
8
|
-
interface ManagementParams {
|
|
9
|
-
action?: string;
|
|
10
|
-
agent?: string;
|
|
11
|
-
chainName?: string;
|
|
12
|
-
agentScope?: string;
|
|
13
|
-
config?: unknown;
|
|
14
|
-
}
|
|
15
|
-
export declare function handleList(params: ManagementParams, ctx: ManagementContext): AgentToolResult<Details>;
|
|
16
|
-
export declare function handleCreate(params: ManagementParams, ctx: ManagementContext): AgentToolResult<Details>;
|
|
17
|
-
export declare function handleUpdate(params: ManagementParams, ctx: ManagementContext): AgentToolResult<Details>;
|
|
18
|
-
export declare function handleManagementAction(action: string, params: ManagementParams, ctx: ManagementContext): AgentToolResult<Details>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=agent-management.d.ts.map
|