What problem does it solve? It prevents developers from adding inline LLM calls in client or server code, which would create a shadow AI that lacks the agent's project context, database access, and coordination abilities. ## Core Features & Use Cases - Chat Bridge Delegation: Send messages to the agent from the UI with sendToAgentChat or from Node scripts with agentChat.submit, with optional hidden context. - Submit vs Prefill Control: Choose between auto-submitting routine operations or prefilling the chat input for user review on high-stakes actions like deletions. - Prompt Capture Pattern: Use a Popover with a Textarea to capture the user's actual prompt before triggering generative actions like "New Design" or "Make Deck". - Use Case: When building a "Generate Form" button, capture the user's description in a popover, then auto-submit it to the agent instead of hardcoding a generic message. ## Quick Start Delegate AI work from a button by calling sendToAgentChat with the user's captured prompt and submit set to true.