Skip to content

docs(framework): align COMPATIBILITY.md and the hook generator's host table with what the CLI carries #1346

Done

Description

@blafourcade

Problem

Two documents tell a hook author what each tool carries, and both disagree with the code the CLI ships (cli/assets/hooks-runtime/host-*.cjs, cli/src/composition/tool-profiles/*.ts):

  • docs/COMPATIBILITY.md marks hooks as supported for Cursor, Antigravity and Kiro, although each carries a subset: Cursor drops SessionEnd; Antigravity carries SessionStart, PostToolUse and Stop, and only Stop answers reach the model; Kiro carries SessionStart only.
  • plugins/aidd-context/skills/08-hook-generate/references/hosts.md:
    • gives Copilot camelCase events and a toolName/toolArgs payload, while the adapter reads the Claude-compatible hook_event_name and tool_input;
    • marks "keep the turn going at stop" and "require a fix after a write" as unsupported on Copilot, while the adapter does both with decision: "block";
    • marks OpenCode and Kilo session start as unsupported, while the bridge replays it;
    • lists tool.execute.before, which nothing wires;
    • states PreToolUse deny protocols that no adapter implements and the vendor docs contradict (detail in feat(cli): let a plugin hook refuse a file write on every host #1342);
    • omits Kiro and Kimi.

Proposed solution

  • docs/COMPATIBILITY.md becomes the one owner of what each host carries: a "What each host carries" table (events delivered, what reaches the model, whether the person channel exists, level 2 informing only on Cursor, the OpenCode and Kilo bridges and Kiro, the bridges keeping one Stop verdict per plugin and a fixed 5000 ms timeout, host-bridge.cjs serving OpenCode and Kilo), with code anchors (profile file, host-*.cjs) rather than line numbers. A partial hooks cell is marked as a subset.
  • docs/ARCHITECTURE.md § Hooks only points to that table (one line, added by feat(aidd-pm): refuse a write to a locked spec before it happens #1343).
  • hosts.md: correct each row against the adapters, with a vendor citation per claim, and add Kiro and Kimi.

Lands after #1253 and #1343.

Acceptance criteria

  • docs/COMPATIBILITY.md holds the per-host table, and § Hooks points to it without restating it.
  • No hooks cell in docs/COMPATIBILITY.md claims more than the profile and adapter deliver.
  • Every hosts.md row matches its adapter, and each host claim cites a vendor doc or a captured payload.
  • Kiro and Kimi appear in hosts.md.

Content type

Documentation

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Activity

  1. blafourcade commented on Nov 26, 2026

    @blafourcade
    ContributorAuthor

    Done on next. #1372 states what each host carries for hooks in docs/COMPATIBILITY.md (#hook-events), with one table of limits per host. #1383 makes write-hook.cjs the one cited per-host mapping for the hook generator, exposed through --describe, with a vendor doc URL per host. hosts.md keeps detection only.

  2. moved this from Ideation to Done in AIDD Roadmapon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions