How instruckt works (Mental Model)
maininstruckt provides a visual feedback loop between users and AI agents:
- Initialization: The Vite plugin or Blade component initializes the annotation UI.
- Annotation: Users click elements to leave feedback and optionally capture screenshots.
- Clipboard: Annotations are automatically copied as structured markdown for easy pasting into AI agents.
- Persistence: Annotations are stored via API in
storage/app/_instruckt/(JSON for data, PNG for screenshots). - AI Interaction: AI agents use MCP tools to read pending annotations and can call
instruckt.resolveto mark them as fixed, which removes the marker from the browser.