Delegated literature search · Persistent research memory · Evidence checks · Human input
Research rarely ends after one search. This framework keeps the papers, claims, and execution context behind a task so follow-up questions can build on earlier work. A browser workbench brings together the conversation, live execution graph, saved literature, research memory, and runtime questions.
The English workbench before starting a research run.
| Capability | What it provides |
|---|---|
| Delegated research | Workers search in separate contexts and return concise findings with source identifiers and coverage gaps. |
| Reusable evidence | Project libraries retain papers; research memory extracts claims, deduplicates them, and can check contradictions. |
| Hybrid retrieval | Lexical and dense rankings combine through reciprocal rank fusion, with optional cross-encoder reranking and lexical fallback. |
| Controlled execution | Turn, token, cost, and time budgets, plus tracing, rate limits, and checkpoint utilities. |
| Human input | Runtime questions, approvals, and follow-ups that guide an active job. |
| Experiment workflows | Persistent Python execution, research plans, trial evaluation, and multiple workflow topologies. |
The browser talks to a Python HTTP service. Each job combines planning, agent execution, project tools, retrieval, and memory. Workflow graphs provide additional execution strategies for paper analysis.
flowchart TB
UI["Browser workbench<br/>Conversation · execution graph · evidence"]
API["HTTP service<br/>Projects · jobs · polling · human replies"]
UI <-->|HTTP / JSON| API
subgraph Runtime["Execution"]
Planner["Intent & query planning"]
Agent["Agent loop<br/>Budgets · tools · completion checks"]
Workers["Research workers<br/>Isolated contexts · source-backed digests"]
Graph["Workflow graphs<br/>Native / optional LangGraph"]
Planner --> Agent --> Workers
end
API --> Planner
API --> Graph
Agent --> Tools["Tool registry & task tool packs"]
Workers --> Tools
Tools --> Search["Literature sources<br/>arXiv · Semantic Scholar"]
Tools <--> Memory["Project library & claim memory<br/>Hybrid retrieval · embedding cache"]
Tools --> Sandbox["Persistent Python kernel<br/>Data context · assets · trials"]
Agent <--> Models["Model clients & provider adapters"]
Graph --> Models
API <--> Human["Human interaction gate<br/>Questions · approvals · follow-ups"]
Human -.-> Agent
Harness["Execution harness<br/>Rate limits · traces · checkpoints"] -.-> Runtime
style UI fill:#eff6ff,stroke:#2563eb,color:#172554
style API fill:#eff6ff,stroke:#2563eb,color:#172554
style Memory fill:#ecfdf5,stroke:#059669,color:#064e3b
style Human fill:#faf5ff,stroke:#9333ea,color:#581c87
flowchart LR
Q["Question"] --> P["Plan search angles"] --> D["Delegate research"]
D --> E["Search & retain evidence"] --> V{"Evidence sufficient?"}
V -->|More work| D
V -->|Supported| A["Findings + sources<br/>+ coverage notes"]
Completion checks assess whether observed evidence supports an answer. They do not guarantee correctness: judge failures and exhausted retry limits can allow a result through with a recorded warning. Coverage tracking distinguishes an unfinished search from an established research gap.
Requirements: Python 3.10+ and a DeepSeek API key for the default web service.
git clone https://github.com/Hiro208/research-agent-framework.git
cd research-agent-framework
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
cp .env.example .env
# Set DEEPSEEK_API_KEY in .env.
python scripts/serve.pyOpen localhost:8000. On Windows, activate the environment with .venv\Scripts\activate.
- Create a project with a focused research question.
- Confirm the task type, then set the turn and cost limits.
- Follow the execution graph and inspect individual steps.
- Answer runtime questions or send follow-ups while research runs.
- Reuse saved papers and claims in your next question.
python -m pip install sentence-transformersEmbedding and reranking models load on demand. Without these dependencies, retrieval falls back to lexical scoring.
| Environment variable | Purpose | Default / requirement |
|---|---|---|
DEEPSEEK_API_KEY |
Default model credentials | Required |
EVO_API_TOKEN |
Service access token | Required for a non-local bind address |
S2_API_KEY |
Semantic Scholar credentials | Optional |
EVO_EMBED_MODEL |
Dense retrieval model | intfloat/multilingual-e5-small |
EVO_RERANK_MODEL |
Cross-encoder reranker | cross-encoder/mmarco-mMiniLMv2-L12-H384-v1 |
EVO_DENSE_FLOOR |
Dense relevance threshold | 0.82; recalibrate when changing the embedding model |
Provider adapters live in evo_agent/llm/providers.py. The web service uses DeepSeek through LLMClient by default; installing another provider SDK does not automatically switch the service provider.
| Service option | Default | Meaning |
|---|---|---|
--host |
127.0.0.1 |
Bind address |
--port |
8000 |
HTTP port |
--max-turns |
20 |
Maximum turns per job |
--max-cost |
0.50 |
Maximum cost per job, in USD |
--max-jobs |
4 |
Maximum concurrent jobs |
For non-local access, set EVO_API_TOKEN before changing the bind address. API clients can send Authorization: Bearer <token> or X-Evo-Token: <token>.
export DEEPSEEK_API_KEY="your-api-key"
export EVO_API_TOKEN="your-long-random-access-token"
docker compose up --buildCompose maps the service to 127.0.0.1:8000 and mounts projects/, results/, and data_store/ for persistence. Token-protected API access requires the headers above; the current browser interface has no token sign-in form.
evo_agent/
├── agents/ Agent loop and research policies
├── core/ Delegation, verification, human input, content boundaries
├── graph/ Workflow nodes, topologies, and execution backends
├── harness/ Rate limits, traces, and checkpoints
├── llm/ Model clients and provider adapters
├── memory/ Claims, hybrid retrieval, and embedding caches
├── planner/ Query plans, research plans, and trial evaluation
├── project/ Project storage, intent detection, and tool packs
├── sandbox/ Persistent Python kernel and experiment resources
├── search/ External literature adapters
└── tools/ Tool registration and execution
scripts/serve.py HTTP service entry point
web/app.html English browser workbench; no frontend build step
python scripts/check_rebuild.py
python -m unittest discover -s checks -vOffline checks cover module imports and selected behavior including tool execution, source filtering, completion rejection, budget conservation, and English interface text. Live model calls, external retrieval, model downloads, and optional backends require separate integration validation.
The staged timeline reconstructs an existing implementation. See SIMULATION.md for provenance and DEVELOPMENT.md for the recorded milestones.
