feat(cowork): add prompt-based hooks for SDLC enforcement#426
Merged
Conversation
Cowork plugin now ships 3 prompt-based hooks that enforce SDLC discipline without shell access: - PreToolUse (Write/Edit/MultiEdit): TDD RED/GREEN reminder - UserPromptSubmit: SDLC baseline checklist injection - Stop: Completion check (confidence, self-review, tests) Uses "type": "prompt" exclusively — no bash, no filesystem needed. Correct plugin hooks.json wrapper structure (events under "hooks" key, validated by Codex round 1 P1 finding). Also: README rewritten to document hooks, clarify Code vs Cowork product distinction, remove stale "hook support is unverified" claim. ROADMAP parking lot triage: 1M default trigger fired, 2 Fable items re-dated to July 22. Codex xhigh: round 1 6/10 (2 P1s — wrong hooks.json structure + tests validating wrong shape), round 2 9/10 CERTIFIED. 17 tests (9 existing + 8 new: hook structure, 3 event checks, prompt-only type, 3 ROADMAP tracking).
…ing, portability Fixes from /code-review (4-angle max effort, 15 candidates): - Test 7 comment/label updated: "enforcement gap" → "documents prompt-based hooks" (4 angles flagged stale label) - Test numbering sequential: was 1-9, 13-17, 10-12 → now 1-17 - UserPromptSubmit hook: "TodoWrite FIRST" → "Plan tasks FIRST" (TodoWrite is CC-specific, not available in Cowork) - README: added honest caveat that hooks haven't been tested in a live Cowork session yet - plugin.json description: "methodology guidance" → "enforcement" to match README
BaseInfinity
added a commit
that referenced
this pull request
Jun 23, 2026
…ng lot (#424) * docs(roadmap): add Cowork enhancement, Dynamic Workflows, Copilot parking lot Three new ROADMAP entries from triage session 2026-06-20: - #424 Cowork plugin enhancement: prompt-based hooks, verified install path, README corrections. Plugin exists since v1.83.0 but was never tested in a real Cowork session. Hooks ARE supported per Anthropic's own cowork-plugin-management docs. - #425 Dynamic Workflows + ultracode evaluation: CC v2.1.154 feature (May 28, 2026) we missed for 3 weeks (#350 cadence gap). Ultracode is xhigh + auto-workflow, not a replacement for max effort default. - Copilot Cowork SDLC port: parking lot with 60-day expiry. GitHub Copilot desktop app in technical preview (June 2, 2026). Deep-research workflow findings verified by Codex xhigh (round 1: 6/10 NOT CERTIFIED with 2 P1s + 1 P2; round 2: 10/10 CERTIFIED after fixes). 3 new tests in test-cowork-drift.sh validate ROADMAP entries exist. * fix(tests): use main's test-cowork-drift.sh after rebase conflict Rebase picked the wrong side — PR #424's old 12-test file instead of main's 17-test file from merged PR #426.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cowork/hooks/hooks.json)PreToolUse(Write/Edit/MultiEdit): TDD RED/GREEN reminderUserPromptSubmit: SDLC baseline checklist injectionStop: Completion check (confidence, self-review, tests)Test plan
bash tests/test-cowork-drift.sh— 17/17 passing (9 existing + 8 new)"hooks"key) — fixed