How nitinsukthe-g/scout-researchagent works
Scout is an autonomous research agent: a user submits a topic through Mission Control or the terminal, then the agent recalls prior knowledge, plans research steps, executes tool-using ReAct loops, replans, writes and validates a cited report, critiques it, and stores lessons and findings for future runs. The FastAPI server exposes runs and streams events to the web interface; the CLI is an alternate interface. The graph includes the documented memory, web research, replay, trace, report, and memory-dashboard capabilities. Some frontend and backend wiring is supported by README or source-index references rather than sampled implementation excerpts.
Main entry points: orchestrator.py Research orchestrator · llm.py Sarvam client · mission.js Mission Control UI · executor.py ReAct executor
Components 25
User interfaces
- Mission Control UI
web/js/mission.js - Run history
web/js/history.js - Memory dashboard
web/js/memory.js - Report viewer
web/js/report.js - Live trace
web/js/trace.js - Flow diagram
web/js/flow.js - API client
web/js/api.js - Terminal CLI
cli.py - FastAPI server
server.py
Research workflow
- Research orchestrator
scout/agent/orchestrator.py - Planner and replanner
scout/agent/planner.py - ReAct executor
scout/agent/executor.py - Writer and critic
scout/agent/writer.py - Reflector
scout/agent/reflector.py - Agent prompts
scout/agent/prompts.py
Research tools
- Tool registry
scout/tools/registry.py - Web research tools
scout/tools/web.py - Local tools
scout/tools/local.py
Learning and memory
- Long-term memory
scout/memory/store.py
Runtime foundation
- Run state and events
scout/state.py - Sarvam client
scout/llm.py - Runtime settings
scout/config.py
Other components
- Researcher
- Sarvam AI
- Search and source sites
Connections 38
- Researcher → Mission Control UI: submits mission
README.md - Researcher → Terminal CLI: runs research
README.md - Mission Control UI → API client: requests and subscribes
web/js/mission.js - Run history → API client: loads history
web/js/history.js - Memory dashboard → API client: loads memory
web/js/memory.js - Mission Control UI → Flow diagram: renders flow
web/js/mission.js - Mission Control UI → Report viewer: renders report
web/js/mission.js - Mission Control UI → Live trace: renders trace
web/js/mission.js - API client → FastAPI server: calls API and SSE
README.md - Terminal CLI → Research orchestrator: runs agent
README.md - FastAPI server → Research orchestrator: starts agent
server.py - Research orchestrator → Long-term memory: recalls and persists
scout/agent/orchestrator.py - Research orchestrator → Planner and replanner: plans and replans
scout/agent/orchestrator.py - Research orchestrator → ReAct executor: executes steps
scout/agent/orchestrator.py - Research orchestrator → Writer and critic: writes and critiques
scout/agent/orchestrator.py - Research orchestrator → Reflector: extracts learning
scout/agent/orchestrator.py - ReAct executor → Tool registry: dispatches tools
scout/agent/executor.py - Tool registry → Web research tools: dispatches web tools
scout/tools/registry.py - Tool registry → Local tools: dispatches local tools
scout/tools/registry.py - Web research tools → Search and source sites: searches and fetches
scout/tools/web.py - Web research tools → Long-term memory: reads reputation and records fetches
scout/tools/web.py - Web research tools → Run state and events: registers sources
scout/tools/web.py - ReAct executor → Run state and events: updates run state
scout/agent/executor.py - Research orchestrator → Run state and events: emits workflow events
scout/agent/orchestrator.py - Planner and replanner → Sarvam client: requests plan
scout/agent/planner.py - ReAct executor → Sarvam client: reasons and selects tools
scout/agent/executor.py - Writer and critic → Sarvam client: drafts and critiques
README.md - Reflector → Sarvam client: distills learning
scout/agent/reflector.py - Sarvam client → Sarvam AI: sends model requests
README.md - Research orchestrator → Agent prompts: uses agent prompts
scout/agent/orchestrator.py - ReAct executor → Agent prompts: uses ReAct prompts
scout/agent/executor.py - Sarvam client → Runtime settings: loads configuration
scout/llm.py - Research orchestrator → Runtime settings: configures workflow
scout/agent/orchestrator.py - Tool registry → Runtime settings: uses tool settings
scout/tools/registry.py - FastAPI server → Run state and events: creates run state
server.py - FastAPI server → Long-term memory: serves memory and history
server.py - Reflector → Long-term memory: stores lessons and knowledge
scout/agent/orchestrator.py - Writer and critic → Run state and events: validates citations
README.md