Bee agent
The Flue worker turns text or voice into validated tool calls, responses, and structured UI.
Request flow
- The client sends text or transcribed speech to the user’s session.
- Bee interprets the request with current Goal and Highlight context.
- Validated tools query Convex or submit an intent-level command.
- The client receives text, optional speech, and structured UI.
Rules
- Keep business invariants in Convex, not model instructions.
- Validate tool inputs before calling backend functions.
- Keep first-focus previews unpersisted until confirmation.
- Fall back to text when generated UI is malformed.
Run and build
bun run agent
bun run --cwd packages/agent build
bun run --cwd packages/agent deployThe local worker listens on http://localhost:3583. Production deploys to Cloudflare Workers.