opencode-matrixx-v2 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +5 -5
  2. package/dist/agents/{cipher.d.ts → definitions/cipher.d.ts} +2 -2
  3. package/dist/agents/{construct.d.ts → definitions/construct.d.ts} +2 -2
  4. package/dist/agents/definitions/index.d.ts +14 -0
  5. package/dist/agents/{keymaker.d.ts → definitions/keymaker.d.ts} +2 -2
  6. package/dist/agents/{merovingian.d.ts → definitions/merovingian.d.ts} +3 -3
  7. package/dist/agents/{morpheus.d.ts → definitions/morpheus.d.ts} +2 -2
  8. package/dist/agents/{mouse → definitions/mouse}/agent.d.ts +2 -2
  9. package/dist/agents/{niobe → definitions/niobe}/agent.d.ts +4 -4
  10. package/dist/agents/{niobe → definitions/niobe}/index.d.ts +1 -1
  11. package/dist/agents/{niobe → definitions/niobe}/prompt-section-builder.d.ts +2 -2
  12. package/dist/agents/{operator.d.ts → definitions/operator.d.ts} +2 -2
  13. package/dist/agents/{oracle → definitions/oracle}/system-prompt.d.ts +1 -1
  14. package/dist/agents/{sati.d.ts → definitions/sati.d.ts} +2 -2
  15. package/dist/agents/{sentinel.d.ts → definitions/sentinel.d.ts} +2 -2
  16. package/dist/agents/{seraph.d.ts → definitions/seraph.d.ts} +2 -2
  17. package/dist/agents/{smith.d.ts → definitions/smith.d.ts} +2 -2
  18. package/dist/agents/{trinity.d.ts → definitions/trinity.d.ts} +2 -2
  19. package/dist/agents/index.d.ts +14 -14
  20. package/dist/agents/{builtin-agents → registry}/agent-overrides.d.ts +2 -2
  21. package/dist/agents/{builtin-agents → registry}/available-skills.d.ts +1 -1
  22. package/dist/agents/{builtin-agents → registry}/general-agents.d.ts +4 -4
  23. package/dist/agents/{builtin-agents.d.ts → registry/index.d.ts} +4 -4
  24. package/dist/agents/{builtin-agents → registry}/keymaker-agent.d.ts +3 -3
  25. package/dist/agents/{builtin-agents → registry}/morpheus-agent.d.ts +3 -3
  26. package/dist/agents/{builtin-agents → registry}/niobe-agent.d.ts +3 -3
  27. package/dist/agents/{agent-builder.d.ts → shared/agent-builder.d.ts} +1 -1
  28. package/dist/agents/{agent-config.d.ts → shared/agent-config.d.ts} +3 -3
  29. package/dist/agents/{agents.transform.d.ts → shared/agents.transform.d.ts} +1 -1
  30. package/dist/agents/{dynamic-agent-prompt-builder.d.ts → shared/dynamic-agent-prompt-builder.d.ts} +2 -2
  31. package/dist/cli.js +22 -9
  32. package/dist/config/schema/agent-names.d.ts +1 -1
  33. package/dist/config/schema/categories.d.ts +4 -4
  34. package/dist/config/schema/commands.d.ts +3 -3
  35. package/dist/config/schema/dcp.d.ts +13 -0
  36. package/dist/config/schema/hooks.d.ts +1 -0
  37. package/dist/config/schema/matrixx-config.d.ts +11 -4
  38. package/dist/features/background-agent/handle-index.d.ts +31 -0
  39. package/dist/features/background-agent/index.d.ts +1 -1
  40. package/dist/features/background-agent/manager/lifecycle.d.ts +2 -1
  41. package/dist/features/background-agent/manager/manager.d.ts +10 -1
  42. package/dist/features/background-agent/manager/reconcile.d.ts +9 -0
  43. package/dist/features/background-agent/manager/store.d.ts +13 -1
  44. package/dist/features/background-agent/message-dir.d.ts +3 -0
  45. package/dist/features/background-agent/revive.d.ts +54 -0
  46. package/dist/features/background-agent/state.d.ts +2 -5
  47. package/dist/features/background-agent/task-map.d.ts +31 -0
  48. package/dist/features/background-agent/types.d.ts +3 -1
  49. package/dist/features/background-agent/wallclock.d.ts +15 -20
  50. package/dist/features/builtin-commands/templates/end-redpill.d.ts +1 -0
  51. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
  52. package/dist/features/builtin-commands/templates/redpill.d.ts +1 -0
  53. package/dist/features/builtin-commands/templates/research.d.ts +1 -1
  54. package/dist/features/builtin-commands/types.d.ts +1 -1
  55. package/dist/features/redpill-state/index.d.ts +1 -0
  56. package/dist/features/redpill-state/manager.d.ts +6 -0
  57. package/dist/features/session-memory/types.d.ts +1 -1
  58. package/dist/features/task-storage/generation.d.ts +13 -0
  59. package/dist/features/task-storage/index.d.ts +2 -1
  60. package/dist/features/task-storage/read-errors.d.ts +16 -0
  61. package/dist/features/task-storage/storage.d.ts +29 -1
  62. package/dist/features/task-storage/types.d.ts +1 -0
  63. package/dist/hooks/category-skill-reminder/formatter.d.ts +1 -1
  64. package/dist/hooks/category-skill-reminder/hook.d.ts +1 -1
  65. package/dist/hooks/keyword-detector/constants.d.ts +1 -1
  66. package/dist/hooks/keyword-detector/detector.d.ts +1 -1
  67. package/dist/hooks/keyword-detector/redpill/deepseek.d.ts +2 -0
  68. package/dist/hooks/keyword-detector/redpill/default.d.ts +2 -0
  69. package/dist/hooks/keyword-detector/redpill/gemini.d.ts +2 -0
  70. package/dist/hooks/keyword-detector/redpill/glm.d.ts +2 -0
  71. package/dist/hooks/keyword-detector/redpill/gpt5.2.d.ts +2 -0
  72. package/dist/hooks/keyword-detector/redpill/index.d.ts +26 -0
  73. package/dist/hooks/keyword-detector/redpill/manifesto.d.ts +17 -0
  74. package/dist/hooks/keyword-detector/redpill/mimo.d.ts +2 -0
  75. package/dist/hooks/keyword-detector/redpill/planner.d.ts +2 -0
  76. package/dist/hooks/keyword-detector/{ultrawork → redpill}/source-detector.d.ts +8 -8
  77. package/dist/hooks/matrix-loop/loop-state-controller.d.ts +1 -1
  78. package/dist/hooks/matrix-loop/matrix-loop-event-handler.d.ts +1 -0
  79. package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +1 -1
  80. package/dist/hooks/matrix-loop/types.d.ts +1 -1
  81. package/dist/hooks/niobe/event-handler.d.ts +14 -0
  82. package/dist/hooks/niobe/types.d.ts +1 -0
  83. package/dist/hooks/runtime-fallback/fallback-state.d.ts +6 -1
  84. package/dist/hooks/stop-continuation-guard/hook.d.ts +17 -0
  85. package/dist/hooks/stop-continuation-guard/index.d.ts +1 -0
  86. package/dist/hooks/stop-continuation-guard/stop-deadline.d.ts +27 -0
  87. package/dist/index.js +6125 -5903
  88. package/dist/matrixx.schema.json +47 -5
  89. package/dist/plugin/handlers/oracle-agent-config-builder.d.ts +2 -2
  90. package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
  91. package/dist/plugin/message-hooks/compress-watchdog.d.ts +36 -0
  92. package/dist/plugin/message-hooks/index.d.ts +2 -0
  93. package/dist/plugin/setup-domains/assemble.d.ts +2 -0
  94. package/dist/plugin/setup-domains/tools.d.ts +1 -1
  95. package/dist/plugin/setup-domains.d.ts +2 -0
  96. package/dist/plugin/tool/available-categories.d.ts +1 -1
  97. package/dist/plugin/tool/skill-context.d.ts +1 -1
  98. package/dist/plugin/tool/tool-catalog.d.ts +1 -1
  99. package/dist/shared/agent/agent-display-names.d.ts +1 -1
  100. package/dist/shared/policy/compress-watchdog.d.ts +86 -0
  101. package/dist/shared/runtime/delay.d.ts +1 -1
  102. package/dist/skills/builtin/core/index.d.ts +1 -1
  103. package/dist/tools/delegate-task/constants.d.ts +8 -1
  104. package/dist/tools/delegate-task/timing.d.ts +2 -0
  105. package/dist/tools/delegate-task/types.d.ts +1 -1
  106. package/dist/tools/task/types.d.ts +2 -0
  107. package/dist/tools.js +15 -2
  108. package/package.json +1 -1
  109. package/dist/features/background-agent/manager.bench.d.ts +0 -1
  110. package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +0 -1
  111. package/dist/features/builtin-commands/templates/ultrawork.d.ts +0 -1
  112. package/dist/features/ultrawork-state/index.d.ts +0 -1
  113. package/dist/features/ultrawork-state/manager.d.ts +0 -6
  114. package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +0 -16
  115. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +0 -6
  116. package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +0 -12
  117. package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +0 -11
  118. package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +0 -12
  119. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +0 -25
  120. package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +0 -16
  121. package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +0 -6
  122. /package/dist/agents/{mouse → definitions/mouse}/deepseek.d.ts +0 -0
  123. /package/dist/agents/{mouse → definitions/mouse}/default.d.ts +0 -0
  124. /package/dist/agents/{mouse → definitions/mouse}/gpt.d.ts +0 -0
  125. /package/dist/agents/{mouse → definitions/mouse}/index.d.ts +0 -0
  126. /package/dist/agents/{mouse → definitions/mouse}/mimo.d.ts +0 -0
  127. /package/dist/agents/{mouse → definitions/mouse}/qwen.d.ts +0 -0
  128. /package/dist/agents/{mouse → definitions/mouse}/shared.d.ts +0 -0
  129. /package/dist/agents/{niobe → definitions/niobe}/default.d.ts +0 -0
  130. /package/dist/agents/{niobe → definitions/niobe}/gpt.d.ts +0 -0
  131. /package/dist/agents/{oracle → definitions/oracle}/behavioral-summary.d.ts +0 -0
  132. /package/dist/agents/{oracle → definitions/oracle}/high-accuracy-mode.d.ts +0 -0
  133. /package/dist/agents/{oracle → definitions/oracle}/identity-constraints.d.ts +0 -0
  134. /package/dist/agents/{oracle → definitions/oracle}/index.d.ts +0 -0
  135. /package/dist/agents/{oracle → definitions/oracle}/interview-mode.d.ts +0 -0
  136. /package/dist/agents/{oracle → definitions/oracle}/plan-generation.d.ts +0 -0
  137. /package/dist/agents/{oracle → definitions/oracle}/plan-template.d.ts +0 -0
  138. /package/dist/agents/{builtin-agents → registry}/model-resolution.d.ts +0 -0
  139. /package/dist/agents/{builtin-agents → registry}/resolve-file-uri.d.ts +0 -0
  140. /package/dist/agents/{custom-agent-summaries.d.ts → shared/custom-agent-summaries.d.ts} +0 -0
  141. /package/dist/agents/{env-context.d.ts → shared/env-context.d.ts} +0 -0
  142. /package/dist/agents/{model-directives.d.ts → shared/model-directives.d.ts} +0 -0
  143. /package/dist/agents/{types.d.ts → shared/types.d.ts} +0 -0
  144. /package/dist/skills/builtin/core/{ulw-research.d.ts → rp-research.d.ts} +0 -0
package/README.md CHANGED
@@ -44,7 +44,7 @@ Morpheus → Plans the implementation
44
44
  | Fragile refactoring | **Deterministic tools** — LSP (goto-def, rename, diagnostics) + AST-Grep (structural search & replace) |
45
45
  | Secrets leak into commits | **Security by default** — secret scanning + env-file guards + read-only auditor |
46
46
 
47
- > Don't want to read docs? Just include `ultrawork` (or `ulw`) in your prompt. Parallel agents, deep exploration, relentless execution until completion.
47
+ > Don't want to read docs? Just include `redpill` (or `rp`) in your prompt. Parallel agents, deep exploration, relentless execution until completion.
48
48
 
49
49
  ---
50
50
 
@@ -58,10 +58,10 @@ Matrixx is a plugin for OpenCode. Install it, and OpenCode gains a 3-tier runtim
58
58
 
59
59
  ### Two ways to work
60
60
 
61
- **Ultrawork — for speed.** Add `ultrawork` to any prompt:
61
+ **Redpill — for speed.** Add `redpill` to any prompt:
62
62
 
63
63
  ```
64
- ulw add authentication to my Next.js app
64
+ rp add authentication to my Next.js app
65
65
  ```
66
66
 
67
67
  The agent explores your codebase, researches best practices, implements following your conventions, and verifies with diagnostics and tests. No planning ceremony.
@@ -76,7 +76,7 @@ Full workflows: [Overview](docs/guide/overview.md) · [Orchestration](docs/orche
76
76
 
77
77
  | Area | What you get | Details |
78
78
  |------|--------------|---------|
79
- | **Agent Orchestration** | 13 agents, category routing (`source`, `deep-jack`, …), session continuity, parallel background execution | [Agents](docs/agents.md) |
79
+ | **Agent Orchestration** | 13 agents, category routing (`source`, `rabbit-hole`, …), session continuity, parallel background execution | [Agents](docs/agents.md) |
80
80
  | **Developer Tools** | LSP, AST-Grep search & replace, tmux terminal, task tools, assembly (multi-model debate) | [Features](docs/features.md) |
81
81
  | **Lifecycle Hooks (65-enum)** | Context injection, think mode, task completion notifications, error recovery, quality gates, session recovery | [Hooks](docs/hooks.md) |
82
82
  | **Skills (70)** | DSL engineering (11), security (9), frontend (7), BDD (4 + pipeline), git, browser, TDD, research, AI-slop removal | [Skills](docs/category-skill-guide.md) |
@@ -154,7 +154,7 @@ Full setup, CI mode, troubleshooting, and uninstall: [Installation guide](docs/g
154
154
  **Trade-offs to know**
155
155
 
156
156
  - **OpenCode-only.** Matrixx is a plugin, not a standalone agent or IDE. You adopt OpenCode to use it.
157
- - **Learning curve.** 13 agents, 8 categories, 70 skills, 24 commands — `ultrawork` hides this well, but mastery takes time.
157
+ - **Learning curve.** 13 agents, 8 categories, 70 skills, 24 commands — `redpill` hides this well, but mastery takes time.
158
158
  - **Multiple providers help.** It runs on one provider, but the multi-model value shows with two or more connected (or the OpenCode free tier).
159
159
  - **Orchestration overhead.** Delegation costs extra tokens on trivial one-line tasks — use direct mode for those.
160
160
  - **Pinned toolchain.** Bun 1.4.4 and recent OpenCode are required; bleeding-edge OpenCode versions can break the plugin temporarily.
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const CIPHER_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createCipherAgent(model: string): AgentConfig;
5
5
  export declare namespace createCipherAgent {
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const CONSTRUCT_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createConstructAgent(model: string): AgentConfig;
5
5
  export declare namespace createConstructAgent {
@@ -0,0 +1,14 @@
1
+ export * from "./cipher";
2
+ export * from "./construct";
3
+ export * from "./keymaker";
4
+ export * from "./merovingian";
5
+ export * from "./morpheus";
6
+ export * from "./mouse";
7
+ export * from "./niobe";
8
+ export * from "./operator";
9
+ export * from "./oracle";
10
+ export * from "./sati";
11
+ export * from "./sentinel";
12
+ export * from "./seraph";
13
+ export * from "./smith";
14
+ export * from "./trinity";
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-builder";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
3
3
  export declare function createKeymakerAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[]): AgentConfig;
4
4
  export declare namespace createKeymakerAgent {
5
5
  var mode: "primary";
@@ -1,7 +1,7 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
+ export declare const MEROVINGIAN_PROMPT_METADATA: AgentPromptMetadata;
3
4
  export declare const ORACLE_PROMPT_METADATA: AgentPromptMetadata;
4
- export declare const ORACLE_PLAN_BUILDER_METADATA: AgentPromptMetadata;
5
5
  export declare function createMerovingianAgent(model: string): AgentConfig;
6
6
  export declare namespace createMerovingianAgent {
7
7
  var mode: "subagent";
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-builder";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
3
3
  export declare function createMorpheusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[]): AgentConfig;
4
4
  export declare namespace createMorpheusAgent {
5
5
  var mode: "primary";
@@ -11,8 +11,8 @@
11
11
  * 4. Qwen models (opencode-go/qwen-*) -> qwen.ts (Qwen-optimized)
12
12
  * 5. Default (Anthropic/Claude, etc.) -> default.ts (Claude-optimized)
13
13
  */
14
- import type { AgentOverrideConfig } from "../../config/schema";
15
- import { type AgentConfig } from "../agent-config";
14
+ import type { AgentOverrideConfig } from "../../../config/schema";
15
+ import { type AgentConfig } from "../../shared/agent-config";
16
16
  export declare const MOUSE_DEFAULTS: {
17
17
  readonly model: "<provider>/<model>";
18
18
  readonly temperature: 0.1;
@@ -8,10 +8,10 @@
8
8
  * 1. GPT models (openai/*, github-copilot/gpt-*) → gpt.ts (GPT-5.2 optimized)
9
9
  * 2. Default (Claude, etc.) → default.ts (Claude-optimized)
10
10
  */
11
- import type { CategoryConfig } from "../../config/schema";
12
- import { type AgentConfig } from "../agent-config";
13
- import type { AvailableAgent, AvailableSkill } from "../dynamic-agent-prompt-builder";
14
- import type { AgentPromptMetadata } from "../types";
11
+ import type { CategoryConfig } from "../../../config/schema";
12
+ import { type AgentConfig } from "../../shared/agent-config";
13
+ import type { AvailableAgent, AvailableSkill } from "../../shared/dynamic-agent-prompt-builder";
14
+ import type { AgentPromptMetadata } from "../../shared/types";
15
15
  export type NiobePromptSource = "default" | "gpt";
16
16
  /**
17
17
  * Determines which Niobe prompt to use based on model.
@@ -1,4 +1,4 @@
1
- export { isGptModel } from "../types";
1
+ export { isGptModel } from "../../shared/types";
2
2
  export type { NiobePromptSource, OrchestratorContext } from "./agent";
3
3
  export { createNiobeAgent, getNiobePrompt, getNiobePromptSource, niobePromptMetadata } from "./agent";
4
4
  export { getDefaultNiobePrompt, NIOBE_SYSTEM_PROMPT } from "./default";
@@ -4,8 +4,8 @@
4
4
  * Common functions for building dynamic prompt sections used by both
5
5
  * default (Claude-optimized) and GPT-optimized prompts.
6
6
  */
7
- import type { CategoryConfig } from "../../config/schema";
8
- import { type AvailableAgent, type AvailableSkill } from "../dynamic-agent-prompt-builder";
7
+ import type { CategoryConfig } from "../../../config/schema";
8
+ import { type AvailableAgent, type AvailableSkill } from "../../shared/dynamic-agent-prompt-builder";
9
9
  export declare const getCategoryDescription: (name: string, userCategories?: Record<string, CategoryConfig>) => string;
10
10
  export declare function buildAgentSelectionSection(agents: AvailableAgent[]): string;
11
11
  export declare function buildCategorySection(userCategories?: Record<string, CategoryConfig>): string;
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const OPERATOR_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createOperatorAgent(model: string): AgentConfig;
5
5
  export declare namespace createOperatorAgent {
@@ -1,4 +1,4 @@
1
- import type { PermissionRule } from "../../shared/agent/permission-compat";
1
+ import type { PermissionRule } from "../../../shared/agent/permission-compat";
2
2
  /**
3
3
  * Combined Oracle system prompt.
4
4
  * Assembled from modular sections for maintainability.
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const SATI_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createSatiAgent(model: string): AgentConfig;
5
5
  export declare namespace createSatiAgent {
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const SENTINEL_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createSentinelAgent(model: string): AgentConfig;
5
5
  export declare namespace createSentinelAgent {
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  /**
4
4
  * Seraph - Plan Consultant Agent
5
5
  *
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  /**
4
4
  * Smith - Plan Reviewer Agent
5
5
  *
@@ -1,5 +1,5 @@
1
- import { type AgentConfig } from "./agent-config";
2
- import type { AgentPromptMetadata } from "./types";
1
+ import { type AgentConfig } from "../shared/agent-config";
2
+ import type { AgentPromptMetadata } from "../shared/types";
3
3
  export declare const TRINITY_PROMPT_METADATA: AgentPromptMetadata;
4
4
  export declare function createTrinityAgent(model: string): AgentConfig;
5
5
  export declare namespace createTrinityAgent {
@@ -1,14 +1,14 @@
1
- export type { AgentTransformDomain, AgentTransformEditor, AgentTransformEntryFailure, AgentTransformInfo, RegisterAgentTransformInput, RegisterAgentTransformResult, } from "./agents.transform";
2
- export { applyAgentEntry, registerAgentTransform } from "./agents.transform";
3
- export { createBuiltinAgents } from "./builtin-agents";
4
- export { CONSTRUCT_PROMPT_METADATA, createConstructAgent } from "./construct";
5
- export type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-builder";
6
- export { createMerovingianAgent, ORACLE_PROMPT_METADATA } from "./merovingian";
7
- export { createMorpheusAgent } from "./morpheus";
8
- export { createNiobeAgent, niobePromptMetadata } from "./niobe";
9
- export { createOperatorAgent, OPERATOR_PROMPT_METADATA } from "./operator";
10
- export { ORACLE_BEHAVIORAL_SUMMARY, ORACLE_HIGH_ACCURACY_MODE, ORACLE_IDENTITY_CONSTRAINTS, ORACLE_INTERVIEW_MODE, ORACLE_PERMISSION, ORACLE_PLAN_GENERATION, ORACLE_PLAN_TEMPLATE, ORACLE_SYSTEM_PROMPT, } from "./oracle";
11
- export { createSeraphAgent, SERAPH_SYSTEM_PROMPT, seraphPromptMetadata } from "./seraph";
12
- export { createSmithAgent, SMITH_SYSTEM_PROMPT, smithPromptMetadata } from "./smith";
13
- export { createTrinityAgent, TRINITY_PROMPT_METADATA } from "./trinity";
14
- export * from "./types";
1
+ export { CONSTRUCT_PROMPT_METADATA, createConstructAgent } from "./definitions/construct";
2
+ export { createMerovingianAgent, MEROVINGIAN_PROMPT_METADATA, ORACLE_PROMPT_METADATA } from "./definitions/merovingian";
3
+ export { createMorpheusAgent } from "./definitions/morpheus";
4
+ export { createNiobeAgent, niobePromptMetadata } from "./definitions/niobe";
5
+ export { createOperatorAgent, OPERATOR_PROMPT_METADATA } from "./definitions/operator";
6
+ export { ORACLE_BEHAVIORAL_SUMMARY, ORACLE_HIGH_ACCURACY_MODE, ORACLE_IDENTITY_CONSTRAINTS, ORACLE_INTERVIEW_MODE, ORACLE_PERMISSION, ORACLE_PLAN_GENERATION, ORACLE_PLAN_TEMPLATE, ORACLE_SYSTEM_PROMPT, } from "./definitions/oracle";
7
+ export { createSeraphAgent, SERAPH_SYSTEM_PROMPT, seraphPromptMetadata } from "./definitions/seraph";
8
+ export { createSmithAgent, SMITH_SYSTEM_PROMPT, smithPromptMetadata } from "./definitions/smith";
9
+ export { createTrinityAgent, TRINITY_PROMPT_METADATA } from "./definitions/trinity";
10
+ export { createBuiltinAgents } from "./registry";
11
+ export type { AgentTransformDomain, AgentTransformEditor, AgentTransformEntryFailure, AgentTransformInfo, RegisterAgentTransformInput, RegisterAgentTransformResult, } from "./shared/agents.transform";
12
+ export { applyAgentEntry, registerAgentTransform } from "./shared/agents.transform";
13
+ export type { AvailableAgent, AvailableCategory, AvailableSkill } from "./shared/dynamic-agent-prompt-builder";
14
+ export * from "./shared/types";
@@ -1,6 +1,6 @@
1
1
  import type { CategoryConfig } from "../../config/schema";
2
- import { type AgentConfig } from "../agent-config";
3
- import type { AgentOverrideConfig } from "../types";
2
+ import { type AgentConfig } from "../shared/agent-config";
3
+ import type { AgentOverrideConfig } from "../shared/types";
4
4
  /**
5
5
  * Expands a category reference from an agent override into concrete config properties.
6
6
  * Category properties are applied unconditionally (overwriting factory defaults),
@@ -1,4 +1,4 @@
1
1
  import type { BrowserAutomationProvider } from "../../config/schema";
2
2
  import { type BuiltinSkill } from "../../skills";
3
- import type { AvailableSkill } from "../dynamic-agent-prompt-builder";
3
+ import type { AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
4
4
  export declare function buildAvailableSkills(discoveredSkills: BuiltinSkill[], browserProvider?: BrowserAutomationProvider, disabledSkills?: Set<string>, currentAgent?: string): AvailableSkill[];
@@ -1,9 +1,9 @@
1
1
  import type { BrowserAutomationProvider, CategoryConfig } from "../../config/schema";
2
- import type { AgentConfig } from "../agent-config";
3
- import type { AvailableAgent } from "../dynamic-agent-prompt-builder";
4
- import type { AgentOverrides, AgentPromptMetadata, BuiltinAgentName } from "../types";
2
+ import type { AgentConfig } from "../shared/agent-config";
3
+ import type { AvailableAgent } from "../shared/dynamic-agent-prompt-builder";
4
+ import type { AgentOverrides, AgentPromptMetadata, BuiltinAgentName } from "../shared/types";
5
5
  export declare function collectPendingBuiltinAgents(input: {
6
- agentSources: Partial<Record<BuiltinAgentName, import("../agent-builder").AgentSource>>;
6
+ agentSources: Partial<Record<BuiltinAgentName, import("../shared/agent-builder").AgentSource>>;
7
7
  agentMetadata: Partial<Record<BuiltinAgentName, AgentPromptMetadata>>;
8
8
  disabledAgents: string[];
9
9
  agentOverrides: AgentOverrides;
@@ -1,5 +1,5 @@
1
- import type { BrowserAutomationProvider, CategoriesConfig } from "../config/schema";
2
- import type { BuiltinSkill } from "../skills";
3
- import type { AgentConfig } from "./agent-config";
4
- import type { AgentOverrides } from "./types";
1
+ import type { BrowserAutomationProvider, CategoriesConfig } from "../../config/schema";
2
+ import type { BuiltinSkill } from "../../skills";
3
+ import type { AgentConfig } from "../shared/agent-config";
4
+ import type { AgentOverrides } from "../shared/types";
5
5
  export declare function createBuiltinAgents(disabledAgents?: string[], agentOverrides?: AgentOverrides, directory?: string, systemDefaultModel?: string, categories?: CategoriesConfig, discoveredSkills?: BuiltinSkill[], customAgentSummaries?: unknown, browserProvider?: BrowserAutomationProvider, uiSelectedModel?: string, disabledSkills?: Set<string>, globalModel?: string, availableToolNames?: string[]): Promise<Record<string, AgentConfig>>;
@@ -1,7 +1,7 @@
1
1
  import type { BrowserAutomationProvider, CategoryConfig } from "../../config/schema";
2
- import type { AgentConfig } from "../agent-config";
3
- import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../dynamic-agent-prompt-builder";
4
- import type { AgentOverrides } from "../types";
2
+ import type { AgentConfig } from "../shared/agent-config";
3
+ import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
4
+ import type { AgentOverrides } from "../shared/types";
5
5
  export declare function maybeCreateKeymakerConfig(input: {
6
6
  disabledAgents: string[];
7
7
  agentOverrides: AgentOverrides;
@@ -1,7 +1,7 @@
1
1
  import type { BrowserAutomationProvider, CategoriesConfig, CategoryConfig } from "../../config/schema";
2
- import type { AgentConfig } from "../agent-config";
3
- import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../dynamic-agent-prompt-builder";
4
- import type { AgentOverrides } from "../types";
2
+ import type { AgentConfig } from "../shared/agent-config";
3
+ import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
4
+ import type { AgentOverrides } from "../shared/types";
5
5
  export declare function maybeCreateMorpheusConfig(input: {
6
6
  disabledAgents: string[];
7
7
  agentOverrides: AgentOverrides;
@@ -1,7 +1,7 @@
1
1
  import type { BrowserAutomationProvider, CategoriesConfig, CategoryConfig } from "../../config/schema";
2
- import type { AgentConfig } from "../agent-config";
3
- import type { AvailableAgent, AvailableSkill } from "../dynamic-agent-prompt-builder";
4
- import type { AgentOverrides } from "../types";
2
+ import type { AgentConfig } from "../shared/agent-config";
3
+ import type { AvailableAgent, AvailableSkill } from "../shared/dynamic-agent-prompt-builder";
4
+ import type { AgentOverrides } from "../shared/types";
5
5
  export declare function maybeCreateNiobeConfig(input: {
6
6
  disabledAgents: string[];
7
7
  agentOverrides: AgentOverrides;
@@ -1,4 +1,4 @@
1
- import type { BrowserAutomationProvider, CategoriesConfig } from "../config/schema";
1
+ import type { BrowserAutomationProvider, CategoriesConfig } from "../../config/schema";
2
2
  import { type AgentConfig } from "./agent-config";
3
3
  import type { AgentFactory } from "./types";
4
4
  export type AgentSource = AgentFactory | AgentConfig;
@@ -7,9 +7,9 @@
7
7
  * `request`, and the model is a reference rather than a "provider/model" string.
8
8
  * Building that shape here keeps the translation out of the registration path.
9
9
  */
10
- import type { PermissionRule } from "../shared/agent/permission-compat";
11
- export type { PermissionEffect, PermissionRule } from "../shared/agent/permission-compat";
12
- export { rule } from "../shared/agent/permission-compat";
10
+ import type { PermissionRule } from "../../shared/agent/permission-compat";
11
+ export type { PermissionEffect, PermissionRule } from "../../shared/agent/permission-compat";
12
+ export { rule } from "../../shared/agent/permission-compat";
13
13
  /**
14
14
  * Agent mode determines UI model selection behavior:
15
15
  * - "primary": Respects user's UI-selected model (morpheus, niobe)
@@ -2,7 +2,7 @@
2
2
  * V2-native agent domain transform (D4).
3
3
  *
4
4
  * Owned by `src/agents/`: pure entry replay + single `ctx.agent.transform`
5
- * registration. `createBuiltinAgents` in `./builtin-agents` stays the (async,
5
+ * registration. `createBuiltinAgents` in `../registry` stays the (async,
6
6
  * IO-at-the-edge) composer that resolves models and overrides; this module
7
7
  * only folds already-built entries onto the domain, so repeated runs over the
8
8
  * same entries replay identically with no filesystem or network effects.
@@ -1,4 +1,4 @@
1
- import { type DcpCompressionMode } from "../shared/policy/dcp-guidance";
1
+ import { type DcpCompressionMode } from "../../shared/policy/dcp-guidance";
2
2
  import type { AgentPromptMetadata } from "./types";
3
3
  export interface AvailableAgent {
4
4
  name: string;
@@ -52,4 +52,4 @@ export declare function buildContextDisciplineSection(hasContextMode?: boolean,
52
52
  export declare function buildHeadroomSection(hasHeadroom?: boolean, dcpMode?: DcpCompressionMode, modelID?: string): string;
53
53
  export declare function buildCompactContextDisciplineSection(hasContextMode?: boolean, hasGrepGlob?: boolean, dcpMode?: DcpCompressionMode, modelID?: string): string;
54
54
  export declare function buildExploreDisciplineSection(hasContextMode?: boolean, hasHeadroom?: boolean, hasGrepGlob?: boolean, modelID?: string): string;
55
- export declare function buildUltraworkSection(agents: AvailableAgent[], categories: AvailableCategory[], skills: AvailableSkill[]): string;
55
+ export declare function buildRedpillSection(agents: AvailableAgent[], categories: AvailableCategory[], skills: AvailableSkill[]): string;
package/dist/cli.js CHANGED
@@ -5960,7 +5960,7 @@ var BuiltinSkillNameSchema = _enum([
5960
5960
  "quality-gate",
5961
5961
  "software-dev",
5962
5962
  "matrixx-self-config",
5963
- "ulw-research",
5963
+ "rp-research",
5964
5964
  "remove-ai-slops",
5965
5965
  "zeromq-core",
5966
5966
  "zeromq-sockets-patterns",
@@ -6118,12 +6118,12 @@ var CategoryConfigSchema = object({
6118
6118
  var BuiltinCategoryNameSchema = _enum([
6119
6119
  "construct",
6120
6120
  "source",
6121
- "deep-jack",
6122
- "matrix-bend",
6121
+ "rabbit-hole",
6122
+ "glitch",
6123
6123
  "bullet-time",
6124
6124
  "blue-pill",
6125
- "red-pill",
6126
- "broadcast"
6125
+ "the-one",
6126
+ "transmission"
6127
6127
  ]);
6128
6128
  var CategoriesConfigSchema = record(string2(), CategoryConfigSchema);
6129
6129
 
@@ -6131,17 +6131,17 @@ var CategoriesConfigSchema = record(string2(), CategoryConfigSchema);
6131
6131
  var BuiltinCommandNameSchema = _enum([
6132
6132
  "init-deep",
6133
6133
  "matrix-loop",
6134
- "ulw-loop",
6134
+ "rp-loop",
6135
6135
  "cancel-loop",
6136
6136
  "refactor",
6137
6137
  "start-work",
6138
6138
  "stop-continuation",
6139
6139
  "preset",
6140
- "end-ultrawork",
6140
+ "end-redpill",
6141
6141
  "handoff",
6142
6142
  "research",
6143
6143
  "assembly",
6144
- "ultrawork",
6144
+ "redpill",
6145
6145
  "bdd-pipeline",
6146
6146
  "plan-review",
6147
6147
  "quality-audit",
@@ -6310,6 +6310,12 @@ var DcpManualModeSchema = object({
6310
6310
  enabled: boolean2().optional(),
6311
6311
  automaticStrategies: boolean2().optional()
6312
6312
  });
6313
+ var DcpWatchdogSchema = object({
6314
+ enabled: boolean2().default(true),
6315
+ abovePercent: number2().min(1).max(95).default(25),
6316
+ targetPercent: number2().min(1).max(94).default(10),
6317
+ cooldownTurns: number2().int().min(1).default(2)
6318
+ });
6313
6319
  var DcpProfileDefinitionSchema = object({
6314
6320
  pruneNotification: _enum(["off", "minimal", "detailed"]).optional(),
6315
6321
  pruneNotificationType: _enum(["chat", "toast"]).optional(),
@@ -6338,6 +6344,12 @@ var DcpConfigSchema = object({
6338
6344
  maxMessages: 6,
6339
6345
  keepFirst: 2,
6340
6346
  keepLast: 3
6347
+ }),
6348
+ watchdog: DcpWatchdogSchema.default({
6349
+ enabled: true,
6350
+ abovePercent: 25,
6351
+ targetPercent: 10,
6352
+ cooldownTurns: 2
6341
6353
  })
6342
6354
  });
6343
6355
 
@@ -6494,6 +6506,7 @@ var HookNameEnum = _enum([
6494
6506
  "knowledge-hub-injector",
6495
6507
  "knowledge-hub-search-nudge",
6496
6508
  "dcp-nudge-sanitizer",
6509
+ "compress-watchdog",
6497
6510
  "nudge-loop-breaker",
6498
6511
  "task-notepad-writer",
6499
6512
  "session-memory",
@@ -6713,7 +6726,7 @@ var NotificationConfigSchema = object({
6713
6726
  injection_notices: InjectionNoticesConfigSchema.optional()
6714
6727
  });
6715
6728
 
6716
- // src/agents/oracle/high-accuracy-mode.ts
6729
+ // src/agents/definitions/oracle/high-accuracy-mode.ts
6717
6730
  var SMITH_MAX_REVIEW_ROUNDS = 8;
6718
6731
  function createOracleHighAccuracyMode(maxRounds = SMITH_MAX_REVIEW_ROUNDS) {
6719
6732
  return `# PHASE 3: PLAN GENERATION
@@ -60,7 +60,7 @@ export declare const BuiltinSkillNameSchema: z.ZodEnum<{
60
60
  "quality-gate": "quality-gate";
61
61
  "software-dev": "software-dev";
62
62
  "matrixx-self-config": "matrixx-self-config";
63
- "ulw-research": "ulw-research";
63
+ "rp-research": "rp-research";
64
64
  "remove-ai-slops": "remove-ai-slops";
65
65
  "zeromq-core": "zeromq-core";
66
66
  "zeromq-sockets-patterns": "zeromq-sockets-patterns";
@@ -28,12 +28,12 @@ export declare const CategoryConfigSchema: z.ZodObject<{
28
28
  export declare const BuiltinCategoryNameSchema: z.ZodEnum<{
29
29
  construct: "construct";
30
30
  source: "source";
31
- "deep-jack": "deep-jack";
32
- "matrix-bend": "matrix-bend";
31
+ "rabbit-hole": "rabbit-hole";
32
+ glitch: "glitch";
33
33
  "bullet-time": "bullet-time";
34
34
  "blue-pill": "blue-pill";
35
- "red-pill": "red-pill";
36
- broadcast: "broadcast";
35
+ "the-one": "the-one";
36
+ transmission: "transmission";
37
37
  }>;
38
38
  export declare const CategoriesConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39
39
  description: z.ZodOptional<z.ZodString>;
@@ -2,17 +2,17 @@ import { z } from "zod";
2
2
  export declare const BuiltinCommandNameSchema: z.ZodEnum<{
3
3
  "init-deep": "init-deep";
4
4
  "matrix-loop": "matrix-loop";
5
- "ulw-loop": "ulw-loop";
5
+ "rp-loop": "rp-loop";
6
6
  "cancel-loop": "cancel-loop";
7
7
  refactor: "refactor";
8
8
  "start-work": "start-work";
9
9
  "stop-continuation": "stop-continuation";
10
10
  preset: "preset";
11
- "end-ultrawork": "end-ultrawork";
11
+ "end-redpill": "end-redpill";
12
12
  handoff: "handoff";
13
13
  research: "research";
14
14
  assembly: "assembly";
15
- ultrawork: "ultrawork";
15
+ redpill: "redpill";
16
16
  "bdd-pipeline": "bdd-pipeline";
17
17
  "plan-review": "plan-review";
18
18
  "quality-audit": "quality-audit";
@@ -57,6 +57,13 @@ export declare const DcpManualModeSchema: z.ZodObject<{
57
57
  automaticStrategies: z.ZodOptional<z.ZodBoolean>;
58
58
  }, z.core.$strip>;
59
59
  export type DcpManualMode = z.infer<typeof DcpManualModeSchema>;
60
+ export declare const DcpWatchdogSchema: z.ZodObject<{
61
+ enabled: z.ZodDefault<z.ZodBoolean>;
62
+ abovePercent: z.ZodDefault<z.ZodNumber>;
63
+ targetPercent: z.ZodDefault<z.ZodNumber>;
64
+ cooldownTurns: z.ZodDefault<z.ZodNumber>;
65
+ }, z.core.$strip>;
66
+ export type DcpWatchdog = z.infer<typeof DcpWatchdogSchema>;
60
67
  export declare const DcpProfileDefinitionSchema: z.ZodObject<{
61
68
  pruneNotification: z.ZodOptional<z.ZodEnum<{
62
69
  off: "off";
@@ -363,5 +370,11 @@ export declare const DcpConfigSchema: z.ZodObject<{
363
370
  keepFirst: z.ZodDefault<z.ZodNumber>;
364
371
  keepLast: z.ZodDefault<z.ZodNumber>;
365
372
  }, z.core.$strip>>;
373
+ watchdog: z.ZodDefault<z.ZodObject<{
374
+ enabled: z.ZodDefault<z.ZodBoolean>;
375
+ abovePercent: z.ZodDefault<z.ZodNumber>;
376
+ targetPercent: z.ZodDefault<z.ZodNumber>;
377
+ cooldownTurns: z.ZodDefault<z.ZodNumber>;
378
+ }, z.core.$strip>>;
366
379
  }, z.core.$strip>;
367
380
  export type DcpConfig = z.infer<typeof DcpConfigSchema>;
@@ -61,6 +61,7 @@ export declare const HookNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
61
61
  "knowledge-hub-injector": "knowledge-hub-injector";
62
62
  "knowledge-hub-search-nudge": "knowledge-hub-search-nudge";
63
63
  "dcp-nudge-sanitizer": "dcp-nudge-sanitizer";
64
+ "compress-watchdog": "compress-watchdog";
64
65
  "nudge-loop-breaker": "nudge-loop-breaker";
65
66
  "task-notepad-writer": "task-notepad-writer";
66
67
  "session-memory": "session-memory";
@@ -78,7 +78,7 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
78
78
  "quality-gate": "quality-gate";
79
79
  "software-dev": "software-dev";
80
80
  "matrixx-self-config": "matrixx-self-config";
81
- "ulw-research": "ulw-research";
81
+ "rp-research": "rp-research";
82
82
  "remove-ai-slops": "remove-ai-slops";
83
83
  "zeromq-core": "zeromq-core";
84
84
  "zeromq-sockets-patterns": "zeromq-sockets-patterns";
@@ -166,6 +166,7 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
166
166
  "knowledge-hub-injector": "knowledge-hub-injector";
167
167
  "knowledge-hub-search-nudge": "knowledge-hub-search-nudge";
168
168
  "dcp-nudge-sanitizer": "dcp-nudge-sanitizer";
169
+ "compress-watchdog": "compress-watchdog";
169
170
  "nudge-loop-breaker": "nudge-loop-breaker";
170
171
  "task-notepad-writer": "task-notepad-writer";
171
172
  "session-memory": "session-memory";
@@ -174,17 +175,17 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
174
175
  disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
175
176
  "init-deep": "init-deep";
176
177
  "matrix-loop": "matrix-loop";
177
- "ulw-loop": "ulw-loop";
178
+ "rp-loop": "rp-loop";
178
179
  "cancel-loop": "cancel-loop";
179
180
  refactor: "refactor";
180
181
  "start-work": "start-work";
181
182
  "stop-continuation": "stop-continuation";
182
183
  preset: "preset";
183
- "end-ultrawork": "end-ultrawork";
184
+ "end-redpill": "end-redpill";
184
185
  handoff: "handoff";
185
186
  research: "research";
186
187
  assembly: "assembly";
187
- ultrawork: "ultrawork";
188
+ redpill: "redpill";
188
189
  "bdd-pipeline": "bdd-pipeline";
189
190
  "plan-review": "plan-review";
190
191
  "quality-audit": "quality-audit";
@@ -927,6 +928,12 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
927
928
  keepFirst: z.ZodDefault<z.ZodNumber>;
928
929
  keepLast: z.ZodDefault<z.ZodNumber>;
929
930
  }, z.core.$strip>>;
931
+ watchdog: z.ZodDefault<z.ZodObject<{
932
+ enabled: z.ZodDefault<z.ZodBoolean>;
933
+ abovePercent: z.ZodDefault<z.ZodNumber>;
934
+ targetPercent: z.ZodDefault<z.ZodNumber>;
935
+ cooldownTurns: z.ZodDefault<z.ZodNumber>;
936
+ }, z.core.$strip>>;
930
937
  }, z.core.$strip>>;
931
938
  auto_update: z.ZodOptional<z.ZodBoolean>;
932
939
  skills: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{