From a67aa5abb078d109364866fca8042e4639b31891 Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Thu, 24 Sep 2026 19:40:32 +0100 Subject: [PATCH 1/2] Stop wiring the `version.gradle.kts` Edit-block hook for Codex The `agents` repository deleted `protect-version-file.sh` in `f41f49c` and asked consuming repositories to remove its entry from `.claude/settings.json`, which PR #700 did. The same script is also wired in `.codex/hooks.json`, where it ran before every `apply_patch`, `Edit`, and `Write`. Once `.agents/shared` moves past `f41f49c`, that entry would point at a missing file. Co-Authored-By: Claude Opus 5.5 --- .codex/hooks.json | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.codex/hooks.json b/.codex/hooks.json index 5f3ef2001..31df948e1 100644 --- a/.codex/hooks.json +++ b/.codex/hooks.json @@ -1,15 +1,6 @@ { "hooks": { "PreToolUse": [ - { - "matcher": "apply_patch|Edit|Write", - "hooks": [ - { - "type": "command", - "command": "\"$(git rev-parse --show-toplevel)/.agents/scripts/protect-version-file.sh\"" - } - ] - }, { "matcher": "Bash", "hooks": [ From ddb49b2f00494511cc99adee580293b6b6c3e62b Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Thu, 24 Sep 2026 19:40:40 +0100 Subject: [PATCH 2/2] Update the `agents` submodule Move the `.agents/shared` pin from `5698000` (2026-06-02) to `f3d8ac5` (2026-09-03), the tip of `agents/master`, 253 commits later. Fresh clones and worktrees get the pinned commit from `init-submodules`, not the branch tip, and the old pin left their hooks broken: - `.claude/settings.json` runs `secret-scan-gate.sh` before every Bash command, and `init-submodules` points `core.hooksPath` at `.agents/scripts/git-hooks/`. Neither existed at `5698000`, so no local secret scan ran there. - The pre-PR gate at `5698000` expects `pre-pr.ok` under `.git/`, which is a file in a worktree, so it blocked every `gh pr create` there. `fe86e5c` and `c4626e0` make it resolve the absolute git directory. The shared agent, command, guideline, script, and skill directories are linked as a whole, so the files this range deletes or renames (the `kotlin-review` skill and agent, `coding-guidelines.md`, and others) leave no dangling symlinks. Co-Authored-By: Claude Opus 5.5 --- .agents/shared | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.agents/shared b/.agents/shared index 569800012..f3d8ac5be 160000 --- a/.agents/shared +++ b/.agents/shared @@ -1 +1 @@ -Subproject commit 56980001221230bb258881c691d4f16773ed1d20 +Subproject commit f3d8ac5bed56b4695dbedd8a201ad7a0b81651e6