Skip to content

fix: make agent-hook installation idempotent and doctor validation structural #23

Description

@chtnnh

Problem

Repeated initialization appends duplicate agent-hook entries because detection does not match the generated command reliably. Conversely, strict doctor can accept arbitrary text containing a loose marker as a valid hook configuration.

Scope

Give generated hook entries a stable marker and validate their event, matcher, command, referenced script, and freshness.

Acceptance criteria

  • Repeated installation produces one effective entry per supported agent integration.
  • Doctor rejects wrong events, malformed commands, stale scripts, and prose-only matches.
  • Existing tracked integration files are normalized.
  • Tests cover duplicate installation and malformed-but-marker-containing configuration.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions