@yandy-r/ycc-opencode 6.0.0 → 6.1.1
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/AGENTS.md +3 -2
- package/README.md +10 -1
- package/agents/backport-conflict-resolver.md +346 -4
- package/agents/db-modifier.md +346 -4
- package/agents/git-cleanup.md +3 -2
- package/agents/pr-comment-fixer.md +365 -23
- package/agents/release-fix-applier.md +383 -19
- package/agents/review-fixer.md +371 -26
- package/index.js +268 -5
- package/package.json +3 -2
- package/registration.json +4113 -1238
- package/shared/references/ci-monitoring.md +11 -1
- package/shared/references/goal-pairing.md +4 -2
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-dispatch.md +4 -2
- package/shared/references/standalone-dispatch.md +4 -2
- package/shared/references/target-capability-matrix.md +227 -36
- package/shared/references/worktree-strategy.md +20 -4
- package/shared/scripts/worktree-paths.sh +7 -2
- package/skills/backport/SKILL.md +2 -0
- package/skills/blueprint/SKILL.md +2 -0
- package/skills/bundle-author/SKILL.md +2 -0
- package/skills/bundle-release/SKILL.md +11 -7
- package/skills/bundle-release/references/release-checklist.md +4 -4
- package/skills/bundle-release/references/version-policy.md +21 -15
- package/skills/bundle-release/scripts/bump-version.sh +5 -3
- package/skills/bundle-release/scripts/draft-notes.sh +1 -1
- package/skills/bundle-release/scripts/preflight.sh +2 -1
- package/skills/bundle-release/scripts/release_versions.py +21 -7
- package/skills/clean/SKILL.md +2 -0
- package/skills/code-report/SKILL.md +2 -0
- package/skills/code-review/SKILL.md +2 -0
- package/skills/compatibility-audit/SKILL.md +9 -6
- package/skills/compatibility-audit/references/reading-the-report.md +4 -1
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +71 -12
- package/skills/compatibility-audit/scripts/audit-target-features.sh +58 -20
- package/skills/feature-research/SKILL.md +2 -0
- package/skills/formatters/SKILL.md +2 -0
- package/skills/git-cleanup/SKILL.md +19 -5
- package/skills/git-cleanup/references/active-code-rules.md +8 -3
- package/skills/git-workflow/SKILL.md +2 -0
- package/skills/implement-plan/SKILL.md +2 -0
- package/skills/init/SKILL.md +2 -0
- package/skills/init/templates/git/gitignore.tmpl +1 -0
- package/skills/plan/SKILL.md +2 -0
- package/skills/plan-workflow/SKILL.md +4 -1
- package/skills/pr-autofix/SKILL.md +2 -0
- package/skills/prp-implement/SKILL.md +2 -0
- package/skills/prp-plan/SKILL.md +2 -2
- package/skills/prp-pr/SKILL.md +2 -0
- package/skills/prp-prd/SKILL.md +2 -0
- package/skills/prp-spec/SKILL.md +2 -0
- package/skills/quick-review/SKILL.md +5 -3
- package/skills/release-model/SKILL.md +2 -0
- package/skills/releaser/SKILL.md +2 -0
- package/skills/research-to-issues/SKILL.md +2 -0
- package/skills/resume-session/SKILL.md +2 -0
- package/skills/review-fix/SKILL.md +11 -9
- package/skills/save-session/SKILL.md +2 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
- package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +0 -111
|
@@ -70,7 +70,11 @@ invocation:
|
|
|
70
70
|
showing the resolved caps (PR number, head branch, `--max-pushes`,
|
|
71
71
|
`--max-same-failure`, `--timeout-min`) and the non-toggleable safety
|
|
72
72
|
constraints below. The user must confirm before the first iteration. Skip this
|
|
73
|
-
prompt by passing `--ci-yes` (for non-interactive callers).
|
|
73
|
+
prompt by passing `--ci-yes` (for non-interactive callers). The prompt is a
|
|
74
|
+
`confirm-publish` gate (`question-policy.md` in this directory): with a chat turn
|
|
75
|
+
but no question tool, use the text-mode fallback. Headless (no question tool or
|
|
76
|
+
chat turn) and without `--ci-yes`: do not enter the loop, report that CI was not
|
|
77
|
+
monitored, and print `rerun with --ci-yes`.
|
|
74
78
|
- **Non-toggleable safety constraints** (cannot be overridden by any flag):
|
|
75
79
|
- Never `git push --force` or `git push --force-with-lease`.
|
|
76
80
|
- Never commit with `--no-verify`.
|
|
@@ -158,6 +162,12 @@ The SKILL.md files for `git-workflow` and `prp-pr` implement the
|
|
|
158
162
|
following LLM-side loop. The script is a single-shot checker; the loop lives in
|
|
159
163
|
the skill.
|
|
160
164
|
|
|
165
|
+
**Long-running monitors.** One `ci-monitor.sh` call can block for up to
|
|
166
|
+
`--timeout-min`. Some runtimes move a shell command to a background job after a
|
|
167
|
+
fixed time (OMP: after 60 s). Pass a shell timeout above the monitor's wall-clock
|
|
168
|
+
cap, or wait for the background job's result; never end the turn while a monitor
|
|
169
|
+
runs, because headless runs exit and drop the result.
|
|
170
|
+
|
|
161
171
|
1. **One-time auth prompt** (skip if `--ci-yes`): render resolved caps + safety
|
|
162
172
|
constraints to the user; require confirmation before proceeding.
|
|
163
173
|
|
|
@@ -45,8 +45,10 @@ Each skill fills the skeleton with its own signal keys (see that skill's
|
|
|
45
45
|
1. **Worktree cwd**: when the skill runs in worktree mode (the default for both), reports
|
|
46
46
|
and artifacts live under `<repo-root>/.opencode/worktrees/<repo>-<slug>/...`. Conditions must key off
|
|
47
47
|
printed signals, never main-repo file paths.
|
|
48
|
-
2. **Interactive failure prompts**: parallel/team batch failures
|
|
49
|
-
|
|
48
|
+
2. **Interactive failure prompts**: parallel/team batch failures hit the `failure-recovery`
|
|
49
|
+
gate in `{{package-root}}/shared/references/question-policy.md`. `/goal`
|
|
50
|
+
cannot answer it: interactively the loop stalls on the prompt; headless, the
|
|
51
|
+
run stops with the failing batch and resume command. Expect manual intervention on
|
|
50
52
|
batch failures.
|
|
51
53
|
3. **Platform**: `/goal` is available only in the Anthropic terminal (v2.1.139+) and the
|
|
52
54
|
Codex CLI (v0.128.0+) — not in Cursor or opencode bundle invocations. Accept the trust
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Question Policy — Shared Contract
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Detection rule
|
|
6
|
+
- Gate classes
|
|
7
|
+
- Hard rules
|
|
8
|
+
- Declared defaults
|
|
9
|
+
- Text-mode fallback
|
|
10
|
+
- Runtime modes
|
|
11
|
+
|
|
12
|
+
Reference for every ycc skill that asks the user a question. Each asking skill declares
|
|
13
|
+
its gate class(es) and its headless default in one **Questions** line that links here. Fix
|
|
14
|
+
the shared behavior here, not per skill.
|
|
15
|
+
|
|
16
|
+
## Detection rule
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Pick the question surface per run, in this order:
|
|
20
|
+
|
|
21
|
+
1. **Question tool.** If a question tool is in your current tool list (Claude Code's
|
|
22
|
+
built-in question tool, OMP `ask`), ask with it. Never call a question tool that is not in
|
|
23
|
+
the list, and never treat its absence as an error.
|
|
24
|
+
2. **Chat turn.** No question tool, but the user can reply in the next turn (for example
|
|
25
|
+
Codex or Cursor chat): use the text-mode fallback below.
|
|
26
|
+
3. **Headless.** No question tool and no chat turn (OMP `-p`, `--mode json`, `--mode rpc`;
|
|
27
|
+
CI; any print-mode run): apply the skill's declared headless default. Never wait for
|
|
28
|
+
input that cannot arrive.
|
|
29
|
+
|
|
30
|
+
**Subagents never ask.** A subagent returns the open choices, the evidence and its
|
|
31
|
+
recommended option to the parent, and the parent applies this policy.
|
|
32
|
+
|
|
33
|
+
## Gate classes
|
|
34
|
+
|
|
35
|
+
| Class | Typical gate | Interactive | Headless default |
|
|
36
|
+
| --------------------- | ---------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
37
|
+
| `clarify` | interviews, "STOP and ask" ambiguity gates, missing input path | ask | Print the open questions, write nothing, stop. |
|
|
38
|
+
| `confirm-destructive` | delete, apply, install, overwrite, continue a cherry-pick + push | ask | Do not act. Take the read-only path (report, dry-run, save) and print `rerun with <flag>`. |
|
|
39
|
+
| `confirm-publish` | tag, release, publish, post a review, write release policy | ask | Stop before the side effect and print `rerun with <flag>`. |
|
|
40
|
+
| `choose-path` | pick an action or execution mode | ask | Take the declared non-destructive option (save, sequential, enhance). If none exists, use `confirm-destructive`. |
|
|
41
|
+
| `checkpoint` | review artifacts before continuing | ask | Continue (artifacts are docs only) and report the checkpoint in the final summary. |
|
|
42
|
+
| `failure-recovery` | batch or validation failure mid-run | ask | Stop, preserve completed work, and print the failing batch plus the resume command. Never auto-retry or skip. |
|
|
43
|
+
|
|
44
|
+
"Interactive" covers both a question tool and the text-mode fallback.
|
|
45
|
+
|
|
46
|
+
## Hard rules
|
|
47
|
+
|
|
48
|
+
1. Destructive and publishing gates never auto-approve without an explicit flag the skill
|
|
49
|
+
documents (`--yes`, `--apply`, `--ci-yes`, `--publish`, …). A headless run is not
|
|
50
|
+
consent.
|
|
51
|
+
2. The headless stop message is one plain-text line naming the exact rerun, for example:
|
|
52
|
+
`Stopped before publish: headless run. Rerun with --publish --confirm.`
|
|
53
|
+
3. The declared default, not the `recommended` marker, governs a headless run.
|
|
54
|
+
`recommended` is an interactive hint only and may differ from the declared default.
|
|
55
|
+
4. Never mark a destructive or publishing choice `recommended` in a `confirm-destructive` or
|
|
56
|
+
`confirm-publish` question.
|
|
57
|
+
5. Auto-select on timeout is a user opt-in interactive behavior (for example OMP
|
|
58
|
+
`ask.timeout > 0`, off by default). It picks the `recommended` option, which in a
|
|
59
|
+
`choose-path` question may edit files (quick-review recommends "Apply fixes" or "Write
|
|
60
|
+
file and apply fixes"). Rule 4 guarantees only that a timeout never confirms a
|
|
61
|
+
destructive or publishing gate; it does not make a timed-out `choose-path` read-only.
|
|
62
|
+
6. A declared default never widens scope: it may only skip, stop, report, or take a
|
|
63
|
+
non-destructive path.
|
|
64
|
+
|
|
65
|
+
## Declared defaults
|
|
66
|
+
|
|
67
|
+
Each asking skill carries one line near its arguments:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
**Questions:** class `<class>`; headless (no question tool or chat turn): <default>. See `.../question-policy.md`.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
A skill with several gates lists each class with its default. A skill-specific default
|
|
74
|
+
overrides the class default above only by being narrower. Declared defaults never replace
|
|
75
|
+
an interactive prompt: with a chat turn, use the text-mode fallback instead.
|
|
76
|
+
|
|
77
|
+
## Text-mode fallback
|
|
78
|
+
|
|
79
|
+
For chat runtimes without a question tool:
|
|
80
|
+
|
|
81
|
+
1. Print the question and the numbered choices, mark the `recommended` one, and end the turn.
|
|
82
|
+
2. Parse the next reply case-insensitively against the choice labels and the skill's
|
|
83
|
+
documented synonyms.
|
|
84
|
+
3. Ambiguous reply: re-prompt once. Still ambiguous: take the least destructive choice
|
|
85
|
+
(discard, cancel, or the read-only path).
|
|
86
|
+
|
|
87
|
+
## Runtime modes
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
| Runtime and mode | Question surface | Behavior |
|
|
91
|
+
| ---------------------------------------------------------- | ------------------------ | -------------------------------------- |
|
|
92
|
+
| Claude Code interactive | built-in question tool | ask; mark one `recommended` hint |
|
|
93
|
+
| OMP TUI and `--mode rpc-ui` | `ask` | ask; mark one `recommended` hint |
|
|
94
|
+
| Codex and Cursor chat | none; text-mode fallback | print choices, wait for the reply |
|
|
95
|
+
| OMP `-p`, `--mode json`, `--mode rpc`; CI; print-mode runs | none (headless) | declared default, or stop + rerun hint |
|
|
96
|
+
| Any subagent | none | return choices to the parent |
|
|
97
|
+
|
|
98
|
+
OMP registers `ask` only when a UI is attached, so the same skill sees it in the TUI and
|
|
99
|
+
not in `-p`. Detect per run from the tool list; never assume from the runtime name.
|
|
@@ -44,8 +44,10 @@ Each reviewer prompt includes the instruction "flag only gaps that affect correc
|
|
|
44
44
|
commands. The prompt must supply the diff and any command output the
|
|
45
45
|
reviewer needs.
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Wait for all 3 reviewer results before merging: if results are pending and the runtime
|
|
48
|
+
offers a wait tool, call it until every reviewer job has settled; never finish the run
|
|
49
|
+
while a reviewer is still running. After all 3 native `subagent` calls return, the calling skill
|
|
50
|
+
(not the reviewer) persists each valid inline return to its scratch copy at
|
|
49
51
|
`docs/prps/reviews/.review-scratch/<run-id>/<reviewer-name>.md`, where
|
|
50
52
|
`<run-id>` is `local-<YYYYMMDD-HHMMSS>` for local mode, `pr-<NUMBER>` for PR
|
|
51
53
|
mode, `quick-<YYYYMMDD-HHMMSS>` for quick mode. An empty, missing, or malformed
|
|
@@ -276,7 +276,8 @@ Run the skill's own validation inside the execution tree (worktree path or prepa
|
|
|
276
276
|
After each batch update todos and print the skill's verbatim `[done] Batch BN: K tasks — complete` marker (em dash; transcript loops match the marker).
|
|
277
277
|
Do not auto-retry a failed batch (usually file conflict or hidden dependency) and do not skip it;
|
|
278
278
|
later batches may depend on it. Preserve completed work; ask the user (fix/resume, switch to
|
|
279
|
-
sequential, abort)
|
|
279
|
+
sequential, abort) per the `failure-recovery` class in `question-policy.md` in this directory.
|
|
280
|
+
Standalone partial failure: continue only independent tasks.
|
|
280
281
|
|
|
281
282
|
## 10. Executing a Confirmed Plan
|
|
282
283
|
|
|
@@ -288,7 +289,8 @@ rules (lowercase, non `[a-z0-9-]` to `-`, collapse, cap 20, fallback `untitled`)
|
|
|
288
289
|
a different feature branch (`--allow-existing-feature-branch` after confirmation) or on `release/*`
|
|
289
290
|
when `RELEASING.md` exists (`--allow-release-branch` for release-only fixes). Do not skip.
|
|
290
291
|
Then process section 9 batches with one `implementor` `subagent` per step in one message; run the
|
|
291
|
-
project type-check and unit-test commands between batches; on failure stop and ask the user
|
|
292
|
+
project type-check and unit-test commands between batches; on failure stop and ask the user
|
|
293
|
+
(`failure-recovery` class in `question-policy.md`).
|
|
292
294
|
|
|
293
295
|
## 11. Unsupported team mode
|
|
294
296
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- Notes
|
|
9
9
|
- How to Update This Document
|
|
10
10
|
|
|
11
|
-
As of 2026-10-
|
|
11
|
+
As of 2026-10-19
|
|
12
12
|
|
|
13
13
|
This file is the authoritative source for which ycc bundle capabilities are supported on each
|
|
14
14
|
deployment target. Downstream scripts parse the table below; read the Parser Grammar section
|
|
@@ -21,72 +21,90 @@ before editing the table.
|
|
|
21
21
|
The first table below (Capability Matrix) is parsed by `ycc/skills/compatibility-audit/scripts/audit-target-features.sh`.
|
|
22
22
|
Follow these rules exactly or the parser will misread cells:
|
|
23
23
|
|
|
24
|
-
- **Column order**: `capability, claude, cursor, codex, opencode` — do not reorder.
|
|
24
|
+
- **Column order**: `capability, claude, cursor, codex, opencode, omp` — do not reorder.
|
|
25
25
|
- **Cell vocabulary**: exactly one of `supported`, `partial`, or `unsupported` — no other tokens,
|
|
26
26
|
no trailing punctuation, no parenthetical notes inside the cell.
|
|
27
27
|
- **Notes** belong in the Notes section below the table, keyed as `capability:target`.
|
|
28
28
|
- The Native vs install.sh Fallback table comes after the parsed table and is descriptive only.
|
|
29
29
|
The audit parser stops at the first non-table line after the Capability Matrix, so keep a
|
|
30
|
-
heading or prose line between the two tables
|
|
30
|
+
heading or prose line between the two tables. Add a target column only by appending it and
|
|
31
|
+
updating the scripts that parse it.
|
|
31
32
|
- Do not change column order or cell vocabulary without updating the parser in
|
|
32
|
-
`ycc/skills/compatibility-audit/scripts/audit-target-features.sh`.
|
|
33
|
+
`ycc/skills/compatibility-audit/scripts/audit-target-features.sh`. Separator cells are dashes
|
|
34
|
+
only (`---`); alignment colons are not allowed. Every header target must be a runtime in
|
|
35
|
+
`ycc/settings/packages.schema.json`, and every `partial` or `unsupported` cell needs a
|
|
36
|
+
`**CAPABILITY:target**` note; `scripts/validate_capability_matrix.py` enforces both.
|
|
37
|
+
- **Rows are pinned**: the capability rows and their order are fixed in
|
|
38
|
+
`CANONICAL_CAPABILITIES` in `scripts/validate_capability_matrix.py`. Adding, removing, or
|
|
39
|
+
reordering a capability requires updating that tuple and the capability detection in
|
|
40
|
+
`audit-target-features.sh`.
|
|
33
41
|
|
|
34
42
|
---
|
|
35
43
|
|
|
36
44
|
## Capability Matrix
|
|
37
45
|
|
|
38
|
-
| capability | claude | cursor | codex | opencode |
|
|
39
|
-
| ----------------- | --------- | ----------- | ----------- | ----------- |
|
|
40
|
-
| SKILLS | supported | supported | supported | supported |
|
|
41
|
-
| COMMANDS | supported | partial | unsupported | supported |
|
|
42
|
-
| AGENTS | supported | partial | supported | supported |
|
|
43
|
-
| HOOKS.PreToolUse | supported | partial | unsupported | partial |
|
|
44
|
-
| HOOKS.PostToolUse | supported | partial | unsupported | partial |
|
|
45
|
-
| HOOKS.Stop | supported | partial | unsupported | partial |
|
|
46
|
-
| MCP | supported | supported | partial | supported |
|
|
47
|
-
| INSTALL_PATH | supported | supported | supported | supported |
|
|
48
|
-
| DANGEROUS_MODE | supported | unsupported | unsupported | unsupported |
|
|
49
|
-
| WORKTREE | supported | partial | partial | partial |
|
|
50
|
-
| MODS | supported | unsupported | unsupported | unsupported |
|
|
46
|
+
| capability | claude | cursor | codex | opencode | omp |
|
|
47
|
+
| ----------------- | --------- | ----------- | ----------- | ----------- | ----------- |
|
|
48
|
+
| SKILLS | supported | supported | supported | supported | partial |
|
|
49
|
+
| COMMANDS | supported | partial | unsupported | supported | partial |
|
|
50
|
+
| AGENTS | supported | partial | supported | supported | partial |
|
|
51
|
+
| HOOKS.PreToolUse | supported | partial | unsupported | partial | unsupported |
|
|
52
|
+
| HOOKS.PostToolUse | supported | partial | unsupported | partial | unsupported |
|
|
53
|
+
| HOOKS.Stop | supported | partial | unsupported | partial | unsupported |
|
|
54
|
+
| MCP | supported | supported | partial | supported | partial |
|
|
55
|
+
| INSTALL_PATH | supported | supported | supported | supported | partial |
|
|
56
|
+
| DANGEROUS_MODE | supported | unsupported | unsupported | unsupported | unsupported |
|
|
57
|
+
| WORKTREE | supported | partial | partial | partial | partial |
|
|
58
|
+
| MODS | supported | unsupported | unsupported | unsupported | unsupported |
|
|
51
59
|
|
|
52
60
|
---
|
|
53
61
|
|
|
54
62
|
## Native vs install.sh Fallback
|
|
55
63
|
|
|
56
|
-
Packaging status as of 2026-10-
|
|
57
|
-
from installer-managed artifacts and
|
|
64
|
+
Packaging status as of v6.0.0 (2026-10-18). This descriptive companion separates shipping native packages
|
|
65
|
+
from installer-managed artifacts and gated work in `ycc/settings/packages.json`.
|
|
58
66
|
`listed: false` packages are not published catalog entries; generated trees and successful spikes
|
|
59
67
|
alone do not make them shipping user install paths. This does not revise the capability verdicts above.
|
|
60
68
|
|
|
61
|
-
| target | native, listed today
|
|
62
|
-
| -------- |
|
|
63
|
-
| Claude | `ycc@ycc` (
|
|
64
|
-
| Cursor |
|
|
65
|
-
| Codex |
|
|
66
|
-
| opencode | None
|
|
67
|
-
| `agents` | None
|
|
69
|
+
| target | native, listed today | install.sh fallback today | unlisted or gated native packages |
|
|
70
|
+
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
|
|
71
|
+
| Claude | `ycc@ycc`, `ycc-mcp@ycc`, `ycc-hooks@ycc` (2.1.300+), `ycc-all@ycc`; `status-bar@ycc-mods` | Rules, settings, statusline, hooks link, MCP, standalone skills/agents | `ycc-agents@ycc` in v7.0.0 |
|
|
72
|
+
| Cursor | `ycc`, `ycc-rules`, `ycc-mcp`, `ycc-hooks` via the root `.cursor-plugin/marketplace.json` (interactive `/plugins`); hooks `sessionStart` only | Skills, agents, commands, rules, settings under `~/.cursor/`; optional hooks | None |
|
|
73
|
+
| Codex | `ycc@ycc`, `ycc-mcp@ycc` via the root `.agents/plugins/marketplace.json` | Agent TOMLs, `AGENTS.md`, `config.toml` | `ycc-hooks` excluded (YAN-1149) |
|
|
74
|
+
| opencode | None | Skills, agents, commands, shared, `opencode.json`, `AGENTS.md` | `@yandy-r/ycc-opencode` npm plugin: experimental, opt-in, unpublished |
|
|
75
|
+
| `agents` | None | Skills and `ycc-shared` copied into `~/.agents/` | None planned |
|
|
76
|
+
| `omp` | `ycc@ycc`, `ycc-mcp@ycc`, `ycc-rules@ycc` via the root `.omp-plugin/marketplace.json` (omp `>=18.12.2`) | `install.sh --target omp`: local export (`--mode local`) or the repository catalog (`--mode repo`) installed through `omp plugin` (user or project scope); opt-in `--rules` (`AGENTS.md`) and `--settings` (`config.yml`), user scope only | `ycc-hooks` and `ycc-all` excluded (herdr: `herdr integration install omp`) |
|
|
68
77
|
|
|
69
78
|
Native dependency resolution is a Claude platform feature, not a cross-runtime guarantee.
|
|
70
|
-
The
|
|
79
|
+
The Claude `ycc-all` meta plugin's automatic dependency install was verified on Claude Code 2.1.301 and in the v6.0.0 maintainer clean-host verification; Cursor and Codex have no
|
|
71
80
|
dependency field, and the `agents` target is a directory convention, not a package system.
|
|
72
81
|
Claude rules, settings, and statusline stay on `install.sh`.
|
|
73
82
|
|
|
74
83
|
The recommendation in `docs/research/ystack/recommendation.md` is qualified by
|
|
75
84
|
`ycc/settings/packages.json` and the later verdicts in `docs/internal/spikes/`:
|
|
76
85
|
|
|
77
|
-
- `claude-hooks.md`: plugin `WorktreeCreate` was observed on 2.1.300, not 2.1.143. The
|
|
86
|
+
- `claude-hooks.md`: plugin `WorktreeCreate` was observed on 2.1.300, not 2.1.143. The
|
|
78
87
|
hooks package requires a documented 2.1.300 minimum and tested command-level migration dedupe
|
|
79
88
|
that preserves user-owned hooks. `claude-namespace.md` rejects a shared-name agents split;
|
|
80
89
|
the qualified `ycc-agents:` namespace is deferred to v7.0.0.
|
|
81
90
|
- `codex-marketplace.md`: native catalog discovery is verified on 0.161.0, but `WorktreeCreate`
|
|
82
91
|
is dropped and trusted plugin hook dispatch is unverified. Hooks remain excluded.
|
|
83
92
|
- `cursor-plugin.md`: user-scope GitHub marketplace registration is verified; interactive
|
|
84
|
-
install
|
|
85
|
-
native packages with a tested Cursor floor of 3.24.12,
|
|
93
|
+
install was verified in the v6.0.0 maintainer release verification (YAN-1141). YAN-1132
|
|
94
|
+
generates the native packages with a tested Cursor floor of 3.24.12, listed in the root marketplace.
|
|
86
95
|
Native hooks are limited to `sessionStart`; do not infer `WorktreeCreate` or other Claude hook parity.
|
|
87
96
|
- `opencode-config-hook.md`: V2 registrations and context-hook instructions were verified on
|
|
88
97
|
v2.0.29, not the V1 config-hook approach. The experimental npm path still needs CI publishing;
|
|
89
98
|
`install.sh` file copy remains primary.
|
|
99
|
+
- `omp-runtime-contract.md`: tested on omp 18.12.2 (supported floor `>=18.12.2`). OMP gets a
|
|
100
|
+
dedicated generated `.omp-plugin/` tree; shell hooks, `hooks.json`, and `WorktreeCreate` never
|
|
101
|
+
run, and `ycc-all` is omitted because OMP ignores plugin dependencies. See ADR 0002. The
|
|
102
|
+
opt-in harness installs a generated export of `ycc` (its catalog includes unlisted rows) from
|
|
103
|
+
a local pinned fixture on omp 18.12.3 (YAN-1171). `install.sh install --target omp` installs the
|
|
104
|
+
same export, now `ycc`, `ycc-mcp` and `ycc-rules`, from a checkout through `omp plugin`
|
|
105
|
+
(YAN-1172, YAN-1173, YAN-1175). Since YAN-1180 the three rows are listed and the repository
|
|
106
|
+
publishes the root `.omp-plugin/marketplace.json`.
|
|
107
|
+
YAN-1174: ycc ships no OMP hooks; herdr reporting is herdr's own OMP integration.
|
|
90
108
|
|
|
91
109
|
---
|
|
92
110
|
|
|
@@ -107,13 +125,13 @@ opencode emits skill metadata `opencode/autoinvoke: 'false'`. The cross-tool `ag
|
|
|
107
125
|
target has no portable key, so it omits the flag and keeps the description.
|
|
108
126
|
|
|
109
127
|
**COMMANDS:cursor**
|
|
110
|
-
The
|
|
128
|
+
The native `packages/cursor/ycc/commands/` contains thin commands derived from
|
|
111
129
|
user-invocable skills in `ycc/skills/`; each loads its package-local skill. This is not
|
|
112
130
|
an installed-plugin dispatch proof. The file-copy installer's `commands` intent installs
|
|
113
131
|
owned wrappers into `~/.cursor/commands/` that reference the installed skills, and its
|
|
114
132
|
`hooks` intent is an optional explicit carrier that registers `sessionStart` only.
|
|
115
|
-
Native plugin
|
|
116
|
-
|
|
133
|
+
Native plugin install is interactive (`/plugins`); the agent CLI has no non-interactive
|
|
134
|
+
`plugin install`.
|
|
117
135
|
|
|
118
136
|
**COMMANDS:codex**
|
|
119
137
|
The Codex customization platform does not support a slash-command layer. Skills are exposed
|
|
@@ -122,7 +140,7 @@ via the plugin bundle; there is no Codex analog for slash commands.
|
|
|
122
140
|
**AGENTS:cursor**
|
|
123
141
|
Agents from `ycc/agents/` are adapted into `packages/cursor/ycc/agents/` and copied by
|
|
124
142
|
the installer to `~/.cursor/agents/`. The same generated definitions are packaged in the
|
|
125
|
-
|
|
143
|
+
native `ycc` package.
|
|
126
144
|
|
|
127
145
|
**HOOKS.PreToolUse:cursor**
|
|
128
146
|
Cursor does not expose a native PreToolUse hook execution surface equivalent to Claude Code's
|
|
@@ -185,8 +203,8 @@ The file-copy installer copies skills, agents, and rules into `~/.cursor/`, inst
|
|
|
185
203
|
owned `commands` wrappers into `~/.cursor/commands/`, and merges the config there. The
|
|
186
204
|
`hooks` step is an optional explicit carrier that installs the `sessionStart` hook only
|
|
187
205
|
(no `WorktreeCreate`) and is not inherited by other selections. All four native packages
|
|
188
|
-
|
|
189
|
-
|
|
206
|
+
are listed in the generated root `.cursor-plugin/marketplace.json`; native installation is
|
|
207
|
+
interactive (`/plugins`). See `docs/internal/cursor-native-packages.md`.
|
|
190
208
|
|
|
191
209
|
**INSTALL_PATH:codex**
|
|
192
210
|
`install.sh install --target codex` symlinks `~/.codex/plugins/ycc/` to the repo's
|
|
@@ -300,6 +318,179 @@ Unsupported. Codex has no in-process hook module API; the intent is reported and
|
|
|
300
318
|
Unsupported. opencode plugins are the closest analogue, but no translator exists yet; the intent
|
|
301
319
|
is reported and skipped.
|
|
302
320
|
|
|
321
|
+
**SKILLS:omp**
|
|
322
|
+
Partial: `scripts/generate_omp_skills.py` generates every skill under `packages/omp/ycc/skills/`,
|
|
323
|
+
and it loads via `omp --plugin-dir`. Skills run as `/skill:<name>`, and `disable-model-invocation`
|
|
324
|
+
maps natively. `${CLAUDE_PLUGIN_ROOT}` and `_shared` paths become `skill://` URLs, and `_shared`
|
|
325
|
+
ships once as the hidden `ycc-shared` skill. `/ycc:<name>` becomes `/skill:<name>`. The tree ships
|
|
326
|
+
in the generated `ycc` package (YAN-1171), which is unlisted until release; `install.sh install
|
|
327
|
+
--target omp` installs it from a checkout (see INSTALL_PATH:omp). Workflow semantics (YAN-1170):
|
|
328
|
+
repo-local worktrees under `.omp/worktrees` (see WORKTREE:omp); fan-out uses one `task` batch and
|
|
329
|
+
calls `wait` until every owned job settles, because `-p`/JSON runs exit and drop pending async
|
|
330
|
+
results; `ask` exists only in the TUI and `--mode rpc-ui`, so `-p`, `--mode json`, `--mode rpc`
|
|
331
|
+
and subagents take each skill's declared default from `question-policy.md`; `--team` is
|
|
332
|
+
unsupported and fails closed. Per-skill status: `docs/internal/omp-workflow-semantics.md`.
|
|
333
|
+
Coexistence (YAN-1176): OMP also reads `~/.agents/skills` by default and lists a differing
|
|
334
|
+
same-name copy as `agents/<name>`. The default-on `dedupe` step of `install.sh install --target
|
|
335
|
+
omp` adds hash-owned `agents/<name>`, `codex/<name>` and `opencode/<name>` entries for
|
|
336
|
+
ycc-installed skills to the user `<agentDir>/config.yml` `skills.ignoredSkills` (never project
|
|
337
|
+
config), so each skill loads once from the package; `--only base` skips it and `remove --target
|
|
338
|
+
omp --only dedupe` takes the entries back. With `enabledProviders` including `claude`, standalone
|
|
339
|
+
`~/.claude/skills` copies outrank the package, and the installer warns.
|
|
340
|
+
Source: ADR 0002; spike §3; `docs/install/omp.md` (Coexistence With Other Runtimes).
|
|
341
|
+
|
|
342
|
+
**COMMANDS:omp**
|
|
343
|
+
Partial: `scripts/generate_omp_commands.py` writes one thin command per public skill to
|
|
344
|
+
`packages/omp/ycc/commands/<skill>.md`. Public means the directory is not `_`-prefixed and
|
|
345
|
+
`user-invocable` is not `false`; manual-only skills (`disable-model-invocation: true`) still get
|
|
346
|
+
one. Each command keeps the skill's `description` and `argument-hint`, reads `skill://<skill>`,
|
|
347
|
+
and passes `$ARGUMENTS`. OMP registers plugin commands as `<plugin>:<stem>`; the prefix is the catalog plugin name
|
|
348
|
+
for marketplace installs, else the `name` in `.claude-plugin/plugin.json` (or root
|
|
349
|
+
`plugin.json`), else the `--plugin-dir` basename. `.omp-plugin/plugin.json` does not set it, but
|
|
350
|
+
OMP keeps agent `model:` only with it, so the package root ships both manifests, named `ycc`,
|
|
351
|
+
for `/ycc:<skill>` (verified live on omp 18.12.3).
|
|
352
|
+
`omp plugin link` registers bare names, and OMP's built-ins (such as `/plan`) and bundled file
|
|
353
|
+
commands (such as `/init`) shadow them. Generation fails on names OMP cannot dispatch, duplicate
|
|
354
|
+
names, a `ycc` namespace or `ycc:<name>` equal to an OMP built-in name or alias (the set is pinned
|
|
355
|
+
from omp 18.12.3), empty descriptions, non-string hints and a non-boolean `user-invocable`.
|
|
356
|
+
`/skill:<name>` is an alternative when `skills.enableSkillCommands` is on (the default). The
|
|
357
|
+
generated root carries both manifests (YAN-1171); a checkout installs it with `install.sh install
|
|
358
|
+
--target omp`, and the repository publishes no OMP catalog until the package is listed (see
|
|
359
|
+
INSTALL_PATH:omp).
|
|
360
|
+
Source: spike §3.
|
|
361
|
+
|
|
362
|
+
**AGENTS:omp**
|
|
363
|
+
Partial: `scripts/generate_omp_agents.py` generates every agent as an OMP task agent under
|
|
364
|
+
`packages/omp/ycc/agents/`, and it loads via `omp --plugin-dir`. `name` and `description` are kept.
|
|
365
|
+
Tools map to OMP IDs (`WebSearch` → `web_search`, `WebFetch` → `read`, `NotebookEdit` → `edit`).
|
|
366
|
+
Claude tool names in agent prose are rewritten the same way, but only in tool contexts; fenced
|
|
367
|
+
code and other code spans stay verbatim. An `mcp__<server>__<tool>` entry must name a server
|
|
368
|
+
configured in `mcp-configs/mcp.json` (an unknown server fails generation) and is not a frontmatter
|
|
369
|
+
tool: OMP mounts every MCP tool in every agent. Models map to roles from `ycc/settings/models.json`
|
|
370
|
+
`targets.omp.agentModels`: `opus` → `@slow`, `sonnet` → `@task`, and `inherit` emits no `model:`.
|
|
371
|
+
`@slow` and `@task` resolve through the user's `modelRoles`, which `install.sh --target omp --settings`
|
|
372
|
+
can set (opt-in). `color` is dropped. Generation fails on any
|
|
373
|
+
other key, tool or model. It also fails on OMP's reserved session names (`main`, `sub`) and on
|
|
374
|
+
names that would shadow OMP's bundled agents (`task`, `sonic`, `scout`, `reviewer`,
|
|
375
|
+
`security-reviewer`, `seance`). Agent tool scope is enforced (YAN-1250): the generator renders each
|
|
376
|
+
agent's `Bash(<prefix>:*)` prefixes and `mcp__*` tools once, into
|
|
377
|
+
`packages/omp/ycc/extensions/agent-scopes.json`, and the scope guard extension beside it
|
|
378
|
+
(`extensions/scope-guard.ts`, declared in the package's `package.json` `omp.extensions`) reads that
|
|
379
|
+
file at load. Its `tool_call` handler acts only when `ctx.agent.kind` is `sub` and `ctx.agent.name`
|
|
380
|
+
is a ycc agent; the main session and other agents pass through. A scoped agent's `bash` command is
|
|
381
|
+
split into every pipeline, `&&`/`||`/`;`/`&`/newline chain, `( )` subshell and `{ }` group segment,
|
|
382
|
+
and each must match a prefix token by token after quote removal (`*` is exactly one argument). The
|
|
383
|
+
guard fails closed on `$` expansions, command substitution, backticks, process substitution,
|
|
384
|
+
here-documents, output redirection other than `/dev/null`, leading `VAR=value`, unbalanced quotes
|
|
385
|
+
or groups, and `find -exec`; wrappers such as `sudo`, `env`, `xargs` or `bash -c` are blocked unless
|
|
386
|
+
a prefix names them. The same data renders the agent's `## Shell scope (OMP)` prompt section. MCP
|
|
387
|
+
calls (`mcp__*`, top-level or through `write xd://mcp__*`, which OMP re-emits as a nested
|
|
388
|
+
`tool_call`) are blocked for agents that declared none and limited to the declared
|
|
389
|
+
`<server>`/`ycc-mcp:<server>` tools otherwise; `mcp://` resource reads are blocked for agents with a
|
|
390
|
+
declared MCP list. Plain `Bash` keeps full shell access. Limits: an allowed prefix trusts that
|
|
391
|
+
command's own options (`git -c`, `gh api`); MCP resources read through a server's native URI scheme
|
|
392
|
+
are not caught; the guard loads only from an installed package (`install.sh --target omp`, `omp
|
|
393
|
+
plugin install` or `link`), not from `omp --plugin-dir`, and not under `--no-extensions`; OMP
|
|
394
|
+
loads extensions at session start, so a running session needs a restart. Verified live on omp
|
|
395
|
+
18.12.5 (`ctx.agent` since 18.12.2) with a scripted model provider. OMP drops
|
|
396
|
+
agent `model:` only for Claude-dialect roots (a `.claude-plugin/plugin.json` without an
|
|
397
|
+
`.omp-plugin/plugin.json`). The generated `packages/omp/ycc` root ships `.omp-plugin/plugin.json`,
|
|
398
|
+
so it keeps agent `model:` both under `--plugin-dir` and as a marketplace install (YAN-1171).
|
|
399
|
+
Delegation: OMP `task` runs agents in the background
|
|
400
|
+
when `async.enabled` is set and inline otherwise; worktree isolation is the per-call `isolated`
|
|
401
|
+
flag (`task.isolation.enabled`, default off). Since YAN-1170 the generated dispatch reference
|
|
402
|
+
uses the `task({context, tasks: [...]})` batch shape (`agent`, not `subagent_type`), never sets
|
|
403
|
+
`isolated` for ycc fan-out, calls `wait` before yielding, and reads `agent://<id>` when an inline
|
|
404
|
+
summary is truncated at 5000 chars. Subagents have no `ask` tool and return choices to the
|
|
405
|
+
parent. OMP has no team tools; `--team` aborts, and `write agent://<id>` peer messaging is not a
|
|
406
|
+
team lifecycle.
|
|
407
|
+
Source: ADR 0002.
|
|
408
|
+
|
|
409
|
+
**HOOKS.PreToolUse:omp**
|
|
410
|
+
Unsupported. OMP never runs shell hooks or `hooks/hooks.json`; hooks load only as TypeScript
|
|
411
|
+
`ExtensionAPI` factories (`pi.on` events such as `tool_call`, `tool_result`, `session_stop`).
|
|
412
|
+
ycc ships no OMP hooks; herdr session reporting is herdr's own integration (`herdr integration install omp`)
|
|
413
|
+
and `WorktreeCreate` has no OMP event (YAN-1174). The one ycc OMP extension is the agent scope guard
|
|
414
|
+
(`tool_call`, see AGENTS:omp); it ports no Claude hook. Source: ADR 0002; spike §2.4.
|
|
415
|
+
|
|
416
|
+
**HOOKS.PostToolUse:omp**
|
|
417
|
+
Same constraint as HOOKS.PreToolUse:omp. The closest OMP event is `tool_result`.
|
|
418
|
+
|
|
419
|
+
**HOOKS.Stop:omp**
|
|
420
|
+
Same constraint as HOOKS.PreToolUse:omp. The closest OMP event is `session_stop`.
|
|
421
|
+
|
|
422
|
+
**MCP:omp**
|
|
423
|
+
Partial: `scripts/generate_omp_packages.py` builds `packages/omp/ycc-mcp/` whose `.mcp.json` is
|
|
424
|
+
`mcp-configs/mcp.json` after a secret-literal audit (credential keys must hold only `${VAR}`
|
|
425
|
+
placeholders). `install.sh install --target omp` installs it as
|
|
426
|
+
`ycc-mcp@ycc` with `ycc@ycc` (see INSTALL_PATH:omp). OMP's plugin MCP loader reads it natively,
|
|
427
|
+
names servers `ycc-mcp:<server>`, and expands `${VAR}` in `env`, `url` and `headers` at load
|
|
428
|
+
(unset variables arrive literally). The generated `.mcp.json` differs from the source in one
|
|
429
|
+
way (YAN-1291): a later http/sse server whose connection equals an earlier one gets
|
|
430
|
+
`?ycc-server=<name>` on its URL, so `ycc-mcp:linear-personal` loads beside `ycc-mcp:linear`
|
|
431
|
+
with its own OAuth login; the other targets keep the source URL. Listed in the root OMP catalog
|
|
432
|
+
since YAN-1180, after the YAN-1178 live acceptance on the real tree. Gaps:
|
|
433
|
+
`ycc-mcp:playwright` is dropped while `browser.enabled` is on; plugin timeouts below 1000 ms are
|
|
434
|
+
ignored; per-server disable is the user `disabledServers` list, and `plugin-overrides.json` does
|
|
435
|
+
not hide plugin MCP; with `enabledProviders` including `claude`, equivalent `~/.claude.json`
|
|
436
|
+
servers shadow `ycc-mcp:*`.
|
|
437
|
+
Source: spike §2.5, §3; `docs/install/omp.md` (MCP Servers).
|
|
438
|
+
|
|
439
|
+
**INSTALL_PATH:omp**
|
|
440
|
+
Partial: native catalog plus `install.sh install --target omp` (omp `>=18.12.2` on PATH), with
|
|
441
|
+
live acceptance on Linux x86_64 only. `scripts/generate_omp_packages.py` builds `packages/omp/ycc/`,
|
|
442
|
+
`packages/omp/ycc-mcp/` and `packages/omp/ycc-rules/` with `.omp-plugin/plugin.json`,
|
|
443
|
+
`.claude-plugin/plugin.json` and `package.json` at the lockstep version, and the root
|
|
444
|
+
`.omp-plugin/marketplace.json` (relative `./packages/omp/<package>` sources) listing every row
|
|
445
|
+
`listed` in `ycc/settings/packages.json`: `ycc`, `ycc-mcp` and `ycc-rules` since YAN-1180. So
|
|
446
|
+
`omp plugin marketplace add https://github.com/yandy-r/ystack.git` then
|
|
447
|
+
`omp plugin install ycc@ycc` works without a checkout. `scripts/omp_install.py` either exports
|
|
448
|
+
the packages to `${XDG_DATA_HOME:-~/.local/share}/ycc/omp-marketplace` (`--mode local`, the
|
|
449
|
+
default) or uses `https://github.com/yandy-r/ystack.git` (`--mode repo`), registers that as the
|
|
450
|
+
`ycc` marketplace, and runs `omp plugin install --scope user <package>@ycc`
|
|
451
|
+
for `ycc`, `ycc-mcp` and `ycc-rules`
|
|
452
|
+
(`--project`: `--scope project` in the git root). Ownership is recorded per omp profile in
|
|
453
|
+
`~/.config/ycc/omp-native-install.json`; a re-run updates the marketplace and upgrades only on a
|
|
454
|
+
version change, and `remove` uninstalls only recorded installs. `--dry-run` previews every `omp`
|
|
455
|
+
call. `--target all` includes omp when omp `>=18.12.2` is on PATH and skips it otherwise.
|
|
456
|
+
`ycc-hooks` is excluded on OMP. Opt-in `--rules` symlinks `ycc/settings/rules/AGENTS.md` to
|
|
457
|
+
`<agentDir>/AGENTS.md`, and `--settings` merges `modelRoles.{default,slow,task}`,
|
|
458
|
+
`retry.fallbackChains.{default,slow,task}` (request-failure fallback to the bare fallback model,
|
|
459
|
+
keeping the turn's thinking level; OMP also uses `default` for chat roles without a chain and
|
|
460
|
+
single-model subagents, while `@slow`/`@task` subagents retry along the role's comma list) and
|
|
461
|
+
`tools.approvalMode: write` into the user `<agentDir>/config.yml` (hash-owned per leaf; user edits
|
|
462
|
+
win). Both are user scope only: `--project` with either is rejected. The default-on `dedupe` step
|
|
463
|
+
writes the user `config.yml` `skills.ignoredSkills` (see SKILLS:omp), also with `--project`;
|
|
464
|
+
`remove --project` also deletes the empty `.omp/plugins/` files omp leaves. OMP has no trust
|
|
465
|
+
prompt: installed plugin code runs in-process with full user privileges. Platforms (YAN-1556):
|
|
466
|
+
live acceptance covers Linux x86_64 only; macOS, Linux arm64/musl and WSL 2 are expected but
|
|
467
|
+
unverified, and native Windows (including Git Bash/MSYS) is unsupported: `install.sh` and the OMP
|
|
468
|
+
harnesses are Bash and use Bash 4+ features, `--rules` needs a symlink, and no Windows host has
|
|
469
|
+
run them. Source: ADR 0002;
|
|
470
|
+
`docs/install/omp.md` (Platform Support); `docs/internal/omp-acceptance.md`.
|
|
471
|
+
|
|
472
|
+
**DANGEROUS_MODE:omp**
|
|
473
|
+
Unsupported. ycc ships no mapping for `--dangerously-skip-permissions`. OMP's default
|
|
474
|
+
`tools.approvalMode` is already `yolo` and subagents are forced to yolo, so there is no Claude
|
|
475
|
+
flag analogue to emit. The opt-in `install.sh --target omp --settings` sets the user
|
|
476
|
+
`tools.approvalMode: write` (exec prompts in the main session); subagents still run as `yolo`, and a
|
|
477
|
+
project `.omp/config.yml` overrides it. Source: spike §2.10; `docs/install/omp.md` (Approvals).
|
|
478
|
+
|
|
479
|
+
**WORKTREE:omp**
|
|
480
|
+
Partial: skill-managed worktrees use `<repo-root>/.omp/worktrees/`. The OMP generator rewrites the
|
|
481
|
+
`worktree-paths.sh` default to `.omp`, and the portable `agents` bundle resolves `.omp` from
|
|
482
|
+
`OMPCODE=1` (OMP bash also sets `CLAUDECODE=1`, which `OMPCODE` consumes). Tested by
|
|
483
|
+
`scripts/test-worktree-roots.sh` (omp bundle and agents-bundle OMP cases). Gaps: OMP has no
|
|
484
|
+
`WorktreeCreate` event, so there is no native hook. OMP's own task isolation and
|
|
485
|
+
`omp worktree` place workspaces under `~/.omp/wt` (`OMP_WORKTREE_DIR`); ycc never sets
|
|
486
|
+
`isolated` and never deletes `~/.omp/wt`. The bash tool rewrites a literal `git worktree add`
|
|
487
|
+
to clone-first `omp worktree add`, which falls back to a plain checkout for in-repo roots.
|
|
488
|
+
No native-parity claim. Source: ADR 0002; `worktree-strategy.md` §1.
|
|
489
|
+
|
|
490
|
+
**MODS:omp**
|
|
491
|
+
Unsupported. The Claude Code mod API differs from OMP's `ExtensionAPI`; the status-bar mod is
|
|
492
|
+
not ported. Source: ADR 0002.
|
|
493
|
+
|
|
303
494
|
---
|
|
304
495
|
|
|
305
496
|
## How to Update This Document
|
|
@@ -97,7 +97,7 @@ two agents on the same file, or serial execution for conflicting edits — see
|
|
|
97
97
|
per-skill rules).
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
### Worktree root per runtime (YAN-1111)
|
|
100
|
+
### Worktree root per runtime (YAN-1111, YAN-1170)
|
|
101
101
|
|
|
102
102
|
Each runtime keeps its skill-managed worktrees inside the repository, under a
|
|
103
103
|
root named for that runtime. Each worktree keeps the name
|
|
@@ -109,6 +109,7 @@ root named for that runtime. Each worktree keeps the name
|
|
|
109
109
|
| opencode | `<repo-root>/.opencode/worktrees/` | generator rewrite (`.opencode`) |
|
|
110
110
|
| Codex | `<repo-root>/.codex/worktrees/` | generator rewrite (`.codex`) |
|
|
111
111
|
| Cursor | `<repo-root>/.cursor/worktrees/` | generator rewrite (`.cursor`) |
|
|
112
|
+
| OMP | `<repo-root>/.omp/worktrees/` | generator rewrite (`.omp`) |
|
|
112
113
|
| `agents` | runtime-selected, `.agents/` fallback | `worktree-paths.sh` detection (see below) |
|
|
113
114
|
|
|
114
115
|
`YCC_WORKTREE_ROOT` remains the explicit override for every runtime; relative
|
|
@@ -142,10 +143,25 @@ except where noted:
|
|
|
142
143
|
(documented at cursor.com/docs/cli/reference/parameters, `-w/--worktree`),
|
|
143
144
|
not repo-locally; no repo-local placement option is documented. ycc's
|
|
144
145
|
`.cursor/worktrees` root applies to skill-managed worktrees only.
|
|
146
|
+
- **OMP**: task isolation (`isolated: true`, off by default via
|
|
147
|
+
`task.isolation.enabled`) and `omp worktree add|list|clear` use the
|
|
148
|
+
agent-managed base `~/.omp/wt` (`worktree.base`, override `OMP_WORKTREE_DIR`).
|
|
149
|
+
`omp worktree list|clear` touch only that base, never repo-local ycc
|
|
150
|
+
worktrees. The bash tool rewrites a literal `git worktree add` in command
|
|
151
|
+
text to clone-first `omp worktree add`; for an in-repo destination the clone
|
|
152
|
+
falls back to a plain checkout and still yields a correct linked worktree.
|
|
153
|
+
`setup-worktree.sh` runs `git worktree add` inside the script, so it is not
|
|
154
|
+
rewritten. Isolated tasks skip linked worktrees under a gitignored in-repo
|
|
155
|
+
root (omp 18.12.3, #16068). ycc's `.omp/worktrees` root applies to
|
|
156
|
+
skill-managed worktrees only; ycc fan-out never sets `isolated`. (Verified
|
|
157
|
+
against omp 18.12.3.)
|
|
145
158
|
- **`agents` bundle**: no fixed runtime. `worktree-paths.sh` picks the root
|
|
146
|
-
from verified single-runtime markers: `OPENCODE=1` (opencode), `
|
|
147
|
-
(Claude Code), non-empty `CODEX_THREAD_ID` (Codex).
|
|
148
|
-
|
|
159
|
+
from verified single-runtime markers: `OPENCODE=1` (opencode), `OMPCODE=1`
|
|
160
|
+
(OMP), `CLAUDECODE=1` (Claude Code), non-empty `CODEX_THREAD_ID` (Codex).
|
|
161
|
+
OMP bash sets both `OMPCODE=1` and `CLAUDECODE=1`, so `OMPCODE=1` wins and
|
|
162
|
+
consumes the `CLAUDECODE` marker; a Claude Code launched from an OMP shell
|
|
163
|
+
inherits `OMPCODE=1` and also resolves to `.omp` (use `YCC_WORKTREE_ROOT`).
|
|
164
|
+
Zero or multiple markers — including other nested agents — fall back to
|
|
149
165
|
`<repo-root>/.agents/worktrees/`. Deliberately **not** used (not evidence of
|
|
150
166
|
the active runtime): installed binaries, `CLAUDE_CODE_*` credentials,
|
|
151
167
|
`~/.cursor/` presence, `AI_AGENT` (multi-agent generic), and generic
|
|
@@ -60,7 +60,9 @@ ycc_feature_worktree_path() {
|
|
|
60
60
|
# Used only by portable (agents) builds, which swap the default marker line in
|
|
61
61
|
# ycc_expand_worktree_root for this resolver. Evidence-based runtime markers;
|
|
62
62
|
# missing or conflicting markers (nested agents) fall back to the portable
|
|
63
|
-
# .agents root.
|
|
63
|
+
# .agents root. OMP bash sets both OMPCODE=1 and CLAUDECODE=1, so OMPCODE
|
|
64
|
+
# wins and consumes the CLAUDECODE marker. See worktree-strategy.md §1 for the
|
|
65
|
+
# evidence list.
|
|
64
66
|
ycc_runtime_worktree_root() {
|
|
65
67
|
local repo_root="$1"
|
|
66
68
|
local runtime=""
|
|
@@ -70,7 +72,10 @@ ycc_runtime_worktree_root() {
|
|
|
70
72
|
runtime="opencode"
|
|
71
73
|
count=$((count + 1))
|
|
72
74
|
fi
|
|
73
|
-
if [[ "${
|
|
75
|
+
if [[ "${OMPCODE:-}" == "1" ]]; then
|
|
76
|
+
runtime="omp"
|
|
77
|
+
count=$((count + 1))
|
|
78
|
+
elif [[ "${CLAUDECODE:-}" == "1" ]]; then
|
|
74
79
|
runtime="claude"
|
|
75
80
|
count=$((count + 1))
|
|
76
81
|
fi
|
package/skills/backport/SKILL.md
CHANGED
|
@@ -43,6 +43,8 @@ Validation — stop with the usage line on failure:
|
|
|
43
43
|
- With `--pending`, `--to` filters the pending list to those targets.
|
|
44
44
|
- Each `--to` value must match `release/X.Y`.
|
|
45
45
|
|
|
46
|
+
**Questions:** class `confirm-destructive` (continue the cherry-pick and push); headless (no question tool or chat turn): do not continue or push, leave the backport worktree in place, report the conflict and stop. Class `confirm-publish` (Phase 5 CI authorization): headless and without `--ci-yes`, skip CI monitoring and print `rerun with --ci-yes`. See `{{package-root}}/shared/references/question-policy.md`.
|
|
47
|
+
|
|
46
48
|
## Phase 1 — Preflight
|
|
47
49
|
|
|
48
50
|
1. **Forge.** Source `{{package-root}}/shared/scripts/lib/forge.sh` and run
|
|
@@ -48,6 +48,8 @@ Each phase builds on previous answers. Grounding uses the `prp-researcher` agent
|
|
|
48
48
|
dual-mode (market + codebase) discovery. Every `[GATE]` means: present the questions via
|
|
49
49
|
`ask the user`, then WAIT for the user before proceeding. Do not batch gates together.
|
|
50
50
|
|
|
51
|
+
**Questions:** class `clarify` (every `[GATE]`); headless (no question tool or chat turn): print the open gate questions, write nothing, stop. See `{{package-root}}/shared/references/question-policy.md`.
|
|
52
|
+
|
|
51
53
|
---
|
|
52
54
|
|
|
53
55
|
## Phase 0: DETECT — Project Context
|