@sabaiway/agent-workflow-kit 1.5.1 → 1.5.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ Semantically versioned ([semver](https://semver.org)), newest first. The `versio
4
4
  is the current release. `upgrade` mode reads a project's `docs/ai/.workflow-version` and applies
5
5
  every `migrations/<version>-<slug>.md` newer than it, in semver order.
6
6
 
7
+ ## 1.5.2 — README uplift to front-door grade (docs)
8
+
9
+ Docs-only patch. The npm-facing `README.md` is uplifted to match the GitHub family front door's
10
+ pitch and voice while staying the kit's **manual**: a stronger hero, a compact "Part of the
11
+ agent-workflow family" callout, a new **composition-root** section (the kit delegates to the memory
12
+ substrate, injects the methodology, and detects the optional `codex` / `agy` bridges — all on the
13
+ in-repo deploy, never on `npx … init`), a two-tier cross-agent note, and links **up** to the family
14
+ front door instead of re-telling the whole-family story (AD-009). Accuracy passes hold: `init` ≠
15
+ project deploy, the scoped `dependency-free` / `no telemetry` claims, bridges-as-skills, the
16
+ `available:false` engine stub, and the bridge context-file priority. A new dev-only test
17
+ (`test/readme-structure.test.mjs`) enforces fenced-ASCII width ≤ 78, in-page anchor resolution, and
18
+ local-link existence across the published READMEs. No code, schema, or deployed-payload change; the
19
+ deployment-lineage head stays `1.3.0` (no migration).
20
+
7
21
  ## 1.5.1 — README hero fix (docs)
8
22
 
9
23
  Docs-only patch. The hero showed a hardcoded `v1.4.0` chip while the kit was 1.5.0; the chip is
package/README.md CHANGED
@@ -2,24 +2,43 @@
2
2
 
3
3
  # 🧠 agent-workflow-kit
4
4
 
5
- **A portable, cross-agent memory & workflow system for AI coding agents.**
5
+ **Durable, cross-agent memory & workflow for AI coding agents — the one command that installs it.**
6
6
 
7
- *Bootstrap it once — then every future session reconstructs project context in seconds
8
- instead of re-reading your whole repo.*
7
+ *Run it once per machine, deploy it once per project — then every future session boots from a
8
+ small, structured memory instead of re-reading your whole repo and re-deriving yesterday's
9
+ decisions. Works with Claude Code, Codex, Cursor, and any agent that reads `AGENTS.md`.*
9
10
 
10
11
  [![npm version](https://img.shields.io/npm/v/@sabaiway/agent-workflow-kit?logo=npm)](https://www.npmjs.com/package/@sabaiway/agent-workflow-kit)
11
12
  [![npm downloads](https://img.shields.io/npm/dm/@sabaiway/agent-workflow-kit)](https://www.npmjs.com/package/@sabaiway/agent-workflow-kit)
12
13
  [![license](https://img.shields.io/npm/l/@sabaiway/agent-workflow-kit)](./LICENSE)
13
14
  [![node](https://img.shields.io/node/v/@sabaiway/agent-workflow-kit)](https://nodejs.org)
14
15
 
15
- `Node ≥ 18` · `dependency-free` · `kernel-only`
16
+ `Node ≥ 18` · `dependency-free scripts` · `no telemetry in family code`
17
+
18
+ **One command to start:**
19
+
20
+ ```bash
21
+ npx @sabaiway/agent-workflow-kit init
22
+ ```
23
+
24
+ <sub>This installs the **global skill** — deploying into a project is a separate step ([below](#-install)).</sub>
16
25
 
17
26
  **Works with any tool that reads `AGENTS.md`** — Claude Code · Codex · Cursor · Devin Desktop (formerly Windsurf) · GitHub Copilot · Gemini CLI · Cline · Aider · and 20+ more.
18
27
 
28
+ **Quick-jump:** [Install](#-install) · [What it deploys](#-what-it-deploys-into-your-project) · [How it works](#-how-it-works-60-seconds) · [Composition root](#-the-composition-root-of-the-family)
29
+
19
30
  </div>
20
31
 
21
32
  ---
22
33
 
34
+ > **Part of the [`agent-workflow`](https://github.com/sabaiway/agent-workflow) family.** This package
35
+ > is the **composition root** + entry point: it **delegates** memory deployment to the substrate,
36
+ > **injects** the workflow methodology, and **detects** optional execution backends. This page is the
37
+ > kit's **manual** (install · commands · what it deploys) — for the whole-family story, start at the
38
+ > **[family front door](https://github.com/sabaiway/agent-workflow#readme)**.
39
+
40
+ ---
41
+
23
42
  ## ❓ The problem
24
43
 
25
44
  AI coding agents are **stateless between sessions**. Every new chat starts from zero:
@@ -59,22 +78,25 @@ WITH the kit · boots from memory, cost flat
59
78
  s3 ~5k tok █ ← decisions kept
60
79
  ```
61
80
 
62
- <sub>*Illustrative — exact numbers scale with repo size. The point is the **shape**: cold re-reads that grow vs. a flat, cache-warm boot.*</sub>
81
+ <sub>*Illustrative/directional, not a measured guarantee — exact numbers scale with repo size. The point is the **shape**: cold re-reads that grow vs. a flat, cache-warm boot.*</sub>
63
82
 
64
83
  | | 🚫 Without | ✅ With `agent-workflow-kit` |
65
84
  |---|---|---|
66
- | **Session boot** | re-read source + grep to rebuild context | read 4 small docs, ~constant |
85
+ | **Session boot** | re-read source + grep to rebuild context | read a few small docs, ~constant |
67
86
  | **Boot cost** | grows with repo, paid every session | flat; stable layer stays prompt-cache-warm |
68
87
  | **Cross-session memory** | none | `handover` (where we left off) |
69
88
  | **Past decisions** | re-litigated | `decisions.md` (ADRs) — settled once |
70
89
  | **Known bugs** | re-discovered | `known_issues.md` — impact + workaround |
71
90
  | **Doc growth** | unbounded sprawl | frontmatter caps + 3-tier rolling archive |
72
91
  | **Drift** | docs ≠ code over time | pre-commit gate keeps them honest |
92
+ | **Cross-agent** | re-explain the project to each tool | one `AGENTS.md`, read by 20+ agents |
73
93
 
74
94
  ---
75
95
 
76
96
  ## 📦 What it deploys into your project
77
97
 
98
+ Invoking the skill **inside a project** creates a portable memory and its maintenance policy:
99
+
78
100
  ```
79
101
  your-repo/
80
102
  ├── AGENTS.md ← single entry point
@@ -94,24 +116,35 @@ your-repo/
94
116
  ├── tech_reference.md ← configs & patterns
95
117
  ├── pages/ ← one spec per page/route
96
118
  └── history/ ← archive (HOT→WARM→COLD)
97
- + scripts/ ← caps · index · archive (Node)
98
- + pre-commit hook ← keeps it all honest
119
+ + scripts/ ← caps · index · archive (Node path)
120
+ + pre-commit hook ← keeps it all honest (Node path)
99
121
  ```
100
122
 
101
- Two visibility modes, chosen at bootstrap: **visible** (committed) or **hidden**
102
- (in-tree but git-ignored, so the repo "looks normal").
123
+ The Markdown memory is **stack-agnostic**; the `scripts/` + pre-commit hook are the **Node path**
124
+ (dependency-free, `node --test`). Non-Node projects keep the same policy by hand.
125
+
126
+ Two **visibility** modes, chosen at deploy time: **visible** (committed with the repo) or **hidden**
127
+ (same files in-tree but git-ignored via the global `core.excludesFile`, so the repo "looks normal").
128
+ Hidden changes how the files are *tracked*, not where agents find them.
103
129
 
104
130
  ---
105
131
 
106
132
  ## 🚀 Install
107
133
 
108
- **One command** installs the kit into `~/.claude/skills/` and wires any Codex / Devin Desktop you have:
134
+ ### 1. Install the global skill once per machine
109
135
 
110
136
  ```bash
111
137
  npx @sabaiway/agent-workflow-kit init
112
138
  ```
113
139
 
114
- Then invoke it **inside a project** first time vs. already-deployed use different sub-commands:
140
+ `init` installs/refreshes the skill at `~/.claude/skills/agent-workflow-kit/` and wires launchers for
141
+ any Claude Code / Codex / Devin Desktop it finds. It **does not** deploy into a project, and **does
142
+ not** install the optional bridges.
143
+
144
+ ### 2. Deploy into a project — once per repo
145
+
146
+ Invoke the installed skill **inside the target repository** — first time vs. already-deployed use
147
+ different sub-commands:
115
148
 
116
149
  | Agent | First time in the project | Project already has the kit |
117
150
  |-------|---------------------------|-----------------------------|
@@ -119,21 +152,22 @@ Then invoke it **inside a project** — first time vs. already-deployed use diff
119
152
  | **Codex** | `/skills` menu → `agent-workflow-kit` | …→ `agent-workflow-kit upgrade` |
120
153
  | **Devin Desktop** (Windsurf · Devin Local) | `/agent-workflow-kit` | `/agent-workflow-kit upgrade` |
121
154
 
122
- <sub>`/agent-workflow-kit` bootstraps a fresh deployment (and asks your **visibility**, **conversational language**, and whether the agent may **attribute work to itself / AI** — default off); `/agent-workflow-kit upgrade` migrates an existing one to the kit's current version. The `npx … init` above is a third, separate thing — it updates the **kit itself**, not any project.</sub>
155
+ <sub>`/agent-workflow-kit` bootstraps a fresh deployment (and asks your **visibility**, **conversational language**, and whether the agent may **attribute work to itself / AI** — default off); `/agent-workflow-kit upgrade` migrates an existing one to the kit's current version.</sub>
123
156
 
124
- > **New in 1.4.0 — optional memory substrate.** The memory layer is now also published
125
- > standalone as [`@sabaiway/agent-workflow-memory`](https://www.npmjs.com/package/@sabaiway/agent-workflow-memory).
126
- > If it is installed, the kit **delegates** substrate deployment to it and injects the workflow
127
- > methodology; if not, the kit uses its **own bundled copy** the one command above keeps
128
- > working with no new dependency. Same `docs/ai/` either way.
157
+ > **Optional standalone memory substrate.** The memory layer is also published standalone as
158
+ > [`@sabaiway/agent-workflow-memory`](https://www.npmjs.com/package/@sabaiway/agent-workflow-memory).
159
+ > If a **healthy** copy is installed (the kit validates it with its own shipped validator), the kit
160
+ > **delegates** substrate deployment to it and injects the workflow methodology; otherwise it uses
161
+ > its **own bundled copy** — the one command above keeps working with no new dependency. Same
162
+ > `docs/ai/` either way.
129
163
 
130
- **Upgrade the kit itself** later — same command with `@latest`:
164
+ ### Refresh the kit itself — same command with `@latest`
131
165
 
132
166
  ```bash
133
167
  npx @sabaiway/agent-workflow-kit@latest init
134
168
  ```
135
169
 
136
- <sub>That refreshes the **kit's own files** — distinct from `/agent-workflow-kit upgrade`, which migrates a **project's** deployment (see **Use** below).</sub>
170
+ <sub>That refreshes the **kit's own files** in `~/.claude/skills/` — distinct from `/agent-workflow-kit upgrade`, which migrates a **project's** deployment (see **Use** below).</sub>
137
171
 
138
172
  <details>
139
173
  <summary><b>Manual install</b> — no <code>npx</code></summary>
@@ -180,7 +214,7 @@ command is printed).
180
214
  | Command | When | What happens |
181
215
  |---------|------|--------------|
182
216
  | `/agent-workflow-kit` | new / empty project | recon → **asks visible-or-hidden** + **conversational language** + **agent attribution** (default off) → deploys `AGENTS.md` + `docs/ai/` filled with real recon data → installs enforcement → **asks before committing** |
183
- | `/agent-workflow-kit upgrade` | existing deployment | reads `docs/ai/.workflow-version`, shows the changelog diff, applies migrations, re-stamps |
217
+ | `/agent-workflow-kit upgrade` | existing deployment | reads `docs/ai/.workflow-version`, shows the changelog diff, preserves your authored memory, applies migrations, re-stamps |
184
218
  | `/agent-workflow-kit backends` | any time | **read-only** check of the optional execution-backends (the `codex` / `agy` bridges): what's set up vs missing and the next step. Never writes, never commits, never runs a subscription CLI (credentials = marker-file presence, not a live login). |
185
219
 
186
220
  It **never auto-commits** and **never overwrites** an existing `AGENTS.md` without asking.
@@ -196,18 +230,50 @@ It **never auto-commits** and **never overwrites** an existing `AGENTS.md` witho
196
230
  - **Layered, lazy loading** — *always-loaded* = `AGENTS.md` + `index.md` (~160 lines, cache-warm). *On-demand* = open a `docs/ai/` file only when its "Read When" applies. *Hierarchical* = subdir `AGENTS.md` loads when you work in that folder. *Archive* = old history rolls out of the hot files.
197
231
  - **Caps + freshness** — every doc declares a `maxLines` cap; a pre-commit hook blocks commits that bust a cap or let the auto-generated index go stale.
198
232
  - **3-tier rolling archive** — `changelog.md` (HOT, last days) → `history/recent.md` (WARM) → per-month COLD + a one-line condensed index. Hot files stay small forever.
199
- - **Plan lifecycle** — Plan → Phase → Step → Substep, ephemeral plan files, a mandatory Cleanup phase, and a session-continuity heuristic tuned for large-context models (e.g. Opus 4.8).
233
+ - **Plan lifecycle** — Plan → Phase → Step → Substep, ephemeral plan files, a mandatory Cleanup phase, and a session-continuity heuristic tuned for large-context models (e.g. Claude Opus).
200
234
  - **No silent failures** — every guard that rejects an action logs structured context.
201
235
 
202
236
  Enforcement ships as dependency-free **Node** scripts (`node --test`, no package manager assumed). Non-Node projects follow the same policy by hand.
203
237
 
204
238
  ---
205
239
 
240
+ ## 🧩 The composition root of the family
241
+
242
+ The kit is the member you install — the family's **composition root**. `npx … init` only installs
243
+ the kit globally; the composition happens when you **deploy it in a repo** (`/agent-workflow-kit`):
244
+
245
+ ```
246
+ agent-workflow-kit — the composition root (installed via npx … init)
247
+ on /agent-workflow-kit in a repo, the kit:
248
+ ├─ delegates ─▶ memory substrate (healthy copy, else bundled fallback)
249
+ ├─ injects ─▶ workflow methodology (engine = future supplier; stub)
250
+ ├─ deploys ─▶ AGENTS.md + docs/ai/ + Node scripts + pre-commit hook
251
+ └─ detects ─▶ optional backends (codex / agy — not by init)
252
+ ```
253
+
254
+ - **Delegates** substrate deployment to **`@sabaiway/agent-workflow-memory`** when a healthy
255
+ standalone copy is present, else uses its **bundled fallback** — same `docs/ai/` either way.
256
+ - **Injects** the bounded workflow methodology into the deployed `AGENTS.md`. Its *future* home is
257
+ **`agent-workflow-engine`** — today an `available: false` stub, never one of the shipped backends.
258
+ - **Detects** the optional `codex` / `agy` **bridges** — agent skills with a manual once-per-machine
259
+ setup (not npm, not installed by `init`); `/agent-workflow-kit backends` reports readiness
260
+ read-only. A bridge reads the deployed memory only if it wins that tool's context-file priority,
261
+ and the bridges call third-party services (so "no telemetry" covers family code, not those).
262
+
263
+ > Full member-by-member map + the whole-family story: the
264
+ > **[family front door](https://github.com/sabaiway/agent-workflow#readme)** — this page stays the
265
+ > kit's manual.
266
+
267
+ ---
268
+
206
269
  ## 🤝 Cross-agent by design
207
270
 
208
- One kit, three front doors the *output* (`AGENTS.md` + `docs/ai/`) is read natively by
209
- Codex, Cursor, Devin Desktop, Copilot, Gemini CLI & 20+ tools, and the *bootstrapper* runs from
210
- Claude Code, Codex, or Devin Desktop. No logic is duplicated per tool.
271
+ One kit, two tiers**no logic is duplicated per tool:**
272
+
273
+ - The **output** (`AGENTS.md` + `docs/ai/`) is read natively by Claude Code (via the `CLAUDE.md`
274
+ alias) · Codex · Cursor · Devin Desktop · Copilot · Gemini CLI & 20+ tools.
275
+ - The **bootstrapper** runs from Claude Code · Codex · Devin Desktop — their launchers point at the
276
+ same `SKILL.md`, so deployment logic lives in one place.
211
277
 
212
278
  ---
213
279
 
@@ -215,16 +281,21 @@ Claude Code, Codex, or Devin Desktop. No logic is duplicated per tool.
215
281
 
216
282
  ```
217
283
  agent-workflow-kit/
218
- ├── README.md ← you are here
219
- ├── SKILL.md ← agent-facing algorithm
284
+ ├── README.md ← you are here (the kit's manual)
285
+ ├── SKILL.md ← agent-facing deploy / upgrade algorithm
220
286
  ├── CHANGELOG.md ← version history
221
287
  ├── capability.json ← agent-workflow family manifest (composition-root)
222
288
  ├── references/
223
- ├── templates/ ← AGENTS.md + every docs/ai file
224
- ├── scripts/ ← caps / archive / index + tests
225
- ├── contracts.md ← visibility / language / attribution rules
226
- └── planning.md ← plan lifecycle + continuity
227
- ├── tools/ ← family tooling: manifest schema + validator, methodology-slot injection, backend detector (detect-backends)
289
+ ├── templates/ ← AGENTS.md + every docs/ai file
290
+ ├── scripts/ ← caps / archive / index + tests
291
+ ├── contracts.md ← visibility / language / attribution rules
292
+ └── planning.md ← plan lifecycle + continuity
293
+ ├── tools/ ← family tooling:
294
+ │ ├── manifest/ ← capability-manifest schema + validator
295
+ │ ├── delegation.mjs ← detect substrate · delegate-or-fall-back
296
+ │ ├── inject-methodology.mjs ← write the methodology slot
297
+ │ ├── detect-backends.mjs ← read-only backend detector
298
+ │ └── release-scan.mjs ← attribution / release gate
228
299
  ├── launchers/ ← Codex / Devin Desktop / Cursor entries
229
300
  └── migrations/ ← per-version upgrade steps
230
301
  ```
@@ -232,5 +303,5 @@ agent-workflow-kit/
232
303
  ---
233
304
 
234
305
  <div align="center">
235
- <sub>Kernel-only · stack-agnostic · distilled from a multi-year-verified reference implementation.</sub>
306
+ <sub>Kernel-only · stack-agnostic · no telemetry in family code · distilled from a multi-year-verified reference implementation — <a href="https://github.com/sabaiway/agent-workflow">sabaiway/agent-workflow</a></sub>
236
307
  </div>
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: agent-workflow-kit
3
3
  description: Deploy or upgrade a portable AI-agent memory-and-workflow system in any project. Use when the user wants to bootstrap `docs/ai/` + an entry-point `AGENTS.md` (+ `CLAUDE.md` alias) + cap/archive/index enforcement in a new or existing repo, set up the Memory Map and session protocols, install the docs-rotation pre-commit hook, or run `/agent-workflow-kit` / `/agent-workflow-kit upgrade`. Triggers on phrases like "set up the memory system", "deploy the AI workflow here", "bootstrap docs/ai", "upgrade the workflow".
4
4
  disable-model-invocation: true
5
5
  metadata:
6
- version: '1.5.1'
6
+ version: '1.5.2'
7
7
  ---
8
8
 
9
9
  # agent-workflow-kit
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-kit",
5
5
  "kind": "composition-root",
6
- "version": "1.5.1",
6
+ "version": "1.5.2",
7
7
  "provides": [],
8
8
  "roles": {},
9
9
  "detect": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-kit",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Portable, cross-agent memory & workflow for AI coding agents — Claude Code, Codex, Cursor, Devin Desktop. One command deploys an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement into any repo.",
5
5
  "keywords": [
6
6
  "ai-agents",