Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

15 lines790 Bytes

1# Subagents
2​
3You 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.
4​
5## Run it
6​
71. From the repo root, run `pnpm install`.
82. Run `pnpm --filter subagents dev`.
93. Open http://localhost:3100.
104. Paste an OpenRouter key from https://openrouter.ai/keys.
115. Send a prompt, for example `research octopuses and suggest SEO titles`, or `research squids, suggest SEO, and write the article`.
12​
13The OpenRouter key stays in this tab only. A reload clears it. Chat and Jev both use that key.
14​
15The server route is `src/routes/api.chat.ts`. The agents live in `src/lib/agents.ts`. The UI factory is `src/chat-ui.tsx`.