This is the code repo for paper FS-Researcher (currently a minimal implementation, performance not guaranteed, complete code coming soon).
main.py: CLI entrypoint (runs two agents: Stage 1 + Stage 2)agent.py: minimal ReAct-style agent + tool executortools.py: tools includingsearch_web(Google Serper),read_webpage(Jina AI Reader), andFileTools(local filesystem utilities)prompts.py: system prompts for Stage 1 / Stage 2config.py: local config (reads from environment variables first)requirements.txt: minimal dependencies
Create a virtual environment if you prefer, then:
pip install -r research_agent/requirements.txt-
OpenAI-compatible API
OPENAI_API_KEY: requiredOPENAI_API_BASE: optional, defaults tohttps://api.openai.com/v1LLM_MODEL: optional, defaults togpt-5
-
Tools
SERPER_API_KEY: Google Serper key (used bysearch_web)JINA_API_KEY: Jina Reader key (used byread_webpage, optional)
From the repository root:
python -m research_agent.main --topic "your research topic" --workspace ./workspace_demoYou can also copy the entire research_agent/ folder into another project and run it from its parent directory:
python -m research_agent.main --topic "your research topic"