@hiai-gg/hiai-opencode 0.1.7 → 0.1.8
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/AGENTS.md +35 -0
- package/ARCHITECTURE.md +39 -0
- package/README.md +28 -8
- package/dist/agents/coder/agent.d.ts +2 -2
- package/dist/agents/dynamic-agent-core-sections.d.ts +3 -1
- package/dist/agents/guard/agent.d.ts +4 -15
- package/dist/agents/prompt-library/index.d.ts +1 -0
- package/dist/agents/prompt-library/integration-map.d.ts +9 -0
- package/dist/agents/strategist/system-prompt.d.ts +5 -8
- package/dist/agents/sub/agent.d.ts +6 -8
- package/dist/agents/sub/index.d.ts +0 -4
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/gpt.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/intent-gate.d.ts +0 -0
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +1 -1
- package/dist/index.js +1442 -4098
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/learn-system.d.ts +18 -0
- package/hiai-opencode.json +4 -5
- package/package.json +3 -3
- package/dist/agents/bob/default.d.ts +0 -10
- package/dist/agents/bob/gemini.d.ts +0 -21
- package/dist/agents/bob/gpt-pro.d.ts +0 -27
- package/dist/agents/bob/index.d.ts +0 -11
- package/dist/agents/coder/gpt-codex.d.ts +0 -20
- package/dist/agents/coder/gpt-pro.d.ts +0 -25
- package/dist/agents/guard/gemini-prompt-sections.d.ts +0 -12
- package/dist/agents/guard/gemini.d.ts +0 -2
- package/dist/agents/guard/gpt-prompt-sections.d.ts +0 -12
- package/dist/agents/guard/gpt.d.ts +0 -2
- package/dist/agents/strategist/gemini.d.ts +0 -13
- package/dist/agents/strategist/gpt.d.ts +0 -12
- package/dist/agents/sub/gemini.d.ts +0 -10
- package/dist/agents/sub/gpt-codex.d.ts +0 -8
- package/dist/agents/sub/gpt-pro.d.ts +0 -11
- package/dist/agents/sub/gpt.d.ts +0 -9
- package/dist/skills/index.d.ts +0 -7
- package/dist/testing/module-mock-lifecycle.d.ts +0 -21
- package/src/AGENTS.md +0 -41
- package/src/agents/AGENTS.md +0 -74
- package/src/agents/agent-builder.ts +0 -50
- package/src/agents/agent-skills.ts +0 -70
- package/src/agents/bob/AGENTS.md +0 -29
- package/src/agents/bob/default.ts +0 -134
- package/src/agents/bob/gemini.ts +0 -238
- package/src/agents/bob/gpt-pro.ts +0 -432
- package/src/agents/bob/index.ts +0 -19
- package/src/agents/bob.ts +0 -531
- package/src/agents/brainstormer.ts +0 -72
- package/src/agents/builtin-agents/agent-overrides.ts +0 -75
- package/src/agents/builtin-agents/available-skills.ts +0 -35
- package/src/agents/builtin-agents/bob-agent.ts +0 -96
- package/src/agents/builtin-agents/coder-agent.ts +0 -98
- package/src/agents/builtin-agents/environment-context.ts +0 -16
- package/src/agents/builtin-agents/general-agents.ts +0 -122
- package/src/agents/builtin-agents/guard-agent.ts +0 -66
- package/src/agents/builtin-agents/model-resolution.ts +0 -31
- package/src/agents/builtin-agents/resolve-file-uri.ts +0 -42
- package/src/agents/builtin-agents.ts +0 -250
- package/src/agents/coder/AGENTS.md +0 -34
- package/src/agents/coder/agent.ts +0 -162
- package/src/agents/coder/gpt-codex.ts +0 -406
- package/src/agents/coder/gpt-pro.ts +0 -321
- package/src/agents/coder/gpt.ts +0 -255
- package/src/agents/coder/index.ts +0 -8
- package/src/agents/critic/agent.ts +0 -106
- package/src/agents/custom-agent-summaries.ts +0 -61
- package/src/agents/designer.ts +0 -70
- package/src/agents/dynamic-agent-category-skills-guide.ts +0 -144
- package/src/agents/dynamic-agent-core-sections.ts +0 -273
- package/src/agents/dynamic-agent-policy-sections.ts +0 -182
- package/src/agents/dynamic-agent-prompt-builder.ts +0 -32
- package/src/agents/dynamic-agent-prompt-types.ts +0 -24
- package/src/agents/dynamic-agent-tool-categorization.ts +0 -45
- package/src/agents/env-context.ts +0 -16
- package/src/agents/gpt-apply-patch-guard.ts +0 -7
- package/src/agents/guard/agent.ts +0 -146
- package/src/agents/guard/default-prompt-sections.ts +0 -305
- package/src/agents/guard/default.ts +0 -23
- package/src/agents/guard/gemini-prompt-sections.ts +0 -293
- package/src/agents/guard/gemini.ts +0 -23
- package/src/agents/guard/gpt-prompt-sections.ts +0 -296
- package/src/agents/guard/gpt.ts +0 -23
- package/src/agents/guard/index.ts +0 -2
- package/src/agents/guard/prompt-section-builder.ts +0 -104
- package/src/agents/guard/shared-prompt.ts +0 -172
- package/src/agents/index.ts +0 -5
- package/src/agents/platform-adapter.ts +0 -236
- package/src/agents/platform-manager.ts +0 -73
- package/src/agents/prompt-library/identity.ts +0 -14
- package/src/agents/prompt-library/index.ts +0 -7
- package/src/agents/prompt-library/intent-gate.ts +0 -149
- package/src/agents/prompt-library/orchestration.ts +0 -60
- package/src/agents/prompt-library/platform.ts +0 -70
- package/src/agents/prompt-library/specialized.ts +0 -39
- package/src/agents/prompt-library/strategy.ts +0 -80
- package/src/agents/prompt-library/todo-discipline.ts +0 -23
- package/src/agents/quality-guardian.ts +0 -76
- package/src/agents/researcher.ts +0 -74
- package/src/agents/strategist/AGENTS.md +0 -37
- package/src/agents/strategist/behavioral-summary.ts +0 -79
- package/src/agents/strategist/gemini.ts +0 -334
- package/src/agents/strategist/gpt.ts +0 -461
- package/src/agents/strategist/high-accuracy-mode.ts +0 -78
- package/src/agents/strategist/identity-constraints.ts +0 -336
- package/src/agents/strategist/index.ts +0 -6
- package/src/agents/strategist/interview-mode.ts +0 -335
- package/src/agents/strategist/plan-generation.ts +0 -213
- package/src/agents/strategist/plan-template.ts +0 -325
- package/src/agents/strategist/system-prompt.ts +0 -68
- package/src/agents/sub/agent.ts +0 -141
- package/src/agents/sub/default.ts +0 -52
- package/src/agents/sub/gemini.ts +0 -194
- package/src/agents/sub/gpt-codex.ts +0 -156
- package/src/agents/sub/gpt-pro.ts +0 -161
- package/src/agents/sub/gpt.ts +0 -157
- package/src/agents/sub/index.ts +0 -13
- package/src/agents/types.ts +0 -147
- package/src/agents/ui.ts +0 -59
- package/src/config/data/model-capabilities.json +0 -40690
- package/src/config/defaults.ts +0 -230
- package/src/config/hiai-opencode.schema.json +0 -12
- package/src/config/index.ts +0 -65
- package/src/config/loader.test.ts +0 -80
- package/src/config/loader.ts +0 -188
- package/src/config/model-slots-and-export.test.ts +0 -73
- package/src/config/platform-schema.ts +0 -242
- package/src/config/schema/agent-definitions.ts +0 -5
- package/src/config/schema/agent-names.ts +0 -66
- package/src/config/schema/agent-overrides.ts +0 -97
- package/src/config/schema/babysitting.ts +0 -7
- package/src/config/schema/background-task.ts +0 -29
- package/src/config/schema/bob-agent.ts +0 -11
- package/src/config/schema/bob.ts +0 -17
- package/src/config/schema/browser-automation.ts +0 -24
- package/src/config/schema/categories.ts +0 -45
- package/src/config/schema/claude-code.ts +0 -13
- package/src/config/schema/commands.ts +0 -16
- package/src/config/schema/comment-checker.ts +0 -8
- package/src/config/schema/dynamic-context-pruning.ts +0 -53
- package/src/config/schema/experimental.ts +0 -27
- package/src/config/schema/fallback-models.ts +0 -31
- package/src/config/schema/fast-apply.ts +0 -14
- package/src/config/schema/git-env-prefix.ts +0 -28
- package/src/config/schema/git-master.ts +0 -14
- package/src/config/schema/hooks.ts +0 -59
- package/src/config/schema/index.ts +0 -52
- package/src/config/schema/internal/permission.ts +0 -20
- package/src/config/schema/model-capabilities.ts +0 -10
- package/src/config/schema/notification.ts +0 -8
- package/src/config/schema/oh-my-opencode-config.ts +0 -88
- package/src/config/schema/openclaw.ts +0 -50
- package/src/config/schema/ralph-loop.ts +0 -11
- package/src/config/schema/runtime-fallback.ts +0 -18
- package/src/config/schema/skill-discovery.ts +0 -25
- package/src/config/schema/skills.ts +0 -39
- package/src/config/schema/start-work.ts +0 -7
- package/src/config/schema/tmux.ts +0 -28
- package/src/config/types.ts +0 -221
- package/src/create-hooks.ts +0 -93
- package/src/create-managers.ts +0 -116
- package/src/create-runtime-tmux-config.ts +0 -18
- package/src/create-tools.ts +0 -56
- package/src/features/background-agent/AGENTS.md +0 -56
- package/src/features/background-agent/abort-with-timeout.ts +0 -35
- package/src/features/background-agent/background-task-notification-template.ts +0 -74
- package/src/features/background-agent/compaction-aware-message-resolver.ts +0 -164
- package/src/features/background-agent/concurrency.ts +0 -137
- package/src/features/background-agent/constants.ts +0 -58
- package/src/features/background-agent/duration-formatter.ts +0 -14
- package/src/features/background-agent/error-classifier.ts +0 -83
- package/src/features/background-agent/fallback-retry-handler.ts +0 -134
- package/src/features/background-agent/index.ts +0 -2
- package/src/features/background-agent/loop-detector.ts +0 -102
- package/src/features/background-agent/manager.ts +0 -2220
- package/src/features/background-agent/opencode-client.ts +0 -3
- package/src/features/background-agent/process-cleanup.ts +0 -98
- package/src/features/background-agent/remove-task-toast-tracking.ts +0 -8
- package/src/features/background-agent/session-existence.ts +0 -57
- package/src/features/background-agent/session-idle-event-handler.ts +0 -93
- package/src/features/background-agent/session-status-classifier.ts +0 -20
- package/src/features/background-agent/spawner/parent-directory-resolver.ts +0 -24
- package/src/features/background-agent/spawner.ts +0 -327
- package/src/features/background-agent/state.ts +0 -199
- package/src/features/background-agent/subagent-spawn-limits.ts +0 -97
- package/src/features/background-agent/task-history.ts +0 -79
- package/src/features/background-agent/task-poller.ts +0 -225
- package/src/features/background-agent/types.ts +0 -100
- package/src/features/boulder-state/constants.ts +0 -13
- package/src/features/boulder-state/index.ts +0 -4
- package/src/features/boulder-state/storage.ts +0 -336
- package/src/features/boulder-state/top-level-task.ts +0 -78
- package/src/features/boulder-state/types.ts +0 -61
- package/src/features/builtin-commands/commands.ts +0 -157
- package/src/features/builtin-commands/index.ts +0 -2
- package/src/features/builtin-commands/templates/doctor.ts +0 -43
- package/src/features/builtin-commands/templates/handoff.ts +0 -177
- package/src/features/builtin-commands/templates/init-deep.ts +0 -305
- package/src/features/builtin-commands/templates/mcp-status.ts +0 -36
- package/src/features/builtin-commands/templates/ralph-loop.ts +0 -66
- package/src/features/builtin-commands/templates/refactor.ts +0 -619
- package/src/features/builtin-commands/templates/remove-ai-slops.ts +0 -96
- package/src/features/builtin-commands/templates/start-work.ts +0 -128
- package/src/features/builtin-commands/templates/stop-continuation.ts +0 -13
- package/src/features/builtin-commands/types.ts +0 -9
- package/src/features/builtin-skills/index.ts +0 -2
- package/src/features/builtin-skills/materialize.ts +0 -338
- package/src/features/builtin-skills/skills/ai-slop-remover.ts +0 -145
- package/src/features/builtin-skills/skills/dev-browser.ts +0 -221
- package/src/features/builtin-skills/skills/frontend-ui-ux.ts +0 -79
- package/src/features/builtin-skills/skills/git-master-sections/commit-workflow.ts +0 -509
- package/src/features/builtin-skills/skills/git-master-sections/history-search-workflow.ts +0 -229
- package/src/features/builtin-skills/skills/git-master-sections/overview.ts +0 -64
- package/src/features/builtin-skills/skills/git-master-sections/quick-reference.ts +0 -86
- package/src/features/builtin-skills/skills/git-master-sections/rebase-workflow.ts +0 -181
- package/src/features/builtin-skills/skills/git-master-skill-metadata.ts +0 -4
- package/src/features/builtin-skills/skills/git-master.ts +0 -28
- package/src/features/builtin-skills/skills/hiai-opencode-setup.ts +0 -69
- package/src/features/builtin-skills/skills/index.ts +0 -9
- package/src/features/builtin-skills/skills/playwright-cli.ts +0 -268
- package/src/features/builtin-skills/skills/playwright.ts +0 -488
- package/src/features/builtin-skills/skills/review-work.ts +0 -536
- package/src/features/builtin-skills/skills/website-copywriting.ts +0 -41
- package/src/features/builtin-skills/skills.test.ts +0 -8
- package/src/features/builtin-skills/skills.ts +0 -50
- package/src/features/builtin-skills/types.ts +0 -16
- package/src/features/claude-code-agent-loader/agent-definitions-loader.ts +0 -87
- package/src/features/claude-code-agent-loader/claude-model-mapper.ts +0 -53
- package/src/features/claude-code-agent-loader/index.ts +0 -5
- package/src/features/claude-code-agent-loader/json-agent-loader.ts +0 -53
- package/src/features/claude-code-agent-loader/loader.ts +0 -86
- package/src/features/claude-code-agent-loader/opencode-config-agents-reader.ts +0 -125
- package/src/features/claude-code-agent-loader/types.ts +0 -31
- package/src/features/claude-code-command-loader/index.ts +0 -2
- package/src/features/claude-code-command-loader/loader.ts +0 -169
- package/src/features/claude-code-command-loader/types.ts +0 -46
- package/src/features/claude-code-mcp-loader/configure-allowed-env-vars.ts +0 -48
- package/src/features/claude-code-mcp-loader/env-expander.ts +0 -51
- package/src/features/claude-code-mcp-loader/index.ts +0 -12
- package/src/features/claude-code-mcp-loader/loader.ts +0 -156
- package/src/features/claude-code-mcp-loader/scope-filter.ts +0 -17
- package/src/features/claude-code-mcp-loader/transformer.ts +0 -57
- package/src/features/claude-code-mcp-loader/types.ts +0 -51
- package/src/features/claude-code-plugin-loader/agent-loader.ts +0 -59
- package/src/features/claude-code-plugin-loader/command-loader.ts +0 -53
- package/src/features/claude-code-plugin-loader/discovery.ts +0 -251
- package/src/features/claude-code-plugin-loader/hook-loader.ts +0 -26
- package/src/features/claude-code-plugin-loader/index.ts +0 -10
- package/src/features/claude-code-plugin-loader/loader.ts +0 -134
- package/src/features/claude-code-plugin-loader/mcp-server-loader.ts +0 -59
- package/src/features/claude-code-plugin-loader/plugin-path-resolver.ts +0 -23
- package/src/features/claude-code-plugin-loader/scope-filter.ts +0 -29
- package/src/features/claude-code-plugin-loader/skill-loader.ts +0 -62
- package/src/features/claude-code-plugin-loader/types.ts +0 -255
- package/src/features/claude-code-session-state/index.ts +0 -1
- package/src/features/claude-code-session-state/state.ts +0 -154
- package/src/features/claude-tasks/session-storage.ts +0 -52
- package/src/features/claude-tasks/storage.ts +0 -169
- package/src/features/claude-tasks/types.ts +0 -20
- package/src/features/context-injector/collector.ts +0 -91
- package/src/features/context-injector/index.ts +0 -14
- package/src/features/context-injector/injector.ts +0 -167
- package/src/features/context-injector/types.ts +0 -91
- package/src/features/hook-message-injector/constants.ts +0 -1
- package/src/features/hook-message-injector/index.ts +0 -11
- package/src/features/hook-message-injector/injector.ts +0 -437
- package/src/features/hook-message-injector/types.ts +0 -49
- package/src/features/mcp-oauth/AGENTS.md +0 -54
- package/src/features/mcp-oauth/callback-server.ts +0 -106
- package/src/features/mcp-oauth/dcr.ts +0 -98
- package/src/features/mcp-oauth/discovery.ts +0 -134
- package/src/features/mcp-oauth/oauth-authorization-flow.ts +0 -150
- package/src/features/mcp-oauth/provider.ts +0 -215
- package/src/features/mcp-oauth/refresh-mutex.ts +0 -58
- package/src/features/mcp-oauth/resource-indicator.ts +0 -16
- package/src/features/mcp-oauth/schema.ts +0 -8
- package/src/features/mcp-oauth/step-up.ts +0 -79
- package/src/features/mcp-oauth/storage.ts +0 -155
- package/src/features/opencode-skill-loader/AGENTS.md +0 -59
- package/src/features/opencode-skill-loader/allowed-tools-parser.ts +0 -9
- package/src/features/opencode-skill-loader/async-loader.ts +0 -213
- package/src/features/opencode-skill-loader/blocking.ts +0 -62
- package/src/features/opencode-skill-loader/config-source-discovery.ts +0 -114
- package/src/features/opencode-skill-loader/discover-worker.ts +0 -56
- package/src/features/opencode-skill-loader/git-master-template-injection.ts +0 -150
- package/src/features/opencode-skill-loader/index.ts +0 -17
- package/src/features/opencode-skill-loader/loaded-skill-from-path.ts +0 -73
- package/src/features/opencode-skill-loader/loaded-skill-template-extractor.ts +0 -16
- package/src/features/opencode-skill-loader/loader.ts +0 -183
- package/src/features/opencode-skill-loader/merger/builtin-skill-converter.ts +0 -26
- package/src/features/opencode-skill-loader/merger/config-skill-entry-loader.ts +0 -117
- package/src/features/opencode-skill-loader/merger/scope-priority.ts +0 -10
- package/src/features/opencode-skill-loader/merger/skill-definition-merger.ts +0 -31
- package/src/features/opencode-skill-loader/merger/skills-config-normalizer.ts +0 -19
- package/src/features/opencode-skill-loader/merger.ts +0 -96
- package/src/features/opencode-skill-loader/skill-content.ts +0 -11
- package/src/features/opencode-skill-loader/skill-deduplication.ts +0 -13
- package/src/features/opencode-skill-loader/skill-definition-record.ts +0 -11
- package/src/features/opencode-skill-loader/skill-directory-loader.ts +0 -112
- package/src/features/opencode-skill-loader/skill-discovery.ts +0 -76
- package/src/features/opencode-skill-loader/skill-mcp-config.ts +0 -45
- package/src/features/opencode-skill-loader/skill-resolution-options.ts +0 -9
- package/src/features/opencode-skill-loader/skill-template-resolver.ts +0 -97
- package/src/features/opencode-skill-loader/types.ts +0 -38
- package/src/features/run-continuation-state/constants.ts +0 -1
- package/src/features/run-continuation-state/index.ts +0 -3
- package/src/features/run-continuation-state/storage.ts +0 -80
- package/src/features/run-continuation-state/types.ts +0 -15
- package/src/features/skill-mcp-manager/AGENTS.md +0 -111
- package/src/features/skill-mcp-manager/cleanup.ts +0 -153
- package/src/features/skill-mcp-manager/connection-type.ts +0 -26
- package/src/features/skill-mcp-manager/connection.ts +0 -146
- package/src/features/skill-mcp-manager/env-cleaner.ts +0 -59
- package/src/features/skill-mcp-manager/error-redaction.ts +0 -47
- package/src/features/skill-mcp-manager/http-client.ts +0 -126
- package/src/features/skill-mcp-manager/index.ts +0 -2
- package/src/features/skill-mcp-manager/manager.ts +0 -178
- package/src/features/skill-mcp-manager/oauth-handler.ts +0 -160
- package/src/features/skill-mcp-manager/stdio-client.ts +0 -112
- package/src/features/skill-mcp-manager/types.ts +0 -96
- package/src/features/task-toast-manager/index.ts +0 -2
- package/src/features/task-toast-manager/manager.ts +0 -251
- package/src/features/task-toast-manager/types.ts +0 -29
- package/src/features/tmux-subagent/action-executor-core.ts +0 -82
- package/src/features/tmux-subagent/action-executor.ts +0 -137
- package/src/features/tmux-subagent/cleanup.ts +0 -42
- package/src/features/tmux-subagent/decision-engine.ts +0 -22
- package/src/features/tmux-subagent/event-handlers.ts +0 -6
- package/src/features/tmux-subagent/grid-planning.ts +0 -137
- package/src/features/tmux-subagent/index.ts +0 -16
- package/src/features/tmux-subagent/manager.ts +0 -969
- package/src/features/tmux-subagent/oldest-agent-pane.ts +0 -37
- package/src/features/tmux-subagent/pane-split-availability.ts +0 -77
- package/src/features/tmux-subagent/pane-state-parser.ts +0 -135
- package/src/features/tmux-subagent/pane-state-querier.ts +0 -76
- package/src/features/tmux-subagent/polling-constants.ts +0 -6
- package/src/features/tmux-subagent/polling-manager.ts +0 -167
- package/src/features/tmux-subagent/polling.ts +0 -183
- package/src/features/tmux-subagent/session-created-event.ts +0 -44
- package/src/features/tmux-subagent/session-created-handler.ts +0 -175
- package/src/features/tmux-subagent/session-deleted-handler.ts +0 -50
- package/src/features/tmux-subagent/session-message-count.ts +0 -3
- package/src/features/tmux-subagent/session-ready-waiter.ts +0 -44
- package/src/features/tmux-subagent/session-status-parser.ts +0 -17
- package/src/features/tmux-subagent/spawn-action-decider.ts +0 -147
- package/src/features/tmux-subagent/spawn-target-finder.ts +0 -146
- package/src/features/tmux-subagent/tmux-grid-constants.ts +0 -57
- package/src/features/tmux-subagent/tracked-session-state.ts +0 -29
- package/src/features/tmux-subagent/types.ts +0 -54
- package/src/features/tool-metadata-store/index.ts +0 -7
- package/src/features/tool-metadata-store/store.ts +0 -84
- package/src/hooks/agent-usage-reminder/constants.ts +0 -52
- package/src/hooks/agent-usage-reminder/hook.ts +0 -134
- package/src/hooks/agent-usage-reminder/index.ts +0 -1
- package/src/hooks/agent-usage-reminder/storage.ts +0 -42
- package/src/hooks/agent-usage-reminder/types.ts +0 -6
- package/src/hooks/anthropic-context-window-limit-recovery/AGENTS.md +0 -49
- package/src/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.ts +0 -87
- package/src/hooks/anthropic-context-window-limit-recovery/client.ts +0 -21
- package/src/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.ts +0 -77
- package/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.ts +0 -199
- package/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.ts +0 -149
- package/src/hooks/anthropic-context-window-limit-recovery/executor.ts +0 -83
- package/src/hooks/anthropic-context-window-limit-recovery/index.ts +0 -8
- package/src/hooks/anthropic-context-window-limit-recovery/message-builder.ts +0 -190
- package/src/hooks/anthropic-context-window-limit-recovery/message-storage-directory.ts +0 -40
- package/src/hooks/anthropic-context-window-limit-recovery/parser.ts +0 -209
- package/src/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.ts +0 -189
- package/src/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.ts +0 -142
- package/src/hooks/anthropic-context-window-limit-recovery/pruning-types.ts +0 -44
- package/src/hooks/anthropic-context-window-limit-recovery/recovery-hook.test-support.ts +0 -119
- package/src/hooks/anthropic-context-window-limit-recovery/recovery-hook.ts +0 -193
- package/src/hooks/anthropic-context-window-limit-recovery/recovery-strategy.ts +0 -2
- package/src/hooks/anthropic-context-window-limit-recovery/session-timeout-map.ts +0 -20
- package/src/hooks/anthropic-context-window-limit-recovery/state.ts +0 -78
- package/src/hooks/anthropic-context-window-limit-recovery/storage-paths.ts +0 -6
- package/src/hooks/anthropic-context-window-limit-recovery/storage.ts +0 -18
- package/src/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.ts +0 -218
- package/src/hooks/anthropic-context-window-limit-recovery/target-token-truncation.ts +0 -196
- package/src/hooks/anthropic-context-window-limit-recovery/tool-part-types.ts +0 -38
- package/src/hooks/anthropic-context-window-limit-recovery/tool-result-storage-sdk.ts +0 -123
- package/src/hooks/anthropic-context-window-limit-recovery/tool-result-storage.ts +0 -119
- package/src/hooks/anthropic-context-window-limit-recovery/types.ts +0 -44
- package/src/hooks/anthropic-effort/hook.ts +0 -93
- package/src/hooks/anthropic-effort/index.ts +0 -1
- package/src/hooks/auto-slash-command/constants.ts +0 -12
- package/src/hooks/auto-slash-command/detector.ts +0 -88
- package/src/hooks/auto-slash-command/executor.ts +0 -165
- package/src/hooks/auto-slash-command/hook.ts +0 -238
- package/src/hooks/auto-slash-command/index.ts +0 -7
- package/src/hooks/auto-slash-command/processed-command-store.ts +0 -74
- package/src/hooks/auto-slash-command/types.ts +0 -42
- package/src/hooks/background-notification/hook.ts +0 -54
- package/src/hooks/background-notification/index.ts +0 -2
- package/src/hooks/background-notification/types.ts +0 -5
- package/src/hooks/bash-file-read-guard.ts +0 -44
- package/src/hooks/category-skill-reminder/formatter.ts +0 -37
- package/src/hooks/category-skill-reminder/hook.ts +0 -142
- package/src/hooks/category-skill-reminder/index.ts +0 -1
- package/src/hooks/claude-code-hooks/AGENTS.md +0 -41
- package/src/hooks/claude-code-hooks/claude-code-hooks-hook.ts +0 -28
- package/src/hooks/claude-code-hooks/config-loader.ts +0 -151
- package/src/hooks/claude-code-hooks/config.ts +0 -147
- package/src/hooks/claude-code-hooks/dispatch-hook.ts +0 -27
- package/src/hooks/claude-code-hooks/execute-http-hook.ts +0 -116
- package/src/hooks/claude-code-hooks/handlers/chat-message-handler.ts +0 -140
- package/src/hooks/claude-code-hooks/handlers/pre-compact-handler.ts +0 -41
- package/src/hooks/claude-code-hooks/handlers/session-event-handler.ts +0 -137
- package/src/hooks/claude-code-hooks/handlers/tool-execute-after-handler.ts +0 -160
- package/src/hooks/claude-code-hooks/handlers/tool-execute-before-handler.ts +0 -93
- package/src/hooks/claude-code-hooks/index.ts +0 -1
- package/src/hooks/claude-code-hooks/plugin-config.ts +0 -12
- package/src/hooks/claude-code-hooks/post-tool-use.ts +0 -195
- package/src/hooks/claude-code-hooks/pre-compact.ts +0 -105
- package/src/hooks/claude-code-hooks/pre-tool-use.ts +0 -168
- package/src/hooks/claude-code-hooks/session-hook-state.ts +0 -17
- package/src/hooks/claude-code-hooks/stop.ts +0 -118
- package/src/hooks/claude-code-hooks/todo.ts +0 -76
- package/src/hooks/claude-code-hooks/tool-input-cache.ts +0 -82
- package/src/hooks/claude-code-hooks/transcript.ts +0 -248
- package/src/hooks/claude-code-hooks/types.ts +0 -214
- package/src/hooks/claude-code-hooks/user-prompt-submit.ts +0 -121
- package/src/hooks/comment-checker/cli-runner.ts +0 -127
- package/src/hooks/comment-checker/cli.ts +0 -269
- package/src/hooks/comment-checker/downloader.ts +0 -170
- package/src/hooks/comment-checker/hook.ts +0 -192
- package/src/hooks/comment-checker/index.ts +0 -1
- package/src/hooks/comment-checker/pending-calls.ts +0 -45
- package/src/hooks/comment-checker/types.ts +0 -33
- package/src/hooks/compaction-context-injector/compaction-context-prompt.ts +0 -56
- package/src/hooks/compaction-context-injector/constants.ts +0 -5
- package/src/hooks/compaction-context-injector/hook.ts +0 -164
- package/src/hooks/compaction-context-injector/index.ts +0 -1
- package/src/hooks/compaction-context-injector/recovery-prompt-config.ts +0 -77
- package/src/hooks/compaction-context-injector/recovery.ts +0 -163
- package/src/hooks/compaction-context-injector/session-id.ts +0 -8
- package/src/hooks/compaction-context-injector/session-prompt-config-resolver.ts +0 -120
- package/src/hooks/compaction-context-injector/tail-monitor.ts +0 -52
- package/src/hooks/compaction-context-injector/types.ts +0 -25
- package/src/hooks/compaction-context-injector/validated-model.ts +0 -47
- package/src/hooks/compaction-todo-preserver/hook.ts +0 -127
- package/src/hooks/compaction-todo-preserver/index.ts +0 -2
- package/src/hooks/context-window-monitor.ts +0 -113
- package/src/hooks/delegate-task-retry/guidance.ts +0 -45
- package/src/hooks/delegate-task-retry/hook.ts +0 -22
- package/src/hooks/delegate-task-retry/index.ts +0 -4
- package/src/hooks/delegate-task-retry/patterns.ts +0 -77
- package/src/hooks/directory-agents-injector/constants.ts +0 -7
- package/src/hooks/directory-agents-injector/finder.ts +0 -38
- package/src/hooks/directory-agents-injector/hook.ts +0 -80
- package/src/hooks/directory-agents-injector/index.ts +0 -1
- package/src/hooks/directory-agents-injector/injector.ts +0 -59
- package/src/hooks/directory-agents-injector/storage.ts +0 -8
- package/src/hooks/directory-readme-injector/constants.ts +0 -7
- package/src/hooks/directory-readme-injector/finder.ts +0 -33
- package/src/hooks/directory-readme-injector/hook.ts +0 -80
- package/src/hooks/directory-readme-injector/index.ts +0 -1
- package/src/hooks/directory-readme-injector/injector.ts +0 -59
- package/src/hooks/directory-readme-injector/storage.ts +0 -8
- package/src/hooks/edit-error-recovery/hook.ts +0 -58
- package/src/hooks/edit-error-recovery/index.ts +0 -5
- package/src/hooks/empty-task-response-detector.ts +0 -27
- package/src/hooks/fast-apply/hook.ts +0 -11
- package/src/hooks/fast-apply/index.ts +0 -1
- package/src/hooks/fast-apply/ollama-client.ts +0 -53
- package/src/hooks/fast-apply/tool-execute-before-handler.ts +0 -86
- package/src/hooks/guard/AGENTS.md +0 -64
- package/src/hooks/guard/background-launch-session-tracking.ts +0 -97
- package/src/hooks/guard/bob-path.ts +0 -8
- package/src/hooks/guard/boulder-continuation-injector.ts +0 -109
- package/src/hooks/guard/boulder-session-lineage.ts +0 -44
- package/src/hooks/guard/event-handler.ts +0 -104
- package/src/hooks/guard/final-wave-approval-gate.ts +0 -47
- package/src/hooks/guard/final-wave-plan-state.ts +0 -60
- package/src/hooks/guard/guard-hook.ts +0 -27
- package/src/hooks/guard/hook-name.ts +0 -1
- package/src/hooks/guard/idle-event.ts +0 -341
- package/src/hooks/guard/index.ts +0 -3
- package/src/hooks/guard/is-abort-error.ts +0 -20
- package/src/hooks/guard/recent-model-resolver.ts +0 -89
- package/src/hooks/guard/resolve-active-boulder-session.ts +0 -29
- package/src/hooks/guard/session-last-agent.ts +0 -153
- package/src/hooks/guard/subagent-session-id.ts +0 -54
- package/src/hooks/guard/system-reminder-templates.ts +0 -249
- package/src/hooks/guard/task-context.ts +0 -45
- package/src/hooks/guard/tool-execute-after.ts +0 -209
- package/src/hooks/guard/tool-execute-before.ts +0 -102
- package/src/hooks/guard/tsconfig.json +0 -9
- package/src/hooks/guard/types.ts +0 -45
- package/src/hooks/guard/verification-reminders.ts +0 -197
- package/src/hooks/guard/write-edit-tool-policy.ts +0 -5
- package/src/hooks/hashline-edit-diff-enhancer/hook.ts +0 -106
- package/src/hooks/hashline-read-enhancer/hook.ts +0 -193
- package/src/hooks/hashline-read-enhancer/index.ts +0 -1
- package/src/hooks/index.ts +0 -56
- package/src/hooks/interactive-bash-session/constants.ts +0 -13
- package/src/hooks/interactive-bash-session/hook.ts +0 -125
- package/src/hooks/interactive-bash-session/index.ts +0 -3
- package/src/hooks/interactive-bash-session/interactive-bash-session-tracker.ts +0 -119
- package/src/hooks/interactive-bash-session/parser.ts +0 -118
- package/src/hooks/interactive-bash-session/state-manager.ts +0 -35
- package/src/hooks/interactive-bash-session/storage.ts +0 -59
- package/src/hooks/interactive-bash-session/tmux-command-parser.ts +0 -125
- package/src/hooks/interactive-bash-session/types.ts +0 -11
- package/src/hooks/json-error-recovery/hook.ts +0 -58
- package/src/hooks/json-error-recovery/index.ts +0 -6
- package/src/hooks/keyword-detector/AGENTS.md +0 -57
- package/src/hooks/keyword-detector/analyze/default.ts +0 -28
- package/src/hooks/keyword-detector/analyze/index.ts +0 -1
- package/src/hooks/keyword-detector/constants.ts +0 -45
- package/src/hooks/keyword-detector/detector.ts +0 -53
- package/src/hooks/keyword-detector/hook.ts +0 -143
- package/src/hooks/keyword-detector/index.ts +0 -5
- package/src/hooks/keyword-detector/search/default.ts +0 -20
- package/src/hooks/keyword-detector/search/index.ts +0 -1
- package/src/hooks/keyword-detector/types.ts +0 -4
- package/src/hooks/keyword-detector/ultrawork/default.ts +0 -302
- package/src/hooks/keyword-detector/ultrawork/gemini.ts +0 -290
- package/src/hooks/keyword-detector/ultrawork/gpt.ts +0 -171
- package/src/hooks/keyword-detector/ultrawork/index.ts +0 -56
- package/src/hooks/keyword-detector/ultrawork/planner.ts +0 -140
- package/src/hooks/keyword-detector/ultrawork/source-detector.ts +0 -65
- package/src/hooks/legacy-plugin-toast/auto-migrate-runner.ts +0 -2
- package/src/hooks/legacy-plugin-toast/auto-migrate.ts +0 -64
- package/src/hooks/legacy-plugin-toast/hook.ts +0 -68
- package/src/hooks/legacy-plugin-toast/index.ts +0 -1
- package/src/hooks/legacy-plugin-toast/plugin-entry-migrator.ts +0 -1
- package/src/hooks/model-fallback/chat-message-fallback-handler.ts +0 -74
- package/src/hooks/model-fallback/hook.ts +0 -201
- package/src/hooks/model-fallback/next-fallback.ts +0 -84
- package/src/hooks/non-interactive-env/constants.ts +0 -70
- package/src/hooks/non-interactive-env/detector.ts +0 -19
- package/src/hooks/non-interactive-env/index.ts +0 -5
- package/src/hooks/non-interactive-env/non-interactive-env-hook.ts +0 -73
- package/src/hooks/non-interactive-env/types.ts +0 -3
- package/src/hooks/preemptive-compaction-degradation-monitor.ts +0 -212
- package/src/hooks/preemptive-compaction-no-text-tail.ts +0 -70
- package/src/hooks/preemptive-compaction.ts +0 -218
- package/src/hooks/question-label-truncator/hook.ts +0 -62
- package/src/hooks/question-label-truncator/index.ts +0 -1
- package/src/hooks/ralph-loop/AGENTS.md +0 -62
- package/src/hooks/ralph-loop/command-arguments.ts +0 -30
- package/src/hooks/ralph-loop/completion-handler.ts +0 -65
- package/src/hooks/ralph-loop/completion-promise-detector-test-input.ts +0 -23
- package/src/hooks/ralph-loop/completion-promise-detector.ts +0 -165
- package/src/hooks/ralph-loop/constants.ts +0 -7
- package/src/hooks/ralph-loop/continuation-prompt-builder.ts +0 -77
- package/src/hooks/ralph-loop/continuation-prompt-injector.ts +0 -91
- package/src/hooks/ralph-loop/index.ts +0 -6
- package/src/hooks/ralph-loop/iteration-continuation.ts +0 -64
- package/src/hooks/ralph-loop/logician-verification-detector.ts +0 -88
- package/src/hooks/ralph-loop/loop-session-recovery.ts +0 -33
- package/src/hooks/ralph-loop/loop-state-controller.ts +0 -178
- package/src/hooks/ralph-loop/message-storage-directory.ts +0 -1
- package/src/hooks/ralph-loop/pending-verification-handler.ts +0 -152
- package/src/hooks/ralph-loop/ralph-loop-event-handler.ts +0 -231
- package/src/hooks/ralph-loop/ralph-loop-hook.ts +0 -90
- package/src/hooks/ralph-loop/session-event-handler.ts +0 -56
- package/src/hooks/ralph-loop/session-reset-strategy.ts +0 -69
- package/src/hooks/ralph-loop/storage.ts +0 -164
- package/src/hooks/ralph-loop/types.ts +0 -25
- package/src/hooks/ralph-loop/verification-failure-handler.ts +0 -103
- package/src/hooks/ralph-loop/with-timeout.ts +0 -20
- package/src/hooks/read-image-resizer/hook.ts +0 -209
- package/src/hooks/read-image-resizer/image-dimensions.ts +0 -191
- package/src/hooks/read-image-resizer/image-resizer.ts +0 -191
- package/src/hooks/read-image-resizer/index.ts +0 -1
- package/src/hooks/read-image-resizer/png-fallback-resizer.ts +0 -359
- package/src/hooks/read-image-resizer/types.ts +0 -16
- package/src/hooks/rules-injector/AGENTS.md +0 -53
- package/src/hooks/rules-injector/cache.ts +0 -27
- package/src/hooks/rules-injector/constants.ts +0 -31
- package/src/hooks/rules-injector/finder.ts +0 -3
- package/src/hooks/rules-injector/hook.ts +0 -94
- package/src/hooks/rules-injector/index.ts +0 -2
- package/src/hooks/rules-injector/injector.ts +0 -189
- package/src/hooks/rules-injector/matcher.ts +0 -63
- package/src/hooks/rules-injector/output-path.ts +0 -22
- package/src/hooks/rules-injector/parser.ts +0 -211
- package/src/hooks/rules-injector/project-root-finder.ts +0 -36
- package/src/hooks/rules-injector/rule-distance.ts +0 -53
- package/src/hooks/rules-injector/rule-file-finder.ts +0 -139
- package/src/hooks/rules-injector/rule-file-scanner.ts +0 -55
- package/src/hooks/rules-injector/storage.ts +0 -59
- package/src/hooks/rules-injector/types.ts +0 -57
- package/src/hooks/runtime-fallback/AGENTS.md +0 -102
- package/src/hooks/runtime-fallback/agent-resolver.ts +0 -50
- package/src/hooks/runtime-fallback/auto-retry-signal.ts +0 -32
- package/src/hooks/runtime-fallback/auto-retry.ts +0 -228
- package/src/hooks/runtime-fallback/chat-message-handler.ts +0 -62
- package/src/hooks/runtime-fallback/constants.ts +0 -47
- package/src/hooks/runtime-fallback/error-classifier.ts +0 -183
- package/src/hooks/runtime-fallback/event-handler.ts +0 -213
- package/src/hooks/runtime-fallback/fallback-bootstrap-model.ts +0 -63
- package/src/hooks/runtime-fallback/fallback-models.ts +0 -86
- package/src/hooks/runtime-fallback/fallback-retry-dispatcher.ts +0 -55
- package/src/hooks/runtime-fallback/fallback-state.ts +0 -74
- package/src/hooks/runtime-fallback/hook.ts +0 -87
- package/src/hooks/runtime-fallback/index.ts +0 -2
- package/src/hooks/runtime-fallback/last-user-retry-parts.ts +0 -20
- package/src/hooks/runtime-fallback/message-update-handler.ts +0 -168
- package/src/hooks/runtime-fallback/retry-model-payload.ts +0 -30
- package/src/hooks/runtime-fallback/session-messages.ts +0 -38
- package/src/hooks/runtime-fallback/session-status-handler.ts +0 -126
- package/src/hooks/runtime-fallback/types.ts +0 -77
- package/src/hooks/runtime-fallback/visible-assistant-response.ts +0 -80
- package/src/hooks/session-notification-content.ts +0 -145
- package/src/hooks/session-notification-formatting.ts +0 -25
- package/src/hooks/session-notification-scheduler.ts +0 -188
- package/src/hooks/session-notification-sender.ts +0 -117
- package/src/hooks/session-notification-utils.ts +0 -80
- package/src/hooks/session-notification.ts +0 -219
- package/src/hooks/session-recovery/AGENTS.md +0 -59
- package/src/hooks/session-recovery/constants.ts +0 -5
- package/src/hooks/session-recovery/detect-error-type.ts +0 -102
- package/src/hooks/session-recovery/hook.ts +0 -166
- package/src/hooks/session-recovery/index.ts +0 -7
- package/src/hooks/session-recovery/recover-empty-content-message-sdk.ts +0 -201
- package/src/hooks/session-recovery/recover-thinking-block-order.ts +0 -137
- package/src/hooks/session-recovery/recover-thinking-disabled-violation.ts +0 -75
- package/src/hooks/session-recovery/recover-tool-result-missing.ts +0 -108
- package/src/hooks/session-recovery/recover-unavailable-tool.ts +0 -108
- package/src/hooks/session-recovery/resume.ts +0 -49
- package/src/hooks/session-recovery/storage/empty-messages.ts +0 -47
- package/src/hooks/session-recovery/storage/empty-text.ts +0 -118
- package/src/hooks/session-recovery/storage/message-dir.ts +0 -1
- package/src/hooks/session-recovery/storage/messages-reader.ts +0 -83
- package/src/hooks/session-recovery/storage/orphan-thinking-search.ts +0 -43
- package/src/hooks/session-recovery/storage/part-content.ts +0 -28
- package/src/hooks/session-recovery/storage/part-id.ts +0 -5
- package/src/hooks/session-recovery/storage/parts-reader.ts +0 -56
- package/src/hooks/session-recovery/storage/text-part-injector.ts +0 -63
- package/src/hooks/session-recovery/storage/thinking-block-search.ts +0 -42
- package/src/hooks/session-recovery/storage/thinking-prepend.ts +0 -223
- package/src/hooks/session-recovery/storage/thinking-strip.ts +0 -67
- package/src/hooks/session-recovery/storage.ts +0 -34
- package/src/hooks/session-recovery/types.ts +0 -101
- package/src/hooks/session-todo-status.ts +0 -20
- package/src/hooks/shared/compaction-model-resolver.ts +0 -34
- package/src/hooks/shared/shared/compaction-model-resolver.ts +0 -34
- package/src/hooks/start-work/context-info-builder.ts +0 -319
- package/src/hooks/start-work/index.ts +0 -4
- package/src/hooks/start-work/parse-user-request.ts +0 -32
- package/src/hooks/start-work/start-work-hook.ts +0 -135
- package/src/hooks/start-work/worktree-block.ts +0 -11
- package/src/hooks/start-work/worktree-detector.ts +0 -77
- package/src/hooks/stop-continuation-guard/hook.ts +0 -122
- package/src/hooks/stop-continuation-guard/index.ts +0 -2
- package/src/hooks/strategist-md-only/agent-matcher.ts +0 -5
- package/src/hooks/strategist-md-only/agent-resolution.ts +0 -70
- package/src/hooks/strategist-md-only/constants.ts +0 -78
- package/src/hooks/strategist-md-only/hook.ts +0 -82
- package/src/hooks/strategist-md-only/index.ts +0 -2
- package/src/hooks/strategist-md-only/path-policy.ts +0 -41
- package/src/hooks/sub-notepad/constants.ts +0 -29
- package/src/hooks/sub-notepad/hook.ts +0 -44
- package/src/hooks/sub-notepad/index.ts +0 -3
- package/src/hooks/task-reminder/hook.ts +0 -59
- package/src/hooks/task-reminder/index.ts +0 -1
- package/src/hooks/task-resume-info/hook.ts +0 -39
- package/src/hooks/task-resume-info/index.ts +0 -1
- package/src/hooks/tasks-todowrite-disabler/constants.ts +0 -30
- package/src/hooks/tasks-todowrite-disabler/hook.ts +0 -34
- package/src/hooks/tasks-todowrite-disabler/index.ts +0 -2
- package/src/hooks/think-mode/detector.ts +0 -59
- package/src/hooks/think-mode/hook.ts +0 -76
- package/src/hooks/think-mode/index.ts +0 -5
- package/src/hooks/think-mode/switcher.ts +0 -100
- package/src/hooks/think-mode/types.ts +0 -16
- package/src/hooks/thinking-block-validator/hook.ts +0 -181
- package/src/hooks/thinking-block-validator/index.ts +0 -1
- package/src/hooks/todo-continuation-enforcer/AGENTS.md +0 -65
- package/src/hooks/todo-continuation-enforcer/abort-detection.ts +0 -17
- package/src/hooks/todo-continuation-enforcer/compaction-guard.ts +0 -39
- package/src/hooks/todo-continuation-enforcer/constants.ts +0 -25
- package/src/hooks/todo-continuation-enforcer/continuation-injection.ts +0 -222
- package/src/hooks/todo-continuation-enforcer/countdown.ts +0 -86
- package/src/hooks/todo-continuation-enforcer/handler.ts +0 -99
- package/src/hooks/todo-continuation-enforcer/idle-event.ts +0 -225
- package/src/hooks/todo-continuation-enforcer/index.ts +0 -59
- package/src/hooks/todo-continuation-enforcer/message-directory.ts +0 -1
- package/src/hooks/todo-continuation-enforcer/non-idle-events.ts +0 -107
- package/src/hooks/todo-continuation-enforcer/pending-question-detection.ts +0 -40
- package/src/hooks/todo-continuation-enforcer/resolve-message-info.ts +0 -48
- package/src/hooks/todo-continuation-enforcer/session-state.ts +0 -283
- package/src/hooks/todo-continuation-enforcer/stagnation-detection.ts +0 -36
- package/src/hooks/todo-continuation-enforcer/todo.ts +0 -11
- package/src/hooks/todo-continuation-enforcer/token-limit-detection.ts +0 -38
- package/src/hooks/todo-continuation-enforcer/types.ts +0 -74
- package/src/hooks/todo-description-override/description.ts +0 -28
- package/src/hooks/todo-description-override/hook.ts +0 -14
- package/src/hooks/todo-description-override/index.ts +0 -1
- package/src/hooks/tool-output-truncator.ts +0 -66
- package/src/hooks/tool-pair-validator/hook.ts +0 -184
- package/src/hooks/tool-pair-validator/index.ts +0 -1
- package/src/hooks/unstable-agent-babysitter/index.ts +0 -9
- package/src/hooks/unstable-agent-babysitter/task-message-analyzer.ts +0 -110
- package/src/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.ts +0 -238
- package/src/hooks/webfetch-redirect-guard/constants.ts +0 -11
- package/src/hooks/webfetch-redirect-guard/hook.ts +0 -123
- package/src/hooks/webfetch-redirect-guard/index.ts +0 -1
- package/src/hooks/webfetch-redirect-guard/redirect-resolution.ts +0 -89
- package/src/hooks/write-existing-file-guard/hook.ts +0 -108
- package/src/hooks/write-existing-file-guard/index.ts +0 -1
- package/src/hooks/write-existing-file-guard/session-read-permissions.ts +0 -36
- package/src/hooks/write-existing-file-guard/tool-execute-before-handler.ts +0 -176
- package/src/index.ts +0 -254
- package/src/internals/plugins/pty/LICENSE +0 -21
- package/src/internals/plugins/pty/constants.ts +0 -7
- package/src/internals/plugins/pty/plugin.ts +0 -28
- package/src/internals/plugins/pty/pty/buffer.ts +0 -75
- package/src/internals/plugins/pty/pty/formatters.ts +0 -22
- package/src/internals/plugins/pty/pty/manager.ts +0 -175
- package/src/internals/plugins/pty/pty/notification-manager.ts +0 -75
- package/src/internals/plugins/pty/pty/output-manager.ts +0 -29
- package/src/internals/plugins/pty/pty/permissions.ts +0 -115
- package/src/internals/plugins/pty/pty/session-lifecycle.ts +0 -161
- package/src/internals/plugins/pty/pty/tools/kill.ts +0 -41
- package/src/internals/plugins/pty/pty/tools/kill.txt +0 -25
- package/src/internals/plugins/pty/pty/tools/list.ts +0 -25
- package/src/internals/plugins/pty/pty/tools/list.txt +0 -22
- package/src/internals/plugins/pty/pty/tools/read.ts +0 -234
- package/src/internals/plugins/pty/pty/tools/read.txt +0 -39
- package/src/internals/plugins/pty/pty/tools/spawn.ts +0 -71
- package/src/internals/plugins/pty/pty/tools/spawn.txt +0 -47
- package/src/internals/plugins/pty/pty/tools/write.ts +0 -96
- package/src/internals/plugins/pty/pty/tools/write.txt +0 -28
- package/src/internals/plugins/pty/pty/types.ts +0 -67
- package/src/internals/plugins/pty/pty/utils.ts +0 -21
- package/src/internals/plugins/pty/pty/wildcard.ts +0 -62
- package/src/internals/plugins/pty/shared/constants.ts +0 -7
- package/src/internals/plugins/pty/types.ts +0 -7
- package/src/internals/plugins/subtask2/LICENSE +0 -128
- package/src/internals/plugins/subtask2/commands/index.ts +0 -7
- package/src/internals/plugins/subtask2/commands/loader.ts +0 -39
- package/src/internals/plugins/subtask2/commands/manifest.ts +0 -60
- package/src/internals/plugins/subtask2/commands/resolver.ts +0 -28
- package/src/internals/plugins/subtask2/core/plugin.ts +0 -52
- package/src/internals/plugins/subtask2/core/state.ts +0 -764
- package/src/internals/plugins/subtask2/features/auto.ts +0 -57
- package/src/internals/plugins/subtask2/features/index.ts +0 -9
- package/src/internals/plugins/subtask2/features/inline-subtasks.ts +0 -205
- package/src/internals/plugins/subtask2/features/parallel.ts +0 -148
- package/src/internals/plugins/subtask2/features/results.ts +0 -48
- package/src/internals/plugins/subtask2/features/returns.ts +0 -273
- package/src/internals/plugins/subtask2/features/turns.ts +0 -190
- package/src/internals/plugins/subtask2/hooks/command-hooks.ts +0 -283
- package/src/internals/plugins/subtask2/hooks/message-hooks.ts +0 -603
- package/src/internals/plugins/subtask2/hooks/session-idle-hook.ts +0 -358
- package/src/internals/plugins/subtask2/hooks/tool-hooks.ts +0 -309
- package/src/internals/plugins/subtask2/loop.ts +0 -122
- package/src/internals/plugins/subtask2/parsing/auto.ts +0 -33
- package/src/internals/plugins/subtask2/parsing/commands.ts +0 -154
- package/src/internals/plugins/subtask2/parsing/frontmatter.ts +0 -20
- package/src/internals/plugins/subtask2/parsing/index.ts +0 -10
- package/src/internals/plugins/subtask2/parsing/overrides.ts +0 -68
- package/src/internals/plugins/subtask2/parsing/parallel.ts +0 -91
- package/src/internals/plugins/subtask2/parsing/turns.ts +0 -78
- package/src/internals/plugins/subtask2/types.ts +0 -41
- package/src/internals/plugins/subtask2/utils/config.ts +0 -100
- package/src/internals/plugins/subtask2/utils/index.ts +0 -7
- package/src/internals/plugins/subtask2/utils/logger.ts +0 -67
- package/src/internals/plugins/subtask2/utils/prompts.ts +0 -117
- package/src/lsp/index.ts +0 -16
- package/src/mcp/context7.ts +0 -9
- package/src/mcp/index.ts +0 -53
- package/src/mcp/registry.ts +0 -164
- package/src/mcp/types.ts +0 -19
- package/src/permissions/index.ts +0 -25
- package/src/plugin/AGENTS.md +0 -54
- package/src/plugin/available-categories.ts +0 -24
- package/src/plugin/chat-headers.ts +0 -141
- package/src/plugin/chat-message.ts +0 -307
- package/src/plugin/chat-params.ts +0 -182
- package/src/plugin/command-execute-before.ts +0 -80
- package/src/plugin/event.ts +0 -639
- package/src/plugin/hooks/create-continuation-hooks.ts +0 -128
- package/src/plugin/hooks/create-core-hooks.ts +0 -47
- package/src/plugin/hooks/create-session-hooks.ts +0 -269
- package/src/plugin/hooks/create-skill-hooks.ts +0 -50
- package/src/plugin/hooks/create-tool-guard-hooks.ts +0 -159
- package/src/plugin/hooks/create-transform-hooks.ts +0 -85
- package/src/plugin/messages-transform.ts +0 -28
- package/src/plugin/normalize-tool-arg-schemas.ts +0 -75
- package/src/plugin/recent-synthetic-idles.ts +0 -20
- package/src/plugin/session-agent-resolver.ts +0 -37
- package/src/plugin/session-status-normalizer.ts +0 -22
- package/src/plugin/skill-context.ts +0 -150
- package/src/plugin/skill-discovery-config.ts +0 -32
- package/src/plugin/startup-diagnostics.ts +0 -27
- package/src/plugin/system-transform.ts +0 -6
- package/src/plugin/tool-execute-after.ts +0 -178
- package/src/plugin/tool-execute-before.ts +0 -222
- package/src/plugin/tool-registry.ts +0 -286
- package/src/plugin/types.ts +0 -26
- package/src/plugin/ultrawork-db-model-override.ts +0 -142
- package/src/plugin/ultrawork-model-override.ts +0 -196
- package/src/plugin/ultrawork-variant-availability.ts +0 -51
- package/src/plugin/unstable-agent-babysitter.ts +0 -41
- package/src/plugin-config.ts +0 -314
- package/src/plugin-dispose.ts +0 -51
- package/src/plugin-handlers/AGENTS.md +0 -92
- package/src/plugin-handlers/agent-config-handler.ts +0 -510
- package/src/plugin-handlers/agent-key-remapper.ts +0 -39
- package/src/plugin-handlers/agent-override-protection.ts +0 -38
- package/src/plugin-handlers/agent-priority-order.ts +0 -63
- package/src/plugin-handlers/category-config-resolver.ts +0 -9
- package/src/plugin-handlers/command-config-handler.ts +0 -115
- package/src/plugin-handlers/config-handler.ts +0 -61
- package/src/plugin-handlers/index.ts +0 -10
- package/src/plugin-handlers/mcp-config-handler.test.ts +0 -63
- package/src/plugin-handlers/mcp-config-handler.ts +0 -220
- package/src/plugin-handlers/plan-model-inheritance.ts +0 -27
- package/src/plugin-handlers/plugin-components-loader.ts +0 -70
- package/src/plugin-handlers/provider-config-handler.ts +0 -73
- package/src/plugin-handlers/strategist-agent-config-builder.ts +0 -128
- package/src/plugin-handlers/tool-config-handler.ts +0 -193
- package/src/plugin-interface.ts +0 -83
- package/src/plugin-state.ts +0 -18
- package/src/shared/AGENTS.md +0 -54
- package/src/shared/agent-display-names.test.ts +0 -9
- package/src/shared/agent-display-names.ts +0 -187
- package/src/shared/agent-tool-restrictions.ts +0 -80
- package/src/shared/agent-variant.ts +0 -101
- package/src/shared/agents-config-dir.ts +0 -23
- package/src/shared/archive-entry-validator.ts +0 -83
- package/src/shared/background-output-consumption.ts +0 -69
- package/src/shared/binary-downloader.ts +0 -127
- package/src/shared/claude-config-dir.ts +0 -16
- package/src/shared/closure-protocol.ts +0 -53
- package/src/shared/command-executor/embedded-commands.ts +0 -26
- package/src/shared/command-executor/execute-command.ts +0 -28
- package/src/shared/command-executor/execute-hook-command.ts +0 -129
- package/src/shared/command-executor/home-directory.ts +0 -5
- package/src/shared/command-executor/resolve-commands-in-text.ts +0 -49
- package/src/shared/command-executor/shell-path.ts +0 -27
- package/src/shared/command-executor.ts +0 -5
- package/src/shared/compaction-agent-config-checkpoint.ts +0 -42
- package/src/shared/compaction-marker.ts +0 -61
- package/src/shared/config-errors.ts +0 -18
- package/src/shared/connected-providers-cache.ts +0 -215
- package/src/shared/contains-path.ts +0 -50
- package/src/shared/context-limit-resolver.ts +0 -42
- package/src/shared/data-path.ts +0 -64
- package/src/shared/deep-merge.ts +0 -53
- package/src/shared/disabled-tools.ts +0 -19
- package/src/shared/dynamic-truncator.ts +0 -222
- package/src/shared/external-plugin-detector.ts +0 -139
- package/src/shared/fallback-chain-from-models.ts +0 -124
- package/src/shared/fallback-model-availability.ts +0 -102
- package/src/shared/file-reference-resolver.ts +0 -99
- package/src/shared/file-utils.ts +0 -34
- package/src/shared/first-message-variant.ts +0 -28
- package/src/shared/frontmatter.ts +0 -31
- package/src/shared/git-worktree/collect-git-diff-stats.ts +0 -56
- package/src/shared/git-worktree/format-file-changes.ts +0 -46
- package/src/shared/git-worktree/index.ts +0 -7
- package/src/shared/git-worktree/parse-diff-numstat.ts +0 -27
- package/src/shared/git-worktree/parse-status-porcelain-line.ts +0 -27
- package/src/shared/git-worktree/parse-status-porcelain.ts +0 -15
- package/src/shared/git-worktree/types.ts +0 -8
- package/src/shared/hook-disabled.ts +0 -22
- package/src/shared/index.ts +0 -80
- package/src/shared/internal-initiator-marker.ts +0 -18
- package/src/shared/is-abort-error.ts +0 -20
- package/src/shared/json-file-cache-store.ts +0 -98
- package/src/shared/jsonc-parser.ts +0 -98
- package/src/shared/known-variants.ts +0 -16
- package/src/shared/legacy-plugin-warning.ts +0 -68
- package/src/shared/load-opencode-plugins.ts +0 -60
- package/src/shared/log-legacy-plugin-startup-warning.ts +0 -44
- package/src/shared/logger.ts +0 -56
- package/src/shared/mcp-static-export.ts +0 -119
- package/src/shared/merge-categories.ts +0 -18
- package/src/shared/migrate-legacy-config-file.ts +0 -66
- package/src/shared/migrate-legacy-plugin-entry.ts +0 -75
- package/src/shared/migration/agent-category.ts +0 -60
- package/src/shared/migration/agent-names.ts +0 -108
- package/src/shared/migration/config-migration.ts +0 -210
- package/src/shared/migration/hook-names.ts +0 -40
- package/src/shared/migration/migrations-sidecar.ts +0 -92
- package/src/shared/migration/model-versions.ts +0 -50
- package/src/shared/migration.ts +0 -5
- package/src/shared/mode-routing.test.ts +0 -88
- package/src/shared/mode-routing.ts +0 -30
- package/src/shared/model-availability.ts +0 -294
- package/src/shared/model-capabilities/bundled-snapshot.ts +0 -15
- package/src/shared/model-capabilities/get-model-capabilities.ts +0 -140
- package/src/shared/model-capabilities/index.ts +0 -9
- package/src/shared/model-capabilities/runtime-model-readers.ts +0 -190
- package/src/shared/model-capabilities/types.ts +0 -80
- package/src/shared/model-capabilities-cache.ts +0 -213
- package/src/shared/model-capability-aliases.ts +0 -108
- package/src/shared/model-capability-guardrails.ts +0 -149
- package/src/shared/model-capability-heuristics.ts +0 -32
- package/src/shared/model-error-classifier.ts +0 -214
- package/src/shared/model-format-normalizer.ts +0 -20
- package/src/shared/model-normalization.ts +0 -8
- package/src/shared/model-requirements.ts +0 -26
- package/src/shared/model-resolution-pipeline.ts +0 -216
- package/src/shared/model-resolution-types.ts +0 -41
- package/src/shared/model-resolver.ts +0 -106
- package/src/shared/model-sanitizer.ts +0 -12
- package/src/shared/model-settings-compatibility.ts +0 -200
- package/src/shared/model-suggestion-retry.ts +0 -182
- package/src/shared/normalize-sdk-response.ts +0 -36
- package/src/shared/opencode-command-dirs.ts +0 -36
- package/src/shared/opencode-config-dir-types.ts +0 -15
- package/src/shared/opencode-config-dir.ts +0 -135
- package/src/shared/opencode-http-api.ts +0 -140
- package/src/shared/opencode-message-dir.ts +0 -29
- package/src/shared/opencode-server-auth.ts +0 -190
- package/src/shared/opencode-storage-detection.ts +0 -34
- package/src/shared/opencode-storage-paths.ts +0 -7
- package/src/shared/opencode-version.ts +0 -80
- package/src/shared/parse-tools-config.ts +0 -25
- package/src/shared/pattern-matcher.ts +0 -46
- package/src/shared/permission-compat.ts +0 -86
- package/src/shared/plugin-command-discovery.ts +0 -28
- package/src/shared/plugin-entry-migrator.ts +0 -21
- package/src/shared/plugin-identity.ts +0 -8
- package/src/shared/port-utils.ts +0 -48
- package/src/shared/project-discovery-dirs.ts +0 -101
- package/src/shared/prompt-timeout-context.ts +0 -49
- package/src/shared/prompt-tools.ts +0 -35
- package/src/shared/provider-model-id-transform.ts +0 -58
- package/src/shared/question-denied-session-permission.ts +0 -9
- package/src/shared/record-type-guard.ts +0 -3
- package/src/shared/resolve-agent-definition-paths.ts +0 -22
- package/src/shared/retry-status-utils.ts +0 -19
- package/src/shared/runtime-plugin-config.ts +0 -98
- package/src/shared/safe-create-hook.ts +0 -24
- package/src/shared/session-category-registry.ts +0 -27
- package/src/shared/session-cursor.ts +0 -108
- package/src/shared/session-directory-resolver.ts +0 -41
- package/src/shared/session-injected-paths.ts +0 -59
- package/src/shared/session-model-state.ts +0 -15
- package/src/shared/session-prompt-params-helpers.ts +0 -31
- package/src/shared/session-prompt-params-state.ts +0 -37
- package/src/shared/session-tools-store.ts +0 -18
- package/src/shared/session-utils.ts +0 -25
- package/src/shared/shell-env.ts +0 -175
- package/src/shared/skill-path-resolver.ts +0 -26
- package/src/shared/snake-case.ts +0 -44
- package/src/shared/spawn-with-windows-hide.ts +0 -84
- package/src/shared/startup-diagnostics.ts +0 -76
- package/src/shared/system-directive.ts +0 -67
- package/src/shared/task-system-enabled.ts +0 -9
- package/src/shared/tmux/constants.ts +0 -12
- package/src/shared/tmux/index.ts +0 -3
- package/src/shared/tmux/tmux-utils/environment.ts +0 -13
- package/src/shared/tmux/tmux-utils/layout.ts +0 -96
- package/src/shared/tmux/tmux-utils/pane-close.ts +0 -48
- package/src/shared/tmux/tmux-utils/pane-dimensions.ts +0 -28
- package/src/shared/tmux/tmux-utils/pane-replace.ts +0 -73
- package/src/shared/tmux/tmux-utils/pane-spawn.ts +0 -94
- package/src/shared/tmux/tmux-utils/server-health.ts +0 -62
- package/src/shared/tmux/tmux-utils/session-spawn.ts +0 -145
- package/src/shared/tmux/tmux-utils/window-spawn.ts +0 -93
- package/src/shared/tmux/tmux-utils.ts +0 -15
- package/src/shared/tmux/types.ts +0 -4
- package/src/shared/tool-name.ts +0 -27
- package/src/shared/truncate-description.ts +0 -11
- package/src/shared/vision-capable-models-cache.ts +0 -17
- package/src/shared/write-file-atomically.ts +0 -31
- package/src/shared/zip-entry-listing/powershell-zip-entry-listing.ts +0 -99
- package/src/shared/zip-entry-listing/python-zip-entry-listing.ts +0 -55
- package/src/shared/zip-entry-listing/read-zip-symlink-target.ts +0 -23
- package/src/shared/zip-entry-listing/tar-zip-entry-listing.ts +0 -93
- package/src/shared/zip-entry-listing/zipinfo-zip-entry-listing.ts +0 -72
- package/src/shared/zip-entry-listing.ts +0 -13
- package/src/shared/zip-extractor.ts +0 -118
- package/src/skills/index.ts +0 -56
- package/src/testing/module-mock-lifecycle.ts +0 -143
- package/src/tools/AGENTS.md +0 -108
- package/src/tools/ast-grep/cli-binary-path-resolution.ts +0 -60
- package/src/tools/ast-grep/cli.ts +0 -177
- package/src/tools/ast-grep/constants.ts +0 -5
- package/src/tools/ast-grep/downloader.ts +0 -119
- package/src/tools/ast-grep/environment-check.ts +0 -59
- package/src/tools/ast-grep/index.ts +0 -5
- package/src/tools/ast-grep/language-support.ts +0 -60
- package/src/tools/ast-grep/process-output-timeout.ts +0 -28
- package/src/tools/ast-grep/result-formatter.ts +0 -102
- package/src/tools/ast-grep/sg-cli-path.ts +0 -102
- package/src/tools/ast-grep/sg-compact-json-output.ts +0 -54
- package/src/tools/ast-grep/tools.ts +0 -117
- package/src/tools/ast-grep/types.ts +0 -60
- package/src/tools/background-task/AGENTS.md +0 -53
- package/src/tools/background-task/clients.ts +0 -32
- package/src/tools/background-task/constants.ts +0 -9
- package/src/tools/background-task/create-background-cancel.ts +0 -115
- package/src/tools/background-task/create-background-output.ts +0 -159
- package/src/tools/background-task/create-background-task.ts +0 -126
- package/src/tools/background-task/delay.ts +0 -3
- package/src/tools/background-task/full-session-format.ts +0 -148
- package/src/tools/background-task/index.ts +0 -8
- package/src/tools/background-task/message-dir.ts +0 -1
- package/src/tools/background-task/session-messages.ts +0 -22
- package/src/tools/background-task/task-result-format.ts +0 -113
- package/src/tools/background-task/task-status-format.ts +0 -72
- package/src/tools/background-task/time-format.ts +0 -30
- package/src/tools/background-task/tools.ts +0 -11
- package/src/tools/background-task/truncate-text.ts +0 -4
- package/src/tools/background-task/types.ts +0 -72
- package/src/tools/call-omo-agent/AGENTS.md +0 -51
- package/src/tools/call-omo-agent/agent-resolver.ts +0 -64
- package/src/tools/call-omo-agent/background-agent-executor.ts +0 -91
- package/src/tools/call-omo-agent/background-executor.ts +0 -98
- package/src/tools/call-omo-agent/completion-poller.ts +0 -65
- package/src/tools/call-omo-agent/constants.ts +0 -23
- package/src/tools/call-omo-agent/index.ts +0 -3
- package/src/tools/call-omo-agent/message-dir.ts +0 -1
- package/src/tools/call-omo-agent/message-processor.ts +0 -86
- package/src/tools/call-omo-agent/message-storage-directory.ts +0 -1
- package/src/tools/call-omo-agent/session-creator.ts +0 -70
- package/src/tools/call-omo-agent/subagent-session-creator.ts +0 -74
- package/src/tools/call-omo-agent/sync-executor.ts +0 -148
- package/src/tools/call-omo-agent/tool-context-with-metadata.ts +0 -10
- package/src/tools/call-omo-agent/tools.ts +0 -199
- package/src/tools/call-omo-agent/types.ts +0 -34
- package/src/tools/delegate-task/AGENTS.md +0 -58
- package/src/tools/delegate-task/anthropic-categories.ts +0 -62
- package/src/tools/delegate-task/available-models.ts +0 -64
- package/src/tools/delegate-task/background-continuation.ts +0 -68
- package/src/tools/delegate-task/background-task.ts +0 -165
- package/src/tools/delegate-task/builtin-categories.ts +0 -35
- package/src/tools/delegate-task/builtin-category-definition.ts +0 -8
- package/src/tools/delegate-task/cancel-unstable-agent-task.ts +0 -19
- package/src/tools/delegate-task/categories.test.ts +0 -87
- package/src/tools/delegate-task/categories.ts +0 -77
- package/src/tools/delegate-task/category-resolver.ts +0 -309
- package/src/tools/delegate-task/constants.ts +0 -351
- package/src/tools/delegate-task/delegated-model-config.ts +0 -20
- package/src/tools/delegate-task/error-formatting.ts +0 -51
- package/src/tools/delegate-task/executor-types.ts +0 -39
- package/src/tools/delegate-task/executor.ts +0 -16
- package/src/tools/delegate-task/fallback-entry-resolution.ts +0 -27
- package/src/tools/delegate-task/fallback-entry-settings.ts +0 -20
- package/src/tools/delegate-task/git-categories.ts +0 -30
- package/src/tools/delegate-task/google-categories.ts +0 -130
- package/src/tools/delegate-task/index.ts +0 -4
- package/src/tools/delegate-task/kimi-categories.ts +0 -40
- package/src/tools/delegate-task/model-selection.ts +0 -201
- package/src/tools/delegate-task/model-string-parser.test.ts +0 -90
- package/src/tools/delegate-task/model-string-parser.ts +0 -63
- package/src/tools/delegate-task/openai-categories.ts +0 -132
- package/src/tools/delegate-task/parent-context-resolver.ts +0 -47
- package/src/tools/delegate-task/prompt-builder.ts +0 -107
- package/src/tools/delegate-task/resolve-call-id.ts +0 -5
- package/src/tools/delegate-task/skill-resolver.ts +0 -22
- package/src/tools/delegate-task/sub-agent.ts +0 -80
- package/src/tools/delegate-task/subagent-discovery.test.ts +0 -123
- package/src/tools/delegate-task/subagent-discovery.ts +0 -152
- package/src/tools/delegate-task/subagent-resolver.ts +0 -242
- package/src/tools/delegate-task/sync-continuation-deps.ts +0 -9
- package/src/tools/delegate-task/sync-continuation.ts +0 -149
- package/src/tools/delegate-task/sync-prompt-sender.ts +0 -137
- package/src/tools/delegate-task/sync-result-fetcher.ts +0 -60
- package/src/tools/delegate-task/sync-session-creator.ts +0 -29
- package/src/tools/delegate-task/sync-session-poller.ts +0 -188
- package/src/tools/delegate-task/sync-task-deps.ts +0 -13
- package/src/tools/delegate-task/sync-task-fallback.ts +0 -68
- package/src/tools/delegate-task/sync-task.ts +0 -243
- package/src/tools/delegate-task/time-formatter.ts +0 -13
- package/src/tools/delegate-task/timing.ts +0 -46
- package/src/tools/delegate-task/token-limiter.ts +0 -123
- package/src/tools/delegate-task/tools.ts +0 -259
- package/src/tools/delegate-task/types.ts +0 -89
- package/src/tools/delegate-task/unstable-agent-task.ts +0 -243
- package/src/tools/glob/cli.ts +0 -206
- package/src/tools/glob/constants.ts +0 -12
- package/src/tools/glob/index.ts +0 -1
- package/src/tools/glob/result-formatter.ts +0 -26
- package/src/tools/glob/tools.ts +0 -49
- package/src/tools/glob/types.ts +0 -23
- package/src/tools/grep/cli.ts +0 -279
- package/src/tools/grep/constants.ts +0 -141
- package/src/tools/grep/downloader.ts +0 -128
- package/src/tools/grep/index.ts +0 -1
- package/src/tools/grep/result-formatter.ts +0 -60
- package/src/tools/grep/tools.ts +0 -75
- package/src/tools/grep/types.ts +0 -42
- package/src/tools/hashline-edit/AGENTS.md +0 -92
- package/src/tools/hashline-edit/autocorrect-replacement-lines.ts +0 -179
- package/src/tools/hashline-edit/constants.ts +0 -10
- package/src/tools/hashline-edit/diff-utils.ts +0 -53
- package/src/tools/hashline-edit/edit-deduplication.ts +0 -43
- package/src/tools/hashline-edit/edit-operation-primitives.ts +0 -126
- package/src/tools/hashline-edit/edit-operations.ts +0 -103
- package/src/tools/hashline-edit/edit-ordering.ts +0 -56
- package/src/tools/hashline-edit/edit-text-normalization.ts +0 -111
- package/src/tools/hashline-edit/file-text-canonicalization.ts +0 -44
- package/src/tools/hashline-edit/formatter-trigger.ts +0 -132
- package/src/tools/hashline-edit/hash-computation.ts +0 -154
- package/src/tools/hashline-edit/hashline-chunk-formatter.ts +0 -52
- package/src/tools/hashline-edit/hashline-edit-diff.ts +0 -31
- package/src/tools/hashline-edit/hashline-edit-executor.ts +0 -197
- package/src/tools/hashline-edit/index.ts +0 -20
- package/src/tools/hashline-edit/normalize-edits.ts +0 -95
- package/src/tools/hashline-edit/tool-description.ts +0 -95
- package/src/tools/hashline-edit/tools.ts +0 -42
- package/src/tools/hashline-edit/types.ts +0 -20
- package/src/tools/hashline-edit/validation.ts +0 -181
- package/src/tools/index.ts +0 -64
- package/src/tools/interactive-bash/constants.ts +0 -18
- package/src/tools/interactive-bash/index.ts +0 -4
- package/src/tools/interactive-bash/tmux-path-resolver.ts +0 -71
- package/src/tools/interactive-bash/tools.ts +0 -136
- package/src/tools/look-at/assistant-message-extractor.ts +0 -67
- package/src/tools/look-at/constants.ts +0 -3
- package/src/tools/look-at/image-converter.ts +0 -164
- package/src/tools/look-at/index.ts +0 -3
- package/src/tools/look-at/look-at-arguments.ts +0 -34
- package/src/tools/look-at/mime-type-inference.ts +0 -94
- package/src/tools/look-at/multimodal-agent-metadata.ts +0 -166
- package/src/tools/look-at/multimodal-fallback-chain.ts +0 -66
- package/src/tools/look-at/session-poller.ts +0 -42
- package/src/tools/look-at/tools.ts +0 -245
- package/src/tools/look-at/types.ts +0 -5
- package/src/tools/lsp/AGENTS.md +0 -70
- package/src/tools/lsp/client.ts +0 -3
- package/src/tools/lsp/config.ts +0 -3
- package/src/tools/lsp/constants.ts +0 -7
- package/src/tools/lsp/diagnostics-tool.ts +0 -75
- package/src/tools/lsp/directory-diagnostics.ts +0 -163
- package/src/tools/lsp/find-references-tool.ts +0 -43
- package/src/tools/lsp/goto-definition-tool.ts +0 -42
- package/src/tools/lsp/index.ts +0 -9
- package/src/tools/lsp/infer-extension.ts +0 -65
- package/src/tools/lsp/language-config.ts +0 -5
- package/src/tools/lsp/language-mappings.ts +0 -171
- package/src/tools/lsp/lsp-client-connection.ts +0 -66
- package/src/tools/lsp/lsp-client-transport.ts +0 -210
- package/src/tools/lsp/lsp-client-wrapper.ts +0 -116
- package/src/tools/lsp/lsp-client.ts +0 -129
- package/src/tools/lsp/lsp-formatters.ts +0 -193
- package/src/tools/lsp/lsp-manager-process-cleanup.ts +0 -83
- package/src/tools/lsp/lsp-manager-temp-directory-cleanup.ts +0 -29
- package/src/tools/lsp/lsp-process.ts +0 -158
- package/src/tools/lsp/lsp-server.ts +0 -217
- package/src/tools/lsp/rename-tools.ts +0 -53
- package/src/tools/lsp/server-config-loader.ts +0 -116
- package/src/tools/lsp/server-definitions.ts +0 -91
- package/src/tools/lsp/server-installation.ts +0 -58
- package/src/tools/lsp/server-path-bases.ts +0 -16
- package/src/tools/lsp/server-resolution.ts +0 -109
- package/src/tools/lsp/symbols-tool.ts +0 -76
- package/src/tools/lsp/tools.ts +0 -5
- package/src/tools/lsp/types.ts +0 -124
- package/src/tools/lsp/workspace-edit.ts +0 -121
- package/src/tools/session-manager/constants.ts +0 -93
- package/src/tools/session-manager/file-storage.ts +0 -203
- package/src/tools/session-manager/index.ts +0 -3
- package/src/tools/session-manager/sdk-storage.ts +0 -135
- package/src/tools/session-manager/sdk-unavailable.ts +0 -43
- package/src/tools/session-manager/session-formatter.ts +0 -199
- package/src/tools/session-manager/storage.ts +0 -161
- package/src/tools/session-manager/tools.ts +0 -197
- package/src/tools/session-manager/types.ts +0 -99
- package/src/tools/shared/semaphore.ts +0 -32
- package/src/tools/skill/constants.ts +0 -14
- package/src/tools/skill/description-formatter.ts +0 -61
- package/src/tools/skill/index.ts +0 -3
- package/src/tools/skill/mcp-capability-formatter.ts +0 -97
- package/src/tools/skill/native-skills.ts +0 -62
- package/src/tools/skill/scope-priority.ts +0 -17
- package/src/tools/skill/skill-body.ts +0 -26
- package/src/tools/skill/skill-matcher.ts +0 -40
- package/src/tools/skill/tools.ts +0 -196
- package/src/tools/skill/types.ts +0 -48
- package/src/tools/skill-mcp/constants.ts +0 -9
- package/src/tools/skill-mcp/index.ts +0 -3
- package/src/tools/skill-mcp/tools.test.ts +0 -44
- package/src/tools/skill-mcp/tools.ts +0 -242
- package/src/tools/skill-mcp/types.ts +0 -8
- package/src/tools/slashcommand/command-discovery.ts +0 -161
- package/src/tools/slashcommand/command-output-formatter.ts +0 -75
- package/src/tools/slashcommand/index.ts +0 -2
- package/src/tools/slashcommand/types.ts +0 -21
- package/src/tools/task/index.ts +0 -7
- package/src/tools/task/task-create.ts +0 -113
- package/src/tools/task/task-get.ts +0 -47
- package/src/tools/task/task-list.ts +0 -79
- package/src/tools/task/task-update.ts +0 -152
- package/src/tools/task/todo-sync.ts +0 -205
- package/src/tools/task/types.ts +0 -77
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# src/hooks/keyword-detector/ — Mode Keyword Injection
|
|
2
|
-
|
|
3
|
-
**Generated:** 2026-04-11
|
|
4
|
-
|
|
5
|
-
## OVERVIEW
|
|
6
|
-
|
|
7
|
-
8 files + 3 mode subdirs (~1665 LOC). Transform Tier hook on `messages.transform`. Scans first user message for mode keywords (ultrawork, search, analyze) and injects mode-specific system prompts.
|
|
8
|
-
|
|
9
|
-
## KEYWORDS
|
|
10
|
-
|
|
11
|
-
| Keyword | Pattern | Effect |
|
|
12
|
-
|---------|---------|--------|
|
|
13
|
-
| `ultrawork` / `ulw` | `/\b(ultrawork|ulw)\b/i` | Full orchestration mode — parallel agents, deep exploration, relentless execution |
|
|
14
|
-
| Search mode | `SEARCH_PATTERN` (from `search/`) | Web/doc search focus prompt injection |
|
|
15
|
-
| Analyze mode | `ANALYZE_PATTERN` (from `analyze/`) | Deep analysis mode prompt injection |
|
|
16
|
-
|
|
17
|
-
## STRUCTURE
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
keyword-detector/
|
|
21
|
-
├── index.ts # Barrel export
|
|
22
|
-
├── hook.ts # createKeywordDetectorHook() — chat.message handler
|
|
23
|
-
├── detector.ts # detectKeywordsWithType() + extractPromptText()
|
|
24
|
-
├── constants.ts # KEYWORD_DETECTORS array, re-exports from submodules
|
|
25
|
-
├── types.ts # KeywordDetector, DetectedKeyword types
|
|
26
|
-
├── ultrawork/
|
|
27
|
-
│ ├── index.ts
|
|
28
|
-
│ ├── message.ts # getUltraworkMessage() — dynamic prompt by agent/model
|
|
29
|
-
│ └── isPlannerAgent.ts
|
|
30
|
-
├── search/
|
|
31
|
-
│ ├── index.ts
|
|
32
|
-
│ ├── pattern.ts # SEARCH_PATTERN regex
|
|
33
|
-
│ └── message.ts # SEARCH_MESSAGE
|
|
34
|
-
└── analyze/
|
|
35
|
-
├── index.ts
|
|
36
|
-
├── pattern.ts # ANALYZE_PATTERN regex
|
|
37
|
-
└── message.ts # ANALYZE_MESSAGE
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## DETECTION LOGIC
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
chat.message (user input)
|
|
44
|
-
→ extractPromptText(parts)
|
|
45
|
-
→ isSystemDirective? → skip
|
|
46
|
-
→ removeSystemReminders(text) # strip <SYSTEM_REMINDER> blocks
|
|
47
|
-
→ detectKeywordsWithType(cleanText, agentName, modelID)
|
|
48
|
-
→ isPlannerAgent(agentName)? → filter out ultrawork
|
|
49
|
-
→ for each detected keyword: inject mode message into output
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## GUARDS
|
|
53
|
-
|
|
54
|
-
- **System directive skip**: Messages tagged as system directives are not scanned (prevents infinite loops)
|
|
55
|
-
- **Planner agent filter**: Strategist/plan agents do not receive `ultrawork` injection
|
|
56
|
-
- **Session agent tracking**: Uses `getSessionAgent()` to get actual agent (not just input hint)
|
|
57
|
-
- **Model-aware messages**: `getUltraworkMessage(agentName, modelID)` adapts message to active model
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Analyze mode keyword detector.
|
|
3
|
-
*
|
|
4
|
-
* Triggers on analysis-related keywords across multiple languages:
|
|
5
|
-
* - English: analyze, analyse, investigate, examine, research, study, deep-dive, inspect, audit, evaluate, assess, review, diagnose, scrutinize, dissect, debug, comprehend, interpret, breakdown, understand, why is, how does, how to
|
|
6
|
-
* - Korean: 분석, 조사, 파악, 연구, 검토, 진단, 이해, 설명, 원인, 이유, 뜯어봐, 따져봐, 평가, 해석, 디버깅, 디버그, 어떻게, 왜, 살펴
|
|
7
|
-
* - Japanese: 分析, 調査, 解析, 検討, 研究, 診断, 理解, 説明, 検証, 精査, 究明, デバッグ, なぜ, どう, 仕組み
|
|
8
|
-
* - Chinese: 调查, 检查, 剖析, 深入, 诊断, 解释, 调试, 为什么, 原理, 搞清楚, 弄明白
|
|
9
|
-
* - Vietnamese: phân tích, điều tra, nghiên cứu, kiểm tra, xem xét, chẩn đoán, giải thích, tìm hiểu, gỡ lỗi, tại sao
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const ANALYZE_PATTERN =
|
|
13
|
-
/\b(analyze|analyse|investigate|examine|research|study|deep[\s-]?dive|inspect|audit|evaluate|assess|review|diagnose|scrutinize|dissect|debug|comprehend|interpret|breakdown|understand)\b|why\s+is|how\s+does|how\s+to|분석|조사|파악|연구|검토|진단|이해|설명|원인|이유|뜯어봐|따져봐|평가|해석|디버깅|디버그|어떻게|왜|살펴|分析|調査|解析|検討|研究|診断|理解|説明|検証|精査|究明|デバッグ|なぜ|どう|仕組み|调查|检查|剖析|深入|诊断|解释|调试|为什么|原理|搞清楚|弄明白|phân tích|điều tra|nghiên cứu|kiểm tra|xem xét|chẩn đoán|giải thích|tìm hiểu|gỡ lỗi|tại sao/i
|
|
14
|
-
|
|
15
|
-
export const ANALYZE_MESSAGE = `[analyze-mode]
|
|
16
|
-
ANALYSIS MODE. Gather context before diving deep:
|
|
17
|
-
|
|
18
|
-
CONTEXT GATHERING (parallel):
|
|
19
|
-
- 1-2 researcher agents (codebase patterns, implementations)
|
|
20
|
-
- 1-2 researcher agents (official docs, OSS examples, if external library involved)
|
|
21
|
-
- Direct tools: Grep, AST-grep, LSP for targeted searches
|
|
22
|
-
|
|
23
|
-
IF COMPLEX - DO NOT STRUGGLE ALONE. Consult specialists:
|
|
24
|
-
- **Strategist**: Architecture, planning, and complex design choices
|
|
25
|
-
- **Critic**: Debugging, verification, and high-risk review
|
|
26
|
-
- **Artistry**: Non-conventional problems (different approach needed)
|
|
27
|
-
|
|
28
|
-
SYNTHESIZE findings before proceeding.`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ANALYZE_PATTERN, ANALYZE_MESSAGE } from "./default"
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export const CODE_BLOCK_PATTERN = /```[\s\S]*?```/g
|
|
2
|
-
export const INLINE_CODE_PATTERN = /`[^`]+`/g
|
|
3
|
-
|
|
4
|
-
export { isPlannerAgent, isNonOmoAgent, getUltraworkMessage } from "./ultrawork"
|
|
5
|
-
export { SEARCH_PATTERN, SEARCH_MESSAGE } from "./search"
|
|
6
|
-
export { ANALYZE_PATTERN, ANALYZE_MESSAGE } from "./analyze"
|
|
7
|
-
|
|
8
|
-
import { getUltraworkMessage } from "./ultrawork"
|
|
9
|
-
import { SEARCH_PATTERN, SEARCH_MESSAGE } from "./search"
|
|
10
|
-
|
|
11
|
-
export type KeywordDetector = {
|
|
12
|
-
pattern: RegExp
|
|
13
|
-
message: string | ((agentName?: string, modelID?: string) => string)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const KEYWORD_DETECTORS: KeywordDetector[] = [
|
|
17
|
-
{
|
|
18
|
-
pattern: /\b(ultrawork|ulw)\b/i,
|
|
19
|
-
message: getUltraworkMessage,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
pattern: SEARCH_PATTERN,
|
|
23
|
-
message: SEARCH_MESSAGE,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
pattern:
|
|
27
|
-
/\b(analyze|analyse|investigate|examine|research|study|deep[\s-]?dive|inspect|audit|evaluate|assess|review|diagnose|scrutinize|dissect|debug|comprehend|interpret|breakdown|understand)\b|why\s+is|how\s+does|how\s+to|분석|조사|파악|연구|검토|진단|이해|설명|원인|이유|뜯어봐|따져봐|평가|해석|디버깅|디버그|어떻게|왜|살펴|分析|調査|解析|検討|研究|診断|理解|説明|検証|精査|究明|デバッグ|なぜ|どう|仕組み|调查|检查|剖析|深入|诊断|解释|调试|为什么|原理|搞清楚|弄明白|phân tích|điều tra|nghiên cứu|kiểm tra|xem xét|chẩn đoán|giải thích|tìm hiểu|gỡ lỗi|tại sao/i,
|
|
28
|
-
message: `[analyze-mode]
|
|
29
|
-
ANALYSIS MODE. Gather context before diving deep:
|
|
30
|
-
CONTEXT GATHERING (parallel):
|
|
31
|
-
- 1-2 researcher agents (codebase patterns, implementations)
|
|
32
|
-
- 1-2 researcher agents (official docs, OSS examples, if external library involved)
|
|
33
|
-
- Direct tools: Grep, AST-grep, LSP for targeted searches
|
|
34
|
-
|
|
35
|
-
IF COMPLEX - DO NOT STRUGGLE ALONE. Consult specialists:
|
|
36
|
-
- **Strategist**: Architecture, planning, and complex design choices
|
|
37
|
-
- **Critic**: Debugging, verification, and high-risk review
|
|
38
|
-
- **Artistry**: Non-conventional problems (different approach needed)
|
|
39
|
-
|
|
40
|
-
SYNTHESIZE findings before proceeding.
|
|
41
|
-
---
|
|
42
|
-
MANDATORY delegate_task params: ALWAYS include load_skills=[] and run_in_background when calling delegate_task.
|
|
43
|
-
Example: delegate_task(subagent_type="researcher", prompt="...", run_in_background=true, load_skills=[])`,
|
|
44
|
-
},
|
|
45
|
-
]
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KEYWORD_DETECTORS,
|
|
3
|
-
CODE_BLOCK_PATTERN,
|
|
4
|
-
INLINE_CODE_PATTERN,
|
|
5
|
-
} from "./constants"
|
|
6
|
-
|
|
7
|
-
export interface DetectedKeyword {
|
|
8
|
-
type: "ultrawork" | "search" | "analyze"
|
|
9
|
-
message: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function removeCodeBlocks(text: string): string {
|
|
13
|
-
return text.replace(CODE_BLOCK_PATTERN, "").replace(INLINE_CODE_PATTERN, "")
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Resolves message to string, handling both static strings and dynamic functions.
|
|
18
|
-
*/
|
|
19
|
-
function resolveMessage(
|
|
20
|
-
message: string | ((agentName?: string, modelID?: string) => string),
|
|
21
|
-
agentName?: string,
|
|
22
|
-
modelID?: string
|
|
23
|
-
): string {
|
|
24
|
-
return typeof message === "function" ? message(agentName, modelID) : message
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function detectKeywords(text: string, agentName?: string, modelID?: string): string[] {
|
|
28
|
-
const textWithoutCode = removeCodeBlocks(text)
|
|
29
|
-
return KEYWORD_DETECTORS.filter(({ pattern }) =>
|
|
30
|
-
pattern.test(textWithoutCode)
|
|
31
|
-
).map(({ message }) => resolveMessage(message, agentName, modelID))
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function detectKeywordsWithType(text: string, agentName?: string, modelID?: string): DetectedKeyword[] {
|
|
35
|
-
const textWithoutCode = removeCodeBlocks(text)
|
|
36
|
-
const types: Array<"ultrawork" | "search" | "analyze"> = ["ultrawork", "search", "analyze"]
|
|
37
|
-
return KEYWORD_DETECTORS.map(({ pattern, message }, index) => ({
|
|
38
|
-
matches: pattern.test(textWithoutCode),
|
|
39
|
-
type: types[index],
|
|
40
|
-
message: resolveMessage(message, agentName, modelID),
|
|
41
|
-
}))
|
|
42
|
-
.filter((result) => result.matches)
|
|
43
|
-
.map(({ type, message }) => ({ type, message }))
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function extractPromptText(
|
|
47
|
-
parts: Array<{ type: string; text?: string }>
|
|
48
|
-
): string {
|
|
49
|
-
return parts
|
|
50
|
-
.filter((p) => p.type === "text")
|
|
51
|
-
.map((p) => p.text || "")
|
|
52
|
-
.join(" ")
|
|
53
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin"
|
|
2
|
-
import { detectKeywordsWithType, extractPromptText } from "./detector"
|
|
3
|
-
import { isPlannerAgent, isNonOmoAgent } from "./constants"
|
|
4
|
-
import { log } from "../../shared"
|
|
5
|
-
import {
|
|
6
|
-
isSystemDirective,
|
|
7
|
-
removeSystemReminders,
|
|
8
|
-
} from "../../shared/system-directive"
|
|
9
|
-
import {
|
|
10
|
-
getMainSessionID,
|
|
11
|
-
getSessionAgent,
|
|
12
|
-
subagentSessions,
|
|
13
|
-
} from "../../features/claude-code-session-state"
|
|
14
|
-
import type { ContextCollector } from "../../features/context-injector"
|
|
15
|
-
import type { RalphLoopHook } from "../ralph-loop"
|
|
16
|
-
|
|
17
|
-
export function createKeywordDetectorHook(
|
|
18
|
-
ctx: PluginInput,
|
|
19
|
-
_collector?: ContextCollector,
|
|
20
|
-
_ralphLoop?: Pick<RalphLoopHook, "startLoop">
|
|
21
|
-
) {
|
|
22
|
-
function getRuntimeVariant(input: { variant?: string }, message: Record<string, unknown>): string | undefined {
|
|
23
|
-
if (typeof message["variant"] === "string") {
|
|
24
|
-
return message["variant"]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return typeof input.variant === "string" ? input.variant : undefined
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
"chat.message": async (
|
|
32
|
-
input: {
|
|
33
|
-
sessionID: string
|
|
34
|
-
agent?: string
|
|
35
|
-
model?: { providerID: string; modelID: string }
|
|
36
|
-
messageID?: string
|
|
37
|
-
variant?: string
|
|
38
|
-
},
|
|
39
|
-
output: {
|
|
40
|
-
message: Record<string, unknown>
|
|
41
|
-
parts: Array<{ type: string; text?: string; [key: string]: unknown }>
|
|
42
|
-
}
|
|
43
|
-
): Promise<void> => {
|
|
44
|
-
const promptText = extractPromptText(output.parts)
|
|
45
|
-
|
|
46
|
-
if (isSystemDirective(promptText)) {
|
|
47
|
-
log(`[keyword-detector] Skipping system directive message`, { sessionID: input.sessionID })
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const currentAgent = getSessionAgent(input.sessionID) ?? input.agent
|
|
52
|
-
|
|
53
|
-
// Skip all keyword injection for non-OMO agents (e.g., OpenCode-Builder, Plan)
|
|
54
|
-
if (isNonOmoAgent(currentAgent)) {
|
|
55
|
-
log(`[keyword-detector] Skipping keyword injection for non-OMO agent`, { sessionID: input.sessionID, agent: currentAgent })
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Remove system-reminder content to prevent automated system messages from triggering mode keywords
|
|
60
|
-
const cleanText = removeSystemReminders(promptText)
|
|
61
|
-
const modelID = input.model?.modelID
|
|
62
|
-
let detectedKeywords = detectKeywordsWithType(cleanText, currentAgent, modelID)
|
|
63
|
-
|
|
64
|
-
if (isPlannerAgent(currentAgent)) {
|
|
65
|
-
const preFilterCount = detectedKeywords.length
|
|
66
|
-
detectedKeywords = detectedKeywords.filter((k) => k.type !== "ultrawork")
|
|
67
|
-
if (preFilterCount > detectedKeywords.length) {
|
|
68
|
-
log(`[keyword-detector] Filtered ultrawork keywords for planner agent`, { sessionID: input.sessionID, agent: currentAgent })
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (detectedKeywords.length === 0) {
|
|
73
|
-
return
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const isBackgroundTaskSession = subagentSessions.has(input.sessionID)
|
|
77
|
-
if (isBackgroundTaskSession) {
|
|
78
|
-
log(`[keyword-detector] Skipping keyword injection for background task session`, { sessionID: input.sessionID })
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const mainSessionID = getMainSessionID()
|
|
83
|
-
const isNonMainSession = mainSessionID && input.sessionID !== mainSessionID
|
|
84
|
-
|
|
85
|
-
if (isNonMainSession) {
|
|
86
|
-
detectedKeywords = detectedKeywords.filter((k) => k.type === "ultrawork")
|
|
87
|
-
if (detectedKeywords.length === 0) {
|
|
88
|
-
log(`[keyword-detector] Skipping non-ultrawork keywords in non-main session`, {
|
|
89
|
-
sessionID: input.sessionID,
|
|
90
|
-
mainSessionID,
|
|
91
|
-
})
|
|
92
|
-
return
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const hasUltrawork = detectedKeywords.some((k) => k.type === "ultrawork")
|
|
97
|
-
if (hasUltrawork) {
|
|
98
|
-
const runtimeVariant = getRuntimeVariant(input, output.message)
|
|
99
|
-
const isRuntimeMax = runtimeVariant === "max"
|
|
100
|
-
|
|
101
|
-
log(`[keyword-detector] Ultrawork mode activated`, {
|
|
102
|
-
sessionID: input.sessionID,
|
|
103
|
-
runtimeVariant,
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
ctx.client.tui
|
|
107
|
-
.showToast({
|
|
108
|
-
body: {
|
|
109
|
-
title: "Ultrawork Mode Activated",
|
|
110
|
-
message: isRuntimeMax
|
|
111
|
-
? "Maximum precision engaged. All agents at your disposal."
|
|
112
|
-
: "Runtime variant preserved. All agents at your disposal.",
|
|
113
|
-
variant: "success" as const,
|
|
114
|
-
duration: 3000,
|
|
115
|
-
},
|
|
116
|
-
})
|
|
117
|
-
.catch((err) =>
|
|
118
|
-
log(`[keyword-detector] Failed to show toast`, {
|
|
119
|
-
error: err,
|
|
120
|
-
sessionID: input.sessionID,
|
|
121
|
-
})
|
|
122
|
-
)
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
const textPartIndex = output.parts.findIndex((p) => p.type === "text" && p.text !== undefined)
|
|
127
|
-
if (textPartIndex === -1) {
|
|
128
|
-
log(`[keyword-detector] No text part found, skipping injection`, { sessionID: input.sessionID })
|
|
129
|
-
return
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const allMessages = detectedKeywords.map((k) => k.message).join("\n\n")
|
|
133
|
-
const originalText = output.parts[textPartIndex].text ?? ""
|
|
134
|
-
|
|
135
|
-
output.parts[textPartIndex].text = `${allMessages}\n\n---\n\n${originalText}`
|
|
136
|
-
|
|
137
|
-
log(`[keyword-detector] Detected ${detectedKeywords.length} keywords`, {
|
|
138
|
-
sessionID: input.sessionID,
|
|
139
|
-
types: detectedKeywords.map((k) => k.type),
|
|
140
|
-
})
|
|
141
|
-
},
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Search mode keyword detector.
|
|
3
|
-
*
|
|
4
|
-
* Triggers on search-related keywords across multiple languages:
|
|
5
|
-
* - English: search, find, locate, lookup, explore, discover, scan, grep, query, browse, detect, trace, seek, track, pinpoint, hunt, where is, show me, list all
|
|
6
|
-
* - Korean: 검색, 찾아, 탐색, 조회, 스캔, 서치, 뒤져, 찾기, 어디, 추적, 탐지, 찾아봐, 찾아내, 보여줘, 목록
|
|
7
|
-
* - Japanese: 検索, 探して, 見つけて, サーチ, 探索, スキャン, どこ, 発見, 捜索, 見つけ出す, 一覧
|
|
8
|
-
* - Chinese: 搜索, 查找, 寻找, 查询, 检索, 定位, 扫描, 发现, 在哪里, 找出来, 列出
|
|
9
|
-
* - Vietnamese: tìm kiếm, tra cứu, định vị, quét, phát hiện, truy tìm, tìm ra, ở đâu, liệt kê
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const SEARCH_PATTERN =
|
|
13
|
-
/\b(search|find|locate|lookup|look\s*up|explore|discover|scan|grep|query|browse|detect|trace|seek|track|pinpoint|hunt)\b|where\s+is|show\s+me|list\s+all|검색|찾아|탐색|조회|스캔|서치|뒤져|찾기|어디|추적|탐지|찾아봐|찾아내|보여줘|목록|検索|探して|見つけて|サーチ|探索|スキャン|どこ|発見|捜索|見つけ出す|一覧|搜索|查找|寻找|查询|检索|定位|扫描|发现|在哪里|找出来|列出|tìm kiếm|tra cứu|định vị|quét|phát hiện|truy tìm|tìm ra|ở đâu|liệt kê/i
|
|
14
|
-
|
|
15
|
-
export const SEARCH_MESSAGE = `[search-mode]
|
|
16
|
-
MAXIMIZE SEARCH EFFORT. Launch multiple background researcher agents IN PARALLEL:
|
|
17
|
-
- researcher agents (codebase patterns, file structures, ast-grep)
|
|
18
|
-
- researcher agents (remote repos, official docs, GitHub examples)
|
|
19
|
-
Plus direct tools: Grep, ripgrep (rg), ast-grep (sg)
|
|
20
|
-
NEVER stop at first result - be exhaustive.`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SEARCH_PATTERN, SEARCH_MESSAGE } from "./default"
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default ultrawork message optimized for Claude series models.
|
|
3
|
-
*
|
|
4
|
-
* Key characteristics:
|
|
5
|
-
* - Natural tool-like usage of researcher/strategist/critic agents (run_in_background=true)
|
|
6
|
-
* - Parallel execution emphasized - fire agents and continue working
|
|
7
|
-
* - Simple workflow: RESEARCH → GATHER → PLAN → DELEGATE
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export const ULTRAWORK_DEFAULT_MESSAGE = `<ultrawork-mode>
|
|
11
|
-
|
|
12
|
-
**MANDATORY**: You MUST say "ULTRAWORK MODE ENABLED!" to the user as your first response when this mode activates. This is non-negotiable.
|
|
13
|
-
|
|
14
|
-
[CODE RED] Maximum precision required. Ultrathink before acting.
|
|
15
|
-
|
|
16
|
-
## **ABSOLUTE CERTAINTY REQUIRED - DO NOT SKIP THIS**
|
|
17
|
-
|
|
18
|
-
**YOU MUST NOT START ANY IMPLEMENTATION UNTIL YOU ARE 100% CERTAIN.**
|
|
19
|
-
|
|
20
|
-
| **BEFORE YOU WRITE A SINGLE LINE OF CODE, YOU MUST:** |
|
|
21
|
-
|-------------------------------------------------------|
|
|
22
|
-
| **FULLY UNDERSTAND** what the user ACTUALLY wants (not what you ASSUME they want) |
|
|
23
|
-
| **EXPLORE** the codebase to understand existing patterns, architecture, and context |
|
|
24
|
-
| **HAVE A CRYSTAL CLEAR WORK PLAN** - if your plan is vague, YOUR WORK WILL FAIL |
|
|
25
|
-
| **RESOLVE ALL AMBIGUITY** - if ANYTHING is unclear, ASK or INVESTIGATE |
|
|
26
|
-
|
|
27
|
-
### **MANDATORY CERTAINTY PROTOCOL**
|
|
28
|
-
|
|
29
|
-
**IF YOU ARE NOT 100% CERTAIN:**
|
|
30
|
-
|
|
31
|
-
1. **THINK DEEPLY** - What is the user's TRUE intent? What problem are they REALLY trying to solve?
|
|
32
|
-
2. **RESEARCH THOROUGHLY** - Fire researcher agents to gather ALL relevant context
|
|
33
|
-
3. **CONSULT SPECIALISTS** - For hard/complex tasks, DO NOT struggle alone. Delegate:
|
|
34
|
-
- **Strategist**: Architecture, planning, and complex design choices
|
|
35
|
-
- **Critic**: Debugging, verification, and high-risk review
|
|
36
|
-
- **Artistry**: Non-conventional problems - different approach needed, unusual constraints
|
|
37
|
-
4. **ASK THE USER** - If ambiguity remains after exploration, ASK. Don't guess.
|
|
38
|
-
|
|
39
|
-
**SIGNS YOU ARE NOT READY TO IMPLEMENT:**
|
|
40
|
-
- You're making assumptions about requirements
|
|
41
|
-
- You're unsure which files to modify
|
|
42
|
-
- You don't understand how existing code works
|
|
43
|
-
- Your plan has "probably" or "maybe" in it
|
|
44
|
-
- You can't explain the exact steps you'll take
|
|
45
|
-
|
|
46
|
-
**WHEN IN DOUBT:**
|
|
47
|
-
\`\`\`
|
|
48
|
-
task(subagent_type="researcher", load_skills=[], prompt="I'm implementing [TASK DESCRIPTION] and need to understand [SPECIFIC KNOWLEDGE GAP]. Find [X] patterns in the codebase - show file paths, implementation approach, and conventions used. I'll use this to [HOW RESULTS WILL BE USED]. Focus on src/ directories, skip test files unless test patterns are specifically needed. Return concrete file paths with brief descriptions of what each file does.", run_in_background=true)
|
|
49
|
-
task(subagent_type="researcher", load_skills=[], prompt="I'm working with [LIBRARY/TECHNOLOGY] and need [SPECIFIC INFORMATION]. Find official documentation and production-quality examples for [Y] - specifically: API reference, configuration options, recommended patterns, and common pitfalls. Skip beginner tutorials. I'll use this to [DECISION THIS WILL INFORM].", run_in_background=true)
|
|
50
|
-
task(subagent_type="critic", load_skills=[], prompt="I need a review of my approach to [TASK]. Here's my plan: [DESCRIBE PLAN WITH SPECIFIC FILES AND CHANGES]. My concerns are: [LIST SPECIFIC UNCERTAINTIES]. Please evaluate: correctness of approach, potential issues I'm missing, and whether a better alternative exists.", run_in_background=false)
|
|
51
|
-
\`\`\`
|
|
52
|
-
|
|
53
|
-
**ONLY AFTER YOU HAVE:**
|
|
54
|
-
- Gathered sufficient context via agents
|
|
55
|
-
- Resolved all ambiguities
|
|
56
|
-
- Created a precise, step-by-step work plan
|
|
57
|
-
- Achieved 100% confidence in your understanding
|
|
58
|
-
|
|
59
|
-
**...THEN AND ONLY THEN MAY YOU BEGIN IMPLEMENTATION.**
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
## **NO EXCUSES. NO COMPROMISES. DELIVER WHAT WAS ASKED.**
|
|
64
|
-
|
|
65
|
-
**THE USER'S ORIGINAL REQUEST IS SACRED. YOU MUST FULFILL IT EXACTLY.**
|
|
66
|
-
|
|
67
|
-
| VIOLATION | CONSEQUENCE |
|
|
68
|
-
|-----------|-------------|
|
|
69
|
-
| "I couldn't because..." | **UNACCEPTABLE.** Find a way or ask for help. |
|
|
70
|
-
| "This is a simplified version..." | **UNACCEPTABLE.** Deliver the FULL implementation. |
|
|
71
|
-
| "You can extend this later..." | **UNACCEPTABLE.** Finish it NOW. |
|
|
72
|
-
| "Due to limitations..." | **UNACCEPTABLE.** Use agents, tools, whatever it takes. |
|
|
73
|
-
| "I made some assumptions..." | **UNACCEPTABLE.** You should have asked FIRST. |
|
|
74
|
-
|
|
75
|
-
**THERE ARE NO VALID EXCUSES FOR:**
|
|
76
|
-
- Delivering partial work
|
|
77
|
-
- Changing scope without explicit user approval
|
|
78
|
-
- Making unauthorized simplifications
|
|
79
|
-
- Stopping before the task is 100% complete
|
|
80
|
-
- Compromising on any stated requirement
|
|
81
|
-
|
|
82
|
-
**IF YOU ENCOUNTER A BLOCKER:**
|
|
83
|
-
1. **DO NOT** give up
|
|
84
|
-
2. **DO NOT** deliver a compromised version
|
|
85
|
-
3. **DO** consult specialists (strategist for planning/architecture, critic for review/debugging, artistry for non-conventional)
|
|
86
|
-
4. **DO** ask the user for guidance
|
|
87
|
-
5. **DO** explore alternative approaches
|
|
88
|
-
|
|
89
|
-
**THE USER ASKED FOR X. DELIVER EXACTLY X. PERIOD.**
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
YOU MUST LEVERAGE ALL AVAILABLE AGENTS / **CATEGORY + SKILLS** TO THEIR FULLEST POTENTIAL.
|
|
94
|
-
TELL THE USER WHAT AGENTS YOU WILL LEVERAGE NOW TO SATISFY USER'S REQUEST.
|
|
95
|
-
|
|
96
|
-
## MANDATORY: PLAN AGENT INVOCATION (NON-NEGOTIABLE)
|
|
97
|
-
|
|
98
|
-
**YOU MUST ALWAYS INVOKE THE STRATEGIST AGENT FOR ANY NON-TRIVIAL TASK.**
|
|
99
|
-
|
|
100
|
-
| Condition | Action |
|
|
101
|
-
|-----------|--------|
|
|
102
|
-
| Task has 2+ steps | MUST call strategist agent |
|
|
103
|
-
| Task scope unclear | MUST call strategist agent |
|
|
104
|
-
| Implementation required | MUST call strategist agent |
|
|
105
|
-
| Architecture decision needed | MUST call strategist agent |
|
|
106
|
-
|
|
107
|
-
\`\`\`
|
|
108
|
-
task(subagent_type="strategist", load_skills=[], run_in_background=false, prompt="<gathered context + user request>")
|
|
109
|
-
\`\`\`
|
|
110
|
-
|
|
111
|
-
**WHY STRATEGIST AGENT IS MANDATORY:**
|
|
112
|
-
- Strategist analyzes dependencies and parallel execution opportunities
|
|
113
|
-
- Strategist outputs a **parallel task graph** with waves and dependencies
|
|
114
|
-
- Strategist provides structured TODO list with category + skills per task
|
|
115
|
-
- YOU are an orchestrator, NOT an implementer
|
|
116
|
-
|
|
117
|
-
### SESSION CONTINUITY WITH STRATEGIST AGENT (CRITICAL)
|
|
118
|
-
|
|
119
|
-
**Strategist agent returns a session_id. USE IT for follow-up interactions.**
|
|
120
|
-
|
|
121
|
-
| Scenario | Action |
|
|
122
|
-
|----------|--------|
|
|
123
|
-
| Strategist asks clarifying questions | \`task(session_id="{returned_session_id}", load_skills=[], run_in_background=false, prompt="<your answer>")\` |
|
|
124
|
-
| Need to refine the plan | \`task(session_id="{returned_session_id}", load_skills=[], run_in_background=false, prompt="Please adjust: <feedback>")\` |
|
|
125
|
-
| Strategist needs more detail | \`task(session_id="{returned_session_id}", load_skills=[], run_in_background=false, prompt="Add more detail to Task N")\` |
|
|
126
|
-
|
|
127
|
-
**WHY SESSION_ID IS CRITICAL:**
|
|
128
|
-
- Strategist retains FULL conversation context
|
|
129
|
-
- No repeated exploration or context gathering
|
|
130
|
-
- Saves 70%+ tokens on follow-ups
|
|
131
|
-
- Maintains interview continuity until plan is finalized
|
|
132
|
-
|
|
133
|
-
\`\`\`
|
|
134
|
-
// WRONG: Starting fresh loses all context
|
|
135
|
-
task(subagent_type="strategist", load_skills=[], run_in_background=false, prompt="Here's more info...")
|
|
136
|
-
|
|
137
|
-
// CORRECT: Resume preserves everything
|
|
138
|
-
task(session_id="ses_abc123", load_skills=[], run_in_background=false, prompt="Here's my answer to your question: ...")
|
|
139
|
-
\`\`\`
|
|
140
|
-
|
|
141
|
-
**FAILURE TO CALL STRATEGIST AGENT = INCOMPLETE WORK.**
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## AGENTS / **CATEGORY + SKILLS** UTILIZATION PRINCIPLES
|
|
146
|
-
|
|
147
|
-
**DEFAULT BEHAVIOR: DELEGATE. DO NOT WORK YOURSELF.**
|
|
148
|
-
|
|
149
|
-
| Task Type | Action | Why |
|
|
150
|
-
|-----------|--------|-----|
|
|
151
|
-
| Codebase exploration | task(subagent_type="researcher", load_skills=[], run_in_background=true) | Parallel, context-efficient |
|
|
152
|
-
| Documentation lookup | task(subagent_type="researcher", load_skills=[], run_in_background=true) | Specialized knowledge |
|
|
153
|
-
| Planning | task(subagent_type="strategist", load_skills=[], run_in_background=false) | Parallel task graph + structured TODO list |
|
|
154
|
-
| Hard problem (conventional) | task(subagent_type="strategist", load_skills=[], run_in_background=false) | Architecture, planning, complex logic |
|
|
155
|
-
| Hard problem (review/debugging) | task(subagent_type="critic", load_skills=[], run_in_background=false) | Verification, debugging, high-risk review |
|
|
156
|
-
| Hard problem (non-conventional) | task(category="artistry", load_skills=[...], run_in_background=true) | Different approach needed |
|
|
157
|
-
| Implementation | task(category="...", load_skills=[...], run_in_background=true) | Domain-optimized models |
|
|
158
|
-
|
|
159
|
-
**CATEGORY + SKILL DELEGATION:**
|
|
160
|
-
\`\`\`
|
|
161
|
-
// Frontend work
|
|
162
|
-
task(category="visual-engineering", load_skills=["frontend-ui-ux"], run_in_background=true)
|
|
163
|
-
|
|
164
|
-
// Complex logic
|
|
165
|
-
task(category="ultrabrain", load_skills=["typescript-programmer"], run_in_background=true)
|
|
166
|
-
|
|
167
|
-
// Quick fixes
|
|
168
|
-
task(category="quick", load_skills=["git-master"], run_in_background=true)
|
|
169
|
-
\`\`\`
|
|
170
|
-
|
|
171
|
-
**YOU SHOULD ONLY DO IT YOURSELF WHEN:**
|
|
172
|
-
- Task is trivially simple (1-2 lines, obvious change)
|
|
173
|
-
- You have ALL context already loaded
|
|
174
|
-
- Delegation overhead exceeds task complexity
|
|
175
|
-
|
|
176
|
-
**OTHERWISE: DELEGATE. ALWAYS.**
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## EXECUTION RULES
|
|
181
|
-
- **TODO**: Track EVERY step. Mark complete IMMEDIATELY after each.
|
|
182
|
-
- **PARALLEL**: Fire independent agent calls simultaneously via task(run_in_background=true) - NEVER wait sequentially.
|
|
183
|
-
- **BACKGROUND FIRST**: Use task for exploration/research agents (10+ concurrent if needed).
|
|
184
|
-
- **VERIFY**: Re-read request after completion. Check ALL requirements met before reporting done.
|
|
185
|
-
- **DELEGATE**: Don't do everything yourself - orchestrate specialized agents for their strengths.
|
|
186
|
-
|
|
187
|
-
## WORKFLOW
|
|
188
|
-
1. Analyze the request and identify required capabilities
|
|
189
|
-
2. Spawn researcher agents via task(run_in_background=true) in PARALLEL (10+ if needed)
|
|
190
|
-
3. Use Plan agent with gathered context to create detailed work breakdown
|
|
191
|
-
4. Execute with continuous verification against original requirements
|
|
192
|
-
|
|
193
|
-
## VERIFICATION GUARANTEE (NON-NEGOTIABLE)
|
|
194
|
-
|
|
195
|
-
**NOTHING is "done" without PROOF it works.**
|
|
196
|
-
|
|
197
|
-
### Pre-Implementation: Define Success Criteria
|
|
198
|
-
|
|
199
|
-
BEFORE writing ANY code, you MUST define:
|
|
200
|
-
|
|
201
|
-
| Criteria Type | Description | Example |
|
|
202
|
-
|---------------|-------------|---------|
|
|
203
|
-
| **Functional** | What specific behavior must work | "Button click triggers API call" |
|
|
204
|
-
| **Observable** | What can be measured/seen | "Console shows 'success', no errors" |
|
|
205
|
-
| **Pass/Fail** | Binary, no ambiguity | "Returns 200 OK" not "should work" |
|
|
206
|
-
|
|
207
|
-
Write these criteria explicitly. **Record them in your TODO/Task items.** Each task MUST include a "QA: [how to verify]" field. These criteria are your CONTRACT - work toward them, verify against them.
|
|
208
|
-
|
|
209
|
-
### Test Plan Template (MANDATORY for non-trivial tasks)
|
|
210
|
-
|
|
211
|
-
\`\`\`
|
|
212
|
-
## Test Plan
|
|
213
|
-
### Objective: [What we're verifying]
|
|
214
|
-
### Prerequisites: [Setup needed]
|
|
215
|
-
### Test Cases:
|
|
216
|
-
1. [Test Name]: [Input] → [Expected Output] → [How to verify]
|
|
217
|
-
2. ...
|
|
218
|
-
### Success Criteria: ALL test cases pass
|
|
219
|
-
### How to Execute: [Exact commands/steps]
|
|
220
|
-
\`\`\`
|
|
221
|
-
|
|
222
|
-
### Execution & Evidence Requirements
|
|
223
|
-
|
|
224
|
-
| Phase | Action | Required Evidence |
|
|
225
|
-
|-------|--------|-------------------|
|
|
226
|
-
| **Build** | Run build command | Exit code 0, no errors |
|
|
227
|
-
| **Test** | Execute test suite | All tests pass (screenshot/output) |
|
|
228
|
-
| **Manual Verify** | Test the actual feature | Demonstrate it works (describe what you observed) |
|
|
229
|
-
| **Regression** | Ensure nothing broke | Existing tests still pass |
|
|
230
|
-
|
|
231
|
-
**WITHOUT evidence = NOT verified = NOT done.**
|
|
232
|
-
|
|
233
|
-
<MANUAL_QA_MANDATE>
|
|
234
|
-
### YOU MUST EXECUTE MANUAL QA YOURSELF. THIS IS NOT OPTIONAL.
|
|
235
|
-
|
|
236
|
-
**YOUR FAILURE MODE**: You finish coding, run lsp_diagnostics, and declare "done" without actually TESTING the feature. lsp_diagnostics catches type errors, NOT functional bugs. Your work is NOT verified until you MANUALLY test it.
|
|
237
|
-
|
|
238
|
-
**WHAT MANUAL QA MEANS - execute ALL that apply:**
|
|
239
|
-
|
|
240
|
-
| If your change... | YOU MUST... |
|
|
241
|
-
|---|---|
|
|
242
|
-
| Adds/modifies a CLI command | Run the command with Bash. Show the output. |
|
|
243
|
-
| Changes build output | Run the build. Verify the output files exist and are correct. |
|
|
244
|
-
| Modifies API behavior | Call the endpoint. Show the response. |
|
|
245
|
-
| Changes UI rendering | Describe what renders. Use a browser tool if available. |
|
|
246
|
-
| Adds a new tool/hook/feature | Test it end-to-end in a real scenario. |
|
|
247
|
-
| Modifies config handling | Load the config. Verify it parses correctly. |
|
|
248
|
-
|
|
249
|
-
**UNACCEPTABLE QA CLAIMS:**
|
|
250
|
-
- "This should work" - RUN IT.
|
|
251
|
-
- "The types check out" - Types don't catch logic bugs. RUN IT.
|
|
252
|
-
- "lsp_diagnostics is clean" - That's a TYPE check, not a FUNCTIONAL check. RUN IT.
|
|
253
|
-
- "Tests pass" - Tests cover known cases. Does the ACTUAL FEATURE work as the user expects? RUN IT.
|
|
254
|
-
|
|
255
|
-
**You have Bash, you have tools. There is ZERO excuse for not running manual QA.**
|
|
256
|
-
**Manual QA is the FINAL gate before reporting completion. Skip it and your work is INCOMPLETE.**
|
|
257
|
-
</MANUAL_QA_MANDATE>
|
|
258
|
-
|
|
259
|
-
### TDD Workflow (when test infrastructure exists)
|
|
260
|
-
|
|
261
|
-
1. **SPEC**: Define what "working" means (success criteria above)
|
|
262
|
-
2. **RED**: Write failing test → Run it → Confirm it FAILS
|
|
263
|
-
3. **GREEN**: Write minimal code → Run test → Confirm it PASSES
|
|
264
|
-
4. **REFACTOR**: Clean up → Tests MUST stay green
|
|
265
|
-
5. **VERIFY**: Run full test suite, confirm no regressions
|
|
266
|
-
6. **EVIDENCE**: Report what you ran and what output you saw
|
|
267
|
-
|
|
268
|
-
### Verification Anti-Patterns (BLOCKING)
|
|
269
|
-
|
|
270
|
-
| Violation | Why It Fails |
|
|
271
|
-
|-----------|--------------|
|
|
272
|
-
| "It should work now" | No evidence. Run it. |
|
|
273
|
-
| "I added the tests" | Did they pass? Show output. |
|
|
274
|
-
| "Fixed the bug" | How do you know? What did you test? |
|
|
275
|
-
| "Implementation complete" | Did you verify against success criteria? |
|
|
276
|
-
| Skipping test execution | Tests exist to be RUN, not just written |
|
|
277
|
-
|
|
278
|
-
**CLAIM NOTHING WITHOUT PROOF. EXECUTE. VERIFY. SHOW EVIDENCE.**
|
|
279
|
-
|
|
280
|
-
## ZERO TOLERANCE FAILURES
|
|
281
|
-
- **NO Scope Reduction**: Never make "demo", "skeleton", "simplified", "basic" versions - deliver FULL implementation
|
|
282
|
-
- **NO MockUp Work**: When user asked you to do "port A", you must "port A", fully, 100%. No Extra feature, No reduced feature, no mock data, fully working 100% port.
|
|
283
|
-
- **NO Partial Completion**: Never stop at 60-80% saying "you can extend this..." - finish 100%
|
|
284
|
-
- **NO Assumed Shortcuts**: Never skip requirements you deem "optional" or "can be added later"
|
|
285
|
-
- **NO Premature Stopping**: Never declare done until ALL TODOs are completed and verified
|
|
286
|
-
- **NO TEST DELETION**: Never delete or skip failing tests to make the build pass. Fix the code, not the tests.
|
|
287
|
-
|
|
288
|
-
THE USER ASKED FOR X. DELIVER EXACTLY X. NOT A SUBSET. NOT A DEMO. NOT A STARTING POINT.
|
|
289
|
-
|
|
290
|
-
1. EXPLORES + LIBRARIANS
|
|
291
|
-
2. GATHER -> PLAN AGENT SPAWN
|
|
292
|
-
3. WORK BY DELEGATING TO ANOTHER AGENTS
|
|
293
|
-
|
|
294
|
-
NOW.
|
|
295
|
-
|
|
296
|
-
</ultrawork-mode>
|
|
297
|
-
|
|
298
|
-
`
|
|
299
|
-
|
|
300
|
-
export function getDefaultUltraworkMessage(): string {
|
|
301
|
-
return ULTRAWORK_DEFAULT_MESSAGE
|
|
302
|
-
}
|