oh-my-opencode-serverlocal 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/dist/index.js +56 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19022,7 +19022,7 @@ var AGENT_DESCRIPTIONS = {
|
|
|
19022
19022
|
- Role: Your strict supervisor and senior reviewer.
|
|
19023
19023
|
- Permissions: read_files
|
|
19024
19024
|
- Capabilities: Deep architectural reasoning, system-level trade-offs, logic bugs, edge cases, simplification.
|
|
19025
|
-
- **Delegate when:**
|
|
19025
|
+
- **Delegate when:** Planning reviews, final implementation reviews, high-risk refactors, logical error spotting. Oracle finds what you miss.`,
|
|
19026
19026
|
designer: `@designer
|
|
19027
19027
|
- Lane: UI/UX perfection, design systems, visual execution.
|
|
19028
19028
|
- Permissions: read_files, write_files
|
|
@@ -19039,7 +19039,7 @@ var AGENT_DESCRIPTIONS = {
|
|
|
19039
19039
|
- Lane: Multi-model adversarial debate, ideation, and complex technical planning.
|
|
19040
19040
|
- Role: Launches a structured round-table debate with 3 independent debaters (skeptic, pragmatist, architect) and a critic.
|
|
19041
19041
|
- Capabilities: Creative ideation, feature expansion, non-technical vision refinement, high-stakes trade-off analysis.
|
|
19042
|
-
- **Delegate when:**
|
|
19042
|
+
- **Delegate when:** User wants to expand their vision, needs creative ideas, feature suggestions, or when tech decisions are highly ambiguous.
|
|
19043
19043
|
- **How to call:** \`roundtable({ query: "...", maxRounds: 5 })\`.`,
|
|
19044
19044
|
observer: `@observer
|
|
19045
19045
|
- Lane: Visual/media analysis.
|
|
@@ -19053,39 +19053,37 @@ function buildOrchestratorPrompt(disabledAgents) {
|
|
|
19053
19053
|
`);
|
|
19054
19054
|
return `You are the Master Orchestrator. Your job is to plan, implement, schedule, and delegate coding work.
|
|
19055
19055
|
You are aware of all tools, skills, and agents available to you.
|
|
19056
|
-
You implement the main tasks yourself unless parallel offloading is needed or a specialist is required.
|
|
19057
19056
|
|
|
19058
|
-
##
|
|
19059
|
-
|
|
19057
|
+
## Default Workflow (Tier 0)
|
|
19058
|
+
By default, you operate autonomously.
|
|
19059
|
+
- You implement the main tasks yourself.
|
|
19060
|
+
- You use @explorer and @librarian freely for basic context.
|
|
19061
|
+
- You have a high threshold for asking for review (you don't prioritize cooperation/supervision unless explicitly needed).
|
|
19062
|
+
- If parallel simple implementation is needed, offload to @fixer.
|
|
19063
|
+
|
|
19064
|
+
## Explicit Tiers
|
|
19065
|
+
The user may invoke specific tiers via slash commands (e.g., \`/tier1\`, \`/tier2\`, \`/tier3\`). If they do, a specific set of rules will be injected into your prompt. You MUST abandon your default autonomous behavior and strictly follow the injected tier rules (which involve mandatory @oracle reviews, \`roundtable\` usage, etc.).
|
|
19060
19066
|
|
|
19061
|
-
##
|
|
19062
|
-
You
|
|
19067
|
+
## Crucial Skills & Commands (USE THESE PROACTIVELY)
|
|
19068
|
+
You have access to powerful workflow commands. You MUST use them when the situation calls for it:
|
|
19063
19069
|
|
|
19064
|
-
|
|
19065
|
-
-
|
|
19066
|
-
-
|
|
19067
|
-
-
|
|
19070
|
+
1. **/interview Command:**
|
|
19071
|
+
- If the user asks you to implement a new feature, app, or workflow, and their description is vague, not well thought out, or lacks sophisticated details: DO NOT GUESS.
|
|
19072
|
+
- IMMEDIATELY invoke the \`/interview\` command (or ask the user questions directly) to extract their vision, refine the requirements, and clarify what they actually want before writing any code.
|
|
19073
|
+
- Think before you act: "Do I have enough detail to make this perfect?" If no, interview the user.
|
|
19068
19074
|
|
|
19069
|
-
|
|
19070
|
-
-
|
|
19071
|
-
- Workflow: You plan the work. **MANDATORY:** You must call @oracle to review the plan (logic, edge cases, overlooked items) BEFORE implementing.
|
|
19072
|
-
- Implementation: You implement, or parallelize to @fixer.
|
|
19073
|
-
- Verification: **MANDATORY:** You must call @oracle at the end of implementation to review the final code for bugs and logical errors. Treat @oracle as your strict supervisor.
|
|
19075
|
+
2. **/reflect Command:**
|
|
19076
|
+
- Use this to review past work and suggest reusable workflows or improvements.
|
|
19074
19077
|
|
|
19075
|
-
|
|
19076
|
-
-
|
|
19077
|
-
- Workflow: When the user provides a vision or basic idea, you MUST use the \`roundtable\` tool to plan the non-technical implementation, get creative feature suggestions, and refine the user's vision.
|
|
19078
|
-
- Supervision: Follow Tier 1 supervisor rules (@oracle reviews the technical translation of the roundtable's output).
|
|
19078
|
+
3. **/loop Command:**
|
|
19079
|
+
- Use this for loop engineering and monitoring.
|
|
19079
19080
|
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
- Workflow: You implement everything. You occasionally ask @oracle for spot-checks.
|
|
19083
|
-
- Ambiguity Resolution: If during implementation the task has multiple perspectives or it's not clearly decidable what the best course of action is, you MUST invoke the \`roundtable\` tool again to decide the path forward.
|
|
19081
|
+
## Available Specialists
|
|
19082
|
+
${enabledAgents}
|
|
19084
19083
|
|
|
19085
19084
|
## Universal Rules
|
|
19086
19085
|
- Design: If something needs visual design, call @designer. Ensure it follows existing design system files.
|
|
19087
19086
|
- Vision/Images: Call @observer for screenshots or visual review.
|
|
19088
|
-
- Parallel Work: If simple implementation is needed and we know exactly what to change, offload parallel tasks to @fixer via background tasks.
|
|
19089
19087
|
- Main Implementation: If implementation is the main focus, YOU do it yourself. @fixer is ONLY for offloading parallel or bounded sub-tasks.
|
|
19090
19088
|
- Background Tasks: Prefer \`task(..., background: true)\` for delegated work that can run independently. Continue orchestration only on non-overlapping work.
|
|
19091
19089
|
- Session Reuse: Smartly reuse an available specialist session using \`task_id\`.
|
|
@@ -19099,7 +19097,7 @@ function createOrchestratorAgent(model, customPrompt, customAppendPrompt, disabl
|
|
|
19099
19097
|
const prompt = resolvePrompt(basePrompt, customPrompt, customAppendPrompt);
|
|
19100
19098
|
const definition = {
|
|
19101
19099
|
name: "orchestrator",
|
|
19102
|
-
description: "Master Orchestrator.
|
|
19100
|
+
description: "Master Orchestrator. Operates autonomously by default, or follows strict Tier 1-3 rules when invoked. Conducts interviews for vague tasks.",
|
|
19103
19101
|
config: {
|
|
19104
19102
|
temperature: 0.1,
|
|
19105
19103
|
prompt
|
|
@@ -26274,75 +26272,56 @@ function formatCancelledTaskStatusOutput(taskID, summary = "cancelled") {
|
|
|
26274
26272
|
`);
|
|
26275
26273
|
}
|
|
26276
26274
|
// src/hooks/tier-commands/index.ts
|
|
26277
|
-
|
|
26278
|
-
State Management Requirements:
|
|
26279
|
-
- Before planning or creating state, inspect \`.gitignore\` and \`.ignore\`. Add missing entries: \`.gitignore\` must contain \`.slim/tier_state/\`, and \`.ignore\` must contain \`!.slim/tier_state/\` and \`!.slim/tier_state/**\`.
|
|
26280
|
-
- Create and maintain a progress file at \`.slim/tier_state/progress.md\`.
|
|
26281
|
-
- Keep OpenCode todos synced with the current phase.
|
|
26282
|
-
- Execute phase by phase. Wait for hook-driven background completion, reconcile results, and fix actionable review issues before continuing.`;
|
|
26283
|
-
function getTierPrompt(tier, task2) {
|
|
26275
|
+
function activationPrompt3(tier, task2) {
|
|
26284
26276
|
let tierRules = "";
|
|
26285
|
-
|
|
26286
|
-
|
|
26287
|
-
|
|
26288
|
-
Focus: Fast, direct implementation. Low cooperation overhead.
|
|
26289
|
-
Rules:
|
|
26290
|
-
1. You (Orchestrator) do the main implementation work.
|
|
26291
|
-
2. High threshold for asking for review. No mandatory @oracle review.
|
|
26292
|
-
3. Use @explorer and @librarian freely for basic context.
|
|
26293
|
-
4. If parallel simple implementation is needed, offload to @fixer.
|
|
26294
|
-
5. If visual design is needed, call @designer. If vision extraction is needed, call @observer.`;
|
|
26295
|
-
break;
|
|
26296
|
-
case 1:
|
|
26297
|
-
tierRules = `**Tier 1: Guided / Supervised Mode**
|
|
26298
|
-
Focus: Quality and correctness over pure speed.
|
|
26277
|
+
if (tier === 1) {
|
|
26278
|
+
tierRules = `**Tier 1: Basic Collaboration**
|
|
26279
|
+
Focus: Quality assurance through basic supervision.
|
|
26299
26280
|
Rules:
|
|
26300
26281
|
1. You must plan the work first.
|
|
26301
|
-
2. MANDATORY: Call @oracle to review your plan
|
|
26282
|
+
2. MANDATORY: Call @oracle to review your plan BEFORE implementing.
|
|
26302
26283
|
3. Implement the work yourself, or offload parallel tasks to @fixer.
|
|
26303
|
-
4. MANDATORY: Call @oracle at the end of the implementation to review the final code
|
|
26304
|
-
|
|
26305
|
-
|
|
26306
|
-
|
|
26307
|
-
tierRules = `**Tier 2: Sophisticated Ideation & Planning**
|
|
26308
|
-
Focus: High value, high performance, high cost. Vision expansion.
|
|
26284
|
+
4. MANDATORY: Call @oracle at the end of the implementation to review the final code.`;
|
|
26285
|
+
} else if (tier === 2) {
|
|
26286
|
+
tierRules = `**Tier 2: Deep Collaboration & Multiple Reviews**
|
|
26287
|
+
Focus: High-quality, heavily supervised implementation.
|
|
26309
26288
|
Rules:
|
|
26310
|
-
1.
|
|
26311
|
-
2.
|
|
26312
|
-
3.
|
|
26313
|
-
4.
|
|
26314
|
-
|
|
26315
|
-
|
|
26316
|
-
|
|
26317
|
-
tierRules = `**Tier 3: Sophisticated Implementation**
|
|
26318
|
-
Focus: Complex, ambiguous implementation.
|
|
26289
|
+
1. You are working under the strict supervision of @oracle.
|
|
26290
|
+
2. You must interact with @oracle multiple times: for initial planning, during major implementation steps, and for final corrections.
|
|
26291
|
+
3. Utilize all normal sub-agents (@explorer, @librarian, @designer) extensively to gather perfect context before acting.
|
|
26292
|
+
4. Expect and proactively seek multiple reviews and corrections.`;
|
|
26293
|
+
} else if (tier === 3) {
|
|
26294
|
+
tierRules = `**Tier 3: The "All Out" Tier**
|
|
26295
|
+
Focus: Maximum sophistication, ideation, and complex problem solving.
|
|
26319
26296
|
Rules:
|
|
26320
|
-
1.
|
|
26321
|
-
2.
|
|
26322
|
-
3.
|
|
26323
|
-
4.
|
|
26324
|
-
|
|
26297
|
+
1. This is the highest level of execution. You use everything available.
|
|
26298
|
+
2. **ROUNDTABLE MANDATORY:** Because task requirements at this tier are often vague or have multiple valid approaches, you MUST start by invoking the \`roundtable\` tool. Let the debaters ideate, refine the vision, and figure out the best approach.
|
|
26299
|
+
3. Once the roundtable produces a council report, translate it into a technical plan and have @oracle review it.
|
|
26300
|
+
4. During implementation, if any ambiguity arises, invoke the \`roundtable\` tool again.
|
|
26301
|
+
5. Work with @oracle for continuous, strict supervision (multiple reviews/corrections).`;
|
|
26325
26302
|
}
|
|
26326
26303
|
return [
|
|
26327
|
-
`You are operating in
|
|
26328
|
-
"",
|
|
26329
|
-
COMMON_REQUIREMENTS,
|
|
26304
|
+
`You are operating in **Tier ${tier}**. Follow these rules strictly:`,
|
|
26330
26305
|
"",
|
|
26331
26306
|
tierRules,
|
|
26332
26307
|
"",
|
|
26308
|
+
"State Management Requirements:",
|
|
26309
|
+
"- Inspect `.gitignore` and `.ignore`. Add `.slim/tier_state/` to `.gitignore` and `!.slim/tier_state/` to `.ignore`.",
|
|
26310
|
+
"- Maintain a progress file at `.slim/tier_state/progress.md`.",
|
|
26311
|
+
"- Keep OpenCode todos synced.",
|
|
26312
|
+
"",
|
|
26333
26313
|
"Task:",
|
|
26334
26314
|
task2
|
|
26335
26315
|
].join(`
|
|
26336
26316
|
`);
|
|
26337
26317
|
}
|
|
26338
26318
|
function createTierCommandsHook() {
|
|
26339
|
-
const commands = ["
|
|
26319
|
+
const commands = ["tier1", "tier2", "tier3"];
|
|
26340
26320
|
return {
|
|
26341
26321
|
registerCommand: (opencodeConfig) => {
|
|
26342
|
-
registerCommandHook(opencodeConfig, "
|
|
26343
|
-
registerCommandHook(opencodeConfig, "
|
|
26344
|
-
registerCommandHook(opencodeConfig, "
|
|
26345
|
-
registerCommandHook(opencodeConfig, "tier3", "Start a Tier 3 session (Complex implementation with Roundtable fallback)", "Sophisticated Implementation");
|
|
26322
|
+
registerCommandHook(opencodeConfig, "tier1", "Start a Tier 1 session (Basic Oracle Collaboration)", "Tier 1");
|
|
26323
|
+
registerCommandHook(opencodeConfig, "tier2", "Start a Tier 2 session (Deep Collaboration & Multiple Reviews)", "Tier 2");
|
|
26324
|
+
registerCommandHook(opencodeConfig, "tier3", "Start a Tier 3 session (All-Out: Roundtable + Deep Collaboration)", "Tier 3");
|
|
26346
26325
|
},
|
|
26347
26326
|
handleCommandExecuteBefore: async (input, output) => {
|
|
26348
26327
|
if (!commands.includes(input.command))
|
|
@@ -26354,7 +26333,7 @@ function createTierCommandsHook() {
|
|
|
26354
26333
|
return;
|
|
26355
26334
|
}
|
|
26356
26335
|
const tierNum = parseInt(input.command.replace("tier", ""), 10);
|
|
26357
|
-
output.parts.push({ type: "text", text:
|
|
26336
|
+
output.parts.push({ type: "text", text: activationPrompt3(tierNum, task2) });
|
|
26358
26337
|
}
|
|
26359
26338
|
};
|
|
26360
26339
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode-serverlocal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Custom serverlocal fork of oh-my-opencode-slim — fully owned, custom prompts + commands, dist synced via opencode-dotfiles",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|