0

AI Deep Research Agent

awesome-llm-appsai-deep-research-agent

A deep research assistant that plans, searches the web, writes to a virtual filesystem, and renders each tool call as a live card in a workspace pane. Built with CopilotKit, Deep Agents, AG-UI, and Tavily on top of Next.js + LangGraph (Python).

Sign in to save downloads to your library and vote.

Preview

AI Deep Research Agent

A deep research assistant that plans, searches the web, writes to a virtual filesystem, and renders each tool call as a live card in a workspace pane. Built with CopilotKit, Deep Agents, AG-UI, and Tavily on top of Next.js + LangGraph (Python).

https://github.com/user-attachments/assets/68d5729f-91f9-4fd9-a579-cd1a8f4aad8d

Gen UI concept — tool-rendered components with a sidecar workspace. The Deep Agent emits four tools — write_todos, write_file, read_file, and research — and each one renders inline as a status card in the chat while updating a parallel workspace pane (plan, files, expandable tool results). Local React state mirrors the agent's filesystem via useDefaultTool rather than useCoAgent, sidestepping a Python Dict ↔ TypeScript Array type mismatch.

Prerequisites

Getting Started

  1. Install Node dependencies:
npm install
  1. Install Python dependencies for the agent:
cd agent
uv venv && source .venv/bin/activate
uv pip install -e .
cd ..

Or with pip:

cd agent
python -m venv .venv && source .venv/bin/activate
pip install -e .
cd ..
  1. Copy .env.example to .env in both the root and agent/ directories, then fill in OPENAI_API_KEY and TAVILY_API_KEY.

  2. Start the agent (terminal 1):

cd agent
uv run python main.py
  1. Start the frontend (terminal 2):
npm run dev

Open http://localhost:3000 and ask the assistant to research any topic.

Architecture

[User asks research question]
        ↓
Next.js Frontend (CopilotChat + Workspace)
        ↓
CopilotKit Runtime → LangGraphHttpAgent
        ↓
Python Backend (FastAPI + AG-UI)
        ↓
Deep Agent (research_assistant)
    ├── write_todos        (planning, built-in)
    ├── write_file         (filesystem, built-in)
    ├── read_file          (filesystem, built-in)
    └── research(query)
            └── internal Deep Agent [thread-isolated]
                    └── internet_search (Tavily)

Environment Variables

VariableRequiredDefaultDescription
OPENAI_API_KEYYes-Get API key
TAVILY_API_KEYYes-Get API key
OPENAI_MODELNogpt-5.5Model to use (gpt-5.5)
LANGGRAPH_DEPLOYMENT_URLNohttp://localhost:8123Backend URL
SERVER_HOSTNo0.0.0.0Backend host
SERVER_PORTNo8123Backend port

Learn more

License

Upstream license applies — see CopilotKit/CopilotKit.

Ingestion metadata

Source catalog
awesome-llm-apps
File path
generative_ui_agents/ai-deep-research-agent/README.md
Last refreshed
7/23/2026, 10:39:09 PM (4h ago)
Refresh schedule
Daily · 03:00 UTC
Dedupe status
Unique · deduped by (source, url)