Skip to content

feat: stabilize agent edit hooks - #311

Merged
arminazimi merged 8 commits into
mainfrom
feat/112-stable-guard-hooks
Nov 16, 2026
Merged

arminazimi merged 8 commits into
mainfrom
feat/112-stable-guard-hooks

Conversation

@arminazimi

@arminazimi arminazimi commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #112
Closes #129
Closes #155
Closes #180
Closes #203
Closes #204
Closes #205
Closes #206
Closes #230
Closes #231
Closes #248

What changed

  • Mark Claude Code, Codex, and Cursor edit hooks stable and list the stability and availability of all seven hosts. Install only for detected hosts and report the host, project file, and event.
  • Preserve existing configuration and hook entries, make repeated setup byte-idempotent, and remove managed registrations without deleting config files. Keep the Cursor project rule shared with offing setup.
  • Allow edits and emit one host-facing warning when lifecycle data is unavailable.
  • Replay recorded payloads through each installed stable hook. Run the 50-invocation warm-cache latency check in isolation.
  • Document installation, removal, and troubleshooting for the stable hosts.

Workflow changes

  • Reason: Measure the strict 200 ms p95 budget on the Ubuntu Node 24 reference runner before the parallel test suite. Keep functional checks on every existing CI job.
  • Budget effect: none

Quality bar

Reviewed against the quality criteria and the review rubric.

Checks CI cannot make

  • Tests added or updated for changed behavior
  • Changelog fragment added in changes/

Verification

  • npm run check
  • git diff --cached --check
  • Replayed the committed Claude Code recording and captured fresh Codex CLI and Cursor desktop payloads in isolated workspaces. CI replays the anonymized payloads without launching the agents.

Notes for reviewers

New stable registrations invoke offing directly on the host's PATH so npm startup stays outside the hook. Existing registrations using npx can be removed and reinstalled to switch launchers.

@arminazimi
arminazimi merged commit 16833ab into main Nov 16, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment