Skip to content

feat(cowork): add prompt-based hooks for SDLC enforcement#426

Merged
BaseInfinity merged 2 commits into
mainfrom
feat/cowork-prompt-hooks
Jun 23, 2026
Merged

feat(cowork): add prompt-based hooks for SDLC enforcement#426
BaseInfinity merged 2 commits into
mainfrom
feat/cowork-prompt-hooks

Conversation

@BaseInfinity

Copy link
Copy Markdown
Owner

Summary

Test plan

  • bash tests/test-cowork-drift.sh — 17/17 passing (9 existing + 8 new)
  • Codex xhigh cross-model review: round 1 6/10 → round 2 9/10 CERTIFIED
  • Round 1 caught wrong hooks.json structure (events at root instead of under "hooks" key) — fixed
  • CI passes
  • Verify install in real Cowork session (manual, post-merge)

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 BaseInfinity merged commit 13c6a94 into main Jun 23, 2026
3 checks passed
BaseInfinity added a commit that referenced this pull request Jun 23, 2026
Rebase picked the wrong side — PR #424's old 12-test file instead of
main's 17-test file from merged PR #426.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant