Understand Agentation Hook behavior and output
mainThe hook triggers on every user message. It queries http://localhost:4747/pending.
- If annotations exist: It formats the element selector and the comment, injecting them into the Claude prompt.
- If no annotations exist or the server is offline: The hook remains silent and outputs nothing, ensuring no disruption to your workflow.
Example of injected content:
=== AGENTATION FEEDBACK (2 pending) ===
[1] button.submit-btn
Comment: This button should be disabled during loading
[2] div.error-message
Comment: Error text is hard to read, needs more contrast
Address these UI issues.
=== END ===