Research Agent TemplatePro
Plan, fan out, synthesize: a planner decomposes the question, parallel researchers answer against the corpus, and a live timeline streams every step before the cited report.
What happens to write latency when I raise the replication factor to 3, and what can I tune to get it back?
A scripted replay of one research run — plan, four parallel researchers (one fails, and the report says which question it could not answer), retrieved sources with the floor visible, then the cited report. The components are the real ones the template ships, but there is no model, planner or corpus behind this page.
Every file in it
The full file list, with line counts — nothing is hidden about what you are getting, only the contents are.
45 files, 3,593 lines
Every file below is real and readable once you have Pro — downloaded as a zip, installed with one shadcn command, or read here in the browser. $49 once, for this and every other Pro item.
Built on these components
All free, all documented on their own pages. The template is what wires them together.
The checklist an agent writes for itself and then edits mid-run — steps added, skipped and re-ordered, without the list jumping under the reader.
Agent Run TimelineThe activity log for a long agent run — collapsible success clusters, retry-linked events, approval gates in place, and a follow that respects the reader.
Source ListThe passages retrieval actually returned, with similarity scores and a visible relevance floor — including the case where nothing cleared it.
Citation PopoverA citation marker that shows the passage it came from — fixed positioning that survives a scrolling answer, touch and keyboard, and an honest state for a number the model invented.
Running it
- Download the zip and unpack it, or install it with the shadcn command above — either way the app lands in its own directory. Then
npm install. - Add an
AI_GATEWAY_API_KEYto.env.local— one key reaches every model the template uses. npm run dev. To use a provider directly instead, install its package and change one line in the chat route.