deer-flow / scripts
AGENTS.md83k starsChanged 5 months agoMITView on GitHub
Optional browser dependency detection reads the top-level tools: sequence without requiring name to be its first mapping key. Both indented and indentless lists are supported; nested option names and block-scalar text must not enable the browser extra. Keep the detector standard-library-only because it runs before dependency synchronization. Read UTF-8 config files with or without a leading BOM so the first section remains detectable. setup-sandbox.sh also strips the leading BOM and normalizes CRLF before selecting the image; keep its shell filter…
- Reads credentials
Trending
More talk lately.about the whole repository
Who's talking about bytedance/deer-flow
- @sungkim.bsky.social“ByteDance's DeerFlow A framework for deep research, combining language models with tools like web search, …”Bluesky · May 11, 2025 · 17 likes
- @langchain.bsky.social“🔬 DeerFlow: Deep Research Framework An open-source framework for conducting systematic deep research …”Bluesky · May 12, 2025 · 8 likes
- A Hacker News story“Has Anyone Tried Deerflow?”Hacker News · Mar 27, 2026 · 4 points
- A Hacker News story“DeerFlow, a community-driven Deep Research framework”Hacker News · May 12, 2025 · 4 points
- @toolhunt.bsky.social“ByteDance выкатили deer-flow — открытый SuperAgent harness для долгосрочных задач, который сам кодит, …”Bluesky · Aug 19, 2026 · 3 likes
The biggest 5 of 79 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 79
Talked about on GitHub, Bluesky and Hacker News (79 times).
On GitHub · 50
- Jun 22, 2026feat(agents): add DeerFlow (bytedance/deer-flow) framework support — jaylfc/taOS2 reactions · 4 comments
- Feb 26, 2026[Add App]DeerFlow - 2.0 — beclab/apps2 reactions · 1 comment
- May 31, 2025更加炫酷的打字动画 — ant-design/x2 reactions · 1 comment
- Mar 7, 2026Feature: Automatic Session Title Generation — Lightweight LLM-Based Title After First Exchange (inspired by DeerFlow) — NousResearch/hermes-agent1 reaction · 5 comments
- Nov 26, 2025Explore integrating deer-flow into research features — XJTU-RL/Power-Planer1 reaction
45 more on GitHub
- May 12, 2025Request - Bytedance DeerFlow Integration — onyx-dot-app/onyx1 reaction · 2 comments
- Nov 18, 2026North+GLM wildcard experiment (epoch 21): When a tool output exceeds the observation budget, the agent should automatically revise its plan to insert a recall step that fetches the missing tail via read_offloaded, ensuring the full output can be retrieved without exceeding the budget. — DervinEvolve/AI-Agent0 reactions
- Nov 11, 2026Extra Fingerprints to add — SocksTheWolf/AgenticAlert0 reactions · 1 comment
- Nov 10, 2026fix(models): add opt-in merge of consecutive user messages (#6751) — wycocoyu/deer-flow0 reactions
- Nov 10, 2026fix(frontend): restore the draft and welcome state when a new session send fails (upstream #8039) — Zhong-fan/deer-flow0 reactions · 2 comments
- Nov 9, 2026fix(agents): count vLLM reasoning tokens in the summarization trigger (upstream #8074) — Zhong-fan/deer-flow0 reactions · 1 comment
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions · 2 comments
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 9, 2026fix(gateway): evict completed RunRecords in production (upstream #5009) — Zhong-fan/deer-flow0 reactions
- Nov 4, 2026agent-skills.github.bytedance.deer-flow: 2.1.0 → 2.2.0 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.bytedance.deer-flow: 2.1.0 → 2.2.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026fix(subagents): validate recovery before superseding source tasks — Aldenshile/deer-flow0 reactions
- Oct 26, 2026Add licensed skills, reusable materials, and source catalogues — EmbeddedLLM/nice-skills0 reactions
- Oct 26, 2026[Feature] Sub Agent 派生与 Agent 能力分档 — Code-MonkeyZhang/persona-agent0 reactions
- Oct 26, 2026[Refactor] Agent Core 拓扑重构以支撑能力分档与 Sub Agent — Code-MonkeyZhang/persona-agent0 reactions
- Oct 24, 2026fix(agent): enforce delegated skill scope and show saved progress — pyrelio88-afk/Selenyx0 reactions
- Oct 20, 2026Capability request: BoxLite sandbox (local micro-VM workspace backend) — pydantic/pydantic-ai0 reactions · 1 comment
- Oct 20, 2026Context runtime acceptance: accurate budgets, cancellation and durable task continuity — bei-shan/WodeAgent0 reactions
- Oct 19, 2026Framework drift review required — aporthq/aport-agent-guardrails0 reactions · 4 comments
- Oct 19, 2026fix(channels): acknowledge GitHub comments queued during a busy run — wannT-1/deer-flow0 reactions
- Oct 17, 2026fix(vikingbot): screen web search result URLs — volcengine/OpenViking0 reactions
- Oct 15, 2026fix(vikingbot): reconcile streaming token usage — volcengine/OpenViking0 reactions
- Oct 15, 2026sandbox: E2B cloud micro-VM provider and distributed ownership protocol — bei-shan/WodeAgent0 reactions
- Oct 15, 2026sandbox: session-scoped SandboxProvider API, BoxLite warm VM pool and file operations — bei-shan/WodeAgent0 reactions
- Oct 11, 2026Add DeerFlow and its optional Parallel Search MCP example — kyrolabs/awesome-langchain0 reactions
- Oct 10, 2026fix(bot): replay Gemini tool-call thought signatures — volcengine/OpenViking0 reactions
- Oct 7, 2026fix(parse): reject colliding ZIP member paths — volcengine/OpenViking0 reactions
- Oct 5, 2026fix(parse): handle mixed-case Markdown artifacts — volcengine/OpenViking0 reactions
- Oct 4, 2026fix(config): handle localhost case-insensitively — volcengine/OpenViking0 reactions
- Oct 4, 2026claude-code-plugins.github.bytedance.deer-flow: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.bytedance.deer-flow: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026fix: restrict redirect schemes and discard intermediate response bodies — chenhz01/adversarial-research-audit0 reactions · 1 comment
- Sep 20, 2026Add Runtime execution budgets — GK-studio-JP/ai-os-runtime0 reactions
- Sep 20, 2026Add bounded Context Capsule budget and provenance — GK-studio-JP/ai-os-context0 reactions
- Sep 20, 2026Port DeerFlow safety to Browser Worker relay — GK-studio-JP/ai-os-runtime-browser-worker0 reactions
- Sep 10, 2026feat(discovery): 週に一度、新しく出たツールの候補を集めて PR にする — konweb/nanteyomu0 reactions · 1 comment
- Sep 8, 2026fix(subagents): tear down dispatched child before batch retry — Zsanz3/deer-flow0 reactions · 2 comments
- Sep 3, 2026feat(wizard): add aimlapi.com as an LLM provider — aimlapi/deer-flow-aimlapi0 reactions
- Aug 31, 2026fix(lark): allow Windows hosts to prepare Linux sandbox CLI runtime — Zsanz3/deer-flow0 reactions · 3 comments
- Aug 24, 2026[¥200 验收后付] DeerFlow #532 多轮 Deep Research 连续上下文实现 — snownico0722/snownico0722.github.io0 reactions
- Aug 19, 2026[Integration] bytedance/deer-flow — You.com web_search provider + setup wizard entry — youdotcom-oss/integration-tracking0 reactions · 17 comments
On Bluesky · 21
- May 11, 2025ByteDance's DeerFlow A framework for deep research, combining language models with tools like web search, crawling, and Python execution,… — @sungkim.bsky.social17 likes and reposts
- May 12, 2025🔬 DeerFlow: Deep Research Framework An open-source framework for conducting systematic deep research through coordinated LangGraph agents.… — @langchain.bsky.social8 likes and reposts
- Aug 19, 2026ByteDance выкатили deer-flow — открытый SuperAgent harness для долгосрочных задач, который сам кодит, исследует и автоматизирует рутину от… — @toolhunt.bsky.social3 likes and reposts
- May 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 65,357 (+328) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Mar 31, 2026This GitHub project caught my eye: DeerFlow 2.0 is a fully extensible super agent platform for smart automation, custom workflows, and deep… — @alexiskirke.bsky.social3 likes and reposts
16 more on Bluesky
- Jun 21, 2026今日のGitHubトレンド bytedance/deer-flow DeerFlowは、サブエージェント、メモリ、サンドボックスを統合し、拡張可能なスキルによって多様なタスクを実行するオープンソースのスーパーエージェントハーネスです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Feb 26, 2026ByteDance's DeerFlow is a TypeScript super-agent that orchestrates sub-agents, sandboxes, and persistent memory to tackle complex… — @arifsolmaz.bsky.social2 likes and reposts · 1 reply
- Sep 7, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 bytedance / deer-flow ⭐ 81,682 (+188) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social1 likes and repost
- Mar 27, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 47,567 (+2,388) 🗒 Python An open-source long-horizon SuperAgent harness… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 12, 2026Repo: github.com/bytedance/de... Here's why this is different from every other agent framework: It has its own sandbox. A real isolated… — @jainamparmar.bsky.social1 likes and repost · 2 replies
- Mar 12, 2026github.com/bytedance/de... github.com/AlexsJones/s... github.com/AlexsJones/l... Sharing more repos to later crawl my own page for data… — @moe-dude.bsky.social1 likes and repost
- Mar 11, 2026DeerFlow : framework open-source d'agents IA orchestrant recherche, code et création — @news.humancoders.com1 likes and repost
- Mar 10, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 27,977 (+1,443) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 9, 2026DeerFlow : un framework open-source qui orchestre des sous-agents, mémoire et sandboxes pour gérer des tâches complexes de recherche et… — @camilleroux.com1 likes and repost
- Mar 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 22,795 (+352) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social1 likes and repost · 1 reply
- May 23, 2025DeerFlow DeerFlow is a community-driven framework for deep research, combining language models with tools like web search, crawling, and… — @pythonhub.dev1 likes and repost
- Aug 1, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 78,536 (+204) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jul 11, 2026READMEで確認できたのは、DeerFlow 自体はMITのOSS。でも初期設定ではLLMプロバイダと任意のWeb検索を選び、鍵は `.env` に入れる設計です。Docker推奨で、ローカルLLMを動かすなら必要な計算資源も別。… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 27, 2026READMEで確認できた範囲だと、2.0が全面書き直し、MIT、sub-agents / memory / sandbox、そして「minutes to hours」の長尺タスク志向は本当です。ここはちゃんと強い。… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 21, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 bytedance / deer-flow ⭐ 72,237 (+415) 🗒 Python An open-source long-horizon SuperAgent harness that… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 22, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 bytedance / deer-flow ⭐ 33,811 (+1,508) 🗒 Python An open-source SuperAgent harness that researches,… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 8
- Mar 27, 2026Has Anyone Tried Deerflow?4 points
- May 12, 2025DeerFlow, a community-driven Deep Research framework4 points
- Mar 30, 2026Deer-Flow Installing Line3 points · 1 comment
- Mar 16, 2026Deep Exploration and Efficient Research Flow2 points
- Mar 15, 2026DeerFlow 2.0: open-source SuperAgent harness that researches, codes, creates2 points
3 more on Hacker News
- May 13, 2025DeerFlow: Deep Research Framework2 points
- May 18, 2026DeerFlow 2.0 – Deep Exploration and Efficient Research Flow1 point
- Apr 18, 2026An open-source long-horizon SuperAgent harness that researches,codes and creates1 point · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- academic-paper-reviewSkill
- bootstrapSkill
- chart-visualizationSkill
- claude-to-deerflowSkill
- code-documentationSkill
- consulting-analysisSkill
- data-analysisSkill
- deep-researchSkill
- find-skillsSkill
- frontend-designSkill
- github-deep-researchSkill
- image-generationSkill
- music-generationSkill
- newsletter-generationSkill
- podcast-generationSkill
- ppt-generationSkill
- skill-creatorSkill
- skill-reviewerSkill
- surprise-meSkill
- systematic-literature-reviewSkill
- vercel-deploySkill
- video-generationSkill
- web-design-guidelinesSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
Only "no config anywhere" creates <checkout>/config.yaml from the example.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Service Startup Contracts
Optional browser dependency detection reads the top-level tools: sequence
without requiring name to be its first mapping key. Both indented and
indentless lists are supported; nested option names and block-scalar text
must not enable the browser extra. Keep the detector standard-library-only
because it runs before dependency synchronization. Read UTF-8 config files
with or without a leading BOM so the first section remains detectable.
setup-sandbox.sh also strips the leading BOM and normalizes CRLF before selecting the image;
keep its shell filter compatible with GNU and BSD sed.
An Apple Container pull that succeeds on macOS must not fail the setup step
just because Docker is absent. Keep the Docker pull when Docker is available,
including after an Apple Container failure, and retain the final image-config
note rather than exiting early on Apple Container success.
The root PORT value configures Docker's published nginx ingress only; local
orchestration pins Next.js to 3000. Runtime commands launch from the already
synchronized environment with uv run --no-sync. Production Compose probes
Gateway /health, and deploy.sh waits for all services before reporting
success; failures print Compose status and recent Gateway logs.
deploy.sh never sources the repo-root .env; Compose reads it via
--env-file, and shell exports outrank that file during interpolation (an
exported-but-empty variable still wins). So BETTER_AUTH_SECRET and
DEER_FLOW_INTERNAL_AUTH_TOKEN resolve shell → .env → persisted file under
DEER_FLOW_HOME → freshly generated, and a .env-provided value is left
unexported so Compose parses it itself. Whether .env provides one is
Compose's answer, not a KEY=VALUE grep: Compose also accepts KEY: VALUE
lines and interpolates ${VAR} inside values, so the script renders a stub
project whose only environment entry is ${KEY} through
docker compose config (same --env-file, stub on stdin, project directory
docker/) and reads the value back; "" means empty or unset and falls
through to the persisted/generated secret. This works on every Compose v2
(the README floor is 2.24; config --environment would need 2.28), and a
failing probe stops the script rather than guessing. read_dotenv_value
stays for the end-of-run summary only. Do not export a value the script read
from .env: that shadows Compose's own dotenv parsing and re-creates the bug
where make up replaced the operator's secret with a generated one.
backend/tests/test_deploy_dotenv_secrets.py pins the order and the probe;
its real-Compose cases run against the installed docker CLI and against any
standalone binaries listed in DEER_FLOW_TEST_COMPOSE_BINARIES.
doctor.py checks the config file the Gateway would load, not a fixed
<checkout>/config.yaml. It mirrors how serve.sh hands the two
config-location variables to the Gateway: .env values for
DEER_FLOW_CONFIG_PATH / DEER_FLOW_PROJECT_ROOT override the shell (other
keys stay shell-first), an unquoted leading ~ in them expands as source
does (a quoted one stays literal), and an unset or empty
DEER_FLOW_PROJECT_ROOT becomes the checkout. It then asks the harness
(AppConfig.resolve_config_path) instead of re-implementing its order. An
override the Gateway would reject (DEER_FLOW_CONFIG_PATH missing,
DEER_FLOW_PROJECT_ROOT not a directory) fails config.yaml found with the
Gateway's error, and the config-dependent checks skip. Any failure to import
the harness is reported, never raised: doctor diagnoses broken environments.
Pinned by backend/tests/test_doctor.py::TestMainConfigResolution.
Root make install runs pre-commit through uv, so uv's tool bin directory
need not be on PATH.
config-upgrade.sh upgrades the file the Gateway loads by asking the harness
(AppConfig.resolve_config_path) rather than copying its lookup order. It
defaults DEER_FLOW_PROJECT_ROOT to the checkout, as serve.sh does, so
<checkout>/config.yaml wins over a legacy backend/config.yaml. A missing
DEER_FLOW_CONFIG_PATH or invalid project root is an error, never a fallback.
Only "no config anywhere" creates <checkout>/config.yaml from the example.
backend/tests/test_config_version.py::test_config_upgrade_* pins this.
Shell Script Invocation Contract
Root Makefile recipes must invoke repository .sh files through
RUN_SHELL_SCRIPT. On POSIX this expands to $(BASH); on Windows it uses the
Git Bash wrapper. Shell scripts that invoke sibling repository scripts must
likewise prefix the target with bash. This keeps documented make commands
working when a source archive, core.fileMode=false, or a non-POSIX filesystem
does not preserve executable bits.
Host-side pnpm calls must go through scripts/pnpm.py. With native Windows
Python (os.name == "nt"), it checks pnpm.cmd before the generic pnpm
lookup, which uses PATH/PATHEXT and may select an .exe or .bat in the
same or an earlier PATH directory. If neither is found, it falls back to
Corepack, checking corepack.cmd before corepack. POSIX Python (including
MSYS/Cygwin Python) keeps the generic name first for each tool; the gate is
based on Python's os.name, not the invoking shell.
Public Skill Review Waivers
review_changed_public_skills.py keeps the analyzer strict and applies narrow
CI-only exceptions from .github/skill-review-waivers.v1.json. The manifest is
versioned by contracts/skill_review/waiver_manifest.v1.schema.json; each entry
must identify one current error by package, source, rule, path, line, and
evidence, and pin the complete source file with SHA-256 plus an expiry date.
An optional, bounded preapproved_file_sha256s list authorizes reviewed future
full-file digests without relaxing the exact finding match. Blockers are never
waivable, and waived errors are still printed with their original severity and
justification.
For pull requests, only the base revision's manifest is effective. The head
manifest is parsed and checked against the current analyzer output, but cannot
self-authorize a finding in the same pull request. Push comparisons use the
same before/after trust boundary. A waiver-only change can therefore land
without weakening its own check, then become effective for later changes after
it is part of the trusted base. Preapproved digests must be code-reviewed in
that first change; after the corresponding file revision lands, promote the
consumed digest to file_sha256 and remove it from the preapproval list.
Backend Static Analysis Commands
The root detect-thread-boundaries target statically inventories execution
boundaries under backend/app/ and backend/packages/harness/deerflow/. It
prints a concise count by execution domain and writes the complete, versioned
JSON payload to .deer-flow/thread-boundary-inventory.json. Every finding has
a stable boundary_kind: asyncio_default_executor, dedicated_executor,
anyio_worker_thread, direct_event_loop_blocking, separate_event_loop, or
unresolved_dynamic_boundary.
The AST inventory covers asyncio.to_thread, default and explicit
run_in_executor submissions, imported aliases, simple same-module helper
wrappers (after pre-registering dedicated executor targets), set_default_executor,
ThreadPoolExecutor construction/submission,
additional event loops, synchronous LangChain tools, and direct
BaseChatModel fallback inheritance. It remains read-only and does not alter
executor routing or sizing.
To supplement the static scan with configured runtime types, run:
python scripts/detect_thread_boundaries.py \
--runtime-config config.yaml \
--json-output .deer-flow/thread-boundary-inventory.jsonRuntime inspection imports configured tool objects and model classes so it can
record concrete tool names/types/modules, sync functions, async coroutines,
and _agenerate/_astream ownership. It does not invoke tools, instantiate
models, or call external services; import failures remain in the JSON as
unresolved_dynamic_boundary records. The detector implementation and focused
coverage live in tests/support/detectors/thread_boundaries.py and
tests/test_detect_thread_boundaries.py.
The detect-blocking-io target parses app/, packages/harness/deerflow/,
and scripts/ with AST. By default it reports only blocking IO candidates that
are inside async code, reachable from async code in the same file, or reachable
from sync-only AgentMiddleware before/after hooks that LangGraph can execute
on the async graph path. It prints a concise summary and writes complete JSON
findings to .deer-flow/blocking-io-findings.json at the repository root
(both make detect-blocking-io from the repo root and cd backend && make
detect-blocking-io resolve to the same repo-root path). JSON findings include
priority, location, blocking_call, event_loop_exposure, reason, and
code for model-assisted or manual review. priority is a deterministic
review ordering from operation type, not proof of a bug. Bare-name same-file
calls are resolved by function name, so duplicate helper names in one file can
conservatively over-report async reachability. The call graph also resolves
multi-hop self./cls. attribute chains (self.store.flush()) and local
variables or parameters traced back — within the same function only — to a
self./cls. attribute (store = self.store; store.flush()); both fall back
to the same bare-method-name resolution as an unresolvable receiver, so they
share its over-report risk rather than adding a new kind. Deeper cross-function
or cross-module aliasing is out of scope and stays an unreported false
negative.
That same-function alias tracing is deliberately narrower than the symbolic
names dotted_name() builds for blocking-call pattern matching elsewhere in
this module: receiver/alias extraction uses a restricted extractor that only
recognizes Name/Attribute chains, so a Call or Subscript result (e.g.
factory().flush(), or client = factory(); client.flush() /
client = clients[0]; client.flush()) is never treated as inheriting its
base's alias-worthiness — including when the unsupported node is buried
deeper in the chain (factory().client.flush(), clients[0].client.flush()):
an unrecognized shape anywhere in the chain makes the whole receiver
unresolved, it never falls back to just the chain's trailing attribute name,
or that name alone could still collide with an unrelated traced parameter or
local alias. Reassigning a traced name to a non-traceable value (anything
other than a self./cls. attribute or an already-traced name) kills its
alias instead of leaving it traceable, so a stale alias from an earlier
assignment cannot keep exposing an unrelated same-named method after the
variable is reassigned to something else; the assignment's right-hand side is
always analyzed against the alias state as it stood before this kill-or-add
update, matching Python's own evaluate-then-bind order, so
client = client.flush() still resolves that call against client's prior
(pre-reassignment) alias instead of the state after it's gone. if/else
branches get isolated alias state — an alias added in one branch cannot leak
into the other — and the state after the whole if is the union of what each
branch produced (a conservative may-alias join), so the result no longer
depends on which branch is textually body vs. orelse. This branch
isolation is deliberately scoped to ast.If only; ast.Try/ast.Match have
different, more complex control-flow semantics and keep the older unisolated
traversal. Finally, a function's decorators and parameter defaults are
analyzed in the enclosing scope rather than the new function's own, and
parameter/return annotations get the same enclosing-scope treatment unless
the module postpones annotation evaluation (from __future__ import
annotations), in which case they are skipped entirely, in either scope —
those expressions run at definition time, before the function has ever been
called (or, when postponed, never run at all), so a call there is never
attributed to the function being defined (it moves to whatever scope actually
contains the def, e.g. the enclosing function, or disappears if that scope
is module/class level and therefore never async-reachable). PEP 695
type-parameter bounds are not visited in either scope: CPython evaluates each
one lazily, in its own hidden function, only if something like T.__bound__
is actually accessed, never as part of running the def statement itself.
A lambda's body and a bare generator expression's element/filters/later
for clauses are excluded from traversal ONLY while walking another
function's own definition-time expressions (decorators, parameter defaults/
annotations, return annotation): there, we know structurally that the
enclosing def statement is executing right now, and neither a lambda body
nor a generator's element runs just because the lambda/generator object is
created — only a lambda's own parameter defaults and a generator's
outermost iterable are genuinely eager at that moment. This exclusion is
absolute and has no exceptions: even a lambda that is immediately invoked at
its own definition site ((lambda: ...)()), or a generator passed directly
to an eager-consuming builtin, is still excluded when it appears inside
another function's decorator/default/annotation — a narrow, intentional
limitation given how rarely a definition-time expression contains an
executed call at all, preferred over special-casing specific shapes there.
Everywhere else — module level, class bodies, and ordinary function-body
statements — a lambda body or generator expression's element is scanned
unconditionally, the same conservative, over-report-rather-than-infer stance
this file already takes for reachability elsewhere (the ast.If may-alias
union, the bare-name call-graph resolution). This file does not attempt to
distinguish a lambda that is invoked immediately, invoked later through a
stored variable, passed as a callback, or never called at all, nor a
generator that is consumed by an eager builtin (list, sum, any, etc.),
wrapped in another lazy iterator (map, filter), or never consumed —
telling these apart in the general case would mean inferring evaluation
order and consumption across arbitrary code rather than reading a fixed,
structural fact, so none of them are special-cased; all are scanned the
same way. This is intentionally informational and is not run from CI in
this round.
For a diff-scoped view of the same findings, scripts/scan_changed_blocking_io.py
(repo root) reports findings on the added lines of git diff <base>...HEAD
plus findings new versus the merge base (so a new async caller exposing an
untouched sync helper in the same file is still reported) — used by the
blocking-io-guard skill (.agent/skills/blocking-io-guard/) as the
deterministic scope step before routing each candidate to a fix and/or a
tests/blocking_io/ runtime anchor.
Regression tests related to Docker/provisioner behavior:
tests/test_docker_sandbox_mode_detection.py(mode detection fromconfig.yaml)tests/test_provisioner_kubeconfig.py(kubeconfig file/directory handling)tests/test_provisioner_request_threading.py(keeps provisioner sandbox CRUD endpoints as sync FastAPI handlers so synchronous K8s client calls run in the Starlette worker pool instead of on the ASGI event loop)
Blocking-IO runtime gate (tests/blocking_io/):
- Wraps every item under
tests/blocking_io/with a strict Blockbuster context scoped toapp.*anddeerflow.*(seetests/support/detectors/blocking_io_runtime.py). Any sync blocking IO call whose stack passes through DeerFlow business code while running on the asyncio event loop raisesBlockingErrorand fails the test. - Regression anchors live there:
test_skills_load.py(locks theasyncio.to_threadoffload aroundLocalSkillStorage.load_skills, fix for #1917);test_sqlite_lifespan.py(locks the offload around SQLite path resolution plusensure_sqlite_parent_dir, fix for #1912);test_jsonl_run_event_store.py(locksJsonlRunEventStore's async API — including idempotent singleton-event writes — offloading its file IO viaasyncio.to_thread);test_run_journal_callbacks.py(locksRunJournal.run_inlinetool callbacks to in-memory/event-loop-safe work);test_integrations_router.py(locks Lark integration install and auth completion route handlers offloading archive filesystem work andlark-clisubprocesses);test_uploads_middleware.py(locksUploadsMiddleware.abefore_agentoffloading the uploads-directory scan off the event loop);test_uploads_router.py(locks Gateway upload/list/delete endpoints offloading upload directory creation, staged writes, chmod/cleanup, directory scans/deletes, and remote sandbox sync off the event loop);test_feishu_receive_file.py(locks Feishu attachment path preparation and persistence plus remote sandbox acquisition/sync off the event loop, and skips redundant sandbox sync when thread data is already mounted);test_channel_outbound_files.py(locks Feishu, Telegram, and WeCom outbound attachment open/read/hash work off the event loop);test_openviking_memory_backend.py(locks the official OpenViking backend's async add/context/search entrypoints offloading synchronous SDK and cursor filesystem IO); andtest_workspace_changes_recorder.py(locks the offload around the snapshot text cache lifecycle — roots resolution,mkdtemp, and theshutil.rmtreeon both the capture-failure branch andrecord_workspace_changes'finally). test_gate_smoke.pyis a meta-test asserting the gate actually catches unoffloaded blocking IO and that the@pytest.mark.allow_blocking_ioopt-out works.- Coverage boundary: the gate only sees code that test execution actually touches. Static AST coverage is a separate concern (out of scope for this PR).
- CI: runs on every PR via
.github/workflows/backend-blocking-io-tests.yml, hard-fail.
Boundary check (harness → app import firewall):
tests/test_harness_boundary.py— ensurespackages/harness/deerflow/never imports fromapp.*
Memory backend async boundary:
MemoryMiddleware.aafter_agentcallsMemoryManager.aadd; network-backed managers must override theira*methods to offload or use native async I/O.- The mem0 backend requires an HTTPS
base_urlby default because requests carry an API token. Plain HTTP requires the explicitbackend_config.allow_insecure_http: truelocal-development opt-in. - Gateway memory routes offload the synchronous management contract with
asyncio.to_thread, so backend file or HTTP I/O does not run on the ASGI event loop. Gateway startup and shutdown also resolve the manager off-loop, because a backend'sfrom_configmay perform a fail-fast connectivity check. - A backend may set
requires_passive_writes_in_tool_mode = Truewhen tool-mode search is supported but durable writes still depend on conversation-level extraction. Such backends receive memory tools and retainMemoryMiddleware. - Prompt recall rethrows
MemoryManagerErroronly when backend config declaresfailure_policy.read: fail_closed; other recall errors preserve the existing log-and-empty-context behavior.
CI runs these regression tests for every pull request via .github/workflows/backend-unit-tests.yml.
Agentic browser sessions are process-local. Browser use is refused when the Gateway runs
more than one worker process, because ordinary uvicorn worker dispatch does not provide
thread affinity for browser tools, REST navigation, and the Live WebSocket. Keep
GATEWAY_WORKERS=1, and on the launchers that pass uvicorn no --workers
(scripts/serve.sh, backend/Dockerfile) keep WEB_CONCURRENCY unset or 1 too — that
is where uvicorn takes the process count from.
Browser Live screenshots remain JPEG bytes inside the harness and the Gateway's
bounded, drop-oldest frame queue. WebSocket clients that request
frame_format=binary receive binary messages; control metadata remains JSON.
The legacy no-parameter protocol still base64-encodes frames into JSON at the
Gateway boundary for backward compatibility. Unknown frame_format values
receive a JSON error and close code 1008.
The support bundle's extensions_config.json reader accepts UTF-8 with or
without a leading BOM, matching the runtime loader. Preserve redaction and
avoid flagging a valid BOM-prefixed file as a syntax error in triage output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

