oh-my-opencode-lite 0.1.4 → 0.1.5
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/agents/prompt-utils.d.ts +1 -1
- package/dist/index.js +16 -5
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ interface ComposeAgentPromptOptions {
|
|
|
5
5
|
placeholders?: Record<string, string | number | undefined>;
|
|
6
6
|
}
|
|
7
7
|
export declare const QUESTION_PROTOCOL = "<questions>\nUse the `question` tool for blocking decisions. NEVER ask in plain text.\n\nAsk only when one of these is true:\n1. The request is ambiguous in a way that materially changes the result AND you cannot resolve it by reading the codebase.\n2. The action is destructive/irreversible, touches production, or changes security posture.\n3. You need a secret, credential, or value that cannot be inferred.\n\nWhen you must ask: do all non-blocked work first, then ask exactly one targeted question. Include your recommended default and state what changes based on the answer.\nPut the recommended option first with \"(Recommended)\". Short headers (<=30 chars).\nAfter calling question, STOP \u2014 do not continue execution.\n</questions>";
|
|
8
|
-
export declare const SUBAGENT_RULES = "- Do not call ANY thoth-mem tools \u2014 memory is exclusively orchestrator-owned.\n- Do not call `todowrite` \u2014 task progress tracking is exclusively orchestrator-owned.\n- Use `question` tool for blocking decisions, never plain text.";
|
|
8
|
+
export declare const SUBAGENT_RULES = "- Do not call ANY thoth-mem tools \u2014 memory is exclusively orchestrator-owned.\n- Do not call `todowrite` \u2014 task progress tracking is exclusively orchestrator-owned.\n- Use `question` tool for blocking decisions, never plain text.\n- NEVER run destructive git commands that discard working-tree changes: `git restore`, `git checkout -- <path>`, `git reset --hard`, `git clean`, `git stash`. During SDD execution, files modified by prior tasks are intentional progress \u2014 reverting them destroys the pipeline.\n- NEVER run `git restore` to \"clean up\" tracked file changes you did not make. Those changes belong to earlier tasks in the same pipeline.";
|
|
9
9
|
export declare const RESPONSE_BUDGET = "Your response returns to an expensive orchestrator model. Be ruthlessly concise:\n- Return insights and conclusions, NEVER raw file contents or full code blocks.\n- Structured results (status, summary, files, issues) over prose.\n- If the orchestrator needs more detail, it will ask in a follow-up.";
|
|
10
10
|
export declare function appendPromptSections(...sections: Array<string | undefined>): string;
|
|
11
11
|
export declare function replacePromptPlaceholders(template: string, placeholders?: Record<string, string | number | undefined>): string;
|
package/dist/index.js
CHANGED
|
@@ -17373,7 +17373,9 @@ After calling question, STOP \u2014 do not continue execution.
|
|
|
17373
17373
|
</questions>`;
|
|
17374
17374
|
var SUBAGENT_RULES = `- Do not call ANY thoth-mem tools \u2014 memory is exclusively orchestrator-owned.
|
|
17375
17375
|
- Do not call \`todowrite\` \u2014 task progress tracking is exclusively orchestrator-owned.
|
|
17376
|
-
- Use \`question\` tool for blocking decisions, never plain text
|
|
17376
|
+
- Use \`question\` tool for blocking decisions, never plain text.
|
|
17377
|
+
- NEVER run destructive git commands that discard working-tree changes: \`git restore\`, \`git checkout -- <path>\`, \`git reset --hard\`, \`git clean\`, \`git stash\`. During SDD execution, files modified by prior tasks are intentional progress \u2014 reverting them destroys the pipeline.
|
|
17378
|
+
- NEVER run \`git restore\` to "clean up" tracked file changes you did not make. Those changes belong to earlier tasks in the same pipeline.`;
|
|
17377
17379
|
var RESPONSE_BUDGET = `Your response returns to an expensive orchestrator model. Be ruthlessly concise:
|
|
17378
17380
|
- Return insights and conclusions, NEVER raw file contents or full code blocks.
|
|
17379
17381
|
- Structured results (status, summary, files, issues) over prose.
|
|
@@ -17690,7 +17692,9 @@ Never build after changes.
|
|
|
17690
17692
|
|
|
17691
17693
|
Do only coordination yourself: think, choose agents, sequence true dependencies, launch independent delegations together, ask the user via \`question\`, summarize results, and manage memory/progress.
|
|
17692
17694
|
|
|
17693
|
-
|
|
17695
|
+
NEVER request full file contents from sub-agents. Sub-agents analyze files internally and return insights \u2014 they do not relay raw content.
|
|
17696
|
+
|
|
17697
|
+
Always request only what you need to decide: insights, symbol locations, line ranges, diff summaries, or verification outcomes \u2014 never raw file dumps. Sub-agents handle large content; you handle decisions.
|
|
17694
17698
|
|
|
17695
17699
|
\`question\` is orchestrator-owned. Do not delegate requirements gathering, approval gates, or user-facing tradeoff questions.
|
|
17696
17700
|
|
|
@@ -17698,6 +17702,8 @@ Exception: openspec/ coordination artifacts are not source code. You may read/ed
|
|
|
17698
17702
|
|
|
17699
17703
|
If you mention a specialist and execution is required, dispatch that specialist in the same turn.
|
|
17700
17704
|
Never serialize independent ready delegations across multiple responses.
|
|
17705
|
+
|
|
17706
|
+
NEVER instruct sub-agents to restore, reset, or discard working-tree changes. During SDD execution, modified files are cumulative progress from prior tasks \u2014 reverting them destroys the pipeline.
|
|
17701
17707
|
</rules>
|
|
17702
17708
|
|
|
17703
17709
|
<verification>
|
|
@@ -17749,7 +17755,7 @@ Routing tiebreakers:
|
|
|
17749
17755
|
</agents>
|
|
17750
17756
|
|
|
17751
17757
|
<parallel-dispatch>
|
|
17752
|
-
-
|
|
17758
|
+
- If delegations are independent and ready now, launch all in one response.
|
|
17753
17759
|
- If you say "in parallel", emit all ready tool calls immediately.
|
|
17754
17760
|
- background_task is fire-and-forget: launch it, then continue with other ready coordination work.
|
|
17755
17761
|
- Use task only when you need the result before the next step.
|
|
@@ -17759,6 +17765,7 @@ Routing tiebreakers:
|
|
|
17759
17765
|
<delegation-failure>
|
|
17760
17766
|
- Empty, contradictory, or low-confidence background results: retry once with a sharper prompt.
|
|
17761
17767
|
- Failed or suspect sync/write results: route to oracle before retrying.
|
|
17768
|
+
- If a sub-agent does not return the detail you expected, refine your request with specific questions \u2014 NEVER fall back to reading the file yourself. The orchestrator reading workspace files is an emergency-only last resort.
|
|
17762
17769
|
- Maximum one retry after the initial attempt. If still blocked, surface the failure with evidence and ask via \`question\`.
|
|
17763
17770
|
</delegation-failure>
|
|
17764
17771
|
|
|
@@ -17768,6 +17775,7 @@ Routing tiebreakers:
|
|
|
17768
17775
|
- Oracle is READ-ONLY. NEVER use oracle to execute SDD artifact phases (propose, spec, design, tasks, apply). Oracle is ONLY for plan-review.
|
|
17769
17776
|
- NEVER skip artifact creation. Each phase MUST produce its persistent artifact before the next phase begins.
|
|
17770
17777
|
- NEVER jump from requirements-interview directly to implementation. The approved SDD route MUST be followed phase by phase.
|
|
17778
|
+
- NEVER execute SDD tasks without first loading the \`executing-plans\` skill via the skill tool. Reading artifacts and delegating directly is a protocol violation. The skill MUST be loaded BEFORE the first task dispatch.
|
|
17771
17779
|
|
|
17772
17780
|
## Entry
|
|
17773
17781
|
- Non-trivial work starts with requirements-interview. Skip it only for truly trivial, unambiguous work.
|
|
@@ -17778,7 +17786,8 @@ Routing tiebreakers:
|
|
|
17778
17786
|
1. Dispatch @deep with skill \`sdd-propose\`. Wait for result. Verify artifact was persisted.
|
|
17779
17787
|
2. Dispatch @deep with skill \`sdd-tasks\`. Wait for result. Verify artifact was persisted.
|
|
17780
17788
|
3. Plan-review gate (see "Plan Review Gate" below).
|
|
17781
|
-
4.
|
|
17789
|
+
4. **Load the \`executing-plans\` skill** via the skill tool. This is mandatory and must happen before any task dispatch.
|
|
17790
|
+
5. **Execute tasks** following the loaded skill exactly: for each task, follow the \`<progress>\` protocol for state tracking, use the 6-part dispatch envelope (TASK, CONTEXT, REQUIREMENTS, BOUNDARIES, VERIFICATION, RETURN ENVELOPE), dispatch @deep or @quick with skill \`sdd-apply\`, and follow the escalation policy on failure.
|
|
17782
17791
|
|
|
17783
17792
|
## Pipeline: Full SDD (propose -> spec -> design -> tasks)
|
|
17784
17793
|
1. Dispatch @deep with skill \`sdd-propose\`. Wait for result. Verify artifact was persisted.
|
|
@@ -17786,7 +17795,8 @@ Routing tiebreakers:
|
|
|
17786
17795
|
3. Dispatch @deep with skill \`sdd-design\`. Wait for result. Verify artifact was persisted.
|
|
17787
17796
|
4. Dispatch @deep with skill \`sdd-tasks\`. Wait for result. Verify artifact was persisted.
|
|
17788
17797
|
5. Plan-review gate (see "Plan Review Gate" below).
|
|
17789
|
-
6.
|
|
17798
|
+
6. **Load the \`executing-plans\` skill** via the skill tool. This is mandatory and must happen before any task dispatch.
|
|
17799
|
+
7. **Execute tasks** following the loaded skill exactly: for each task, follow the \`<progress>\` protocol for state tracking, use the 6-part dispatch envelope (TASK, CONTEXT, REQUIREMENTS, BOUNDARIES, VERIFICATION, RETURN ENVELOPE), dispatch @deep or @quick with skill \`sdd-apply\`, and follow the escalation policy on failure.
|
|
17790
17800
|
|
|
17791
17801
|
## Plan Review Gate
|
|
17792
17802
|
After tasks are generated, use \`question\` to ask the user:
|
|
@@ -17906,6 +17916,7 @@ ${SUBAGENT_RULES}
|
|
|
17906
17916
|
- Read only the context you need.
|
|
17907
17917
|
- Avoid multi-step planning; if the task stops being bounded, surface it.
|
|
17908
17918
|
- Ask only for implementation-local ambiguity, not orchestrator-level routing.
|
|
17919
|
+
- NEVER run git commands that discard changes (\`git restore\`, \`git checkout --\`, \`git reset\`, \`git clean\`). Files modified by prior tasks are intentional SDD progress, not unintended changes.
|
|
17909
17920
|
</rules>
|
|
17910
17921
|
|
|
17911
17922
|
${QUESTION_PROTOCOL}
|
package/package.json
CHANGED