oh-my-opencode-serverlocal 0.1.9 → 0.1.10

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/cli/index.js CHANGED
@@ -553,12 +553,6 @@ var CUSTOM_SKILLS = [
553
553
  allowedAgents: ["orchestrator"],
554
554
  sourcePath: "src/skills/worktrees"
555
555
  },
556
- {
557
- name: "tier0-workflow",
558
- description: "Fast, direct implementation workflow for routine tasks. Basic state documentation, low cooperation overhead.",
559
- allowedAgents: ["orchestrator"],
560
- sourcePath: "src/skills/tier0-workflow"
561
- },
562
556
  {
563
557
  name: "tier1-workflow",
564
558
  description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
package/dist/index.js CHANGED
@@ -18381,12 +18381,6 @@ var CUSTOM_SKILLS = [
18381
18381
  allowedAgents: ["orchestrator"],
18382
18382
  sourcePath: "src/skills/worktrees"
18383
18383
  },
18384
- {
18385
- name: "tier0-workflow",
18386
- description: "Fast, direct implementation workflow for routine tasks. Basic state documentation, low cooperation overhead.",
18387
- allowedAgents: ["orchestrator"],
18388
- sourcePath: "src/skills/tier0-workflow"
18389
- },
18390
18384
  {
18391
18385
  name: "tier1-workflow",
18392
18386
  description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
@@ -19078,23 +19072,23 @@ function buildOrchestratorPrompt(disabledAgents) {
19078
19072
  return `You are the Master Orchestrator. Your job is to plan, implement, schedule, and delegate coding work.
19079
19073
  You are aware of all tools, skills, and agents available to you.
19080
19074
 
19081
- ## Default Workflow (Tier 0)
19082
- By default, you operate autonomously.
19083
- - You implement the main tasks yourself.
19084
- - You use @explorer and @librarian freely for basic context.
19085
- - You have a high threshold for asking for review (you don't prioritize cooperation/supervision unless explicitly needed).
19086
- - If parallel simple implementation is needed, offload to @fixer.
19075
+ ## Default Workflow
19076
+ Unless explicitly instructed via a tier command, you operate on your own:
19077
+ - You implement the main tasks yourself directly.
19078
+ - You have a higher threshold for deciding if an implementation needs a complex review. You do not prioritize cooperation heavily by default.
19079
+ - However, you are free to use @explorer, @librarian, and all basic agents when needed.
19080
+ - If you get stuck in error loops or cannot figure out a bug, you should proactively call @oracle for help.
19081
+ - Let your judgment guide you: use tools when they add obvious value, but do not force unnecessary oversight.
19087
19082
 
19088
19083
  ## Explicit Tiers
19089
- 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.).
19084
+ The user may invoke specific tiers via slash commands (e.g., \`/tier1\`, \`/tier2\`, \`/tier3\`). If they do, a specific set of guidelines will be injected into your prompt. You should lean into the collaborative rules of that specific tier.
19090
19085
 
19091
19086
  ## Crucial Skills & Commands (USE THESE PROACTIVELY)
19092
- You have access to powerful workflow commands. You MUST use them when the situation calls for it:
19087
+ You are highly encouraged to use your special commands when they suit the workflow:
19093
19088
 
19094
19089
  1. **/interview Command:**
19095
- - 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.
19096
- - 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.
19097
- - Think before you act: "Do I have enough detail to make this perfect?" If no, interview the user.
19090
+ - If the user asks you to implement a new feature, app, or workflow, and their description is not well enough or lacks sophisticated details: DO NOT GUESS.
19091
+ - Proactively 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.
19098
19092
 
19099
19093
  2. **/reflect Command:**
19100
19094
  - Use this to review past work and suggest reusable workflows or improvements.
@@ -19108,7 +19102,8 @@ ${enabledAgents}
19108
19102
  ## Universal Rules
19109
19103
  - Design: If something needs visual design, call @designer. Ensure it follows existing design system files.
19110
19104
  - Vision/Images: Call @observer for screenshots or visual review.
19111
- - Main Implementation: If implementation is the main focus, YOU do it yourself. @fixer is ONLY for offloading parallel or bounded sub-tasks.
19105
+ - Parallel Work: If simple implementation is in play and we know exactly what to change, offload parallel tasks to @fixer to implement and report back.
19106
+ - Main Implementation: If implementation is our main priority and focus, you do it yourself. @fixer is there to offload parallel tasks.
19112
19107
  - Background Tasks: Prefer \`task(..., background: true)\` for delegated work that can run independently. Continue orchestration only on non-overlapping work.
19113
19108
  - Session Reuse: Smartly reuse an available specialist session using \`task_id\`.
19114
19109
 
@@ -19121,7 +19116,7 @@ function createOrchestratorAgent(model, customPrompt, customAppendPrompt, disabl
19121
19116
  const prompt = resolvePrompt(basePrompt, customPrompt, customAppendPrompt);
19122
19117
  const definition = {
19123
19118
  name: "orchestrator",
19124
- description: "Master Orchestrator. Operates autonomously by default, or follows strict Tier 1-3 rules when invoked. Conducts interviews for vague tasks.",
19119
+ description: "Master Orchestrator. Operates autonomously by default. Uses Tiers 1-3 when asked. Conducts interviews for vague tasks.",
19125
19120
  config: {
19126
19121
  temperature: 0.1,
19127
19122
  prompt
@@ -26296,53 +26291,46 @@ function formatCancelledTaskStatusOutput(taskID, summary = "cancelled") {
26296
26291
  `);
26297
26292
  }
26298
26293
  // src/hooks/tier-commands/index.ts
26299
- function activationPrompt3(tier, task2) {
26294
+ var COMMON_REQUIREMENTS = `
26295
+ State Management Guidelines:
26296
+ - Before planning or creating state, inspect \`.gitignore\` and \`.ignore\`. Add \`.slim/tier_state/\` if missing.
26297
+ - Create and maintain a progress file at \`.slim/tier_state/progress.md\`.
26298
+ - Keep OpenCode todos synced with the current phase.
26299
+ - Execute phase by phase.
26300
+ `;
26301
+ function getTierPrompt(tier, task2) {
26300
26302
  let tierRules = "";
26301
- if (tier === 0) {
26302
- tierRules = `**Tier 0: Basic Mode**
26303
- Focus: Fast, direct implementation. Low cooperation overhead.
26304
- Rules:
26305
- 1. You (Orchestrator) do the main implementation work.
26306
- 2. High threshold for asking for review. No mandatory @oracle review.
26307
- 3. Use @explorer and @librarian freely for basic context.
26308
- 4. If parallel simple implementation is needed, offload to @fixer.
26309
- 5. If visual design is needed, call @designer.`;
26310
- } else if (tier === 1) {
26311
- tierRules = `**Tier 1: Basic Collaboration**
26312
- Focus: Quality assurance through basic supervision.
26313
- Rules:
26314
- 1. You must plan the work first.
26315
- 2. MANDATORY: Call @oracle to review your plan BEFORE implementing.
26316
- 3. Implement the work yourself, or offload parallel tasks to @fixer.
26317
- 4. MANDATORY: Call @oracle at the end of the implementation to review the final code.`;
26303
+ if (tier === 1) {
26304
+ tierRules = `**Tier 1: Supervised Implementation**
26305
+ Focus: Quality assurance through cooperation.
26306
+ Guidelines:
26307
+ 1. Plan everything out first and have @oracle review the logical journal of your plan to find bugs or edge cases you might overlook.
26308
+ 2. Implement the work yourself, or offload parallel tasks to @fixer.
26309
+ 3. At the end of the implementation, have @oracle review the code to find logical errors.
26310
+ 4. Depending on how long the implementation goes or how many features are involved, call @oracle to cooperate with you as a supervisor when needed. At a minimum, let it review at the beginning and the end.`;
26318
26311
  } else if (tier === 2) {
26319
- tierRules = `**Tier 2: Deep Collaboration & Multiple Reviews**
26320
- Focus: High-quality, heavily supervised implementation.
26321
- Rules:
26322
- 1. You are working under the strict supervision of @oracle.
26323
- 2. You must interact with @oracle multiple times: for initial planning, during major implementation steps, and for final corrections.
26324
- 3. Utilize all normal sub-agents (@explorer, @librarian, @designer) extensively to gather perfect context before acting.
26325
- 4. Expect and proactively seek multiple reviews and corrections.`;
26312
+ tierRules = `**Tier 2: Sophisticated & High Performance**
26313
+ Focus: High value, high performance, high cost workflow.
26314
+ Guidelines:
26315
+ 1. Deep cooperation with all sub-agents (@explorer, @librarian, @designer).
26316
+ 2. Work closely with @oracle as a strict supervisor.
26317
+ 3. Expect to perform multiple reviews and corrections during the implementation process to ensure the highest quality output. Use your judgment to call for reviews frequently.`;
26326
26318
  } else if (tier === 3) {
26327
26319
  tierRules = `**Tier 3: The "All Out" Tier**
26328
26320
  Focus: Maximum sophistication, ideation, and complex problem solving.
26329
- Rules:
26330
- 1. This is the highest level of execution. You use everything available.
26331
- 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.
26332
- 3. Once the roundtable produces a council report, translate it into a technical plan and have @oracle review it.
26333
- 4. During implementation, if any ambiguity arises, invoke the \`roundtable\` tool again.
26334
- 5. Work with @oracle for continuous, strict supervision (multiple reviews/corrections).`;
26321
+ Guidelines:
26322
+ 1. Use everything available to you.
26323
+ 2. If the user provides a vision or wishes, ask the \`roundtable\` tool to plan out the non-technical implementation and create a perfected version of the vision. Let it suggest creative options and features.
26324
+ 3. You implement everything, occasionally asking @oracle for reviews.
26325
+ 4. If the task has more needs, multiple perspectives, or if it is not clearly decidable what the best course of action is, invoke the \`roundtable\` tool again to decide the path forward.`;
26335
26326
  }
26336
26327
  return [
26337
- `Use the **tier${tier}-workflow** skill for this task. Load it to understand the required documentation structure.`,
26338
- `You are operating in **Tier ${tier}**. Follow these rules strictly:`,
26328
+ `Use the **tier${tier}-workflow** skill for this task to structure your documentation.`,
26329
+ `You are operating in **Tier ${tier}**.`,
26339
26330
  "",
26340
26331
  tierRules,
26341
26332
  "",
26342
- "State Management Requirements:",
26343
- "- Inspect `.gitignore` and `.ignore`. Add `.slim/tier_state/` to `.gitignore` and `!.slim/tier_state/` to `.ignore`.",
26344
- "- Maintain a progress file at `.slim/tier_state/progress.md` following the structure defined in your skill.",
26345
- "- Keep OpenCode todos synced.",
26333
+ COMMON_REQUIREMENTS,
26346
26334
  "",
26347
26335
  "Task:",
26348
26336
  task2
@@ -26350,12 +26338,11 @@ Rules:
26350
26338
  `);
26351
26339
  }
26352
26340
  function createTierCommandsHook() {
26353
- const commands = ["tier0", "tier1", "tier2", "tier3"];
26341
+ const commands = ["tier1", "tier2", "tier3"];
26354
26342
  return {
26355
26343
  registerCommand: (opencodeConfig) => {
26356
- registerCommandHook(opencodeConfig, "tier0", "Start a Tier 0 session (Basic Mode)", "Tier 0");
26357
- registerCommandHook(opencodeConfig, "tier1", "Start a Tier 1 session (Basic Oracle Collaboration)", "Tier 1");
26358
- registerCommandHook(opencodeConfig, "tier2", "Start a Tier 2 session (Deep Collaboration & Multiple Reviews)", "Tier 2");
26344
+ registerCommandHook(opencodeConfig, "tier1", "Start a Tier 1 session (Supervised Implementation)", "Tier 1");
26345
+ registerCommandHook(opencodeConfig, "tier2", "Start a Tier 2 session (Sophisticated & High Performance)", "Tier 2");
26359
26346
  registerCommandHook(opencodeConfig, "tier3", "Start a Tier 3 session (All-Out: Roundtable + Deep Collaboration)", "Tier 3");
26360
26347
  },
26361
26348
  handleCommandExecuteBefore: async (input, output) => {
@@ -26368,7 +26355,7 @@ function createTierCommandsHook() {
26368
26355
  return;
26369
26356
  }
26370
26357
  const tierNum = parseInt(input.command.replace("tier", ""), 10);
26371
- output.parts.push({ type: "text", text: activationPrompt3(tierNum, task2) });
26358
+ output.parts.push({ type: "text", text: getTierPrompt(tierNum, task2) });
26372
26359
  }
26373
26360
  };
26374
26361
  }
package/dist/tui.js CHANGED
@@ -472,12 +472,6 @@ var CUSTOM_SKILLS = [
472
472
  allowedAgents: ["orchestrator"],
473
473
  sourcePath: "src/skills/worktrees"
474
474
  },
475
- {
476
- name: "tier0-workflow",
477
- description: "Fast, direct implementation workflow for routine tasks. Basic state documentation, low cooperation overhead.",
478
- allowedAgents: ["orchestrator"],
479
- sourcePath: "src/skills/tier0-workflow"
480
- },
481
475
  {
482
476
  name: "tier1-workflow",
483
477
  description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-serverlocal",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
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",
@@ -1,34 +0,0 @@
1
- ---
2
- name: tier0-workflow
3
- description: Fast, direct implementation workflow for routine tasks. Basic state documentation, low cooperation overhead.
4
- ---
5
-
6
- # Tier 0 Workflow: Basic Mode
7
-
8
- Tier 0 is the default workflow for fast, direct implementation. Use it when the task is clear, routine, and does not require heavy supervision or ideation.
9
-
10
- ## Core Contract
11
- - **State Management:** You must create and maintain a progress file at `.slim/tier_state/<short-task-slug>.md`.
12
- - **Git Ignore:** Before creating the state file, ensure `.gitignore` contains `.slim/tier_state/` and `.ignore` contains `!.slim/tier_state/` and `!.slim/tier_state/**`.
13
- - **Implementation:** You (Orchestrator) do the main implementation work. Use `@fixer` only for parallelizing simple, scoped file modifications across different folders.
14
- - **Review:** High threshold for asking for review. No mandatory `@oracle` review is required unless you encounter a critical roadblock.
15
- - **Research:** Use `@explorer` and `@librarian` freely for basic context gathering.
16
- - **Design:** If visual design is needed, call `@designer`. For vision extraction from images, call `@observer`.
17
-
18
- ## Documentation Structure
19
- Your `.slim/tier_state/<short-task-slug>.md` file MUST follow this standard structure:
20
-
21
- ### 1. Goal
22
- A concise statement of what needs to be implemented.
23
-
24
- ### 2. Context
25
- Any researched facts, library documentation links from `@librarian`, or structural maps from `@explorer`. (Do not paste full file contents, use paths).
26
-
27
- ### 3. Execution Plan
28
- A simple checklist of files to modify and steps to take. Keep OpenCode todos synced with this plan.
29
-
30
- ### 4. Implementation Log
31
- Record task IDs of any spawned background sub-agents (e.g., `@fixer`). Record terminal results and completed steps.
32
-
33
- ### 5. Final Validation
34
- A brief note confirming the code runs and meets the goal.