Skip to content

Commit 284f782

Browse files
acn-ericlawclaude
andcommitted
fix: fold first-run self-init into copilot-instructions.md (v4.20.1)
A fresh-clone re-test showed v4.20.0's self-init worked for Claude Code (acts on AGENTS.md) but not GitHub Copilot CLI (its 'start' front-loads copilot-instructions.md + summarizes, skipping the AGENTS.md self-init → hook inactive + adapters absent). Folds the first-run init into the top of copilot-instructions.md (the file Copilot reliably front-loads) so it runs 'bash .githooks/init.sh' before summarizing. Still prompt-adherence; the init.sh fallback + CI floor are unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 1316ea4 commit 284f782

8 files changed

Lines changed: 99 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
> introduced after 3.0.0 shipped), organized by capability rather than by individual
1212
> commit. The capability ladder matches `VERSION` and `UPGRADE.md`.
1313
14+
## Version 4.20.1, 6/24/2026
15+
16+
> **Self-init folded into `copilot-instructions.md` (PATCH).** A fresh-clone dogfood showed v4.20.0's
17+
> self-init worked for **Claude Code** (which acts on `AGENTS.md`) but **not GitHub Copilot CLI** — its
18+
> `start` is driven by `copilot-instructions.md`'s front-loaded read list, so it loaded memory and
19+
> summarized without acting on the AGENTS.md self-init step (hook stayed inactive, adapters absent). Fix:
20+
> put the first-run init **at the top of `copilot-instructions.md`** (the file Copilot reliably
21+
> front-loads), as the first action — run `bash .githooks/init.sh` if `core.hooksPath` is unset / adapters
22+
> absent, *before* summarizing. Improves Copilot's odds of self-initing; `bash .githooks/init.sh` remains
23+
> the one-command fallback and CI remains the zero-config floor.
24+
25+
### Changed
26+
- **`templates/.github/copilot-instructions.md`** — now leads with a first-run-init block. `VERSION` → 4.20.1.
27+
1428
## Version 4.20.0, 6/24/2026
1529

1630
> **First-run init for fresh clones (MINOR).** Closes the gap a Copilot fresh-clone dogfood exposed: the

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ it in place** — additively, never destructively.
213213
| 4.18.0 | **`sync skill adapters` is now a runnable script:** a new built-in **`sync-adapters`** skill ships a deterministic adapter-regeneration script (Node + Python at parity) that (re)writes the five vendor adapters for every skill and prunes the orphans it generated. Replaces the prose-recipe-only sync that agents (e.g. Copilot CLI / Gemini) struggled to *run* — they hunted for a non-existent npm/MCP command and flailed. Enable + every Mode B re-enable invoke the script; an agent also triggers it by description. Consistent with `no-build-step-agent-run` (same category as the `memory-lint` script). Surfaced dogfooding `~/sandbox/simple-proxy` |
214214
| 4.19.0 | **Vendor-neutral ritual triggers:** the after-session ritual no longer depends on the agent self-triggering (which failed in practice — skipped even with Claude; Copilot-only teams had no triggers). Enable installs a committed **`.githooks/post-commit`** (auto-stubs a session log when a commit does real work without one; re-syncs adapters) — **agent-activated** via `core.hooksPath`, zero manual user step — plus a **CI floor** (`.github/workflows/agent-memory.yml`: `memory-lint` + advisory session-log check on push/PR, zero per-user setup). Advisory by default (opt-in `AGENT_MEMORY_STRICT` gate); `no-build-step-agent-run` holds (git/CI invoke them; the tool runs nothing). Honest limit: git can't auto-run hooks on a bare clone → CI is the backstop. Design: `docs/DESIGN-ritual-triggers.md` |
215215
| 4.20.0 | **First-run init for fresh clones:** a Copilot dogfood showed a fresh clone self-initializes the *memory* bootstrap but not the gitignored adapters or the (unactivated) hook. Adds **`.githooks/init.sh`** (one idempotent command: regenerate adapters + activate the hook) + an **`AGENTS.md` self-init note** so the agent does it on its first session — one step (or one human command) instead of two. CI stays the zero-config floor |
216+
| 4.20.1 | **Self-init in `copilot-instructions.md`:** v4.20.0's self-init reached Claude but not Copilot CLI (its `start` front-loads `copilot-instructions.md` + summarizes). Folds the first-run init into the top of `copilot-instructions.md` so Copilot runs `bash .githooks/init.sh` before summarizing; the `init.sh` fallback + CI floor are unchanged |
216217

217218

218219
When you "AI enable" a repo that's already on an older version, Mode B detects the

‎UPGRADE.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The current tool version lives in the root **`VERSION`** file (semver):
6464
| 4.18.0 | **`sync skill adapters` is now a runnable script (MINOR):** a new built-in **`sync-adapters`** skill ships a deterministic adapter-regeneration script (Node + Python at parity, built-ins only) that (re)writes the five vendor adapters for every skill and prunes the orphans it generated. Replaces the prose-recipe-only sync that agents (e.g. Copilot CLI / Gemini) struggled to *run* — they hunted for a non-existent npm/MCP command and flailed. Enable + every Mode B re-enable now invoke the script; an agent also triggers it by description. Consistent with `no-build-step-agent-run` (same category as the `memory-lint` script). Surfaced dogfooding `~/sandbox/simple-proxy` |
6565
| 4.19.0 | **Vendor-neutral ritual triggers (MINOR):** the after-session ritual no longer relies on the agent self-triggering. Enable installs a committed **`.githooks/post-commit`** (auto-stubs a session log when a commit does real work without one; re-syncs adapters), **agent-activated** via `git config core.hooksPath .githooks` (no manual user step), plus a **CI floor** (`.github/workflows/agent-memory.yml`: `memory-lint` + advisory session-log check on push/PR, zero per-user setup). Advisory by default (opt-in `AGENT_MEMORY_STRICT=1` gate); `no-build-step-agent-run` holds (git/CI invoke them; the tool runs nothing). Honest limit: git can't auto-run hooks on a bare clone → CI is the backstop. From real client-team pain (ritual not followed even with Claude; Copilot-only teams had no triggers) + the zero-manual/untrained-user constraint; design `docs/DESIGN-ritual-triggers.md` |
6666
| 4.20.0 | **First-run init (MINOR):** closes the fresh-clone activation gap (Copilot dogfood: the memory bootstrap self-initializes, but a clone has the gitignored adapters **absent** + the hook **unactivated**). Adds **`.githooks/init.sh`** (one idempotent command: regenerate adapters + `git config core.hooksPath .githooks`) + an **`AGENTS.md` self-init note** so the agent does it on its first session. One agent-run step (or one human command) instead of two; CI stays the zero-config floor |
67+
| 4.20.1 | **Self-init in `copilot-instructions.md` (PATCH):** v4.20.0's self-init reached Claude (acts on `AGENTS.md`) but **not Copilot CLI** (its `start` front-loads `copilot-instructions.md` + summarizes — so on a fresh clone the hook stayed inactive + adapters absent). Folds the first-run init into the **top of `copilot-instructions.md`** so Copilot runs `bash .githooks/init.sh` before summarizing. Re-sync that one file; the `init.sh` fallback + CI floor are unchanged |
6768

6869

6970
Each enabled repo records what it is on in **`.agent/version.md`**:
@@ -1116,3 +1117,19 @@ git hook **unactivated** (git can't auto-run committed hooks on clone). No memor
11161117
and `mode`.
11171118
5. **Report**: first-run init added (`.githooks/init.sh` + the AGENTS.md self-init note); fresh clones now
11181119
self-initialize in one agent step (or one human command).
1120+
1121+
## Rung: 4.20.0 → 4.20.1 — self-init in `copilot-instructions.md` (PATCH)
1122+
1123+
Wording/placement fix to an installed file — no shape change. v4.20.0's self-init note (in `AGENTS.md`)
1124+
reached Claude Code but **not GitHub Copilot CLI**: a fresh-clone dogfood showed Copilot's `start` is
1125+
driven by `copilot-instructions.md`'s front-loaded read list, so it loaded memory + summarized without
1126+
acting on the AGENTS.md self-init (hook stayed inactive, adapters absent).
1127+
1128+
1. **Re-sync `.github/copilot-instructions.md`** (from `templates/.github/copilot-instructions.md`) — it
1129+
now **leads** with a first-run-init block (*run `bash .githooks/init.sh` if `core.hooksPath` is unset /
1130+
adapters absent, before summarizing*). **If a target's copy is locally customized, merge the block in**
1131+
rather than overwriting. Nothing else changes.
1132+
2. **Stamp** `.agent/version.md` → `version: 4.20.1`, `last_upgraded: <today>`, preserving `enabled_with`
1133+
and `mode`.
1134+
3. **Report**: `copilot-instructions.md` now carries the first-run self-init (Copilot acts before
1135+
summarizing); the `bash .githooks/init.sh` fallback + CI floor are unchanged.

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.20.0
1+
4.20.1

‎docs/DESIGN-ritual-triggers.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
> exposed: a clone has gitignored adapters absent + the hook unactivated, and the memory bootstrap
1010
> self-initializes but the adapters/hook did not. Now the agent self-inits on its first session (or one
1111
> human command does it); CI remains the zero-config floor regardless.
12+
> **+ 4.20.1:** self-init also folded into **`copilot-instructions.md`** — a fresh-clone dogfood showed
13+
> Claude self-inits (it acts on `AGENTS.md`) but Copilot CLI did **not** (its `start` front-loads
14+
> `copilot-instructions.md` + summarizes), so the first-run init now **leads** that file too.
1215
> Sibling to `DESIGN-evolving-memory.md`, `DESIGN-vbdi-lifecycle.md`, `DESIGN-skills-layer.md`, and
1316
> `DESIGN-fresh-context-review.md`. Realizes the `(blueprint)` gap **`bp-ritual-triggers`** →
1417
> serves `vision-agent-memory`.

0 commit comments

Comments
 (0)