Skip to main content

Compare

Bernstein vs TongyiDeepResearch: quick decision guide

Tongyi DeepResearch adapter for Bernstein.

Page built on 2026-09-26 from data/adapters-meta.json. Every claim below links to its primary source.

Install both

TongyiDeepResearch

No install command recorded in the bernstein adapter source as of 2026-09-26.

Bernstein

pipx install bernstein

Apache-2.0. Deterministic Python scheduler.

Feature matrix

CapabilityTongyiDeepResearchBernstein
Install methodNot recordedpipx install bernstein
LicenseNot recordedApache-2.0
AuthenticationNot recordedPer-agent credential scoping (no shared key)
Multi-agent orchestrationOne agent in a terminalTongyiDeepResearch plus 40+ other adapters in parallel worktrees
MCP supportNot measuredYes
Parallel-safe in worktreesNot measuredYes (designed around git worktrees)
HMAC-chained audit logNoYes (RFC 2104 SHA-256 chain in .sdd/)
Deterministic schedulerNot applicable (single-agent CLI)Yes (Deterministic Python scheduler)

Adapter source: src/bernstein/adapters/tongyi_deepresearch.py

Verifiable facts

The brief for this surface requires at least three facts that a reader can verify against a primary source. The list below is built from the bernstein adapter source and, when available, the upstream project's own pages.

  1. Bernstein ships a TongyiDeepResearch adapter at src/bernstein/adapters/tongyi_deepresearch.py that wraps the upstream CLI as one of 42 routable agents. [source: bernstein adapter source, as of 2026-09-26]
  2. Bernstein is an open-source Multi-agent orchestrator licensed Apache-2.0, with a deterministic Python scheduler that routes work across CLI agents in parallel git worktrees. [source: bernstein repo, as of 2026-09-26]
  3. Bernstein records lineage and a replay journal on every run; with the audit log enabled it also writes an HMAC-SHA256 chained record under .sdd/ that lets a reviewer replay every routing and quality-gate decision. [source: bernstein repo, as of 2026-09-26]

Where TongyiDeepResearch fits in Bernstein

Bernstein registers TongyiDeepResearch under the slug "tongyi-deepresearch" and the registry name "tongyi_deepresearch". The adapter source lives at src/bernstein/adapters/tongyi_deepresearch.py in the bernstein repo and was last touched at build time 2026-09-26. The TongyiDeepResearch adapter file is 89 lines and 3,693 bytes long, fingerprinted d0c727c703bc7ff1 (first 16 hex chars of SHA-256). No upstream GitHub repository is recorded in the bernstein adapter for TongyiDeepResearch; refer to the upstream vendor's documentation when auditing. The bernstein adapter file for TongyiDeepResearch does not yet carry a "Last verified against upstream" line; this means the adapter still tracks an unpinned upstream binary. Bernstein routes tasks to TongyiDeepResearch when its pass rate on similar work clears the configured threshold, otherwise the deterministic Python scheduler picks a different adapter from the 40+ adapter catalog.

Adapter source excerpt

The module docstring of the TongyiDeepResearch adapter, as it stands in the bernstein repo. Punctuation is normalised for the web; the wording is the author's. Length: 1438 characters.

Tongyi DeepResearch adapter for Bernstein. Runs Tongyi DeepResearch's ReAct agent (search, visit, scholar, python tools) on the task prompt from an operator-provided checkout, and records the answer and every page its visit tool opened as a verifiable run artifact (:mod:`.deep_research_artifact`). Upstream serves the planning model from a local inference server; here both the planner and the page summariser go through the agent's own gateway endpoint and key instead (see :mod:`.tongyi_deepresearch_runner`). Operator settings: * ``BERNSTEIN_TONGYI_DEEPRESEARCH_OPENAI_BASE_URL`` / ``_OPENAI_API_KEY`` / ``_MODEL`` - required; the gateway endpoint, this agent's key, the model; * ``BERNSTEIN_TONGYI_DEEPRESEARCH_HOME`` - required; the checkout whose ``inference/`` directory holds the agent; * ``BERNSTEIN_TONGYI_DEEPRESEARCH_PYTHON`` - the interpreter with its requirements installed (default ``python3``); * ``BERNSTEIN_TONGYI_DEEPRESEARCH_SUMMARY_MODEL`` - the page-summary model (default: the planning model); * ``BERNSTEIN_TONGYI_DEEPRESEARCH_SERPER_BASE_URL`` / ``_JINA_BASE_URL`` - where the search/scholar and visit tools send what they would send to ``google.serper.dev`` and ``r.jina.ai`` (default: those hosts); the endpoint must speak the same protocol; * the tool settings the agent reads itself (``SERPER_KEY_ID``, ``JINA_API_KEYS``, ``SANDBOX_FUSION_ENDPOINT``, ``MAX_LLM_CALL_PER_RUN``, ...) are let through unchanged.

Adapter telemetry

Registry nametongyi_deepresearch
Adapter classTongyiDeepResearch
Source filesrc/bernstein/adapters/tongyi_deepresearch.py
Source file size89 lines, 3,693 bytes
Source SHA-256d0c727c703bc7ff1e842db74b94223a8940a67b52617cbd28d5004618bf5d67a
Category bucketgoogle-family
Upstream repoNot derivable from adapter source
Upstream homepageNot recorded
Last verified upstreamNo "Last verified" line in adapter source
Operator-curated overlayNo (programmatic page)

When to pick which

Choose TongyiDeepResearch

Reach for TongyiDeepResearch when the work is a single thread that fits one agent: in a single-process terminal session, designed for single-instance use per repo. Auth model is configured per upstream docs. You skip the orchestrator round-trip and get the smallest possible surface between you and the model.

Choose Bernstein

Wrap TongyiDeepResearch under Bernstein when the goal splits into parallel tasks, when you want an HMAC-chained audit log on every routing decision, or when a deterministic Python scheduler (no LLM picking who runs what) is a hard requirement. Bernstein also runs the OpenAI and Anthropic agents in parallel so a Gemini gap is filled by a different family.

FAQ

Does Bernstein replace TongyiDeepResearch?

No. Bernstein wraps TongyiDeepResearch as one of 40+ CLI adapters and routes tasks to it based on per-task pass-rate history. TongyiDeepResearch keeps running unchanged; Bernstein decides when it gets work.

Can I run TongyiDeepResearch alongside other agents in the same repo?

Yes. Each agent runs in its own git worktree under .sdd/worktrees/{session_id}, so file edits never collide. Bernstein merges results back to the trunk only after the configured quality gates (lint, types, tests) pass.

Is this comparison page handwritten?

No. The template is fixed; every fact and every link is pulled from the bernstein adapter source in the master branch and (when available) the upstream project's own pages. The data extractor lives at scripts/gen-compare-data.mjs. No LLM writes the prose.