Skip to content
Taxlinedocs

The fleet / Research

Research

The Research agent answers tax questions with citations — retrieval over a living knowledge base, never freeform guessing. It runs behind the orchestrator and hands cited findings to Workpaper.

The pattern

Each agent is a tool-using worker with a narrow job. The orchestrator routes a request to the agent best suited to it, collects the output, and passes control on. Nothing is autonomous end to end — a human approves before output ships.

service/agents/research.ts
export const research = defineAgent({
  name: 'research',
  instructions: 'Answer with citations from the knowledge base. Never guess.',
  tools: [kbSearch],            // retrieval over knowledge-base/
  handoff: 'workpaper',
});