@tacuchi/agent-workflow-cli 20.25.0 → 20.26.0
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/application/self/install-skill.js +25 -8
- package/dist/application/self/install-skill.js.map +1 -1
- package/package.json +1 -1
- package/skills/w/SKILL.md +3 -3
- package/skills/w/commands/README.md +2 -0
- package/skills/w/commands/export-diagrams.md +1 -1
- package/skills/w/commands/export-manuals.md +1 -1
- package/skills/w/commands/export-reports.md +1 -1
- package/skills/w/commands/export-scripts.md +1 -1
- package/skills/w/commands/fix-git.md +1 -1
- package/skills/w/commands/generate-launch.md +2 -2
- package/skills/w/commands/persist.md +2 -2
- package/skills/w/commands/plan-exec.md +2 -2
- package/skills/w/commands/plan-new.md +2 -2
- package/skills/w/commands/plan-refine.md +2 -2
- package/skills/w/commands/quick.md +2 -2
- package/skills/w/commands/resume.md +2 -2
- package/skills/w/commands/spec-new.md +2 -2
- package/skills/w/commands/spec-refine.md +2 -2
- package/skills/w/commands/status.md +1 -1
- package/skills/w/commands/workspace-init.md +1 -1
- package/skills/w/harness/HARNESS.md +14 -10
- package/skills/w/loops/CHASSIS.md +7 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mkdir, readFile, rm, rmdir, stat, writeFile } from "node:fs/promises";
|
|
2
2
|
import { readdir } from "node:fs/promises";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
3
|
+
import { dirname, join, relative } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { harnessByInstallTarget } from "../../domain/harnesses.js";
|
|
6
6
|
import { copyDir, hasValidFrontmatter } from "./install-plugin-skills.js";
|
|
@@ -49,6 +49,12 @@ export { COMMAND_SKILLS_HOSTS };
|
|
|
49
49
|
// Exported: it is the bundle's namespace in the skill roots — the loose-skill
|
|
50
50
|
// scan (skills-manager.listSkills) excludes it so `w-*` never lists as unmanaged.
|
|
51
51
|
export const COMMAND_SKILL_PREFIX = "w-";
|
|
52
|
+
// Canonical command docs double as Claude-plugin command content. Claude
|
|
53
|
+
// expands this official placeholder in-place; every other install surface gets
|
|
54
|
+
// the same token materialized to its own absolute bundle destination below.
|
|
55
|
+
// Keeping one authored token makes `context-plan --root` describe the exact
|
|
56
|
+
// tree the wrapper reads instead of whichever bundle the global CLI packages.
|
|
57
|
+
export const CLAUDE_PLUGIN_BUNDLE_ROOT = "${CLAUDE_PLUGIN_ROOT}/skills/w";
|
|
52
58
|
export const USER_COMMANDS_BY_TARGET = {
|
|
53
59
|
claude: { relpath: ".claude/commands/w", format: "claude-md" },
|
|
54
60
|
// codex/warp/oz: commands ship as synthesized `w-*` skills (COMMAND_SKILLS_HOSTS).
|
|
@@ -524,7 +530,7 @@ async function synthesizeCommandSkills(target, skillDest, sourceSkillPath) {
|
|
|
524
530
|
const skillName = `${COMMAND_SKILL_PREFIX}${cmd}`;
|
|
525
531
|
const destDir = join(targetRoot, skillName);
|
|
526
532
|
await mkdir(destDir, { recursive: true });
|
|
527
|
-
await writeFile(join(destDir, "SKILL.md"), renderCommandSkill(skillName, raw), "utf8");
|
|
533
|
+
await writeFile(join(destDir, "SKILL.md"), renderCommandSkill(skillName, raw, skillDest), "utf8");
|
|
528
534
|
count += 1;
|
|
529
535
|
}
|
|
530
536
|
catch (err) {
|
|
@@ -533,8 +539,8 @@ async function synthesizeCommandSkills(target, skillDest, sourceSkillPath) {
|
|
|
533
539
|
}
|
|
534
540
|
return { count, warnings };
|
|
535
541
|
}
|
|
536
|
-
function renderCommandSkill(skillName, raw) {
|
|
537
|
-
const { description, body } = splitCommandDoc(raw);
|
|
542
|
+
function renderCommandSkill(skillName, raw, bundleDest) {
|
|
543
|
+
const { description, body } = splitCommandDoc(materializeBundleRoot(raw, bundleDest));
|
|
538
544
|
const desc = description ?? `agent-workflow command ${skillName} (see body).`;
|
|
539
545
|
const rewired = body.split("../").join("../w/");
|
|
540
546
|
return [
|
|
@@ -559,10 +565,19 @@ function tomlMultilineBasicString(value) {
|
|
|
559
565
|
const escaped = value.replace(/\\/g, "\\\\").replace(/"""/g, '""\\"');
|
|
560
566
|
return `"""\n${escaped}\n"""`;
|
|
561
567
|
}
|
|
562
|
-
function
|
|
568
|
+
function materializeBundleRoot(raw, bundleDest) {
|
|
569
|
+
const portableDest = bundleDest.split("\\").join("/");
|
|
570
|
+
return raw.split(CLAUDE_PLUGIN_BUNDLE_ROOT).join(portableDest);
|
|
571
|
+
}
|
|
572
|
+
function renderCommandWrapper(format, raw, bundleReferenceRoot, bundleDest) {
|
|
573
|
+
// commands/*.md is authored one level below the bundle root, hence its
|
|
574
|
+
// `../loops`, `../modules`, … references. Native wrappers live elsewhere;
|
|
575
|
+
// retarget that parent to the installed bundle before adapting the dialect.
|
|
576
|
+
const materialized = materializeBundleRoot(raw, bundleDest);
|
|
577
|
+
const rewired = materialized.split("../").join(`${bundleReferenceRoot}/`);
|
|
563
578
|
if (format === "claude-md")
|
|
564
|
-
return
|
|
565
|
-
const { description, body } = splitCommandDoc(
|
|
579
|
+
return rewired;
|
|
580
|
+
const { description, body } = splitCommandDoc(rewired);
|
|
566
581
|
if (format === "gemini-toml") {
|
|
567
582
|
const prompt = body.split("$ARGUMENTS").join("{{args}}");
|
|
568
583
|
const lines = [];
|
|
@@ -592,6 +607,8 @@ async function installUserCommands(target, sourceSkillPath, ctx) {
|
|
|
592
607
|
};
|
|
593
608
|
}
|
|
594
609
|
const destDir = join(ctx.env.homeDir(), spec.relpath);
|
|
610
|
+
const bundleDest = join(ctx.env.homeDir(), ...TARGET_ROOTS[target], SKILL_DIR_NAME);
|
|
611
|
+
const bundleReferenceRoot = relative(destDir, bundleDest).split("\\").join("/");
|
|
595
612
|
const srcDir = join(sourceSkillPath, "commands");
|
|
596
613
|
if (!(await ctx.fs.exists(srcDir))) {
|
|
597
614
|
return {
|
|
@@ -614,7 +631,7 @@ async function installUserCommands(target, sourceSkillPath, ctx) {
|
|
|
614
631
|
continue;
|
|
615
632
|
const raw = await readFile(join(srcDir, entry.name), "utf8");
|
|
616
633
|
const destName = spec.format === "gemini-toml" ? entry.name.replace(/\.md$/, ".toml") : entry.name;
|
|
617
|
-
await writeFile(join(destDir, destName), renderCommandWrapper(spec.format, raw), "utf8");
|
|
634
|
+
await writeFile(join(destDir, destName), renderCommandWrapper(spec.format, raw, bundleReferenceRoot, bundleDest), "utf8");
|
|
618
635
|
copied += 1;
|
|
619
636
|
}
|
|
620
637
|
return { installed: true, dest: destDir, files_copied: copied };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-skill.js","sourceRoot":"","sources":["../../../src/application/self/install-skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,EAAsB,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAoB,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,cAAc,EAAE,CAAC;AAMjE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,kBAAkB,CAAU,CAAC;AACx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AE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACrC,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QAAC,MAAM,CAAC;YACP,oBAAoB;QACtB,CAAC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,MAAM,KAAK,OAAO;YAAE,MAAM;QAC9B,OAAO,GAAG,MAAM,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC7E,OAAO,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AACxD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tacuchi/agent-workflow-cli",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.26.0",
|
|
4
4
|
"description": "Runtime CLI for Workline — the stages + loops + artifacts system for agent work. Bundles the universal `w` skill set under `skills/w/` (slash commands `/w:*`: spec-new/spec-refine, plan-new/plan-exec, quick, persist, workspace-init, export-*); `self install --target <host>` copies SKILL + commands + hooks into the host. Pluggable capability skills via `.workflow/skills.toml`. Multi-empresa parametrization via `profile.json` cascade. Namespace auto-detected from any `.<ns>/sessions/` dir in CWD; default `workflow`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/skills/w/SKILL.md
CHANGED
|
@@ -174,11 +174,11 @@ The **loop chassis** is NOT bound: it is the common engine of the 5 loops ([`loo
|
|
|
174
174
|
|
|
175
175
|
### Harness (harness-agnostic)
|
|
176
176
|
|
|
177
|
-
The doctrine names abstract **capabilities**, never a concrete harness tool. A single doc —`harness/HARNESS.md`— binds each capability to each harness's mechanism (Claude Code, Codex, Gemini/Antigravity, OpenCode, Crush, Warp, generic). Two principles: **capability-not-tool** (loops/commands reference the capability by name) and **progressive-enhancement** (use the harness's richest mechanism; degrade to a universal fallback when it does not exist).
|
|
177
|
+
The doctrine names abstract **capabilities**, never a concrete harness tool. A single doc —`harness/HARNESS.md`— binds each capability to each harness's mechanism (Claude Code, Codex, Kimi Code, Gemini/Antigravity, OpenCode, Crush, Warp/Oz, generic). Two principles: **capability-not-tool** (loops/commands reference the capability by name) and **progressive-enhancement** (use the harness's richest mechanism; degrade to a universal fallback when it does not exist).
|
|
178
178
|
|
|
179
179
|
Key capabilities:
|
|
180
180
|
|
|
181
|
-
- **structured-choice** — ask the human ≤3 content questions + 1 `flow` control.
|
|
181
|
+
- **structured-choice** — ask the human ≤3 content questions + 1 `flow` control; each option has a short label and a one-sentence functional explanation/example. Use the native binding in `HARNESS.md` when the current client exposes it; otherwise use labeled markdown with `Aceptar recomendaciones`, never positional codes.
|
|
182
182
|
- **compaction** — shrink the context without losing the thread; its context-pressure signal feeds the loops' self-regulation (chassis § *Compact / resume*). Claude Code: `/compact`. Fallback: `CHECKPOINT` + resume.
|
|
183
183
|
- **command-invocation** · **procedure-loading** · **subagent-dispatch** (opt.) · **persistent-context** · **external-data** (MCP) · **dry-run/preview**.
|
|
184
184
|
|
|
@@ -193,7 +193,7 @@ One language per plane — never mix them:
|
|
|
193
193
|
| Doctrine (this bundle: chassis, loops, commands, roles, exports, harness) | **English** |
|
|
194
194
|
| **Section headings** of artifacts and docs (`## Requirement`, `## Completed`, …) | **English** (parse contract) |
|
|
195
195
|
| Everything **user-facing**: structured-choice questions, reports, dashboards, the **content** the AI writes into artifacts and `docs/` deliverables, commit messages | **the user's language** (this product: Spanish) |
|
|
196
|
-
| Literal option labels (`Compactar`, `Cerrar`, `Guardar plan`, …) | canonical product strings — use them **verbatim** |
|
|
196
|
+
| Literal option labels (`Continuar`, `Compactar`, `Cerrar`, `Aceptar recomendaciones`, `Guardar plan`, …) | canonical product strings — use them **verbatim** |
|
|
197
197
|
| Domain terms (class/route/table names, e.g. the QTC fleet) | the domain's ubiquitous language (Spanish) — never translated |
|
|
198
198
|
|
|
199
199
|
### The 6 hard invariants
|
|
@@ -45,3 +45,5 @@ Every `<command>.md` in this folder uses this frontmatter + body structure — t
|
|
|
45
45
|
| `argument-hint:` | Argument signature for the user |
|
|
46
46
|
| `allowed-tools:` | YAML list (typically `Bash`/`Read`/`Write`/`Edit`). Loops/exports are **read-and-followed**, not invoked with `Skill:` — so `Skill` is **not** in `allowed-tools`. |
|
|
47
47
|
| Body | 1-3 orienting lines, then the invocation: **read-and-follow** the sibling loop/export doc (`LOOP.md` / `EXPORT.md`), or call the `aw` CLI; then `## Plan mode`, `## Resources` |
|
|
48
|
+
|
|
49
|
+
Every `aw context-plan` call pins `--root "${CLAUDE_PLUGIN_ROOT}/skills/w"`. Claude expands that official plugin placeholder in command content; `aw self install-skill` replaces it with the absolute installed bundle path in native and synthesized wrappers. A receipt therefore describes the same tree the host command reads, even when the globally installed CLI is a different version.
|
|
@@ -18,6 +18,6 @@ allowed-tools: ["Bash", "Read"]
|
|
|
18
18
|
|
|
19
19
|
## More context
|
|
20
20
|
|
|
21
|
-
`aw context-plan --command export-diagrams --signal <s
|
|
21
|
+
`aw context-plan --command export-diagrams --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
22
22
|
|
|
23
23
|
- `authoring` — the notation or the `--engine` choice is not obvious from the material → [`../exports/export-diagrams/EXPORT.md`](../exports/export-diagrams/EXPORT.md), no longer loaded on the normal path
|
|
@@ -20,6 +20,6 @@ allowed-tools: ["Bash", "Read"]
|
|
|
20
20
|
|
|
21
21
|
## More context
|
|
22
22
|
|
|
23
|
-
`aw context-plan --command export-manuals --signal <s
|
|
23
|
+
`aw context-plan --command export-manuals --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
24
24
|
|
|
25
25
|
- `authoring` — the manual's structure or audience is not obvious from the material → [`../exports/export-manuals/EXPORT.md`](../exports/export-manuals/EXPORT.md), no longer loaded on the normal path
|
|
@@ -19,6 +19,6 @@ allowed-tools: ["Bash", "Read"]
|
|
|
19
19
|
|
|
20
20
|
## More context
|
|
21
21
|
|
|
22
|
-
`aw context-plan --command export-reports --signal <s
|
|
22
|
+
`aw context-plan --command export-reports --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
23
23
|
|
|
24
24
|
- `authoring` — the report's structure or audience is not obvious from the material → [`../exports/export-reports/EXPORT.md`](../exports/export-reports/EXPORT.md), no longer loaded on the normal path
|
|
@@ -19,6 +19,6 @@ allowed-tools: ["Bash", "Read"]
|
|
|
19
19
|
|
|
20
20
|
## More context
|
|
21
21
|
|
|
22
|
-
`aw context-plan --command export-scripts --signal <s
|
|
22
|
+
`aw context-plan --command export-scripts --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
23
23
|
|
|
24
24
|
- `authoring` — the rollback derivation or the ordering is not obvious from the material → [`../exports/export-scripts/EXPORT.md`](../exports/export-scripts/EXPORT.md), no longer loaded on the normal path
|
|
@@ -38,4 +38,4 @@ No loop, no session, never writes `docs/`. Any git repo, workspace or not. Outpu
|
|
|
38
38
|
|
|
39
39
|
## More context
|
|
40
40
|
|
|
41
|
-
`aw context-plan --command fix-git --signal <s
|
|
41
|
+
`aw context-plan --command fix-git --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` lists the case-specific documents to read.
|
|
@@ -15,7 +15,7 @@ Single-pass, no loop, no session, **never writes `docs/`**. **Transversal** (no
|
|
|
15
15
|
## Run
|
|
16
16
|
|
|
17
17
|
1. **Detect** — `aw generate-launch --dry-run [--source <alias>]`. Per source: `stack`, `launchable`, the detected `run` and `mode` (`interactive` | `server`).
|
|
18
|
-
2. **Confirm (structured-choice)** — per **launchable** source; recommended = the detected mode.
|
|
18
|
+
2. **Confirm (structured-choice)** — per **launchable** source; recommended = the detected mode. Use the canonical [option shape](../loops/CHASSIS.md#structured-choice-design--batching) and [per-host binding](../harness/HARNESS.md#harness-binding-matrix).
|
|
19
19
|
- **Interactive** — foreground, owns a real TTY. TUIs / REPLs / interactive CLIs.
|
|
20
20
|
- **Server** — background + log window (close-to-stop). Dev servers, services.
|
|
21
21
|
- **Custom command** — the user gives the exact run command (optional).
|
|
@@ -26,6 +26,6 @@ Single-pass, no loop, no session, **never writes `docs/`**. **Transversal** (no
|
|
|
26
26
|
|
|
27
27
|
## More context
|
|
28
28
|
|
|
29
|
-
`aw context-plan --command generate-launch --signal <s
|
|
29
|
+
`aw context-plan --command generate-launch --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
30
30
|
|
|
31
31
|
- `detection` — the CLI's automatic detection of how to run the project was wrong or ambiguous → [`../modules/LAUNCH-DETECTION.md`](../modules/LAUNCH-DETECTION.md)
|
|
@@ -17,7 +17,7 @@ Captures **work already produced in this conversation** — with or without host
|
|
|
17
17
|
> 1. **Adopt, don't re-derive** — single pass, **NO RESEARCH**: transcribe/organize what the conversation already established. New investigation is flow work (`spec-refine`, `quick`), never this command's.
|
|
18
18
|
> 2. **You classify and write; the CLI decides everything else** — inventory, anti-duplicate, numbering, destination, authorization and the write itself belong to `aw persist`. Never write into `docs/` with a file tool here; `Write`/`Edit` are deliberately not in `allowed-tools`.
|
|
19
19
|
> 3. **Never invent the number** — the `NNN` you put in the path is consultative; `apply` reassigns it inside the lock. Do not renumber it.
|
|
20
|
-
> 4. **Confirm before writing** — classification and destination go through **structured-choice
|
|
20
|
+
> 4. **Confirm before writing** — classification and destination go through **structured-choice** (canonical [option shape](../loops/CHASSIS.md#structured-choice-design--batching) + [per-host binding](../harness/HARNESS.md#harness-binding-matrix)); `apply` refuses without the digest `validate` returned. **Never creates sessions** (sessions are loop-created only).
|
|
21
21
|
> 5. **Language** — headings in English (parse contract); content in the **user's language**.
|
|
22
22
|
|
|
23
23
|
## Input
|
|
@@ -42,4 +42,4 @@ Requires a **workspace** (`docs/` is the managed surface). Without one → degra
|
|
|
42
42
|
|
|
43
43
|
## More context
|
|
44
44
|
|
|
45
|
-
`aw context-plan --command persist --signal classification` returns the routing table — which shape goes to `docs/research/`, which becomes a spec draft, which is a plan adoption — plus the anti-duplicate rule: [`../modules/PERSIST-ROUTING.md`](../modules/PERSIST-ROUTING.md). Read exactly what it lists.
|
|
45
|
+
`aw context-plan --command persist --signal classification --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the routing table — which shape goes to `docs/research/`, which becomes a spec draft, which is a plan adoption — plus the anti-duplicate rule: [`../modules/PERSIST-ROUTING.md`](../modules/PERSIST-ROUTING.md). Read exactly what it lists.
|
|
@@ -23,7 +23,7 @@ Starts or resumes `plan-exec-loop` (Layer 2), which executes the real work phase
|
|
|
23
23
|
|
|
24
24
|
## Run the loop
|
|
25
25
|
|
|
26
|
-
1. `aw context-plan --command plan-exec` — read exactly the documents it lists, in order.
|
|
26
|
+
1. `aw context-plan --command plan-exec --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` — read exactly the documents it lists, in order.
|
|
27
27
|
2. Follow the loop manual end to end, taking `$ARGUMENTS` as input: it checks executability on entry, executes phase by phase (git-safe, DB scripts-only), keeps the plan alive and reports.
|
|
28
28
|
|
|
29
29
|
> `plan-exec-loop` is **not** a skill invocable by name — it is this command's operating manual. The command **is** the entry; the loop is its body. It is **resumable**: an existing CHECKPOINT continues from there.
|
|
@@ -35,7 +35,7 @@ Starts or resumes `plan-exec-loop` (Layer 2), which executes the real work phase
|
|
|
35
35
|
|
|
36
36
|
## More context
|
|
37
37
|
|
|
38
|
-
`aw context-plan --command plan-exec --signal <s
|
|
38
|
+
`aw context-plan --command plan-exec --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
39
39
|
|
|
40
40
|
- `db` — the plan touches a database → [`../modules/EXEC-DB-POLICY.md`](../modules/EXEC-DB-POLICY.md)
|
|
41
41
|
- `probe` — a task is a PoC → [`../modules/EXEC-PROBE-TASKS.md`](../modules/EXEC-PROBE-TASKS.md)
|
|
@@ -23,7 +23,7 @@ SPEC → PLAN bridge. Turns the "what" (refined spec) into the "how" (plan). Del
|
|
|
23
23
|
|
|
24
24
|
## Run the loop
|
|
25
25
|
|
|
26
|
-
1. `aw context-plan --command plan-new` — read exactly the documents it lists, in order.
|
|
26
|
+
1. `aw context-plan --command plan-new --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` — read exactly the documents it lists, in order.
|
|
27
27
|
2. Follow the loop manual end to end, taking `$ARGUMENTS` as input (resolved per the module below): it detects state/resume, runs the gap-driven engine, manages sessions, converges and reports.
|
|
28
28
|
|
|
29
29
|
> `plan-new-loop` is **not** a skill invocable by name — it is this command's operating manual. The command **is** the entry; the loop is its body.
|
|
@@ -34,7 +34,7 @@ The plan is born with `### Fn` phases that each leave a **verifiable state of th
|
|
|
34
34
|
|
|
35
35
|
## More context
|
|
36
36
|
|
|
37
|
-
`aw context-plan --command plan-new --signal <s
|
|
37
|
+
`aw context-plan --command plan-new --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
38
38
|
|
|
39
39
|
- `input` — the argument is not plainly a `ready-for-plan` spec → [`../modules/PLAN-INPUT.md`](../modules/PLAN-INPUT.md)
|
|
40
40
|
- `split` — the spec may need more than one plan → [`../modules/PLAN-SPLIT-GATE.md`](../modules/PLAN-SPLIT-GATE.md)
|
|
@@ -23,7 +23,7 @@ allowed-tools:
|
|
|
23
23
|
|
|
24
24
|
## Run the loop
|
|
25
25
|
|
|
26
|
-
1. `aw context-plan --command plan-refine` — read exactly the documents it lists, in order.
|
|
26
|
+
1. `aw context-plan --command plan-refine --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` — read exactly the documents it lists, in order.
|
|
27
27
|
2. Follow the loop manual end to end, taking `$ARGUMENTS` as input: it detects state/resume, runs the gap-driven engine, manages sessions, converges and reports.
|
|
28
28
|
|
|
29
29
|
> `plan-refine-loop` is **not** a skill invocable by name — it is this command's operating manual. The command **is** the entry; the loop is its body.
|
|
@@ -32,7 +32,7 @@ allowed-tools:
|
|
|
32
32
|
|
|
33
33
|
## More context
|
|
34
34
|
|
|
35
|
-
`aw context-plan --command plan-refine --signal <s
|
|
35
|
+
`aw context-plan --command plan-refine --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
36
36
|
|
|
37
37
|
- `input` — where this plan came from, and what a plan returned by `plan-exec` means → [`../modules/PLAN-INPUT.md`](../modules/PLAN-INPUT.md)
|
|
38
38
|
- `resume` — a prior refinement of this plan may exist → [`../modules/PLAN-REFINE-KEYS.md`](../modules/PLAN-REFINE-KEYS.md)
|
|
@@ -23,7 +23,7 @@ Delegates to `quick-loop` (Layer 2). Creates a light session (traceability + res
|
|
|
23
23
|
|
|
24
24
|
## Run the loop
|
|
25
25
|
|
|
26
|
-
1. `aw context-plan --command quick` — read exactly the documents it lists, in order.
|
|
26
|
+
1. `aw context-plan --command quick --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` — read exactly the documents it lists, in order.
|
|
27
27
|
2. Follow the loop manual end to end, taking `$ARGUMENTS` as the task: it evaluates the size gate, creates the light session, works with minimal ceremony (git-safe), escalates if the task grows, and reports.
|
|
28
28
|
|
|
29
29
|
> `quick-loop` is **not** a skill invocable by name — it is this command's operating manual. The command **is** the entry; the loop is its body.
|
|
@@ -35,7 +35,7 @@ Delegates to `quick-loop` (Layer 2). Creates a light session (traceability + res
|
|
|
35
35
|
|
|
36
36
|
## More context
|
|
37
37
|
|
|
38
|
-
`aw context-plan --command quick --signal <s
|
|
38
|
+
`aw context-plan --command quick --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
39
39
|
|
|
40
40
|
- `db` — the task reads or writes a database → [`../modules/DB-SCRIPTS-ONLY.md`](../modules/DB-SCRIPTS-ONLY.md)
|
|
41
41
|
- `probe` — a runnable doubt has to be settled by running something → [`../modules/PROBE.md`](../modules/PROBE.md)
|
|
@@ -14,7 +14,7 @@ Read-only **with or without an argument**: no loop, no session, and it writes no
|
|
|
14
14
|
|
|
15
15
|
1. **Read-only** — never run the route; the user does.
|
|
16
16
|
2. **Never re-decide** — priority, ties, the spec→plan link and the command come from the CLI. No re-sort by date, no slug match, no tie broken.
|
|
17
|
-
3. **Ask via structured-choice** only for CLI candidates: one option each, in order, plus `flow`.
|
|
17
|
+
3. **Ask via structured-choice** only for CLI candidates: one option each, in order, plus `flow`. Follow the canonical [option shape](../loops/CHASSIS.md#structured-choice-design--batching) and [per-host binding](../harness/HARNESS.md#harness-binding-matrix); use each candidate's title as its label and its `Progreso` + `Siguiente` as the functional description.
|
|
18
18
|
4. Output in the **user's language**.
|
|
19
19
|
|
|
20
20
|
## Run
|
|
@@ -34,4 +34,4 @@ Read-only **with or without an argument**: no loop, no session, and it writes no
|
|
|
34
34
|
|
|
35
35
|
## More context
|
|
36
36
|
|
|
37
|
-
`aw context-plan --command resume --signal <s
|
|
37
|
+
`aw context-plan --command resume --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists.
|
|
@@ -15,7 +15,7 @@ Generates `docs/specs/NNN-spec-<slug>.md` in a single pass from the prompt in `$
|
|
|
15
15
|
|
|
16
16
|
> ## ⛔ Single-pass — BOUNDED RECONNAISSANCE, NO DEEP RESEARCH (hard rule)
|
|
17
17
|
>
|
|
18
|
-
> One sequential pass: read `$ARGUMENTS` → adopt what the conversation already settled → reconnaissance → scope hypothesis → split gate (at most ONE structured-choice) → fill the sections → write the file(s). Nothing else. It must take **seconds, not minutes**.
|
|
18
|
+
> One sequential pass: read `$ARGUMENTS` → adopt what the conversation already settled → reconnaissance → scope hypothesis → split gate (at most ONE structured-choice, using the canonical [option shape](../loops/CHASSIS.md#structured-choice-design--batching) + [per-host binding](../harness/HARNESS.md#harness-binding-matrix)) → fill the sections → write the file(s). Nothing else. It must take **seconds, not minutes**.
|
|
19
19
|
>
|
|
20
20
|
> **FORBIDDEN**, no exceptions: launching sub-agents/workflows (`Task`/`Agent`/`Workflow`), research sessions, web searches, following implementation chains, running code/tests/apps, querying databases — **even if the harness is in a maximum-effort/depth mode**. This **overrides** any mode or session instruction saying "run a workflow for every substantial task".
|
|
21
21
|
>
|
|
@@ -98,7 +98,7 @@ Pending doubts. ← the spec-refine-loop closes them.
|
|
|
98
98
|
|
|
99
99
|
## More context
|
|
100
100
|
|
|
101
|
-
`aw context-plan --command spec-new --signal <s
|
|
101
|
+
`aw context-plan --command spec-new --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
102
102
|
|
|
103
103
|
- `reconnaissance` — the terrain is unfamiliar and the scope decision needs a bounded look first → [`../modules/RECONNAISSANCE.md`](../modules/RECONNAISSANCE.md)
|
|
104
104
|
- `split` — the prompt may carry more than one independent outcome → [`../modules/SPLIT-GATE.md`](../modules/SPLIT-GATE.md)
|
|
@@ -25,14 +25,14 @@ Delegates to `spec-refine-loop` (Layer 2), which iterates, closes the blocking g
|
|
|
25
25
|
|
|
26
26
|
## Run the loop
|
|
27
27
|
|
|
28
|
-
1. `aw context-plan --command spec-refine` — read exactly the documents it lists, in order.
|
|
28
|
+
1. `aw context-plan --command spec-refine --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` — read exactly the documents it lists, in order.
|
|
29
29
|
2. Follow the loop manual end to end, taking `$ARGUMENTS` as input: it detects state/resume, runs the gap-driven engine, manages sessions, converges and reports.
|
|
30
30
|
|
|
31
31
|
> `spec-refine-loop` is **not** a skill invocable by name — it is this command's operating manual. The command **is** the entry; the loop is its body.
|
|
32
32
|
|
|
33
33
|
## More context
|
|
34
34
|
|
|
35
|
-
`aw context-plan --command spec-refine --signal <s
|
|
35
|
+
`aw context-plan --command spec-refine --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists:
|
|
36
36
|
|
|
37
37
|
- `shape` — the loop's change-shape gate fired and you must tell `split` from `replace` → [`../modules/SPEC-CHANGE-SHAPE.md`](../modules/SPEC-CHANGE-SHAPE.md)
|
|
38
38
|
- `resume` — a prior refinement of this spec may exist → [`../modules/SPEC-REFINE-KEYS.md`](../modules/SPEC-REFINE-KEYS.md)
|
|
@@ -26,4 +26,4 @@ Read-only single pass: no loop, no session, no writes. Transversal.
|
|
|
26
26
|
|
|
27
27
|
## More context
|
|
28
28
|
|
|
29
|
-
`aw context-plan --command status --signal <s
|
|
29
|
+
`aw context-plan --command status --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` returns the extra documents a case needs; read exactly what it lists.
|
|
@@ -29,6 +29,6 @@ Done → the user can run `/w:spec-new`, `/w:plan-new` or `/w:quick`.
|
|
|
29
29
|
|
|
30
30
|
## More context
|
|
31
31
|
|
|
32
|
-
`aw context-plan --command workspace-init --signal <s
|
|
32
|
+
`aw context-plan --command workspace-init --signal <s> --root "${CLAUDE_PLUGIN_ROOT}/skills/w"` lists the case-specific documents to read:
|
|
33
33
|
|
|
34
34
|
- `scaffold` — the folder already carries a workspace, or you need what init versions, ignores and prunes → [`../modules/WORKSPACE-SCAFFOLD.md`](../modules/WORKSPACE-SCAFFOLD.md)
|
|
@@ -34,7 +34,7 @@ The capabilities the harness layer depends on, with their universal fallback (wh
|
|
|
34
34
|
|---|---|---|
|
|
35
35
|
| **command-invocation** | the user triggers a flow by name (`spec-new`, `plan-exec`, …) | the user writes "run the `<cmd>` procedure" and the AI reads its doc |
|
|
36
36
|
| **procedure-loading** | load a loop's/command's doctrine | the AI **reads the `.md`** of the loop and follows it (read-and-follow) |
|
|
37
|
-
| **structured-choice** | ask the human ≤3 content questions **+ always** a `flow` control (`Compactar`/`Cerrar`)
|
|
37
|
+
| **structured-choice** | ask the human ≤3 content questions **+ always** a `flow` control (`Compactar`/`Cerrar`); every option has a semantic label + one-sentence functional explanation/example | **labeled markdown** in chat; answer by label or ratify all first options with `Aceptar recomendaciones` |
|
|
38
38
|
| **compaction** | shrink the context without losing the thread (+ a context-pressure **signal** for the chassis' self-regulation) | write `CHECKPOINT` and ask the user to restart the context and resume (resume keys off `CHECKPOINT`) |
|
|
39
39
|
| **subagent-dispatch** | *(optional)* parallelize research breadth | **inline sequential** research in the same session (the default anyway) |
|
|
40
40
|
| **persistent-context** | the `WORKSPACE` block + conventions always present | the repo's context file (standard **`AGENTS.md`**; `CLAUDE.md` on Claude Code) |
|
|
@@ -47,13 +47,13 @@ The capabilities the harness layer depends on, with their universal fallback (wh
|
|
|
47
47
|
|
|
48
48
|
## Harness binding matrix
|
|
49
49
|
|
|
50
|
-
Concrete mechanism per harness (**Jul-2026
|
|
50
|
+
Concrete mechanism per harness (matrix base verified **Jul-2026**; the `structured-choice` row was refreshed **Aug-2026** against current official docs/source and local host probes; `~` partial). Antigravity CLI reuses Gemini's surfaces (`~/.gemini/`); Oz reuses Warp's (they share the **Warp / Oz** column, with MCP via flag — see the note under the matrix).
|
|
51
51
|
|
|
52
52
|
| Capability | Claude Code | Codex | Kimi Code | Gemini / Antigravity | OpenCode | Crush | Warp / Oz | Generic |
|
|
53
53
|
|---|---|---|---|---|---|---|---|---|
|
|
54
54
|
| command-invocation | `.claude/commands/` (slash) | skills only (`$` mention; no commands dir, prompts removed) | skills only, as `/skill:<name>` (no commands dir) | skills only in agy (system slash commands; `.gemini/commands/*.toml` = legacy Gemini CLI) | `.opencode/command/` | `.crush/commands` (palette) + user-invocable skills | skills as `/name` | text |
|
|
55
55
|
| procedure-loading (skills) | `SKILL.md` `.claude/skills` | `SKILL.md` `.agents/skills` | `SKILL.md` `.kimi-code/skills`+`.agents/skills` (user and project tiers) | `SKILL.md` (agentskills) | `SKILL.md` `.opencode`+`.claude`+`.agents` | `SKILL.md` `~/.config/crush`+`.agents`+`.claude` (`.crush/skills` is project-only) | `SKILL.md` `.agents`+`.warp`+`.claude` | read-and-follow `.md` |
|
|
56
|
-
| structured-choice | `AskUserQuestion` (**main-agent only
|
|
56
|
+
| structured-choice | `AskUserQuestion` (**main-agent only**; 1–4 questions, 2–4 options; label + description) | `request_user_input` when exposed (~; 1–3 questions, 2–3 options; label + description) | `AskUserQuestion` (1–4 questions, 2–4 options; label + description; failure → text) | `ask_user` (Gemini: 1–4 questions, 2–4 choice options; label + description) · `AskQuestion` (Antigravity: option text + write-in; public limits undocumented) | `question` (label + description; custom answer; public limits undocumented) | `question` (≤5 questions, ≤5 choices; descriptions + fill-in) | no documented structured-choice surface → labeled markdown | labeled markdown (label + sentence) |
|
|
57
57
|
| compaction | `/compact` | Pre/PostCompact hooks | `/compact` + Pre/PostCompact hooks | ~ | `session.compacted` | ~ | ~ | CHECKPOINT + resume |
|
|
58
58
|
| subagent-dispatch | `Task` (parallel) | `SubagentStart` / agents | sub-agents (`SubagentStart`/`SubagentStop`) | agents (`.gemini/agents`) | `.opencode/agent/*.md` | ~ | ~ (cloud agents) | inline |
|
|
59
59
|
| persistent-context | `CLAUDE.md` (does **not** read AGENTS.md → symlink) | `AGENTS.md` | `AGENTS.md` (hierarchical) | `GEMINI.md` + `AGENTS.md` | `AGENTS.md` | `CRUSH.md` + `AGENTS.md` | `AGENTS.md` (auto) | `AGENTS.md` |
|
|
@@ -65,9 +65,13 @@ Concrete mechanism per harness (**Jul-2026**, verified against official docs; `~
|
|
|
65
65
|
|
|
66
66
|
> **Kimi Code caveats** (verified 2026-07-29 vs the shipped v0.29.2 binary + live probes): it exports **no env markers** to its subprocesses, so `aw harness` legitimately answers `unknown` inside it and detection goes through binary + config dir. Its hooks live **only** in the user-global `config.toml` — there is no project-level config — and their schema is `event`/`matcher`/`command`/`timeout`, so the bundled JSON template is *transformed*, not copied: `type: "prompt"` hooks cannot be expressed and are reported as skipped, and matchers are carried only for the tool-name events.
|
|
67
67
|
|
|
68
|
-
> **Notes (field research
|
|
68
|
+
> **Notes (field research Aug-2026):** **`SKILL.md` skills** are the **universal** portable unit — **every harness in the matrix** supports them (Codex added them Dec-2025; **`.agents/skills` is the cross-host anchor**, read by Codex/OpenCode/Crush/Warp/Oz/**Kimi Code** — every host except Claude Code, which reads only `.claude/skills`). The **enforcement layer** is **not Claude-exclusive**: Codex + Gemini use a near-identical protocol (`permissionDecision:deny` / exit 2) and OpenCode blocks via `throw` in a JS plugin; Crush/Warp only offer **coarse** allow/deny (no custom per-command logic) → there, conventions stay **advisory** + allow/deny lists. Enforced **plan mode** is never trusted for safety; git-safe (invariant #5) is our own — though a host-planner's *output* (the plan it built) is adoptable input (`../commands/plan-new.md` § *Input resolution*, mode 4). **MCP** is universal (each host its file/key). The **guaranteed floor** (last column) runs the full model.
|
|
69
69
|
|
|
70
|
-
> **
|
|
70
|
+
> **structured-choice routing.** A native binding qualifies only when the current client exposes it and can display the option's functional sentence without loss. When it has separate fields, map the semantic label and sentence to them; when it exposes one visible option string, render `Label — functional sentence`. Otherwise use labeled markdown. Respect the per-call ceilings in the row and reserve one question slot for `flow`; carry overflow into a later call. If the native tool already injects a custom/free-text option, do not add a duplicate `Other` option.
|
|
71
|
+
|
|
72
|
+
> **structured-choice evidence (checked 2026-08-02):** [Claude Code](https://code.claude.com/docs/en/agent-sdk/user-input) · [Codex App Server](https://learn.chatgpt.com/docs/app-server.md) · [Kimi Code](https://moonshotai.github.io/kimi-code/en/reference/tools.html) · [Gemini CLI](https://geminicli.com/docs/tools/ask-user/) · [Antigravity changelog](https://github.com/google-antigravity/antigravity-cli/blob/main/CHANGELOG.md) · [OpenCode](https://dev.opencode.ai/docs/tools/) · [Crush source](https://github.com/charmbracelet/crush) · [Warp agents](https://docs.warp.dev/agent-platform/getting-started/agents-in-warp) / [Oz CLI](https://docs.warp.dev/reference/cli). Public docs do not expose Antigravity's full question schema or a dedicated Warp/Oz structured-choice schema; the row says so instead of inferring one.
|
|
73
|
+
|
|
74
|
+
> **Oz (Warp's cloud sibling).** `oz agent run` is a cloud agent orchestrator that **reuses Warp's surfaces**: same skills (`.agents/skills`, top-level dirs like Warp) and `AGENTS.md`. No dedicated structured-choice schema is documented for Oz itself, so a direct Oz run uses labeled markdown; if Oz delegates to another harness and exposes that harness's native question surface, follow that harness's own binding. Oz differs from Warp in three points: **detection** via `OZ_RUN_ID` (takes priority over Warp when both markers coexist); **MCP without a config file** — the JSON is passed via the `--mcp` flag of `oz agent run` (or the `OZ_MCP_CONFIG` env), it never writes `.warp/.mcp.json`; and **no plugin or hooks** (advisory enforcement, like Warp). Hence it shares the **Warp / Oz** column with those caveats.
|
|
71
75
|
|
|
72
76
|
> **compaction (signal & self-regulation).** The chassis' *Self-regulation (proactive compaction)* doctrine (`../modules/COMPACTION.md`, loaded under the `compaction` signal) needs two per-host facts: the **context-pressure signal** (does the host surface one the agent can read?) and **`auto`-mode viability** (can compaction fire **without user interaction**?). Claude Code: the signal is the harness' own context warnings; `/compact` is user-invoked — the agent cannot run it itself, so `auto` **degrades to `confirm`** there (the native auto-compact is already cushioned by the PreCompact/PostCompact hooks: checkpoint-write + resume-summary). Hosts with compaction hooks/events (Codex Pre/PostCompact, OpenCode `session.compacted`) cushion resume the same way; hosts with neither signal nor mechanism run the universal fallback (CHECKPOINT + restart + resume) and `auto` likewise degrades. Mode semantics (`[compaction]` config, default, consent): the chassis' subsection — single source.
|
|
73
77
|
|
|
@@ -85,8 +89,8 @@ Concrete mechanism per harness (**Jul-2026**, verified against official docs; `~
|
|
|
85
89
|
## Convention for the rest of the corpus
|
|
86
90
|
|
|
87
91
|
- Loops/commands reference the **capability** by name (e.g. "*structured-choice* (see `harness/HARNESS.md`)"), **never** the concrete tool.
|
|
88
|
-
-
|
|
89
|
-
- The `flow` lifecycle control (`Compactar`/`Cerrar`) belongs to the `structured-choice` capability, not to a tool:
|
|
92
|
+
- Concrete tool names survive **only** as per-host bindings in this document, never as doctrine vocabulary.
|
|
93
|
+
- The `flow` lifecycle control (`Compactar`/`Cerrar`) belongs to the `structured-choice` capability, not to a tool: a required native field adds neutral `Continuar`; the text fallback leaves flow optional.
|
|
90
94
|
|
|
91
95
|
## Distribution (install-time)
|
|
92
96
|
|
|
@@ -94,7 +98,7 @@ Proven pattern (Spec Kit, 30+ agents): **one canonical source** + generate/symli
|
|
|
94
98
|
|
|
95
99
|
## Command packaging (harness-specific)
|
|
96
100
|
|
|
97
|
-
Each command's **contract** (Flow, Trigger, Input, Mode, …) is agnostic. The **file** the harness executes wraps that contract in its native format — the installer (`aw self install-skill`) emits the right wrapper per host:
|
|
101
|
+
Each command's **contract** (Flow, Trigger, Input, Mode, …) is agnostic. The **file** the harness executes wraps that contract in its native format — the installer (`aw self install-skill`) emits the right wrapper per host, retargets bundle-relative links to that host's installed `skills/w` directory and materializes the authored `${CLAUDE_PLUGIN_ROOT}/skills/w` token to the same absolute bundle for `aw context-plan --root`. Claude's plugin surface expands that token natively; installed wrappers never rely on the CLI's potentially different packaged copy:
|
|
98
102
|
|
|
99
103
|
| Host | Wrapper installed | Invoked as |
|
|
100
104
|
|---|---|---|
|
|
@@ -110,8 +114,8 @@ Each command's **contract** (Flow, Trigger, Input, Mode, …) is agnostic. The *
|
|
|
110
114
|
|
|
111
115
|
## Status
|
|
112
116
|
|
|
113
|
-
Capability model + binding matrix **defined** and **validated** with field research (**Jul-2026
|
|
117
|
+
Capability model + binding matrix **defined** and **validated** with field research (base **Jul-2026**; `structured-choice` refreshed **Aug-2026** against the linked official docs/source and current local probes).
|
|
114
118
|
|
|
115
|
-
The catalog counts **8 hosts** — `claude-code`, `codex`, `oz`, `warp`, `gemini`, `opencode`, `crush`, `kimi` — each with its own entry in `domain/harnesses.ts`. The columns above group two pairs that share a config surface (Warp/Oz, Gemini/Antigravity), which is a presentation choice, not a second taxonomy: the host set is whatever `HARNESSES` says.
|
|
119
|
+
The catalog counts **8 hosts** — `claude-code`, `codex`, `oz`, `warp`, `gemini`, `opencode`, `crush`, `kimi` — each with its own entry in `domain/harnesses.ts`. The columns above group two pairs that share a config surface (Warp/Oz, Gemini/Antigravity), which is a presentation choice, not a second taxonomy: the host set is whatever `HARNESSES` says. Anti-drift guards cover the CODE projections (TUI, install targets, doctor, detection); `chassis-consistency.test.ts` additionally parses the `structured-choice` row and asserts every host binding or explicit limitation. Support levels: **official** — Claude Code, Codex, Warp, Gemini/Antigravity, Kimi Code; **best-effort** — Oz, OpenCode, Crush. `agents` (`~/.agents/skills`) is a **shared destination**, never a host.
|
|
116
120
|
|
|
117
121
|
All support `SKILL.md` (anchor `.agents/skills`) + MCP + `AGENTS.md`; deterministic enforcement on Claude/Codex/Kimi/Gemini/OpenCode, advisory + coarse allow/deny on Crush/Warp/Oz. The CLI (`aw`) implements the registry (`domain/harnesses.ts`), the per-host MCP writers, `detect-hosts` and `install-skill --target <host>`. The universal floor (`AGENTS.md` + text + files + skills) runs the full model today.
|
|
@@ -105,14 +105,15 @@ Investigation is **inline**: an activity **inside the run's current session**, n
|
|
|
105
105
|
|
|
106
106
|
## Structured-choice (design & batching)
|
|
107
107
|
|
|
108
|
-
**Canonical rule
|
|
108
|
+
**Canonical rule:** *structured-choice* = **≤3 content questions + 1 `flow` control**, always. Each option is a **short semantic label + one functional sentence** (outcome/trade-off or simple example), never a positional code. Use the richest current binding in [`HARNESS.md`](../harness/HARNESS.md); otherwise use labeled markdown.
|
|
109
109
|
|
|
110
|
-
-
|
|
111
|
-
- **Content
|
|
112
|
-
- **
|
|
113
|
-
- **
|
|
110
|
+
- **Flow:** `Compactar` | `Cerrar`; an unanswered control means continue (`Continuar` when the UI requires it). Under context pressure the loop **raises the choice itself**, recommending `Compactar`.
|
|
111
|
+
- **Content/batching:** human gaps, pre-query MCP choice and the convergence action | `Preguntar algo más`; at most 3 per call. Honor a smaller native ceiling by reserving one question slot for `flow`; carry overflow, prioritizing blockers.
|
|
112
|
+
- **Options/encoding:** prefer 2–3 alternatives. Map label/sentence to separate fields or `Label — functional sentence`. If it cannot fit, use labeled markdown; never truncate or merge candidates or duplicate a host-provided free-text option.
|
|
113
|
+
- **Recommendation:** the first option is marked *recommended* and comes from research; the human ratifies or corrects it, never starts cold.
|
|
114
|
+
- **Text fallback:** answer by label; `Aceptar recomendaciones` accepts all first options. Never require composite coordinates such as `1A, 2A, 3A`.
|
|
114
115
|
|
|
115
|
-
>
|
|
116
|
+
> Canonical labels (`Continuar`, `Compactar`, `Cerrar`, `Aceptar recomendaciones`, `Guardar plan`, …) stay verbatim; other user-facing text follows [`SKILL.md`](../SKILL.md) § *Language policy*.
|
|
116
117
|
|
|
117
118
|
## Compact / resume
|
|
118
119
|
|