You want a blog-writing chat. Some turns need research, some need SEO, and some need a draft. Jev picks the agents. Research and SEO run together. The writer runs after them and reads their notes. The UI shows a nested card for each agent.
- From the repo root, run
pnpm install. - Run
pnpm --filter subagents dev. - Open http://localhost:3100.
- Paste an OpenRouter key from https://openrouter.ai/keys.
- Send a prompt, for example
research octopuses and suggest SEO titles, orresearch squids, suggest SEO, and write the article.
The OpenRouter key stays in this tab only. A reload clears it. Chat and Jev both use that key.
The server route is src/routes/api.chat.ts. The agents live in src/lib/agents.ts. The UI factory is src/chat-ui.tsx.