Skip to content

Provider Reference

Complete reference for all supported research providers.

Overview

Provider Env Variable Strengths Speed
OpenAI OPENAI_API_KEY Most comprehensive Slow
Perplexity PERPLEXITY_API_KEY Real-time web, multiple speeds Fast-Slow
Edison EDISON_API_KEY + edison extra Scientific literature Slow
Asta ASTA_API_KEY Semantic Scholar-scale literature retrieval + snippets Fast
Consensus CONSENSUS_API_KEY Academic papers Fast
OpenScientist OPENSCIENTIST_API_KEY Autonomous research, PMID citations Very slow
Cyberian (local agents) Agent-based, thorough Very slow
Claude Code (local claude CLI) Agentic web research, no API key Slow
Claude Managed Agents ANTHROPIC_API_KEY Hosted research team; quotes traceable to retrieved evidence, checked by a grader Very slow
Antigravity (local agy CLI) Agentic web research on Gemini, no API key Slow
Biomni (upstream local environment) Biomedical co-scientist, runs code Very slow
ToolUniverse TOOLUNIVERSE_API_KEY or OPENAI_API_KEY + optional extra Local co-scientist, scientific tools and Python execution Very slow
RSS Agent RSS_AGENT_DIR (local checkout) + ANTHROPIC_API_KEY Digest of recent papers from feeds, Crossref, bioRxiv Slow
DeepER-Med (stub - no API yet) Evidence-based agentic medical research (arXiv:2604.15456) n/a
ToxIndex (stub - no submit API yet; TOXINDEX_API_KEY for retrieval) Chemical safety and toxicology agent (Sage), cited to tool calls n/a

See Capabilities, Resources & Archetypes for the vocabulary used to describe each provider, including why a conventional deep-research tool is a subset of the co-scientist case.

Provider run identifiers

A lightweight Markdown report is safe to commit, but the richer artifacts a run produced may need to be reassembled from the provider later — to verify provenance, fetch a PDF export, or debug a provider-side run. For that a committed report has to carry a durable handle on its upstream job. Three provider-neutral fields on ResearchResult, written to the report frontmatter, hold it (issue #50):

Field Meaning
provider_job_id The provider-side identifier for this run (e.g. an OpenScientist job ID or an Edison trajectory UUID).
provider_job_url A direct URL to the provider-side job, when the provider exposes one.
provider_instance_url The base URL of the hosted instance that ran this, when the provider is a hosted service.

Each provider sets whichever it can and leaves the rest unset rather than guessing — a field is absent from the frontmatter when it is unknown, so its presence is the finding. Provider-specific raw identifiers that do not fit these keys stay in run_metadata. The older Edison/Falcon trajectory_id key is unchanged and still written (see Edison); it now coexists with provider_job_id, which carries the same UUID.

Timeouts

deep-research-client research --timeout SECONDS (or timeout= on DeepResearchClient.research()) replaces the chosen provider's ProviderConfig.timeout for one run. The same number limits different things for different providers, so check the row for yours before picking one. The run logs the meaning for the provider it uses (visible with -v), and the value is recorded in the report's provider_config.timeout.

Provider What --timeout limits Default
OpenAI Read timeout on each HTTP request. Deep Research is one blocking request, so in practice how long to wait for the report 600 s
Perplexity Longest gap between streamed chunks, not the whole run 600 s
Edison (Falcon) How long to wait for the task before cancelling it (EdisonTaskTimeoutError) 2400 s
Asta Read timeout on each HTTP request 180 s
Consensus Read timeout on each HTTP request 600 s
OpenScientist How long to wait for the job before cancelling it. The timeout provider parameter overrides the config timeout, so passing both --timeout and --param timeout= is rejected 3600 s
Cyberian How long cyberian waits for the agent to finish each workflow task 1800 s
Claude Code How long the whole claude run may take before it is killed 1800 s
Claude Managed Agents How long the session may run, repair turns included, before it is interrupted and its outputs collected. A session that does not settle after the interrupt raises a timeout naming the session, which --param session_id= can collect later 3600 s
Antigravity How long the whole agy run may take before it is killed. agy's own --print-timeout is left at its default of no limit, so this outer kill governs; set print_timeout to pass one through 1800 s
Biomni The agent's timeout_seconds: a limit on each generated code execution, not the run. The timeout provider parameter overrides the config timeout, so passing both --timeout and --param timeout= is rejected 3600 s
RSS Agent How long the whole rss_agent_claude pipeline run may take before it is killed 3600 s
ToxIndex Timeout on each HTTP request (retrieval and providers --check; research is a stub) 60 s
ToolUniverse Not supported: refused. Use --param request_timeout= for each LLM request n/a
DeepER-Med Not supported: stub, nothing runs n/a
Mock Longest the simulated delay (response_delay) may run before TimeoutError none

Like --model and --param, --timeout applies to the provider you named only. If the run falls back to another provider, that one uses its own default, and a warning says so.

When a run does exceed its time, the provider raises ProviderTimeoutError (Edison raises its own EdisonTaskTimeoutError), and the CLI reports Research timed out … and points at --timeout rather than surfacing a raw transport error. A timeout never triggers fallback — the remedy is a longer timeout, not a different provider.

Each row summarises the provider class's timeout_meaning attribute (see Declaring what the provider needs).

OpenAI Deep Research

Setup

export OPENAI_API_KEY="your-key"

Models

Model Aliases Description
o3-deep-research-2025-06-26 o3, o3-deep, o3dr Most comprehensive
o4-mini-deep-research-2025-06-26 o4m, o4-mini, mini Balanced speed/quality

Parameters

from deep_research_client.provider_params import OpenAIParams

params = OpenAIParams(
    allowed_domains=["pubmed.ncbi.nlm.nih.gov"],  # Filter to domains
    temperature=0.2,
    max_tokens=4000,
    top_p=0.95
)

Characteristics

  • Cost: High to Very High
  • Speed: 2-15 minutes
  • Context Window: 128K tokens
  • Capabilities: Web search, code interpretation, comprehensive synthesis

Perplexity AI

Setup

export PERPLEXITY_API_KEY="your-key"

Models

Model Aliases Description
sonar-deep-research deep, deep-research, sdr Comprehensive
sonar-pro pro, sp Balanced
sonar basic, fast, s Fastest

Parameters

from deep_research_client.provider_params import PerplexityParams

params = PerplexityParams(
    allowed_domains=["wikipedia.org", "github.com"],
    reasoning_effort="high",  # low, medium, high
    search_recency_filter="month"  # day, week, month, year
)

# Or use native domain filter with deny-list
params = PerplexityParams(
    search_domain_filter=[
        "github.com",       # Allow
        "-reddit.com",      # Deny (prefix with -)
    ]
)

Characteristics

  • Cost: Low to High (depends on model)
  • Speed: Seconds to minutes
  • Context Window: 100K-200K tokens
  • Capabilities: Real-time web search, recent data
  • Streaming: responses are streamed, so a sonar-deep-research run that takes 5–8 minutes is not cut off by a proxy that closes idle connections (Claude Code cloud sessions do this at about 300 s). ProviderConfig.timeout (600 s by default) is the longest gap allowed between streamed chunks, not a cap on the whole run. A leading <think>…</think> block is removed from the report. A connection drop is tolerated only after the final chunk has arrived; a drop part-way through, or a response that is only reasoning, raises an error rather than returning a partial report.

Edison Scientific (Falcon)

Setup

pip install "deep-research-client[edison]"
export EDISON_API_KEY="your-key"

The Edison SDK (edison-client) and what it brings with it (ldp, fhlmi, LiteLLM) are an optional extra, so users of other providers do not install that stack or inherit its version constraints. [falcon] is an alias for the same extra. Without it, the provider still appears in providers and says what to install; selecting it fails with that same install hint.

Models

Model Aliases Description
Edison Scientific Literature falcon, edison, eds, science Scientific papers

Parameters

from deep_research_client.provider_params import FalconParams

params = FalconParams(
    temperature=0.1,
    max_tokens=8000
)

Characteristics

  • Cost: High
  • Speed: 2-5 minutes
  • Capabilities: Scientific literature, powered by PaperQA3
  • Artifacts: Edison output artifacts are fetched from the completed task. Image artifacts such as diagrams, charts, and figures are written beside saved reports and embedded in the generated Markdown; other artifact files are linked from an Artifacts section.
  • Runs that find nothing: when Edison's agent was not sure of its answer (has_successful_answer false or never set) -- typically because retrieval found no papers -- the report is still written with its artifacts, but its frontmatter says answer_status: unsuccessful, ## Output opens with a warning, the result is not cached, and the CLI exits with code 4. Which papers Edison can retrieve is up to its own corpus and search, not this client.
  • Trajectory / job identifier: every run records Edison's task UUID both as the provider-neutral provider_job_id (see Provider run identifiers) and under the long-standing provider_config.trajectory_id, which is also surfaced as a top-level trajectory_id frontmatter key. The two always carry the same UUID; trajectory_id is kept so existing tooling and the deep-research-client edison-trajectory <task id> command keep working. A report reassembled by that command additionally sets provider_config.retrieval_mode: edison_trajectory. Edison exposes no public per-job URL, so provider_job_url and provider_instance_url are left unset rather than guessed. (A fresh run recorded no identifier at all before this; only the retrieval command did.)
  • Timeout and cancellation: the client waits up to ProviderConfig.timeout seconds for the Edison task (2400 by default, edison-client's own default), then raises EdisonTaskTimeoutError (a TimeoutError). When the client stops waiting by choice (that timeout, Ctrl-C, or the caller cancelling the run), it asks Edison to cancel the task, so it doesn't keep running and billing. Edison only cancels a task that has started. One still queued is left alone, and a warning names it so you can stop it from the Edison dashboard. When a status check fails instead, for example on a network error, the task is left running, because it may still finish. A warning gives the deep-research-client edison-trajectory <task id> command that collects it.
  • Artifacts with unreadable storage ids: an output whose storage id is not a UUID is skipped with a warning. The answer and the other artifacts are still returned.
  • Failures cached before this was added: a run that failed this way under an earlier version was cached like any report, and a cache entry records no answer_status, so it is still served as one. If you hit this before upgrading, rerun that query with --no-cache (or deep-research-client clear-cache, which clears everything) to get a fresh run.

Asta

Setup

export ASTA_API_KEY="your-key"

Models

Model Aliases Description
Asta Scientific Corpus Retrieval asta, retrieval, snippets Retrieval-only paper and snippet lookup

Parameters

from deep_research_client.provider_params import AstaParams

params = AstaParams(
    query_char_limit=500,
    paper_limit=50,
    snippet_limit=20,
    publication_date_range="2021:",
    venues="Nature,Science"
)

Characteristics

  • Cost: Free
  • Speed: Usually a few seconds
  • Capabilities: Scientific literature retrieval, snippet search, direct evidence reporting

Consensus

Setup

export CONSENSUS_API_KEY="your-key"

Note: Requires application approval.

Models

Model Aliases Description
Consensus Academic Search consensus, academic, papers, c Peer-reviewed only

Characteristics

  • Cost: Low
  • Speed: Seconds
  • Capabilities: Academic papers only, evidence-based summaries

OpenScientist

Setup

export OPENSCIENTIST_API_KEY="name:secret"
# Optional: custom instance URL
export OPENSCIENTIST_URL="https://www.openscientist.io"

Important: Your account must be approved by an administrator at openscientist.io before you can create jobs. Until approved, the API returns 403 Forbidden.

Models

Model Aliases Description
openscientist-autonomous openscientist, autonomous-research Iterative hypothesis-driven research

Parameters

from deep_research_client.provider_params import OpenScientistParams

params = OpenScientistParams(
    max_iterations=5,              # Research iterations (1-20)
    use_hypotheses=False,          # Enable hypothesis tracking
    investigation_mode="autonomous",  # "autonomous" or "coinvestigate"
    poll_interval=30,              # Seconds between status checks
    timeout=3600,                  # Max wait time (1-2 hours recommended)
    save_artifacts=True,           # Preserve useful ZIP artifacts
    artifact_max_bytes=5 * 1024 * 1024,  # Per-artifact extraction limit
    artifact_keep_runtime=False,   # Also keep logs, transcripts, stdout/stderr
    artifact_extra_extensions=[],  # Extend the extension allowlist
    artifact_include_globs=[],     # Force-keep these paths
    artifact_exclude_globs=[],     # Always drop these paths
)

See Artifact selection for what the last four do.

Characteristics

  • Cost: Variable (uses Claude under the hood)
  • Speed: 10-60+ minutes (iterative multi-step research)
  • Capabilities: PubMed search, code execution, hypothesis-driven research
  • Citations: PMID format with deduplication
  • Artifacts: Useful figures, small structured files, and rendered reports from the OpenScientist artifact ZIP are returned as ResearchArtifact entries. Runtime scaffolding, logs, transcripts, archives, and oversized files are skipped by default, and every part of that is configurable — see Artifact selection.
  • Job ID: the result's run_metadata carries the OpenScientist job_id, which is also written to the report frontmatter. With it, a caller can fetch the job's complete artifacts ZIP from GET {OPENSCIENTIST_URL}/api/v1/jobs/{job_id}/artifacts when artifact selection leaves out a file it needs. Results cached before this field existed have no run_metadata (the cache version was deliberately not bumped, since runs are long), so callers must handle its absence.
  • Provider run identifiers: the same job is also recorded in the provider-neutral frontmatter keys described under Provider run identifiers: provider_job_id, provider_job_url ({OPENSCIENTIST_URL}/job/{job_id}), and provider_instance_url (the base URL this run used, so a committed report points back at the instance that produced it, not a hard-coded default).

When to Use

  • Disease pathophysiology research with PubMed citations
  • Hypothesis-driven scientific literature reviews
  • Biomedical mechanism discovery
  • Evidence synthesis with structured PMID references

Limitations

  • Requires account approval at openscientist.io
  • Very slow (designed for comprehensive research)
  • PubMed-focused (may not cover all scientific domains)
  • Cost scales with number of iterations

Cyberian (Agent-Based)

Setup

pip install deep-research-client[cyberian]

Cyberian uses local AI agents (Claude, Aider, etc.) - no separate API key needed.

Parameters

from deep_research_client.provider_params import CyberianParams

params = CyberianParams(
    agent_type="claude",       # claude, aider, cursor, goose, codex
    workflow_file=None,        # Custom workflow file
    port=3284,                 # agentapi server port
    skip_permissions=True,     # Skip permission checks
    manage_server=True,        # Start/stop agentapi server (set False for external server)
    sources="academic papers", # Source guidance
    workdir_base=None,         # Base directory for workspaces (default: system temp)
    max_iterations=None,       # Limit looping task iterations (requires cyberian >= 0.3.0)
)

If you want to run a pre-configured agentapi server (for example, Codex with yolo mode), start it manually and set manage_server=False so deep-research-client does not restart it.

Characteristics

  • Cost: Variable (depends on agent)
  • Speed: 10-30+ minutes
  • Capabilities: Iterative research, citation management, comprehensive synthesis

When to Use

  • Comprehensive literature reviews
  • Deep technical research
  • Multi-source citation management

Testing and Iteration Control

Use max_iterations to limit how many times looping tasks (like the iterate subtask) can run. This is passed through to cyberian's TaskRunner and requires cyberian >= 0.3.0.

# Limit to 2 iterations for testing
deep-research-client research --provider cyberian "query" \
    --param agent_type=codex \
    --param max_iterations=2

This is useful for:

  • Testing: Run a quick verification without full research
  • Cost control: Limit agent API calls
  • Debugging: Inspect intermediate results after fixed iterations

Claude Code

Claude Code is a local command-line tool rather than an HTTP API. This provider shells out to the claude binary in non-interactive ("print") mode, pipes the research prompt to it via stdin, and lets Claude Code's own agentic tools (web search, web fetch, file reading) carry out the research. The response comes back as a cited markdown report.

Output is read as a stream-json event stream so that every assistant message becomes part of the report. The simpler json output format exposes only a result field holding the agent's final message, so an agent that wrote its report and then emitted any closing remark would lose the whole report while still exiting 0 with valid provenance (#59).

Because every assistant message is kept, any narration the agent emits between tool calls ("Let me search for X…") appears in the report alongside the research. That is a deliberate trade — including narration is cosmetic, whereas selecting a single message risks dropping the report — but it has one consequence worth knowing: citations are extracted from the joined text, so a URL mentioned only in passing is counted in citation_count.

Setup

No API key is needed — authentication and billing are handled by your local Claude Code installation. Just make sure the CLI is installed and on your PATH:

claude --version   # should succeed

The provider is auto-detected whenever claude is found on PATH. Set DISABLE_CLAUDE_CODE_PROVIDER=true to opt out of auto-detection.

Parameters

from deep_research_client.provider_params import ClaudeCodeParams

params = ClaudeCodeParams(
    model="opus",                 # optional; forwarded to `claude --model`
    allowed_tools=["WebSearch", "WebFetch"],  # tool allowlist (default: read-only research set)
    skip_permissions=False,       # default; True bypasses ALL checks (see Security)
    add_dirs=["/data/papers"],    # optional --add-dir entries
    working_dir="/tmp/research",  # optional cwd (default: a fresh temp dir)
    min_report_chars=200,         # fail on an implausibly short report (0 disables)
    extra_args=["--max-turns", "30"],  # escape hatch for unmodeled flags
)

When skip_permissions is False (the default), you can also set permission_mode (e.g. "plan" or "acceptEdits").

Working directory. With working_dir unset the run uses a fresh empty temporary directory, removed when it ends, rather than the caller's current directory. A one-shot research run needs its web tools, not the caller's files, and starting in the caller's workspace lets the agent pick up agent-instruction files sitting there (CLAUDE.md, AGENTS.md), which can send it after a tool the read-only allowlist denies (issue #113). Set working_dir="." to keep the old current-directory behaviour, or add_dirs to grant tool access to specific directories without making one the cwd. Note the flip side of this change: project-scoped Claude Code config in the current directory (.mcp.json, .claude/settings.json, a local CLAUDE.md) is no longer loaded by default; set working_dir="." if a run needs it.

What every run is told

Whatever system_prompt you pass (or the default research prompt), the provider appends a fixed directive to it:

  • Do the work in this run. Print mode has no "later", so the model is told not to defer to a background task or sub-agent. No one can answer questions mid-run, so instead of asking, the model states its interpretation of an ambiguous request at the top of the report.
  • Retrieve before writing (issue #102). Find sources with the research tools first, cite each claim's URL or identifier inline as it is written, and state no specific factual claim, citation or identifier (PMID, DOI, ontology ID) that was not retrieved in this session. A section that can't be sourced says so rather than being filled from memory. Besides being what a curation input needs, this avoids the large unsourced narrative that output safety classifiers halt.
  • A partial report is allowed (issue #103). A run that can't finish may return what it has, starting with a line that begins **Incomplete report:** and a one-sentence reason. That marker makes the run unsuccessful (see below), so a partial report is kept but flagged for review, not passed off as done.

The directive is not part of the cache key. A report cached before it changed (including a from-memory one) is still served for the same query, so rerun with --no-cache if you need a fresh run under the current directive.

Failing loudly on an empty report

A run that produces no research is the expensive failure mode, because it still writes a well-formed file with real cost and provenance metadata — easy to skim past and mistake for a real report. min_report_chars (default 200) turns that into a raised ValueError and a non-zero exit. The rejected text is logged in full and previewed in the exception, so a failed run is diagnosable without paying for a second one.

!!! warning "This default is a behavior change"

Runs that previously returned a short answer successfully now raise. A
one-sentence reply is typically under 200 characters. Set
`min_report_chars=0` if you expect short answers.

This is an emptiness check, not a quality one — a 250-character "I was unable to find sufficient information on this topic" passes it cleanly.

Runs that are not a report

The CLI exits 0 whatever the model wrote, so a run that declined, or answered without researching, used to be written out as a clean report (issue #101). The provider now marks three shapes as unsuccessful:

  • Nothing retrieved: no retrieval call and no web search in the whole run, so the text was written from memory. This holds even when the text cites URLs, PMIDs or DOIs: with nothing fetched, those were recalled too, and may be hallucinated. A denied call retrieved nothing, and neither did a bookkeeping or write call (TodoWrite, Write, Edit and similar), so none of them count.
  • Marked incomplete: a line of the report begins **Incomplete report:**, the marker the directive above asks for when a run can't finish. Any markdown spelling counts (**Incomplete report**:, ## Incomplete report:, a blockquote, no bold), and so does any line, so a run that writes the marker and then recovers is still flagged. This holds whatever the report cites, since a partial report can be well sourced.
  • Declined, in a text that cites no source at all (no URL, PMID or DOI): a refusal aimed at the report itself ("I'm not going to regenerate that … research narrative") or a mention of a safety classifier, typically after an output safety classifier stopped the first attempt. A disclaimer such as "I cannot provide medical advice. This report …" or "…recommendations, but this report …" is not a refusal: the verb and report must sit in the same clause, with nothing but spaces between them.

Either way the report is still written, but its frontmatter says answer_status: unsuccessful, ## Output opens with a warning, run_metadata.unsuccessful_reason says which shape it was, the result is not cached, and the CLI exits with code 4 (the same handling as falcon's "runs that find nothing"). A report from a run that retrieved something, cites even one source and isn't marked incomplete is never marked: this is a check that the run did research, not a judgment of how well.

Five run_metadata fields help diagnose a thin result after the fact:

  • assistant_text_blocks — how many separate assistant messages the report was assembled from. More than one is normal for an agentic run; this is provenance for how the report was assembled, not a warning sign.
  • tool_calls — how many tools the model called, denied ones included.
  • retrieval_calls — the calls that could have retrieved something: not denied, not bookkeeping. Zero, with no web search, is what marks a run as written from memory, whatever it cites.
  • permission_denials — how many tool calls were refused.
  • denied_tools — which tools were refused. A non-zero count often explains a thin report: the agent asked for a tool outside allowed_tools and gave up, and this names what to add.

Security

In non-interactive mode the run is driven by an agent, and get_first_available() may select this provider for an arbitrary query whenever claude is on PATH. To keep that safe by default:

  • allowed_tools defaults to a read-only research set (["WebSearch", "WebFetch"]), passed via --allowedTools. Tools not on the list are auto-denied (without blocking the run), so the agent cannot edit files or run shell commands.
  • skip_permissions defaults to False. Setting it True adds --dangerously-skip-permissions, which bypasses every permission check and makes allowed_tools a no-op (all tools become available). Only enable it in trusted, sandboxed environments.

Widen allowed_tools if a task genuinely needs more. The most common case is research over local documents: the default set is web-only and deliberately omits the Read tool, so to let Claude Code read files you have supplied (for example in an add_dirs path) you must add it explicitly:

params = ClaudeCodeParams(
    allowed_tools=["WebSearch", "WebFetch", "Read"],
    add_dirs=["/data/papers"],
)

Read is left out of the default because it grants the agent read access to the local filesystem, which is unnecessary for purely web-based research and is a mild information-disclosure surface if the query is untrusted. Add it only when reading local documents is actually part of the task.

Usage

deep-research-client research --provider claude_code "your research question"

See a full example report produced by this provider, including the YAML frontmatter that records the actual model(s) used and run provenance (run_metadata).

Characteristics

  • Cost: Handled by your Claude Code subscription / API key
  • Speed: Slow (agentic, multi-step)
  • Capabilities: Web search, citation tracking, code interpretation
  • Auth: None required by this client; relies on local Claude Code

Limitations

  • Requires the claude CLI installed and authenticated locally
  • Restricted to a read-only research toolset by default; broaden allowed_tools (or enable skip_permissions in a sandbox) for tasks that need more
  • Non-deterministic results
  • The stream-json output carries every tool result, including full fetched page bodies, so a fetch-heavy run can buffer tens of MB of stdout in memory. Not a correctness problem, but worth knowing for long runs.

Claude Managed Agents

This provider runs a small research team in an Anthropic-hosted sandbox through Claude Managed Agents. It is built for reports whose citations have to be traceable: every identifier and quotation in the report should come from text an agent actually retrieved in the session.

How the team works

  1. Plan. A coordinator agent (Opus 5.5 by default) writes PLAN.md: its interpretation of the question and four to twelve sub-questions.
  2. Retrieve. The coordinator starts a workflow run that gives each sub-question to its own retriever agent (Haiku 5.5 by default). Each retriever saves up to six sources, each as an evidence file in citations/ holding the source's text verbatim, plus a findings card (<key>.findings.md): one terse line per finding, each with a verbatim quote. A second, smaller run fills gaps.
  3. Write. The coordinator assigns cards to sections by their headers and starts a second workflow run of writer agents (Sonnet 5.5 by default), each writing a group of related sections from its cards within a word budget, citing by identifier and quoting the cards word for word. The coordinator writes the introduction and Open Questions from the writers' summaries, assembles REPORT.md, and generates the References with a script.
  4. Grade. The whole task is a Managed Agents outcome. After each turn a separate grader, in its own context window, checks the report and evidence files against a rubric (workflows/managed-rubric.md). It looks at what a mechanical check cannot: whether each cited source supports the sentence it is attached to, whether the sources are relevant, whether disagreement is reported. It sends the coordinator back until the rubric is met or max_iterations is reached. The grader has no web access, so it judges the evidence files, not the live sources.

Retrieval is where most tokens go (raw pages and abstracts), so it runs on the small model in many short contexts, and retrievers are told to grep long texts rather than read them. No single context holds every source: the coordinator reads card headers and writers' summaries, and each writer reads only its own cards, so the coordinator's cost does not grow with the number of sources. All agents share one sandbox filesystem, so the evidence files and cards are how they hand work to each other.

The prompts are in src/deep_research_client/workflows/: managed-task.md (the task, a Jinja template), managed-coordinator.md, managed-retriever.md, managed-writer.md and managed-rubric.md.

Evidence files

One file per source, citations/<key>.md, YAML frontmatter then the text as retrieved:

---
key: hodges-1971-clinical-manifestations
identifiers:
  - PMID:5568449
  - DOI:10.1093/ajcn/24.4.432
title: Clinical manifestations of ascorbic acid deficiency in man
source_url: https://pubmed.ncbi.nlm.nih.gov/5568449/
content: abstract
---
<the abstract, verbatim>

content is abstract, fulltext or excerpt. A retriever may also save the original PDF as <key>.pdf. The parser is deep_research_client.validation.evidence.parse_evidence_file.

Report format

The report cites by identifier, so validate-references and claims extraction work on it unchanged:

Scurvy appears within weeks of a diet without vitamin C (PMID:5568449). In the
Iowa depletion study, "the first signs of scurvy appeared after 29 days"
(PMID:5568449).

## References
- PMID:5568449 Hodges RE et al. 1971. Clinical manifestations of ascorbic acid deficiency in man. evidence: citations/hodges-1971-clinical-manifestations.md

The evidence check, and repair turns

After the session's turn ends, DRC checks the report against the evidence files, with no network access:

  • Cited without evidence: identifiers the report cites that no evidence file carries. These were recalled, not retrieved.
  • Unanchored quotes: each quotation written "..." (ID) is looked for in the text of that identifier's evidence file, using the claims-anchoring matcher (verbatim, or after normalising whitespace, markdown and quotation marks). A changed number, or a real quote attributed to the wrong paper, fails.

If the check fails, DRC sends the failures back into the same session as a message, listing each quote and identifier and how to fix it (copy the passage exactly, cite the right source, retrieve the missing source, or drop the claim). The coordinator edits REPORT.md, ends its turn, and DRC checks again, up to max_repair_rounds times (default 2). A report still failing after that is marked unsuccessful. Repair turns are cheap, since only the coordinator works, and they share the session's cost cap and timeout. No repair is attempted after the cost cap, a refusal or a timeout, since the session cannot take another turn. The coordinator is also told to run the same kind of check itself (grep -F each quotation against its evidence file) before ending each turn, so most errors are fixed before DRC sees them.

run_metadata.evidence_check records the final check, repair_rounds how many repairs were requested, and repair_history the counts from each failed check that was sent back.

The check shows traceability, not truth: whether a traced quote supports its sentence is the grader's job, and whether an identifier resolves is validate-references'.

Setup

export ANTHROPIC_API_KEY=sk-ant-...

The provider is registered whenever ANTHROPIC_API_KEY is set. Managed Agents is in beta (header managed-agents-2026-04-01, which the SDK sends). deep-research-client providers --check --provider claude_managed lists one agent to prove the key and access.

Models

The model parameter is the coordinator's model:

Model Alias Notes
claude-opus-5-5 opus, claude-managed Default
claude-sonnet-5-5 sonnet Cheaper synthesis

Any other Claude model ID is passed through. retriever_model (default claude-haiku-5-5) is the retrievers', and writer_model (default claude-sonnet-5-5) the section writers'.

Parameters

from deep_research_client.provider_params import ClaudeManagedParams

params = ClaudeManagedParams(
    model="opus",                         # coordinator
    retriever_model="claude-haiku-5-5",   # retrievers
    writer_model="claude-sonnet-5-5",     # section writers
    max_iterations=5,        # grader revision cycles, 1-20
    max_repair_rounds=2,     # evidence-check repairs before the report is marked unsuccessful
    max_cost_usd=20.0,       # hard per-session cap at list prices, retrievers included; None removes it
    allowed_hosts=[],        # empty = unrestricted networking (see Security)
    allowed_domains=[],      # harmonized: limit web search and fetch to these domains
    timeout=3600,            # then the session is interrupted and its outputs collected
    poll_interval=15.0,
    delete_session=False,    # keep the session and its event history
    session_id=None,         # reattach to an existing session instead of starting one
    task_file=None,          # defaults to the bundled managed-task.md
    rubric_file=None,        # defaults to the bundled managed-rubric.md
)

Only PLAN.md comes back as an artifact by default. The evidence files, around 200 a run, are downloaded and used for the evidence check and the citation list, but not saved with the report: they are the provider's working store, and the session keeps them. To save them too, name them with artifact_include_globs (--param 'artifact_include_globs=*.md' for all). The other artifact selection fields work as described in Artifact selection.

How a session becomes a result

  1. The retriever, writer and coordinator agents and the cloud environment are created on first use and reused afterwards. Each is named deep-research-client-<fingerprint>, a hash of its definition, so changing a model, prompt or networking makes a new one rather than editing the old.
  2. A session is created with the outcome as its first event, so it starts immediately, with a budget if max_cost_usd is set.
  3. The provider polls the session. When it is idle, the event history is read: the run is over once the grader has given a final verdict, or the session stopped for any other reason (cost cap, refusal, exhausted retries).
  4. The session's files are listed through the Files API (scope_id = session) and downloaded. REPORT.md is the report. Markdown files with evidence frontmatter are the evidence, and each one's first identifier (or URL) is a citation. PLAN.md, and any file named by artifact_include_globs, become artifacts. Files come back flat: citations/hodges-1971.md is listed as hodges-1971.md. Findings cards (*.findings.md) are never read as evidence, so a card cannot anchor its own quotes.
  5. If the evidence check fails, the failures are sent back for a repair turn, up to max_repair_rounds, unless the session stopped at its cost cap, was refused or interrupted, or the timeout has already passed.

run_metadata records session_id, agent_id, environment_id, retriever_model, writer_model, workflow_runs, stop_reason, outcome_result, outcome_iterations, grader_explanation, evidence_check, repair_rounds, repair_history, token counts, web search and fetch counts, list_cost_usd and active_seconds. Usage covers the whole session, retrievers, writers and grader included. With the session kept, its threads in the Claude Console show every search and fetch each agent made.

Recovering a run whose client lost contact

The session runs on Anthropic's side whether or not the client is watching. A brief network outage while polling is logged and retried until the timeout. One that loses the interrupt sent at the timeout is logged too, and the provider still waits out the five-minute grace period and collects whatever the session has produced if it stopped by then. But a client that dies or exits outright leaves the session running unwatched. To collect it, run the same command again with --param session_id=sesn_... (the ID is in the log, and in client.beta.sessions.list()). The provider then waits for that session, collects its outputs, and checks and repairs them exactly as for a new run, without starting or paying for another session.

Runs that are not a finished report

These are written but marked answer_status: unsuccessful, not cached, and the CLI exits 4:

  • the session reached max_cost_usd
  • a safety classifier refused the session's output (the category, such as bio, is in the reason). The platform records this in the idle event's stop details, with the stop reason still end_turn
  • the session was interrupted at timeout
  • the grader found the rubric did not apply, or never ran
  • the report still failed the evidence check after max_repair_rounds repairs

A run that used up max_iterations without satisfying the grader is not flagged: the report is complete and the grader's last explanation is in run_metadata.grader_explanation. A terminated session, exhausted retries (a billing error raises ProviderBillingError), or a pause for tool confirmation raises an error naming the session. A session that stops before writing REPORT.md raises an error naming the stop reason (for the cost cap, it says to raise max_cost_usd).

Security

The default environment uses unrestricted networking, because research needs to reach sites that cannot be listed in advance. The sandbox holds nothing but the query and what the agents download, so there are no secrets to exfiltrate, but fetched pages can still steer an agent (prompt injection), and bash can send requests anywhere. To lock it down, list hosts in allowed_hosts: the environment switches to limited networking, which also restricts web search and fetch to those hosts (package registries stay reachable so agents can install converters). Entries in allowed_domains must then fall within allowed_hosts, or session creation fails.

Characteristics

  • Cost: tokens at API rates, web search at $10 per 1,000 searches, and $0.08 per running session-hour, capped per session by max_cost_usd
  • Speed: Very slow (tens of minutes)
  • Capabilities: Web search, citation tracking, code execution, evidence synthesis
  • Auth: ANTHROPIC_API_KEY

Limitations

  • Beta API; behaviour may change between releases
  • Sessions persist until deleted and are not eligible for zero data retention or HIPAA
  • Workflow runs count against your Messages API rate limits for each model; a wide fan-out on a low tier can be throttled
  • Non-deterministic results

Antigravity

Google Antigravity is a local agentic command-line tool (the agy binary), like Claude Code rather than an HTTP API. Antigravity ships no dedicated "deep research" product, but its headless ("print") mode is a close structural twin of Claude Code's: this provider shells out to agy -p, lets its own agentic tools (search_web, read_url_content, a browser family) carry out the research on a Gemini model, and returns a cited markdown report. See #109.

Output is read as a stream-json event stream. Unlike Claude Code, the finished report is taken from the terminal result event's response field (the full turn output); the stream is read for the tool tally (the "did it actually retrieve?" check) and provenance (usage, num_turns, conversation_id). Streamed text deltas are not relied on, as they are absent in practice.

Setup

No API key is needed — authentication and billing are handled by your local Antigravity installation. Authenticate once with an interactive agy session, then make sure the CLI is on your PATH:

agy --version   # should succeed
agy models      # should list models (confirms you are logged in)

The provider is auto-detected whenever agy is found on PATH. Set DISABLE_ANTIGRAVITY_PROVIDER=true to opt out of auto-detection.

Parameters

from deep_research_client.provider_params import AntigravityParams

params = AntigravityParams(
    model="gemini-3.8-flash-medium",  # optional; defaults to gemini-4-carbon-medium (see `agy models`)
    effort="high",                    # optional --effort (low|medium|high|xhigh|max)
    skip_permissions=False,           # default; True bypasses the read-only default (see below)
    disable_slash_commands=True,      # default; keep a query from triggering slash/skill expansion
    print_timeout=None,               # default: agy's own no-limit; set e.g. "15m" to pass one through
    settings_override=None,           # escape hatch: raw JSON for `agy --settings`
    add_dirs=["/data/papers"],        # optional --add-dir entries
    working_dir="/tmp/research",      # optional cwd (default: a fresh temp dir)
    min_report_chars=200,             # fail on an implausibly short report (0 disables)
    extra_args=["--sandbox"],         # escape hatch for unmodeled flags
)

Working directory. With working_dir unset the run uses a fresh empty temporary directory, removed when it ends, rather than the caller's current directory. agy treats its starting directory as the workspace, so starting in a directory that holds agent-instruction files (CLAUDE.md, AGENTS.md) lets the agent read them and reach for a shell or file tool its read-only mode auto-denies — which ends the run with an empty report (issue #113). Set working_dir="." to run in the current directory, or add_dirs to grant tool access to specific directories without making one the cwd.

What every run is told

agy has no system-prompt flag, so whatever system_prompt you pass (or the default research prompt) plus a fixed inline-report directive are prepended to the prompt text ahead of the research task. The directive is the same one the Claude Code provider uses: do the work in this run, retrieve before writing and cite each claim inline, and — if the run can't finish — return a partial report whose first line begins **Incomplete report:**, which marks the run unsuccessful. As with Claude Code, the directive is not part of the cache key.

The model is always explicit

agy's own default model is opaque: it is whatever the CLI was last configured to use, and it is reported nowhere the provider can read it — not in the run's init/result events, not in ~/.gemini/antigravity-cli/settings.json, and not in agy models. A default run therefore used to record only a meaningless placeholder for its model. To keep provenance honest, the provider never relies on agy's default: it always forwards an explicit --model, defaulting to gemini-4-carbon-medium, so the report records the model that actually ran. Pass any other slug from agy models via the model parameter.

Permissions and the read-only default

agy has no --allowedTools flag. Instead, its default headless permission mode (request-review) runs read-only retrieval tools freely while soft-denying mutating ones (file writes, shell): the denied call is skipped, a notice is printed to stderr, and the run still exits 0. So the out-of-the-box behaviour is already read-only, and this provider never passes --dangerously-skip-permissions unless you set skip_permissions=True (only do so for a trusted query in a sandbox). One consequence: a soft-denied final action can leave a successful run with an empty response. When that empty-or-too-short report is explained by an auto-denied tool — the terminal event's denied_actions (the strong signal), or an auto-denied note on stderr (a fallback) — the provider raises an error that names the refused action (e.g. Bash (command)) and includes the stderr tail, instead of the generic short-report error, so the real cause is visible (issue #113). Otherwise min_report_chars catches the empty report and fails the run rather than caching it. The refused actions are also recorded in run_metadata (denied_actions, denied_action_names) even when the report survives.

Two caller-controlled escape hatches can also undo the read-only stance: skip_permissions=True (adds --dangerously-skip-permissions) and settings_override / extra_args (which can pass a permissive --settings policy or other flags). They are intended for trusted, caller-controlled use; do not combine them with an untrusted query.

Characteristics

  • Cost: Handled by your Antigravity account (public preview is free for individuals)
  • Speed: Slow (agentic, multi-step; a run can issue many web searches)
  • Capabilities: Web search, citation tracking, evidence synthesis (read-only by default, so no code interpretation unless skip_permissions=True)
  • Auth: None required by this client; relies on local Antigravity

Limitations

  • Requires the agy CLI installed and authenticated locally
  • Read-only by default (web search/fetch/browser); mutation is soft-denied. Enable skip_permissions only in a sandbox for tasks that need more
  • Non-deterministic results
  • No token-free auth-status subcommand exists; health is probed with agy models, which makes a network call but spends no model tokens
  • The prompt is passed as a single command-line argument (agy has no stdin prompt mode for text input), so a very large system_prompt or query is capped at 128 KiB and rejected with a clear error before the run starts

RSS Agent (Literature Digest)

rss_agent_claude is a literature curation pipeline. It fetches recent papers from RSS/Atom feeds, Crossref, bioRxiv, Nature-family and ASM journals; keeps those whose embedding (all-mpnet-base-v2) is close to an interest profile; scores novelty against a FAISS index of a personal paper library; and has Claude Haiku score the survivors against a ranking prompt. It is a retriever: the report is a ranked list of new papers, not an answer to the question.

Setup

rss_agent_claude is a set of scripts with heavy requirements (torch, transformers, faiss-cpu), so it is not a dependency of this package. Clone it and install its requirements in an environment of its own, then point the client at both:

git clone https://github.com/jcthrash/rss_agent_claude
cd rss_agent_claude
python -m venv venv && venv/bin/pip install -r requirements.txt
cp config/examples/feeds.txt config/feeds.txt   # then edit to taste
venv/bin/python scripts/build_library_index.py  # needs library/source_papers/paperpile_library.json

export RSS_AGENT_DIR="$PWD"
export RSS_AGENT_PYTHON="$PWD/venv/bin/python"
export ANTHROPIC_API_KEY="your-key"              # or put it in the checkout's .env

The provider is registered only when RSS_AGENT_DIR is set. It reports itself unavailable, saying which, when the directory is not a checkout, the library index is missing (filter_and_rank.py will not start without it), or the interpreter cannot be found.

How a query is run

Each run happens in a fresh temporary workspace, never in the checkout, so a query neither enters nor is filtered by your daily digest's history:

  • scripts/ is copied and library/ linked from the checkout;
  • feeds.txt, crossref_issn_fallbacks.txt and biorxiv_subjects.txt come from the checkout's config/, falling back to config/examples/;
  • each non-blank line of the query becomes one topic in interest_profile.txt, crossref_terms.txt and biorxiv_terms.txt;
  • ranking_prompt.txt is generated from the topics with a generic rubric, unless ranking_prompt_file names one (e.g. your tuned config/ranking_prompt.txt).

The report is the pipeline's own curated_today.md (Top Picks and Also Worth Scanning), and the citations are the digested articles' links. When no article clears MIN_SCORE there is no digest; the result is then marked answer_status: unsuccessful, is not cached, and the CLI exits with code 4.

deep-research-client research $'Marine nitrogen fixation\nSAR11 physiology' \
  --provider rss_agent --param max_age_days=7 --param skip_biorxiv=true --no-cache

Parameters

from deep_research_client.provider_params import RssAgentParams

params = RssAgentParams(
    repo_dir="/path/to/rss_agent_claude",   # default: RSS_AGENT_DIR
    python_bin="/path/to/venv/bin/python",  # default: RSS_AGENT_PYTHON, then python
    ranking_prompt_file=None,               # default: generated from the query
    min_score=0.6, top_picks_score=0.75,    # digest tiers
    max_age_days=7,                         # how recent a paper must be
    max_llm=500,                            # cap on Claude-scored articles
    semantic_threshold=0.25, crossref_days_back=21,
    skip_crossref=False, skip_biorxiv=False, skip_nature=False, skip_asm=False,
)

Tuning fields left unset keep the pipeline's defaults; each is passed as the run_pipeline.sh environment variable of the same name in upper case.

Limitations

  • Sees only recent papers from the feeds and journals configured in the checkout.
  • Lists papers; does not synthesize them or answer the question.
  • Results change daily, so cached reports go stale: pass --no-cache for a fresh digest.
  • ProviderConfig.timeout (default 3600 s) bounds the whole pipeline run.

DeepER-Med (Stub)

DeepER-Med is an evidence-based agentic deep medical research framework introduced in Wang et al., DeepER-Med: Advancing Deep Evidence-Based Research in Medicine Through Agentic AI (arXiv:2604.15456, submitted 16 April 2026). The paper describes an open-source paradigm with a public website and agent API, but at the time of writing no code, API endpoint, or dataset has been released publicly.

This provider is registered as a stub so:

  • the wrapper slot is reserved and discoverable via providers listing,
  • model cards and parameter classes are in place,
  • callers asking for it are told why it cannot run, with the arXiv pointer, instead of getting a bare "provider not found".

Behavior

is_available() always returns False, so DeepER-Med is never auto-selected and can never be chosen by get_first_available(). It is still registered unconditionally, which means an explicit request reports the stub status:

client.research("...", provider="deeper_med")
# ValueError: DeepER-Med has no public API or code release yet, so this
# provider cannot run research. See https://arxiv.org/abs/2604.15456 ...

Calling DeeperMedProvider.research() directly raises NotImplementedError with the same message. In the CLI it is listed under Stub providers (not yet callable) in deep-research-client providers.

Caveats

The model card's cost, speed, and capability entries are transcribed from the paper — nothing has been measured, because there is no endpoint to measure. The card's limitations say so explicitly.

Once an API is published, only the body of providers/deeper_med.py needs to change.


ToxIndex Sage (Stub, with retrieval)

ToxIndex (Insilica) is a toxicology-specific platform. Its conversational agent, Sage, answers chemical safety and hazard questions over curated toxicology datasets, a regulatory document index and structure-based predictors, citing every claim to the tool call behind it. It is not a general literature research agent.

Why it is a stub

ToxIndex's bearer-authenticated API (https://platform.toxindex.com/v1, OpenAPI at /v1/openapi.json) can read a Sage conversation but cannot start one, as of 2026-10-28:

  • the REST spec has no route that sends a message to Sage;
  • the A2A endpoint its agent card advertises (/a2a) accepts the key and then answers every JSON-RPC method (message/send, message/stream, tasks/get) with 501 {"error": "not implemented"}.

So research() raises NotImplementedError and is_available() is always False. The class declares stub_reason, not credential_env_var, because setting the key does not make research work. Once a submit route ships, swap the two and fill in research().

What works

export TOXINDEX_API_KEY="your-key"   # minted at https://platform.toxindex.com/settings/keys
# Optional: another API root (defaults to https://platform.toxindex.com/v1)
# export TOXINDEX_BASE_URL="https://platform.toxindex.com/v1"

# Verify the key (GET /whoami). Reports UNREACHABLE even when the key is
# accepted, since Sage cannot take work over the API yet; the detail says which.
deep-research-client providers --check --provider toxindex

# Ask Sage in the web app, then fetch the finished conversation as a report
deep-research-client toxindex-conversation <conversation-id> --output report.md

The conversation id is in the ToxIndex app's URL. From Python:

import asyncio
from deep_research_client.models import ProviderConfig
from deep_research_client.providers.toxindex import ToxIndexProvider

provider = ToxIndexProvider(ProviderConfig(name="toxindex", api_key="..."))
result = asyncio.run(provider.retrieve_conversation("6c906ccf-..."))

How a conversation becomes a report

  • Query is the first user message; markdown is the text of the last assistant message.
  • Citations: Sage cites inline as [tc-45957cb5]. Each tag is the citation_id that opens a tool result, so it resolves to the tool call that produced it, rendered as [tc-45957cb5] tox_chemical_identity {"identifier": "carbamate"} (tool call toolu_...). A tag with no matching tool result is logged and listed in run_metadata.unresolved_citations.
  • run_metadata also counts tool_calls, tools_used by name, and failed_tool_calls.
  • A conversation that is empty, still running, or ends on something other than an answer (Sage asking a clarifying question, say) is refused with a ValueError. The API answers an unknown id with an empty 200, not a 404, so "has no messages" may mean a wrong id.

Errors

The API returns {"error": "..."} bodies. 401 (missing api key, invalid api key) maps to ProviderAuthError and 5xx to ProviderTransientError. The API documents no 402 or 429, and the free tier's limits are unpublished, so those are classified by status alone if they ever appear.


Biomni (Biomedical Co-Scientist)

Biomni is a general-purpose biomedical AI agent from Stanford SNAP. Rather than searching the literature and writing a report, it wraps a large toolbox of biomedical software and curated databases and executes generated code to plan and carry out research tasks — designing a CRISPR screen, annotating variants, analysing omics data, and so on. It is a co_scientist archetype: hypothesis-driven and code-running, of which a conventional deep-research run is a subset (see Capabilities, Resources & Archetypes).

This provider wraps the local biomni Python package (biomni.agent.A1). Biomni configures and authenticates its own underlying LLM (Claude by default), so no separate provider API key is required by this client.

Setup

The PyPI package is not Biomni's complete software environment. Follow Biomni's environment setup first: upstream offers a basic agent environment, a reduced environment of about 13GB, and a full E1 setup that it documents as taking more than 10 hours and at least 30GB. Then, inside that activated environment, install this client:

pip install deep-research-client[biomni]

# Biomni drives an LLM under the hood; provide that provider's key, e.g.:
export ANTHROPIC_API_KEY="your-key"

# Optional: where the (~11GB) data lake is stored (default ./biomni_data)
export BIOMNI_DATA_PATH="/data/biomni"

The extra fills gaps in Biomni 0.0.8's package metadata needed for the default agent (pandas, langchain-openai, and langchain-anthropic). It does not install Biomni's R packages, command-line programs, or biomedical Python toolbox; those come from the upstream environment. Anthropic and OpenAI-compatible sources work with the extra. Other backends may need their own adapter, such as langchain-ollama or langchain-aws.

The provider is auto-detected when this core Python runtime is present. Set DISABLE_BIOMNI_PROVIDER=true to opt out of auto-detection.

Important: Biomni executes generated code locally and downloads a large data lake on first run. Run it only in a trusted / sandboxed environment.

Models

Model Aliases Description
biomni-a1 biomni, a1, coscientist Biomni A1 biomedical agent

Note the two model concepts: the model field selects this research model card (biomni-a1), while the llm parameter selects the underlying LLM that Biomni drives.

Parameters

from deep_research_client.provider_params import BiomniParams

params = BiomniParams(
    llm="claude-sonnet-4-20250514",  # underlying LLM (default: Biomni's own)
    source="Anthropic",              # LLM provider: Anthropic, OpenAI, Gemini, ...
    path="/data/biomni",             # workspace root (default: env or ./biomni_data)
    timeout=3600,                    # timeout for each generated code execution
    use_tool_retriever=True,         # retrieve most relevant tools per task
    skip_data_lake=False,            # True skips the ~11GB data lake download
)

Characteristics

  • Cost: Variable (drives an underlying LLM + heavy local compute)
  • Speed: Very slow (multi-step agentic execution)
  • Capabilities: Code execution, data analysis, hypothesis generation, experiment design, evidence synthesis, citation tracking
  • Resources: PubMed, general web, and curated biomedical / genomic / chemical / protein-structure databases
  • Citations: PMIDs, DOIs, PMC and GEO accessions, and bare PubMed URLs, extracted from the final answer with the same patterns reference validation uses
  • Timeout: timeout is handed to the Biomni agent as its own timeout_seconds, which limits each generated code execution. It is not a whole-run deadline; this client does not impose a separate ceiling.

When to Use

  • Designing experiments (e.g. CRISPR screens)
  • Variant annotation and interpretation
  • Omics and sequence data analysis
  • Hypothesis-driven biomedical investigation

Limitations

  • Requires an upstream Biomni environment plus this package's biomni extra
  • Downloads a large (~11GB) data lake on first run
  • Executes generated code locally — use a trusted/sandboxed environment
  • Needs an LLM API key (e.g. ANTHROPIC_API_KEY) for the underlying model
  • Very slow and non-deterministic

ToolUniverse

ToolUniverse provides scientific tools for AI scientists. This wrapper exposes those tools to a smolagents.CodeAgent to accept research questions, investigate hypotheses, execute Python, and return markdown reports. It is a co_scientist, like Biomni and OpenScientist.

Setup

uv add 'deep-research-client[tooluniverse]'
export TOOLUNIVERSE_API_KEY="your-llm-key"
# OPENAI_API_KEY is used if TOOLUNIVERSE_API_KEY is unset.
# Optional: point the LLM at an OpenAI-compatible server.
export TOOLUNIVERSE_BASE_URL="https://your-server.example/v1"

Leave TOOLUNIVERSE_BASE_URL unset to use OpenAI. These are underlying LLM credentials; ToolUniverse does not issue a research-service API key. With Python configuration, pass them as ProviderConfig.api_key and ProviderConfig.base_url. Explicit configuration takes precedence over environment auto-detection.

The extra installs the ToolUniverse SDK and smolagents; it does not install every scientific tool's optional packages. Auto-detection requires both SDKs and an LLM key. Set DISABLE_TOOLUNIVERSE_PROVIDER=true to opt out. Listing providers does not load scientific tools or make an LLM request.

Models and parameters

Model Aliases Description
tooluniverse-coscientist tooluniverse, tu Local scientific CodeAgent

The harmonized model field selects this card. llm selects the actual model used for reasoning and code generation.

Parameter Default Meaning
llm gpt-4.1-mini Underlying OpenAI-compatible model ID
tools See below Non-empty list of exact ToolUniverse tool names
max_steps 20 Agent step limit (1–100); exhausted runs raise an error
request_timeout 120 Timeout in seconds for each LLM HTTP request
workspace None SDK workspace; otherwise TOOLUNIVERSE_HOME or ./.tooluniverse
system_prompt Scientific investigation instructions Custom agent instructions

The default tools are PubMed_search_articles, PubMed_get_article, EuropePMC_search_articles, OpenTargets_get_disease_id_description_by_name, and OpenTargets_get_associated_targets_by_disease_efoId. Only selected tools are exposed to the agent. Unknown or unavailable tool names fail before any LLM request with a provider configuration error, allowing opt-in fallback. Additional tools may require tool-specific environment credentials and packages. allowed_domains is unsupported and rejected; select appropriate tools instead.

The shared toolset also accepts workspace and env_vars when composed into a host. Use an absolute workspace path to share the same SDK configuration across host working directories. The SDK reads an existing workspace's .env and profile.yaml, and seeds a default profile if the directory exists without one. It does not create a missing default workspace. Its persistent cache defaults to ~/.tooluniverse/cache.sqlite; set TOOLUNIVERSE_CACHE_DIR or TOOLUNIVERSE_CACHE_PATH to relocate it.

from deep_research_client import DeepResearchClient
from deep_research_client.models import ProviderConfig

client = DeepResearchClient(provider_configs={
    "tooluniverse": ProviderConfig(
        name="tooluniverse",
        api_key="your-llm-key",
        # base_url="https://your-server.example/v1",
    ),
})
result = await client.research(
    "Investigate therapeutic targets for Parkinson disease and propose experiments.",
    provider="tooluniverse",
    provider_params={"llm": "gpt-4.1-mini", "max_steps": 20},
)
print(result.markdown)
deep-research-client research "Investigate therapeutic targets for Parkinson disease" \
  --provider tooluniverse --param max_steps=20 --param llm=gpt-4.1-mini

Composing ToolUniverse with another agent

tooluniverse is also a shared optional parameter for local agent providers:

Host provider Integration Requirements
claude_code Per-run MCP configuration and explicit tool permissions Local authenticated Claude CLI
biomni A1's add_mcp API Biomni runtime/environment; see its setup above
cyberian MCP configuration in the new workflow workspace agent_type="claude", manage_server=true
openscientist and other hosted APIs Unsupported Requires upstream API support
uv add 'deep-research-client[tooluniverse-tools]'
deep-research-client research "Investigate therapeutic targets for Parkinson disease" \
  --provider claude_code --param tooluniverse=true

The tooluniverse-tools extra installs the scientific SDK and MCP dependencies without smolagents. The tooluniverse extra remains the standalone smolagents agent installation. Composed runs use the host's LLM and authentication; TOOLUNIVERSE_API_KEY and TOOLUNIVERSE_BASE_URL configure only the standalone provider. Individual scientific tools still use their own environment keys. Biomni forwards NCBI_API_KEY by default, alongside MCP's basic process environment such as PATH and HOME. For other scientific credentials, set "env_vars": ["NCBI_API_KEY", "MY_SCIENTIFIC_API_KEY"] inside the toolset object. The temporary configuration stores variable references, not credential values. Include any SDK environment settings such as TOOLUNIVERSE_CACHE_DIR in env_vars too when Biomni's child should inherit them. Claude and Cyberian use their host CLI's inherited environment.

true selects the same default tools as the standalone provider, false/null disables the mixin, and an object selects tools explicitly:

from deep_research_client import DeepResearchClient

client = DeepResearchClient()  # auto-detect the authenticated local Claude CLI
result = await client.research(
    "Investigate therapeutic targets for Parkinson disease.",
    provider="claude_code",
    provider_params={
        "tooluniverse": {"tools": ["PubMed_search_articles", "PubMed_get_article"]},
    },
)

For the CLI, pass that object as JSON:

deep-research-client research "Summarize recent Parkinson disease research" \
  --provider claude_code \
  --param 'tooluniverse={"tools":["PubMed_search_articles","PubMed_get_article"]}'

The shared MCP bridge exposes exactly the configured tools. It preserves input schemas and structured results, with no general dispatcher exposing unselected tools. Claude receives explicit MCP tool permissions alongside its existing allowlist; enabling TU does not turn on permission bypass. Cyberian configures only its fresh workspace. Biomni uses temporary MCP configuration. No global Claude/MCP settings are modified. Tool failures are marked as MCP errors, and both Python and native stdout diagnostics are redirected to stderr to protect the protocol stream. Biomni closes discovery and execution subprocesses after each MCP session.

This integration supplies tools, not TU's skill library or an additional research loop. TU can coexist with skills already installed in the host. Reports retain the host provider identity and record the selected toolset in run metadata; cache keys normalize tool order, default selections, and disabled spellings. Workspace and environment-variable selections remain in cache identity because profiles and credentials can change tool behavior. Cache identity does not track edits to files inside a workspace; bypass or clear cached reports when changing those files. Unsupported hosts reject the parameter, and Cyberian rejects it for unmanaged servers or non-Claude agents.

Limitations

  • Executes generated Python locally; use a trusted environment or run the wrapper inside an external sandbox. Configurable Docker/E2B executors remain a follow-up; the local executor is not a security sandbox.
  • Costs depend on the underlying LLM, tools, and number of steps.
  • request_timeout applies to individual LLM HTTP requests. Scientific-tool execution and the whole investigation have no wall-clock deadline; ProviderConfig.timeout is rejected rather than reinterpreted as a request timeout. This makes ToolUniverse unavailable for the run while preserving other configured providers. Use max_steps to limit agent steps. Cancelling the async caller does not terminate an already running worker thread.
  • Returns the inline markdown report and recognized reference identifiers; generated files are not collected as report artifacts.
  • Available resources and analysis capabilities depend on the selected tools and installed scientific packages. The default tools focus on biomedicine.
  • Biomni starts a fresh MCP process and initializes the SDK for each tool call. This keeps process cleanup predictable but adds per-call startup latency; persistent sessions remain a possible future optimization.

For a local SDK check, run uv run --extra tooluniverse --group dev pytest tests/test_tooluniverse_provider.py. Live PubMed access is covered by the integration tests. A paid LLM integration run additionally requires RUN_TOOLUNIVERSE_INTEGRATION=1 and an LLM key:

RUN_TOOLUNIVERSE_INTEGRATION=1 uv run --extra tooluniverse --group dev \
  pytest -m integration tests/test_tooluniverse_provider.py

Provider Detection

Providers are auto-detected based on environment variables:

# Check available providers
deep-research-client providers

Detection only tells you a provider is configured — an API key is set. It does not tell you the key is still valid, or that the account can pay for a run. To find that out, probe the providers with a cheap live call:

# Probe every configured provider
deep-research-client providers --check

# Probe just one
deep-research-client providers --check --provider falcon

Each provider reports one of these:

Status Means Exit
OK The credential is accepted, and the probe read a balance or allowance with room for a run 0
OK (capacity unverified) The credential is accepted, but the probe cannot see whether the account can pay for a run 0
UNKNOWN (no probe available) The provider has no probe, so configuration is all we know 0
NO CAPACITY The probe read the balance or allowance, and there is none left 1
UNREACHABLE The probe failed: a rejected key, no access, the service down 1
NOT CONFIGURED No credential is set (no probe needed to know that) 1

The command exits non-zero if any provider turns out to be unable to take work.

A probe proves the credential is accepted. Today no probe can also prove the account has credits, so every provider that passes reports OK (capacity unverified). Edison, for example, only charges when a task is submitted, so an uncredited key passes the probe and fails the run with 402. OpenAI and Anthropic expose no balance to read, and claude auth status shows the plan but not how much of its usage limit is left. A numeric balance has to come from the provider's own dashboard. OK and NO CAPACITY are there for a probe that can read one.

Provider Failures

Failures are raised as typed exceptions so callers can tell "switch provider" apart from "try again":

Exception Statuses Retryable Means
ProviderAuthError 401, 403 No Key missing, invalid, or lacks access
ProviderBillingError 402 No Account is out of credits
ProviderQuotaError — No Plan's usage allowance is spent; carries resets_at when the provider says (bounded by the class, so a trailing … on it came from us, not the provider)
ProviderNotConfiguredError — No No credential set; nothing was sent, so nothing was rejected
ProviderNotInstalledError — No A locally-backed provider's binary is not on PATH, or its optional package is not installed (a kind of "not configured")
NoProvidersConfiguredError — No No provider was named and none is available to pick automatically (a kind of "not configured"; provider is "")
ProviderRateLimitError 429 Yes Throttled; wait and retry
ProviderTransientError 5xx Yes Temporary server-side failure

ProviderNotInstalledError and NoProvidersConfiguredError subclass ProviderNotConfiguredError, so one except ProviderNotConfiguredError covers a missing key, a missing CLI, a missing optional package, and nothing being configured at all. All of them subclass ProviderError (itself a ValueError, so older callers still work) and carry provider, status_code, detail, and a retryable flag:

from deep_research_client import ProviderBillingError, ProviderError

try:
    result = client.research("...", provider="falcon")
except ProviderBillingError:
    ...  # out of credits: a retry cannot help, pick another provider
except ProviderError as e:
    if e.retryable:
        ...

Auth and billing failures are classified even when a provider SDK retries internally and reports the result as a timeout — the status is recovered from the wrapped exception rather than lost.

OpenAI

OpenAI reports a spent quota as 429 with code: "insufficient_quota" — the same status it uses for ordinary throttling. Reading the status alone would mark a spent quota retryable and loop on it forever, so the body's error code is checked first and only falls back to the status when there is no code we recognise. A model name that does not exist is deliberately left unclassified: that is a caller error, not a provider outage.

Its probe (models.list) is authenticated but not billed, so like Edison it proves the key and nothing more — a key with no quota left still passes. OpenAI exposes no balance endpoint; the spent quota only announces itself on a run.

Claude Code

The claude_code provider is a subprocess wrapper, so it has no status codes to read. Its failures are classified from what the CLI prints — a spent usage allowance, a logged-out session, an expired token, a model the plan does not include, or an overloaded API — and the wordings that mean "stop" are kept apart from the ones that mean "try again".

Its health probe is the most informative of any provider, and the only free one: claude auth status --json reads local credentials and makes no model call, so --check reports the auth method and plan without spending a token.

The one failure the CLI does not always report cleanly is a spent usage limit mid-run, which can stall rather than fail. The timeout message says so. It does not send you to providers --check, because auth status shows the plan but not how much of its usage limit is left, so a logged-in CLI with a spent limit still reports OK (capacity unverified).

A spent limit that does end the run is read as a quota error, so --fallback applies and the reset time is reported. That holds for the CLI's older wording (Claude usage limit reached. Your limit will reset at 3pm.) and its current ones (You've hit your limit · resets 8pm, 5-hour limit reached ∙ resets 8:50pm). Limits on the conversation rather than the plan, such as Context limit reached, are not. Only the CLI's own words are read: its stderr, the failing result event, and the event it writes for a failed API call (marked is_api_error_message, which a run that stops early may end on). The model's report is never read for this, so a report about usage limits is not one.

An exit the CLI does not explain still says what it saw. When stderr is empty and no failure event is recognised, the message quotes the CLI's last line of plain text on stdout, or the end of the last text the model wrote, or else names the last event the run wrote (last event: system/init), instead of <no stderr>.

Artifact selection

Providers that return a bundle of files — currently OpenScientist's artifacts ZIP — decide which members become ResearchArtifact entries. The defaults keep what most callers want (figures, small structured data, rendered reports) and drop agent scaffolding, but "noise" is a judgement about the consumer, not about the file: a knowledge base recording how a run reached its answer wants the agent transcripts that a report-only consumer does not.

So the decision is data, not code. ArtifactSelectionParams supplies the knobs and any provider can inherit them:

Parameter Default Effect
save_artifacts True Preserve artifacts at all
artifact_max_bytes 5 MB Per-file size cap
artifact_keep_runtime False Keep logs, agent transcripts, captured stdout/stderr; also allows .log, .txt, .jsonl, .ndjson
artifact_extra_extensions [] Extend the extension allowlist
artifact_include_globs [] Force-keep matching paths
artifact_exclude_globs [] Always drop matching paths

Precedence, highest first:

  1. artifact_exclude_globs — an explicit deny always wins.
  2. artifact_max_bytes — the size cap applies even to an explicit include, because it is what keeps a bundle out of memory. Raise the cap rather than globbing around it — up to 50 MB, which the field enforces as a hard ceiling. A member larger than that cannot be preserved by any setting. The field's minimum is 1, so there is no "keep nothing" setting here; set save_artifacts=False for that.
  3. The report body the provider already returned as the result markdown.
  4. artifact_include_globs — an explicit allow bypasses every remaining default.
  5. Default denies: scaffolding directories (.git/, .claude/, node_modules/, …), nested archives, and — unless artifact_keep_runtime — runtime records.
  6. The extension allowlist, plus artifact_extra_extensions, plus any image/* media type.

Globs are fnmatch patterns matched against the lowercased, bundle-relative path. * crosses /, so *.json matches provenance/iter1_transcript.json.

A comma separates patterns, which means a pattern cannot contain one — [a,b] is a valid fnmatch character class, so artifact_include_globs="data[a,b]/*" becomes two patterns that match nothing. Pass a list to use a comma inside a pattern; a list element is never split. That escape hatch is a Python one: --param splits on the first = only, so every CLI value arrives as a string and is always split on commas.

From Python, where a list setting can be something other than a string, it must be a re-readable collection. A generator or other one-shot iterator is refused rather than read: a params object outlives the policy built from it, so the second reader would get no patterns at all and say nothing about it. bytes is refused for the same reason — iterating it yields integers, not names. Neither shape is reachable from --param, which only ever produces a string.

Extensions are normalized wherever they are set, so csv, .csv and .CSV all mean the same thing; the paths they are matched against are lowercased first, so an unnormalized uppercase spelling would otherwise match nothing. The list-element-never-split rule applies to them as well as to globs, so artifact_extra_extensions=["csv,tsv"] is one extension named .csv,tsv rather than two — pass ["csv", "tsv"] or the string "csv,tsv".

Surrounding whitespace is stripped, and empty and duplicate entries are dropped, from a list as well as from a string. That matters more than it sounds: an empty runtime fragment is a substring of every filename, so a stray blank left by "stderr,".split(",") would otherwise drop the entire bundle.

A params model applies that cleaning to a string but stores a list as given, so OpenScientistParams(artifact_include_globs=" a , , a ") reads back as ["a"] while OpenScientistParams(artifact_include_globs=[" a ", ""]) still reads back as [" a ", ""]. Since --param only ever produces a string, a CLI value is clean at construction; a list from Python is cleaned when the policy is built. Either way the policy's setting is the one that selects.

Keeping OpenScientist agent transcripts

OpenScientist writes its agent transcripts to provenance/iter<N>_transcript.json and provenance/report_transcript.json. They are dropped by default:

params = OpenScientistParams(artifact_keep_runtime=True)

or, to take the transcripts without the container logs:

params = OpenScientistParams(
    artifact_include_globs=["provenance/*_transcript.json"],
)

Both work through the CLI, where list-valued parameters accept a comma-separated string:

deep-research "..." --provider openscientist \
  --param artifact_keep_runtime=true

deep-research "..." --provider openscientist \
  --param 'artifact_include_globs=provenance/*_transcript.json'

Note that transcripts can be large and, being a record of everything the agent did, are worth reading before they are committed anywhere public.

Cached results from before this change

OpenScientist's cache version was bumped when the report-body picker became deterministic and scaffolding-aware, so entries written before that are no longer matched and the next run is live. Nothing is deleted — the old entries stay on disk and list-cache / search-cache still show them — they are just not served.

Falcon's cache version is unchanged. The two used to share one string, so the split keeps Falcon's cached runs, whose behaviour this did not touch.

Transcript statistics

Once transcripts are preserved they can be mined for the shape of a run rather than read line by line:

deep-research-client transcript-stats path/to/provenance/
deep-research-client transcript-stats run_artifacts/ --format text
deep-research-client transcript-stats run_artifacts/ --format json --output stats.json

A directory is searched recursively for *transcript*.json; a named file is read whatever it is called. Several transcripts merge into one summary, which is what you want for a job that writes one per iteration plus one for report generation.

What it reports:

  • Tools — distinct tools called, call counts, failures per tool, MCP server, and summed durations where the transcript records them.
  • Skills — every named skill invoked, with counts.
  • Shell, searches, files — programs run (wrappers and leading environment assignments skipped, so sudo FOO=1 apt-get … reports apt-get), distinct web-search queries, and paths touched by change kind.
  • Models, subagents, tasks, token usage — merged across entry types.
  • Available but unused — tools the session declared at init and never called. The gap is usually more informative than either list alone.
  • Unclassified entries — entries the producer could not classify, and entry types this summarizer has no handling for, counted separately. Both are drift signals; neither is silently dropped.

In Python:

from deep_research_client.transcript_stats import summarize_artifacts

stats = summarize_artifacts(result.artifacts)   # non-transcripts ignored
print(stats.distinct_tools, stats.skills_used)
print(stats.render_markdown())

Tool names are normalized across agent backends: one backend emits mcp__github__search_issues while another emits github.search_issues with a separate namespace field, and both aggregate to search_issues. A dotted prefix is stripped only when it matches the server the entry itself reports, so a tool whose name genuinely contains a dot is left alone.

The summarizer reads decoded JSON and needs no agent SDK installed.

Adding Custom Providers

Create a new provider in src/deep_research_client/providers/:

from . import ResearchProvider
from ..models import ResearchResult

class NewProvider(ResearchProvider):
    async def research(self, query: str) -> ResearchResult:
        # Implementation
        return ResearchResult(...)

Declaring what the provider needs

What a provider needs in order to run is declared once, on its class. The CLI's providers listing, providers --check, the "Please set API keys" hint and the client's "why is this provider missing" answer all read these attributes rather than keeping their own tables:

Attribute Set it when Example
credential_env_var The provider needs an API key from an environment variable "EDISON_API_KEY"
credential_label Always, with credential_env_var: what the key unlocks, as the CLI lists it "OpenAI Deep Research" → - OPENAI_API_KEY for OpenAI Deep Research
credential_noun The key belongs to a wider account than the label names (defaults to the label) "OpenAI" → no OpenAI API key configured
registration_requirement The client can hold the provider back while an instance would call itself available: an opt-out variable, an opt-in flag, a binary probed during auto-detection "set ENABLE_MOCK_PROVIDER=true to enable the mock provider"
stub_reason There is no upstream API yet, so nothing the user sets would help "DeepER-Med - no public API released yet (arXiv:…)"
timeout_meaning The provider honours ProviderConfig.timeout: say what it limits, as a phrase completing "the timeout is …". Leave it None and the client refuses --timeout for the provider. Add a row to Timeouts too "the longest gap allowed between streamed chunks, not a limit on the whole run (default 600 s)"

Anything subtler (a missing binary, a missing optional package) belongs in an unavailable_reason() override, as claude_code, cyberian and biomni do. A test fails for any provider that, on a machine with nothing set up, can only say it "is not configured".

Keep the module cheap to import: the CLI imports every provider module to read these attributes, so import your SDK inside the methods that use it, not at module scope. A test fails if loading the provider classes imports openai, edison_client, litellm or aviary.