Skip to content

Latest commit

 

History

History

subagents

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Subagents

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.

Run it

  1. From the repo root, run pnpm install.
  2. Run pnpm --filter subagents dev.
  3. Open http://localhost:3100.
  4. Paste an OpenRouter key from https://openrouter.ai/keys.
  5. Send a prompt, for example research octopuses and suggest SEO titles, or research 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.