oh-my-opencode-serverlocal 0.1.8 → 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 +18 -0
- package/dist/index.js +64 -42
- package/dist/tui.js +18 -0
- package/package.json +1 -1
- package/src/skills/tier1-workflow/SKILL.md +33 -0
- package/src/skills/tier2-workflow/SKILL.md +34 -0
- package/src/skills/tier3-workflow/SKILL.md +33 -0
package/dist/cli/index.js
CHANGED
|
@@ -552,6 +552,24 @@ var CUSTOM_SKILLS = [
|
|
|
552
552
|
description: "Manage Git worktrees as OMO safe isolated coding lanes for complex/risky/parallel work",
|
|
553
553
|
allowedAgents: ["orchestrator"],
|
|
554
554
|
sourcePath: "src/skills/worktrees"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: "tier1-workflow",
|
|
558
|
+
description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
|
|
559
|
+
allowedAgents: ["orchestrator"],
|
|
560
|
+
sourcePath: "src/skills/tier1-workflow"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "tier2-workflow",
|
|
564
|
+
description: "Sophisticated ideation and planning. Mandatory roundtable tool usage for vision expansion before technical implementation.",
|
|
565
|
+
allowedAgents: ["orchestrator"],
|
|
566
|
+
sourcePath: "src/skills/tier2-workflow"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: "tier3-workflow",
|
|
570
|
+
description: 'The "All Out" Tier. Complex implementation with continuous Oracle supervision and Roundtable ambiguity resolution.',
|
|
571
|
+
allowedAgents: ["orchestrator"],
|
|
572
|
+
sourcePath: "src/skills/tier3-workflow"
|
|
555
573
|
}
|
|
556
574
|
];
|
|
557
575
|
|
package/dist/index.js
CHANGED
|
@@ -18380,6 +18380,24 @@ var CUSTOM_SKILLS = [
|
|
|
18380
18380
|
description: "Manage Git worktrees as OMO safe isolated coding lanes for complex/risky/parallel work",
|
|
18381
18381
|
allowedAgents: ["orchestrator"],
|
|
18382
18382
|
sourcePath: "src/skills/worktrees"
|
|
18383
|
+
},
|
|
18384
|
+
{
|
|
18385
|
+
name: "tier1-workflow",
|
|
18386
|
+
description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
|
|
18387
|
+
allowedAgents: ["orchestrator"],
|
|
18388
|
+
sourcePath: "src/skills/tier1-workflow"
|
|
18389
|
+
},
|
|
18390
|
+
{
|
|
18391
|
+
name: "tier2-workflow",
|
|
18392
|
+
description: "Sophisticated ideation and planning. Mandatory roundtable tool usage for vision expansion before technical implementation.",
|
|
18393
|
+
allowedAgents: ["orchestrator"],
|
|
18394
|
+
sourcePath: "src/skills/tier2-workflow"
|
|
18395
|
+
},
|
|
18396
|
+
{
|
|
18397
|
+
name: "tier3-workflow",
|
|
18398
|
+
description: 'The "All Out" Tier. Complex implementation with continuous Oracle supervision and Roundtable ambiguity resolution.',
|
|
18399
|
+
allowedAgents: ["orchestrator"],
|
|
18400
|
+
sourcePath: "src/skills/tier3-workflow"
|
|
18383
18401
|
}
|
|
18384
18402
|
];
|
|
18385
18403
|
|
|
@@ -19054,23 +19072,23 @@ function buildOrchestratorPrompt(disabledAgents) {
|
|
|
19054
19072
|
return `You are the Master Orchestrator. Your job is to plan, implement, schedule, and delegate coding work.
|
|
19055
19073
|
You are aware of all tools, skills, and agents available to you.
|
|
19056
19074
|
|
|
19057
|
-
## Default Workflow
|
|
19058
|
-
|
|
19059
|
-
- You implement the main tasks yourself.
|
|
19060
|
-
- You
|
|
19061
|
-
-
|
|
19062
|
-
- If
|
|
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.
|
|
19063
19082
|
|
|
19064
19083
|
## Explicit Tiers
|
|
19065
|
-
The user may invoke specific tiers via slash commands (e.g., \`/tier1\`, \`/tier2\`, \`/tier3\`). If they do, a specific set of
|
|
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.
|
|
19066
19085
|
|
|
19067
19086
|
## Crucial Skills & Commands (USE THESE PROACTIVELY)
|
|
19068
|
-
You
|
|
19087
|
+
You are highly encouraged to use your special commands when they suit the workflow:
|
|
19069
19088
|
|
|
19070
19089
|
1. **/interview Command:**
|
|
19071
|
-
- If the user asks you to implement a new feature, app, or workflow, and their description is
|
|
19072
|
-
-
|
|
19073
|
-
- 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.
|
|
19074
19092
|
|
|
19075
19093
|
2. **/reflect Command:**
|
|
19076
19094
|
- Use this to review past work and suggest reusable workflows or improvements.
|
|
@@ -19084,7 +19102,8 @@ ${enabledAgents}
|
|
|
19084
19102
|
## Universal Rules
|
|
19085
19103
|
- Design: If something needs visual design, call @designer. Ensure it follows existing design system files.
|
|
19086
19104
|
- Vision/Images: Call @observer for screenshots or visual review.
|
|
19087
|
-
-
|
|
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.
|
|
19088
19107
|
- Background Tasks: Prefer \`task(..., background: true)\` for delegated work that can run independently. Continue orchestration only on non-overlapping work.
|
|
19089
19108
|
- Session Reuse: Smartly reuse an available specialist session using \`task_id\`.
|
|
19090
19109
|
|
|
@@ -19097,7 +19116,7 @@ function createOrchestratorAgent(model, customPrompt, customAppendPrompt, disabl
|
|
|
19097
19116
|
const prompt = resolvePrompt(basePrompt, customPrompt, customAppendPrompt);
|
|
19098
19117
|
const definition = {
|
|
19099
19118
|
name: "orchestrator",
|
|
19100
|
-
description: "Master Orchestrator. Operates autonomously by default
|
|
19119
|
+
description: "Master Orchestrator. Operates autonomously by default. Uses Tiers 1-3 when asked. Conducts interviews for vague tasks.",
|
|
19101
19120
|
config: {
|
|
19102
19121
|
temperature: 0.1,
|
|
19103
19122
|
prompt
|
|
@@ -26272,43 +26291,46 @@ function formatCancelledTaskStatusOutput(taskID, summary = "cancelled") {
|
|
|
26272
26291
|
`);
|
|
26273
26292
|
}
|
|
26274
26293
|
// src/hooks/tier-commands/index.ts
|
|
26275
|
-
|
|
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) {
|
|
26276
26302
|
let tierRules = "";
|
|
26277
26303
|
if (tier === 1) {
|
|
26278
|
-
tierRules = `**Tier 1:
|
|
26279
|
-
Focus: Quality assurance through
|
|
26280
|
-
|
|
26281
|
-
1.
|
|
26282
|
-
2.
|
|
26283
|
-
3.
|
|
26284
|
-
4.
|
|
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.`;
|
|
26285
26311
|
} else if (tier === 2) {
|
|
26286
|
-
tierRules = `**Tier 2:
|
|
26287
|
-
Focus: High
|
|
26288
|
-
|
|
26289
|
-
1.
|
|
26290
|
-
2.
|
|
26291
|
-
3.
|
|
26292
|
-
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.`;
|
|
26293
26318
|
} else if (tier === 3) {
|
|
26294
26319
|
tierRules = `**Tier 3: The "All Out" Tier**
|
|
26295
26320
|
Focus: Maximum sophistication, ideation, and complex problem solving.
|
|
26296
|
-
|
|
26297
|
-
1.
|
|
26298
|
-
2.
|
|
26299
|
-
3.
|
|
26300
|
-
4.
|
|
26301
|
-
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.`;
|
|
26302
26326
|
}
|
|
26303
26327
|
return [
|
|
26304
|
-
`
|
|
26328
|
+
`Use the **tier${tier}-workflow** skill for this task to structure your documentation.`,
|
|
26329
|
+
`You are operating in **Tier ${tier}**.`,
|
|
26305
26330
|
"",
|
|
26306
26331
|
tierRules,
|
|
26307
26332
|
"",
|
|
26308
|
-
|
|
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.",
|
|
26333
|
+
COMMON_REQUIREMENTS,
|
|
26312
26334
|
"",
|
|
26313
26335
|
"Task:",
|
|
26314
26336
|
task2
|
|
@@ -26319,8 +26341,8 @@ function createTierCommandsHook() {
|
|
|
26319
26341
|
const commands = ["tier1", "tier2", "tier3"];
|
|
26320
26342
|
return {
|
|
26321
26343
|
registerCommand: (opencodeConfig) => {
|
|
26322
|
-
registerCommandHook(opencodeConfig, "tier1", "Start a Tier 1 session (
|
|
26323
|
-
registerCommandHook(opencodeConfig, "tier2", "Start a Tier 2 session (
|
|
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");
|
|
26324
26346
|
registerCommandHook(opencodeConfig, "tier3", "Start a Tier 3 session (All-Out: Roundtable + Deep Collaboration)", "Tier 3");
|
|
26325
26347
|
},
|
|
26326
26348
|
handleCommandExecuteBefore: async (input, output) => {
|
|
@@ -26333,7 +26355,7 @@ function createTierCommandsHook() {
|
|
|
26333
26355
|
return;
|
|
26334
26356
|
}
|
|
26335
26357
|
const tierNum = parseInt(input.command.replace("tier", ""), 10);
|
|
26336
|
-
output.parts.push({ type: "text", text:
|
|
26358
|
+
output.parts.push({ type: "text", text: getTierPrompt(tierNum, task2) });
|
|
26337
26359
|
}
|
|
26338
26360
|
};
|
|
26339
26361
|
}
|
package/dist/tui.js
CHANGED
|
@@ -471,6 +471,24 @@ var CUSTOM_SKILLS = [
|
|
|
471
471
|
description: "Manage Git worktrees as OMO safe isolated coding lanes for complex/risky/parallel work",
|
|
472
472
|
allowedAgents: ["orchestrator"],
|
|
473
473
|
sourcePath: "src/skills/worktrees"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: "tier1-workflow",
|
|
477
|
+
description: "Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.",
|
|
478
|
+
allowedAgents: ["orchestrator"],
|
|
479
|
+
sourcePath: "src/skills/tier1-workflow"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: "tier2-workflow",
|
|
483
|
+
description: "Sophisticated ideation and planning. Mandatory roundtable tool usage for vision expansion before technical implementation.",
|
|
484
|
+
allowedAgents: ["orchestrator"],
|
|
485
|
+
sourcePath: "src/skills/tier2-workflow"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: "tier3-workflow",
|
|
489
|
+
description: 'The "All Out" Tier. Complex implementation with continuous Oracle supervision and Roundtable ambiguity resolution.',
|
|
490
|
+
allowedAgents: ["orchestrator"],
|
|
491
|
+
sourcePath: "src/skills/tier3-workflow"
|
|
474
492
|
}
|
|
475
493
|
];
|
|
476
494
|
|
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.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",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tier1-workflow
|
|
3
|
+
description: Guided and supervised workflow. Mandatory Oracle reviews for planning and final implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tier 1 Workflow: Supervised Mode
|
|
7
|
+
|
|
8
|
+
Tier 1 is for non-trivial tasks where quality and correctness take precedence over pure speed. It enforces strict supervision by the `@oracle`.
|
|
9
|
+
|
|
10
|
+
## Core Contract
|
|
11
|
+
- **State Management:** Create and maintain `.slim/tier_state/<short-task-slug>.md`. Ensure git ignore rules are set. Keep OpenCode todos synced with the current phase.
|
|
12
|
+
- **Mandatory Plan Review:** You must draft a technical plan in your state file. BEFORE writing any code, you MUST call `@oracle` to review your plan for logic, edge cases, and overlooked items. Revise the plan until `@oracle` approves.
|
|
13
|
+
- **Implementation:** Implement the work yourself, or offload parallel bounded tasks to `@fixer`. Remember that `@fixer` will report bugs back to you at the end of its output.
|
|
14
|
+
- **Mandatory Final Review:** After implementation, you MUST call `@oracle` to review the final code for bugs, race conditions, and logical errors. Fix actionable issues before concluding.
|
|
15
|
+
|
|
16
|
+
## Documentation Structure
|
|
17
|
+
Your `.slim/tier_state/<short-task-slug>.md` file MUST follow this standard structure:
|
|
18
|
+
|
|
19
|
+
### 1. Goal
|
|
20
|
+
A clear statement of the objective.
|
|
21
|
+
|
|
22
|
+
### 2. Context
|
|
23
|
+
Researched, factual context from `@librarian` and `@explorer` to ensure `@oracle` reviews from accepted context instead of redoing discovery.
|
|
24
|
+
|
|
25
|
+
### 3. Technical Plan & Oracle Review
|
|
26
|
+
- The drafted implementation plan.
|
|
27
|
+
- **Oracle Review Notes:** Explicitly record `@oracle`'s feedback and how the plan was revised.
|
|
28
|
+
|
|
29
|
+
### 4. Execution Log
|
|
30
|
+
Record implementation phases, task IDs, parallel workers used, and any bug reports generated by `@fixer`.
|
|
31
|
+
|
|
32
|
+
### 5. Final Oracle Review & Validation
|
|
33
|
+
Record the final sign-off from `@oracle` and your final validation checks.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tier2-workflow
|
|
3
|
+
description: Sophisticated ideation and planning. Mandatory roundtable tool usage for vision expansion before technical implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tier 2 Workflow: Ideation & Planning
|
|
7
|
+
|
|
8
|
+
Tier 2 is a high-value, high-performance workflow designed for vision expansion, feature ideation, and resolving highly ambiguous technical directions BEFORE implementation begins.
|
|
9
|
+
|
|
10
|
+
## Core Contract
|
|
11
|
+
- **State Management:** Create and maintain `.slim/tier_state/<short-task-slug>.md`. Ensure git ignore rules are set. Keep OpenCode todos synced.
|
|
12
|
+
- **MANDATORY Roundtable Ideation:** The user has provided a vision or basic idea. You MUST FIRST invoke the \`roundtable\` tool (`roundtable({ query: "...", maxRounds: 5 })`) to ideate, get creative feature suggestions, and refine the perfected version of the user's vision.
|
|
13
|
+
- **Technical Translation:** Once the roundtable outputs its Council Report, translate its findings into a concrete technical implementation plan in your state file.
|
|
14
|
+
- **Mandatory Plan Review:** Call `@oracle` to review your technical translation of the roundtable's plan.
|
|
15
|
+
- **Implementation & Final Review:** Proceed with implementation. Call `@oracle` for a final code review at the end.
|
|
16
|
+
|
|
17
|
+
## Documentation Structure
|
|
18
|
+
Your `.slim/tier_state/<short-task-slug>.md` file MUST follow this standard structure:
|
|
19
|
+
|
|
20
|
+
### 1. Initial Vision
|
|
21
|
+
The raw goal or idea provided by the user.
|
|
22
|
+
|
|
23
|
+
### 2. Roundtable Council Report
|
|
24
|
+
Record the synthesized results from the `roundtable` debate (Decision, Dissent, Open Questions).
|
|
25
|
+
|
|
26
|
+
### 3. Technical Translation & Oracle Review
|
|
27
|
+
- The concrete technical plan derived from the roundtable report.
|
|
28
|
+
- **Oracle Review Notes:** `@oracle`'s critique of the technical plan.
|
|
29
|
+
|
|
30
|
+
### 4. Execution Log
|
|
31
|
+
Phases, task IDs, and parallel workers used.
|
|
32
|
+
|
|
33
|
+
### 5. Final Oracle Review & Validation
|
|
34
|
+
Record the final sign-off from `@oracle` and validation results.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tier3-workflow
|
|
3
|
+
description: The "All Out" Tier. Complex implementation with continuous Oracle supervision and Roundtable ambiguity resolution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tier 3 Workflow: Complex Implementation
|
|
7
|
+
|
|
8
|
+
Tier 3 is the highest level of execution for massive, complex, and highly ambiguous implementations. It utilizes every available tool and agent to ensure perfection.
|
|
9
|
+
|
|
10
|
+
## Core Contract
|
|
11
|
+
- **State Management:** Create and maintain `.slim/tier_state/<short-task-slug>.md`. Ensure git ignore rules are set. Keep OpenCode todos synced.
|
|
12
|
+
- **Continuous Supervision:** Work with `@oracle` for continuous, strict supervision. Ask for reviews not just at the beginning and end, but during major implementation milestones.
|
|
13
|
+
- **MANDATORY Ambiguity Resolution:** If, during implementation, the task has multiple perspectives, unexpected roadblocks, or it is not clearly decidable what the best course of action is, you MUST invoke the \`roundtable\` tool (`roundtable({ query: "..." })`) to decide the path forward.
|
|
14
|
+
- **Full Agent Utilization:** Offload parallel known tasks to `@fixer`. Use `@designer` for all UI. Aggressively use `@explorer` and `@librarian`.
|
|
15
|
+
|
|
16
|
+
## Documentation Structure
|
|
17
|
+
Your `.slim/tier_state/<short-task-slug>.md` file MUST follow this standard structure:
|
|
18
|
+
|
|
19
|
+
### 1. Master Goal & Context
|
|
20
|
+
The overarching objective and deep context gathered from specialists.
|
|
21
|
+
|
|
22
|
+
### 2. Strategic Plan & Oracle Sign-off
|
|
23
|
+
The high-level architectural plan and the initial `@oracle` review.
|
|
24
|
+
|
|
25
|
+
### 3. Phased Implementation Log
|
|
26
|
+
For each major phase:
|
|
27
|
+
- **Phase Goal**
|
|
28
|
+
- **Ambiguity Checks:** If a roadblock occurred, record the `roundtable` Council Report used to resolve it.
|
|
29
|
+
- **Execution:** Task IDs and parallel workers.
|
|
30
|
+
- **Mid-point Reviews:** `@oracle` spot-check notes.
|
|
31
|
+
|
|
32
|
+
### 4. Final Oracle Review & Validation
|
|
33
|
+
Record the final, rigorous sign-off from `@oracle` and comprehensive validation results.
|