Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

DeerFlow architecture

Changing backend/packages/harness/deerflow/persistence/base.py in DeerFlow reaches 481 modules. 31 files call it directly. Snapshot 75443ec.

The first file to open in DeerFlow is backend/packages/harness/deerflow/persistence/base.py. A change there reaches 481 of 1,703 modules.

This lead file reaches 28% of the graph. The median published proof reaches 60%.

persistence/base.py481 · 31 fan-in
config/runtime_paths.py460 · 9 fan-in
utils/host_paths.py455 · 9 fan-in
deerflow/constants.py453 · 36 fan-in
utils/thread_id.py453 · 27 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: DeerFlow · Score: 84.3/100 (Healthy architecture) · 1,703 modules · 4,390 edges · Python · 17 of 54 · Language score median 78.9

Cycles
88
Duplicate authorities
13
God modules
50
Layer violations
0
arc impact backend/packages/harness/deerflow/persistence/base.py

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for DeerFlow
[![ArcSight architecture proof for DeerFlow](https://arcsight.ai/badge/proof/deer-flow/)](https://arcsight.ai/repositories/deer-flow/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

DeerFlow · 75443ec

RankFileFan-inBlastShare
1backend/packages/harness/deerflow/persistence/base.py

concentrates too many responsibilities, shared utility hub

3148128%
2backend/packages/harness/deerflow/config/runtime_paths.py

concentrates too many responsibilities, shared utility hub

946027%
3backend/packages/harness/deerflow/utils/host_paths.py

concentrates too many responsibilities

945527%
4backend/packages/harness/deerflow/constants.py3645327%
5backend/packages/harness/deerflow/utils/thread_id.py2745327%
All ranked files
RankFileFan-inBlastShare
6backend/packages/harness/deerflow/config/paths.py8045126%
7backend/packages/harness/deerflow/utils/file_io.py5944426%
8backend/packages/harness/deerflow/config/_boolean_guards.py1643425%

Highest fan-in

backend/packages/harness/deerflow/runtime/user_context.pyfan-in 93

Circular dependencies

This snapshot records 88 dependency cycles.

Nearby proofs

Snapshot notes

In bytedance deer-flow, a change that begins in persistence base.py keeps traveling until it reaches config runtime_paths.py, with utils host_paths.py as the third file on that walk and the channels-message_bus.py group as the group around them, snapshot mark feacdcdedb.

deerflow constants.py is worth opening beside persistence base.py because utils thread_id.py still participates when deerflow constants.py moves, and config paths.py stays in view for bytedance deer-flow, snapshot mark feacdcdedb.

Review utils file_io.py only after config runtime_paths.py and config _boolean_guards.py are both on the table, since the link from runtime user_context.py back to utils host_paths.py belongs to bytedance deer-flow under snapshot mark feacdcdedb.

persistence base.py and config runtime_paths.py are later stops, and a reviewer who has already seen utils host_paths.py should still look at deerflow constants.py before treating the channels-message_bus.py group as understood for bytedance deer-flow, snapshot mark feacdcdedb.

deerflow constants.py closes the file list after utils thread_id.py and persistence base.py, which keeps the bytedance deer-flow note tied to snapshot mark feacdcdedb, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • channels-message_bus.py (19 modules)
  • gateway-deps.py (781 modules)
  • core-paths.py (12 modules)
  • ownership-base.py (5 modules)
  • aio_sandbox-sandbox_info.py (8 modules)
  • login_throttle-base.py (4 modules)
  • migrations-_helpers.py (28 modules)
  • run-model.py (34 modules)
  • ai-elements-streamdown (3 modules)
  • landing-section (6 modules)
  • shares-share-markdown (3 modules)
  • artifacts-artifact-file-preview (13 modules)
  • browser-view-use-browser-stream (8 modules)
  • capabilities-plugin-directory (5 modules)
  • channels-channel-provider-icon (8 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in bytedance deer-flow: persistence base.py?
Start with persistence base.py, because the rest of the bytedance deer-flow walk leaves from that file and config runtime_paths.py is the next file in the same review. Commit feacdcdedb records it.
What else is on the bytedance deer-flow walk besides persistence base.py and utils host_paths.py?
utils host_paths.py and deerflow constants.py stay on the walk with utils thread_id.py, which are different files from persistence base.py inside the channels-message_bus.py group for bytedance deer-flow. Commit feacdcdedb records it.
How should a reviewer use config paths.py in the bytedance deer-flow snapshot?
Keep config paths.py, utils file_io.py, and config _boolean_guards.py open together, then check runtime user_context.py before merging the bytedance deer-flow change. Commit feacdcdedb records it.
Where does the bytedance deer-flow review stop after persistence base.py?
Stop after persistence base.py, config runtime_paths.py, and utils host_paths.py have been compared with deerflow constants.py, leaving the channels-message_bus.py group until those bytedance deer-flow files are clear. Commit feacdcdedb records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/deer-flow/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo