How zak-7869/research-agent works
Briefing Desk is a web research agent: a user submits a topic and search depth, the backend plans queries, searches the web, and drafts a cited report, which the UI displays with source links and queries. The backend also exposes health and Prometheus metrics endpoints; monitoring configuration exists in the repository, but its scrape wiring was not sampled. The workflow and API edges are supported by excerpts; deployment manifests and unsampled monitoring behavior are not mapped.
Main entry points: page.js Briefing Desk · main.py Research API · agent.py Research workflow · route.js Research proxy
Components 14
User interface
- Briefing Desk
frontend/app/page.js - Research proxy
frontend/app/api/research/route.js - Cited report
frontend/app/page.js - Sources and queries
frontend/app/page.js
API and workflow
- Research API
backend/app/main.py - Research workflow
backend/app/agent.py
Research stages
- Query planner
backend/app/agent.py - Web search
backend/app/agent.py - Report writer
backend/app/agent.py
Observability
- API metrics
backend/app/main.py - Prometheus configuration
monitoring/prometheus.yml
Other components
- Research user
- Groq LLM
- Tavily search
Connections 14
- Research user → Briefing Desk: submits topic
frontend/app/page.js - Briefing Desk → Research proxy: posts request
frontend/app/page.js - Research proxy → Research API: forwards request
frontend/app/api/research/route.js - Research API → Research workflow: runs research
backend/app/main.py - Research workflow → Query planner: dispatches
backend/app/agent.py - Query planner → Web search: passes queries
backend/app/agent.py - Web search → Report writer: passes sources
backend/app/agent.py - Query planner → Groq LLM: requests queries
backend/app/agent.py - Web search → Tavily search: searches web
backend/app/agent.py - Report writer → Groq LLM: drafts report
backend/app/agent.py - Research workflow → Research API: returns results
backend/app/main.py - Research API → API metrics: records requests
backend/app/main.py - Briefing Desk → Cited report: renders report
frontend/app/page.js - Briefing Desk → Sources and queries: renders sources
frontend/app/page.js