opencode-matrixx 1.0.3 → 1.1.0
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/README.md +49 -7
- package/dist/agents/architect/default.d.ts +1 -1
- package/dist/agents/architect/gpt.d.ts +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/mouse/agent.d.ts +1 -1
- package/dist/agents/oracle/behavioral-summary.d.ts +1 -1
- package/dist/agents/oracle/high-accuracy-mode.d.ts +1 -1
- package/dist/agents/oracle/identity-constraints.d.ts +1 -1
- package/dist/agents/oracle/interview-mode.d.ts +1 -1
- package/dist/agents/oracle/plan-generation.d.ts +1 -1
- package/dist/agents/oracle/plan-template.d.ts +1 -1
- package/dist/agents/oracle/system-prompt.d.ts +1 -1
- package/dist/agents/smith.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/zion.d.ts +7 -0
- package/dist/cli/index.js +706 -166
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema/agent-definitions.d.ts +4 -0
- package/dist/config/schema/agent-names.d.ts +7 -0
- package/dist/config/schema/categories.d.ts +2 -0
- package/dist/config/schema/hooks.d.ts +6 -0
- package/dist/config/schema/matrixx-config.d.ts +30 -0
- package/dist/config/schema/model-capabilities.d.ts +8 -0
- package/dist/config/schema/runtime-fallback.d.ts +10 -0
- package/dist/config/schema/tdd-enforcer.d.ts +5 -0
- package/dist/config/schema.d.ts +4 -0
- package/dist/create-hooks.d.ts +6 -0
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
- package/dist/features/builtin-commands/templates/pickup.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/builtin-skills/skills/crypto-market-analysis.d.ts +4 -0
- package/dist/features/builtin-skills/skills/crypto-onchain.d.ts +4 -0
- package/dist/features/builtin-skills/skills/crypto-trading.d.ts +4 -0
- package/dist/features/builtin-skills/skills/index.d.ts +5 -0
- package/dist/features/builtin-skills/skills/review-work.d.ts +4 -0
- package/dist/features/builtin-skills/skills/tdd-enforcer.d.ts +4 -0
- package/dist/features/mission-state/constants.d.ts +4 -4
- package/dist/features/mission-state/storage.d.ts +1 -1
- package/dist/features/run-continuation-state/constants.d.ts +1 -0
- package/dist/features/run-continuation-state/index.d.ts +3 -0
- package/dist/features/run-continuation-state/storage.d.ts +6 -0
- package/dist/features/run-continuation-state/types.d.ts +12 -0
- package/dist/features/team-mode/index.d.ts +2 -0
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +1 -0
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +15 -0
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +3 -0
- package/dist/features/team-mode/team-worktree/index.d.ts +2 -0
- package/dist/features/team-mode/team-worktree/manager.d.ts +15 -0
- package/dist/features/team-mode/types.d.ts +210 -0
- package/dist/hooks/handoff-injector/constants.d.ts +2 -2
- package/dist/hooks/hashline-edit-diff-enhancer/hook.d.ts +28 -0
- package/dist/hooks/hashline-edit-diff-enhancer/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +1 -1
- package/dist/hooks/matrix-loop/constants.d.ts +1 -1
- package/dist/hooks/mouse-notepad/constants.d.ts +1 -1
- package/dist/hooks/preemptive-compaction-degradation-monitor.d.ts +55 -0
- package/dist/hooks/preemptive-compaction-no-text-tail.d.ts +18 -0
- package/dist/hooks/preemptive-compaction-trigger.d.ts +13 -0
- package/dist/hooks/preemptive-compaction-types.d.ts +53 -0
- package/dist/hooks/preemptive-compaction.d.ts +5 -13
- package/dist/hooks/prometheus-md-only/constants.d.ts +1 -1
- package/dist/hooks/prometheus-md-only/path-policy.d.ts +3 -3
- package/dist/hooks/read-image-resizer/hook.d.ts +12 -0
- package/dist/hooks/read-image-resizer/image-dimensions.d.ts +2 -0
- package/dist/hooks/read-image-resizer/image-resizer.d.ts +5 -0
- package/dist/hooks/read-image-resizer/index.d.ts +1 -0
- package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
- package/dist/hooks/read-image-resizer/types.d.ts +14 -0
- package/dist/hooks/runtime-fallback/agent-resolver.d.ts +6 -0
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +4 -0
- package/dist/hooks/runtime-fallback/auto-retry.d.ts +10 -0
- package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +20 -0
- package/dist/hooks/runtime-fallback/constants.d.ts +4 -0
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +13 -0
- package/dist/hooks/runtime-fallback/event-handler.d.ts +8 -0
- package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -0
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +6 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +2 -0
- package/dist/hooks/runtime-fallback/index.d.ts +3 -0
- package/dist/hooks/runtime-fallback/is-abort-error.d.ts +1 -0
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +4 -0
- package/dist/hooks/runtime-fallback/model-utils.d.ts +7 -0
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +11 -0
- package/dist/hooks/runtime-fallback/retry-status-utils.d.ts +2 -0
- package/dist/hooks/runtime-fallback/session-category-registry.d.ts +6 -0
- package/dist/hooks/runtime-fallback/session-messages.d.ts +9 -0
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
- package/dist/hooks/runtime-fallback/types.d.ts +113 -0
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
- package/dist/hooks/shared/compaction-model-resolver.d.ts +5 -0
- package/dist/hooks/todo-description-override/description.d.ts +1 -0
- package/dist/hooks/todo-description-override/hook.d.ts +8 -0
- package/dist/hooks/todo-description-override/index.d.ts +1 -0
- package/dist/hooks/tool-pair-validator/hook.d.ts +28 -0
- package/dist/hooks/tool-pair-validator/index.d.ts +1 -0
- package/dist/hooks/webfetch-redirect-guard/constants.d.ts +6 -0
- package/dist/hooks/webfetch-redirect-guard/hook.d.ts +19 -0
- package/dist/hooks/webfetch-redirect-guard/index.d.ts +1 -0
- package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +16 -0
- package/dist/index.js +5562 -792
- package/dist/plugin/hooks/create-core-hooks.d.ts +6 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +5 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin/tool-definition.d.ts +9 -0
- package/dist/shared/context-limit-resolver.d.ts +5 -0
- package/dist/shared/session-model-state.d.ts +7 -0
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -0
- package/dist/tools/ast-grep/pattern-hints.d.ts +4 -0
- package/dist/tools/ast-grep/tool-descriptions.d.ts +3 -0
- package/dist/tools/delegate-task/constants.d.ts +2 -3
- package/dist/tools/delegate-task/prompt-builder.d.ts +1 -0
- package/package.json +10 -10
|
@@ -10,6 +10,7 @@ export declare function createCoreHooks(args: {
|
|
|
10
10
|
keywordDetector: ReturnType<typeof import("../../hooks").createKeywordDetectorHook> | null;
|
|
11
11
|
contextInjectorMessagesTransform: ReturnType<typeof import("../../features/context-injector").createContextInjectorMessagesTransformHook>;
|
|
12
12
|
thinkingBlockValidator: ReturnType<typeof import("../../hooks").createThinkingBlockValidatorHook> | null;
|
|
13
|
+
toolPairValidator: ReturnType<typeof import("../../hooks").createToolPairValidatorHook> | null;
|
|
13
14
|
commentChecker: ReturnType<typeof import("../../hooks").createCommentCheckerHooks> | null;
|
|
14
15
|
toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
|
|
15
16
|
directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
|
|
@@ -23,6 +24,10 @@ export declare function createCoreHooks(args: {
|
|
|
23
24
|
envFileWriteGuard: ReturnType<typeof import("../../hooks").createEnvFileWriteGuardHook> | null;
|
|
24
25
|
jsonErrorRecovery: ReturnType<typeof import("../../hooks").createJsonErrorRecoveryHook> | null;
|
|
25
26
|
bashFileReadGuard: ReturnType<typeof import("../../hooks").createBashFileReadGuardHook> | null;
|
|
27
|
+
todoDescriptionOverride: ReturnType<typeof import("../../hooks").createTodoDescriptionOverrideHook> | null;
|
|
28
|
+
readImageResizer: ReturnType<typeof import("../../hooks").createReadImageResizerHook> | null;
|
|
29
|
+
webfetchRedirectGuard: ReturnType<typeof import("../../hooks").createWebFetchRedirectGuardHook> | null;
|
|
30
|
+
hashlineEditDiffEnhancer: ReturnType<typeof import("../../hooks").createHashlineEditDiffEnhancerHook> | null;
|
|
26
31
|
contextWindowMonitor: ReturnType<typeof import("../../hooks").createContextWindowMonitorHook> | null;
|
|
27
32
|
preemptiveCompaction: ReturnType<typeof import("../../hooks").createPreemptiveCompactionHook> | null;
|
|
28
33
|
sessionRecovery: ReturnType<typeof import("../../hooks").createSessionRecoveryHook> | null;
|
|
@@ -42,4 +47,5 @@ export declare function createCoreHooks(args: {
|
|
|
42
47
|
questionLabelTruncator: ReturnType<typeof import("../../hooks").createQuestionLabelTruncatorHook>;
|
|
43
48
|
taskResumeInfo: ReturnType<typeof import("../../hooks").createTaskResumeInfoHook>;
|
|
44
49
|
anthropicEffort: ReturnType<typeof import("../../hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
50
|
+
runtimeFallback: ReturnType<typeof import("../../hooks").createRuntimeFallbackHook> | null;
|
|
45
51
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MatrixxConfig, HookName } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
|
-
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createMatrixLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createOracleMdOnlyHook, createMouseNotepadHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook } from "../../hooks";
|
|
3
|
+
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createMatrixLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createOracleMdOnlyHook, createMouseNotepadHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
4
4
|
import { createAnthropicEffortHook } from "../../hooks/anthropic-effort";
|
|
5
5
|
export type SessionHooks = {
|
|
6
6
|
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null;
|
|
@@ -22,6 +22,7 @@ export type SessionHooks = {
|
|
|
22
22
|
questionLabelTruncator: ReturnType<typeof createQuestionLabelTruncatorHook>;
|
|
23
23
|
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook>;
|
|
24
24
|
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null;
|
|
25
|
+
runtimeFallback: ReturnType<typeof createRuntimeFallbackHook> | null;
|
|
25
26
|
};
|
|
26
27
|
export declare function createSessionHooks(args: {
|
|
27
28
|
ctx: PluginContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
|
-
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createSecretLeakGuardHook, createEnvFileWriteGuardHook, createJsonErrorRecoveryHook, createBashFileReadGuardHook } from "../../hooks";
|
|
3
|
+
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createSecretLeakGuardHook, createEnvFileWriteGuardHook, createJsonErrorRecoveryHook, createBashFileReadGuardHook, createTodoDescriptionOverrideHook, createReadImageResizerHook, createWebFetchRedirectGuardHook, createHashlineEditDiffEnhancerHook } from "../../hooks";
|
|
4
4
|
export type ToolGuardHooks = {
|
|
5
5
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
6
6
|
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
@@ -15,6 +15,10 @@ export type ToolGuardHooks = {
|
|
|
15
15
|
envFileWriteGuard: ReturnType<typeof createEnvFileWriteGuardHook> | null;
|
|
16
16
|
jsonErrorRecovery: ReturnType<typeof createJsonErrorRecoveryHook> | null;
|
|
17
17
|
bashFileReadGuard: ReturnType<typeof createBashFileReadGuardHook> | null;
|
|
18
|
+
todoDescriptionOverride: ReturnType<typeof createTodoDescriptionOverrideHook> | null;
|
|
19
|
+
readImageResizer: ReturnType<typeof createReadImageResizerHook> | null;
|
|
20
|
+
webfetchRedirectGuard: ReturnType<typeof createWebFetchRedirectGuardHook> | null;
|
|
21
|
+
hashlineEditDiffEnhancer: ReturnType<typeof createHashlineEditDiffEnhancerHook> | null;
|
|
18
22
|
};
|
|
19
23
|
export declare function createToolGuardHooks(args: {
|
|
20
24
|
ctx: PluginContext;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
|
-
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook } from "../../hooks";
|
|
3
|
+
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook, createToolPairValidatorHook } from "../../hooks";
|
|
4
4
|
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
5
5
|
export type TransformHooks = {
|
|
6
6
|
claudeCodeHooks: ReturnType<typeof createClaudeCodeHooksHook>;
|
|
7
7
|
keywordDetector: ReturnType<typeof createKeywordDetectorHook> | null;
|
|
8
8
|
contextInjectorMessagesTransform: ReturnType<typeof createContextInjectorMessagesTransformHook>;
|
|
9
9
|
thinkingBlockValidator: ReturnType<typeof createThinkingBlockValidatorHook> | null;
|
|
10
|
+
toolPairValidator: ReturnType<typeof createToolPairValidatorHook> | null;
|
|
10
11
|
};
|
|
11
12
|
export declare function createTransformHooks(args: {
|
|
12
13
|
ctx: PluginContext;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ContextLimitModelCacheState = {
|
|
2
|
+
anthropicContext1MEnabled: boolean;
|
|
3
|
+
modelContextLimitsCache?: Map<string, number>;
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveActualContextLimit(providerID: string, modelID: string, modelCacheState?: ContextLimitModelCacheState): number | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type SessionModel = {
|
|
2
|
+
providerID: string;
|
|
3
|
+
modelID: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function setSessionModel(sessionID: string, model: SessionModel): void;
|
|
6
|
+
export declare function getSessionModel(sessionID: string): SessionModel | undefined;
|
|
7
|
+
export declare function clearSessionModel(sessionID: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { spawn } from "bun";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CliLanguage } from "./types";
|
|
2
|
+
export declare function detectRegexMisuse(pattern: string): string | null;
|
|
3
|
+
export declare function detectLanguageSpecificMistake(pattern: string, lang: CliLanguage): string | null;
|
|
4
|
+
export declare function getPatternHint(pattern: string, lang: CliLanguage): string | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const AST_GREP_SEARCH_DESCRIPTION: string;
|
|
2
|
+
export declare const AST_GREP_SEARCH_PATTERN_PARAM = "AST pattern - valid, parseable code using $VAR (one node) and $$$ (many nodes). NOT regex: no `|`, no `.*`, no `\\w`, no `[a-z]`. For text or alternation, use grep instead.";
|
|
3
|
+
export declare const AST_GREP_REPLACE_DESCRIPTION: string;
|
|
@@ -3,12 +3,11 @@ import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-age
|
|
|
3
3
|
export declare const VISUAL_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on VISUAL/UI tasks.\n\nDesign-first mindset:\n- Bold aesthetic choices over safe defaults\n- Unexpected layouts, asymmetry, grid-breaking elements\n- Distinctive typography (avoid: Arial, Inter, Roboto, Space Grotesk)\n- Cohesive color palettes with sharp accents\n- High-impact animations with staggered reveals\n- Atmosphere: gradient meshes, noise textures, layered transparencies\n\nAVOID: Generic fonts, purple gradients on white, predictable layouts, cookie-cutter patterns.\n</Category_Context>";
|
|
4
4
|
export declare const SOURCE_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on DEEP LOGICAL REASONING / COMPLEX ARCHITECTURE tasks.\n\n**CRITICAL - CODE STYLE REQUIREMENTS (NON-NEGOTIABLE)**:\n1. BEFORE writing ANY code, SEARCH the existing codebase to find similar patterns/styles\n2. Your code MUST match the project's existing conventions - blend in seamlessly\n3. Write READABLE code that humans can easily understand - no clever tricks\n4. If unsure about style, explore more files until you find the pattern\n\nStrategic advisor mindset:\n- Bias toward simplicity: least complex solution that fulfills requirements\n- Leverage existing code/patterns over new components\n- Prioritize developer experience and maintainability\n- One clear recommendation with effort estimate (Quick/Short/Medium/Large)\n- Signal when advanced approach warranted\n\nResponse format:\n- Bottom line (2-3 sentences)\n- Action plan (numbered steps)\n- Risks and mitigations (if relevant)\n</Category_Context>";
|
|
5
5
|
export declare const MATRIX_BEND_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on HIGHLY CREATIVE / ARTISTIC tasks.\n\nArtistic genius mindset:\n- Push far beyond conventional boundaries\n- Explore radical, unconventional directions\n- Surprise and delight: unexpected twists, novel combinations\n- Rich detail and vivid expression\n- Break patterns deliberately when it serves the creative vision\n\nApproach:\n- Generate diverse, bold options first\n- Embrace ambiguity and wild experimentation\n- Balance novelty with coherence\n- This is for tasks requiring exceptional creativity\n</Category_Context>";
|
|
6
|
-
export declare const QUICK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on SMALL / QUICK tasks.\n\nEfficient execution mindset:\n- Fast, focused, minimal overhead\n- Get to the point immediately\n- No over-engineering\n- Simple solutions for simple problems\n\nApproach:\n- Minimal viable implementation\n- Skip unnecessary abstractions\n- Direct and concise\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A LESS CAPABLE MODEL (
|
|
7
|
-
export declare const UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require moderate effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), construct (UI), source (deep logic), matrix-bend (creative), writing (docs)\n2. Task requires more than trivial effort but is NOT system-wide\n3. Scope is contained within a few files/modules\n\nIf task fits ANY other category, DO NOT select blue-pill.\nThis is NOT a default choice - it's for genuinely unclassifiable moderate-effort work.\n</Selection_Gate>\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A MID-TIER MODEL (claude-sonnet-4-
|
|
6
|
+
export declare const QUICK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on SMALL / QUICK tasks.\n\nEfficient execution mindset:\n- Fast, focused, minimal overhead\n- Get to the point immediately\n- No over-engineering\n- Simple solutions for simple problems\n\nApproach:\n- Minimal viable implementation\n- Skip unnecessary abstractions\n- Direct and concise\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A LESS CAPABLE MODEL (claude-haiku-4-5).\n\nThe model executing this task has LIMITED reasoning capacity. Your prompt MUST be:\n\n**EXHAUSTIVELY EXPLICIT** - Leave NOTHING to interpretation:\n1. MUST DO: List every required action as atomic, numbered steps\n2. MUST NOT DO: Explicitly forbid likely mistakes and deviations\n3. EXPECTED OUTPUT: Describe exact success criteria with concrete examples\n\n**WHY THIS MATTERS:**\n- Less capable models WILL deviate without explicit guardrails\n- Vague instructions \u2192 unpredictable results\n- Implicit expectations \u2192 missed requirements\n\n**PROMPT STRUCTURE (MANDATORY):**\n```\nTASK: [One-sentence goal]\n\nMUST DO:\n1. [Specific action with exact details]\n2. [Another specific action]\n...\n\nMUST NOT DO:\n- [Forbidden action + why]\n- [Another forbidden action]\n...\n\nEXPECTED OUTPUT:\n- [Exact deliverable description]\n- [Success criteria / verification method]\n```\n\nIf your prompt lacks this structure, REWRITE IT before delegating.\n</Caller_Warning>";
|
|
7
|
+
export declare const UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require moderate effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), construct (UI), source (deep logic), matrix-bend (creative), writing (docs)\n2. Task requires more than trivial effort but is NOT system-wide\n3. Scope is contained within a few files/modules\n\nIf task fits ANY other category, DO NOT select blue-pill.\nThis is NOT a default choice - it's for genuinely unclassifiable moderate-effort work.\n</Selection_Gate>\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A MID-TIER MODEL (claude-sonnet-4-6).\n\n**PROVIDE CLEAR STRUCTURE:**\n1. MUST DO: Enumerate required actions explicitly\n2. MUST NOT DO: State forbidden actions to prevent scope creep\n3. EXPECTED OUTPUT: Define concrete success criteria\n</Caller_Warning>";
|
|
8
8
|
export declare const UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require substantial effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), construct (UI), source (deep logic), matrix-bend (creative), writing (docs)\n2. Task requires substantial effort across multiple systems/modules\n3. Changes have broad impact or require careful coordination\n4. NOT just \"complex\" - must be genuinely unclassifiable AND high-effort\n\nIf task fits ANY other category, DO NOT select red-pill.\nIf task is unclassifiable but moderate-effort, use blue-pill instead.\n</Selection_Gate>\n</Category_Context>";
|
|
9
9
|
export declare const WRITING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on WRITING / PROSE tasks.\n\nWordsmith mindset:\n- Clear, flowing prose\n- Appropriate tone and voice\n- Engaging and readable\n- Proper structure and organization\n\nApproach:\n- Understand the audience\n- Draft with care\n- Polish for clarity and impact\n- Documentation, READMEs, articles, technical writing\n\nANTI-AI-SLOP RULES (NON-NEGOTIABLE):\n- NEVER use em dashes (\u2014) or en dashes (\u2013). Use commas, periods, ellipses, or line breaks instead. Zero tolerance.\n- Remove AI-sounding phrases: \"delve\", \"it's important to note\", \"I'd be happy to\", \"certainly\", \"please don't hesitate\", \"leverage\", \"utilize\", \"in order to\", \"moving forward\", \"circle back\", \"at the end of the day\", \"robust\", \"streamline\", \"facilitate\"\n- Pick plain words. \"Use\" not \"utilize\". \"Start\" not \"commence\". \"Help\" not \"facilitate\".\n- Use contractions naturally: \"don't\" not \"do not\", \"it's\" not \"it is\".\n- Vary sentence length. Don't make every sentence the same length.\n- NEVER start consecutive sentences with the same word.\n- No filler openings: skip \"In today's world...\", \"As we all know...\", \"It goes without saying...\"\n- Write like a human, not a corporate template.\n</Category_Context>";
|
|
10
10
|
export declare const DEEP_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on GOAL-ORIENTED AUTONOMOUS tasks.\n\n**CRITICAL - AUTONOMOUS EXECUTION MINDSET (NON-NEGOTIABLE)**:\nYou are NOT an interactive assistant. You are an autonomous problem-solver.\n\n**BEFORE making ANY changes**:\n1. SILENTLY explore the codebase extensively (5-15 minutes of reading is normal)\n2. Read related files, trace dependencies, understand the full context\n3. Build a complete mental model of the problem space\n4. DO NOT ask clarifying questions - the goal is already defined\n\n**Autonomous executor mindset**:\n- You receive a GOAL, not step-by-step instructions\n- Figure out HOW to achieve the goal yourself\n- Thorough research before any action\n- Fix hairy problems that require deep understanding\n- Work independently without frequent check-ins\n\n**Approach**:\n- Explore extensively, understand deeply, then act decisively\n- Prefer comprehensive solutions over quick patches\n- If the goal is unclear, make reasonable assumptions and proceed\n- Document your reasoning in code comments only when non-obvious\n\n**Response format**:\n- Minimal status updates (user trusts your autonomy)\n- Focus on results, not play-by-play progress\n- Report completion with summary of changes made\n</Category_Context>";
|
|
11
|
-
export declare const DSL_ENGINEERING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on DSL (Domain-Specific Language) ENGINEERING tasks.\n\nDSL engineering mindset:\n- FORMAL GRAMMAR FIRST: Always define BNF/EBNF/PEG grammar before implementation\n- Sound type systems: Every DSL needs well-defined types, even if minimal\n- Composability: Language constructs must compose \u2014 avoid monolithic designs\n- Error reporting: User-friendly errors with location, expectation, and suggestions\n- Incremental parsing: Design for IDE integration from day one\n\nFramework knowledge:\n- Primary: textX, PyEcore, ANTLR4\n- Secondary: Tree-sitter, Langium, Chevrotain\n- Both external DSLs (custom syntax) and internal DSLs (fluent APIs)\n\nSub-specializations to apply as needed:\n1. Grammar Architect: Formal grammar design, disambiguation, composition\n2. Semantic Analyst: Type systems, scope analysis, constraint checking\n3. Toolsmith: IDE/LSP, tree-sitter grammars, formatters\n4. Code Generator: Transpilers, model-to-text, multi-target generation\n5. Metamodel Designer: textX/PyEcore metamodeling, model transformations\n\nApproach:\n- Grammar is the specification; implementation follows specification\n- Produce runnable code and complete grammars, not theoretical overviews\n- Include error recovery in all parser implementations\n- Consider tree-sitter compatibility in grammar design decisions\n</Category_Context>";
|
|
12
11
|
export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
|
|
13
12
|
export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
|
|
14
13
|
export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
|
|
@@ -4,3 +4,4 @@ import type { BuildSystemContentInput } from "./types";
|
|
|
4
4
|
* Combines skill content, category prompt append, and plan agent system prepend.
|
|
5
5
|
*/
|
|
6
6
|
export declare function buildSystemContent(input: BuildSystemContentInput): string | undefined;
|
|
7
|
+
export declare function buildTaskPrompt(prompt: string, skillContent?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-matrixx",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@clack/prompts": "^0.11.0",
|
|
70
70
|
"@code-yeongyu/comment-checker": "^0.6.1",
|
|
71
71
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
72
|
-
"@opencode-ai/plugin": "
|
|
73
|
-
"@opencode-ai/sdk": "
|
|
72
|
+
"@opencode-ai/plugin": "1.3.15",
|
|
73
|
+
"@opencode-ai/sdk": "1.3.15",
|
|
74
74
|
"commander": "^14.0.2",
|
|
75
75
|
"detect-libc": "^2.0.0",
|
|
76
76
|
"js-yaml": "^4.1.1",
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
"typescript": "^5.7.3"
|
|
89
89
|
},
|
|
90
90
|
"optionalDependencies": {
|
|
91
|
-
"opencode-matrixx-darwin-arm64": "1.0
|
|
92
|
-
"opencode-matrixx-darwin-x64": "1.0
|
|
93
|
-
"opencode-matrixx-linux-arm64": "1.0
|
|
94
|
-
"opencode-matrixx-linux-arm64-musl": "1.0
|
|
95
|
-
"opencode-matrixx-linux-x64": "1.0
|
|
96
|
-
"opencode-matrixx-linux-x64-musl": "1.0
|
|
97
|
-
"opencode-matrixx-windows-x64": "1.0
|
|
91
|
+
"opencode-matrixx-darwin-arm64": "1.1.0",
|
|
92
|
+
"opencode-matrixx-darwin-x64": "1.1.0",
|
|
93
|
+
"opencode-matrixx-linux-arm64": "1.1.0",
|
|
94
|
+
"opencode-matrixx-linux-arm64-musl": "1.1.0",
|
|
95
|
+
"opencode-matrixx-linux-x64": "1.1.0",
|
|
96
|
+
"opencode-matrixx-linux-x64-musl": "1.1.0",
|
|
97
|
+
"opencode-matrixx-windows-x64": "1.1.0"
|
|
98
98
|
},
|
|
99
99
|
"trustedDependencies": [
|
|
100
100
|
"@ast-grep/cli",
|