AGENTS.md@backend/packages/harness/deerflow/agents/middlewaresB

AGENTS.md@backend/packages/harness/deerflow/agents/middlewares from bytedance/deer-flow is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add bytedance/deer-flow/backend/packages/harness/deerflow/agents/middlewares/AGENTS.md@git:20261024.868c1ff

Pins git:20261024.868c1ff in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 13 of 14 checks passed
Kind
AGENTS.md file
Repository
bytedance/deer-flow
Path
backend/packages/harness/deerflow/agents/middlewares/AGENTS.md
Versions recorded
65
Latest version
git:20261024.868c1ff, committed Oct 24, 2026
First version recorded
Sep 1, 2026
Size
38,369 bytes
Repository stars
84,344
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

### Middleware Chain

Async gate waiters own separate cross-loop futures. Cancel only their signal;
notify outside the state lock. `_await_off_thread` drains started I/O across
repeated cancellation.

Table synopses count nonblank CSV/TSV logical records, excluding the header.
Preserve the recognition sample and 5,000,000 UTF-8-byte guard. Count incrementally;
on parsing or field-limit errors, report an undetermined count rather than a
physical-line or sample total.

Keep state `SystemMessage`s; inject transient instructions via request wrappers.
Skip fully rescued partitions. Fold all raw source in order without human
anchoring. PII-redact before splitting; budget before escaping. Generated carry:
marked head/tail within half the raw budget; at most 64 chunks/pass. Commit
hooks/history/removal only on success. Cap breaches use a bounded process-local
5m cooldown across builds for the same user/thread/executor/window/policy;
smaller source or changed policy retries immediately. See the linked contract.
`trim_tokens_to_summarize=None` uses one unbounded step.

Todo compaction: [contract](../../../../../docs/summarization.md#todo-reminders).
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bytedance/deer-flow/backend/packages/harness/deerflow/agents/middlewares/AGENTS.md@sha256:fcdf31d9759324d1

The line at the top of this page pins the label git:20261024.868c1ff, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5mdnolsdtd2le5m5.svg)](https://markdownregistry.com/a/art_5mdnolsdtd2le5m5)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 65 versions of this file, between Sep 1, 2026 and Oct 24, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261024.868c1ff latest2026-10-24 868c1ff 38,369 BB view · diff
git:20261023.03c95f52026-10-23 03c95f5 37,899 BB view · diff
git:20261023.48c884a2026-10-23 48c884a 37,771 BB view · diff
git:20261022.2f0cd402026-10-22 2f0cd40 36,969 BB view · diff
git:20261022.29ba8062026-10-22 29ba806 36,800 BB view · diff
git:20261016.24645662026-10-16 2464566 37,984 BB view · diff
git:20261016.b0a545e2026-10-16 b0a545e 38,269 BB view · diff
git:20261015.d2961aa2026-10-15 d2961aa 38,269 BB view · diff
git:20261015.51bc0f12026-10-15 51bc0f1 38,206 BB view · diff
git:20261014.4fc0d8f2026-10-14 4fc0d8f 38,015 BB view · diff
git:20261013.80a71b02026-10-13 80a71b0 37,860 BB view · diff
git:20261012.22ddb772026-10-12 22ddb77 37,705 BB view · diff
git:20261012.9a0ea6a2026-10-12 9a0ea6a 37,835 BB view · diff
git:20261011.97ed0e92026-10-11 97ed0e9 38,067 BB view · diff
git:20261010.588ad012026-10-10 588ad01 37,383 BB view · diff
git:20261009.21575882026-10-09 2157588 36,173 BB view · diff
git:20261009.fb283052026-10-09 fb28305 36,288 BB view · diff
git:20261008.16b4fcd2026-10-08 16b4fcd 36,462 BB view · diff
git:20261008.94725792026-10-08 9472579 36,385 BB view · diff
git:20261007.66dfba32026-10-07 66dfba3 36,283 BB view · diff
git:20261006.789bbaa2026-10-06 789bbaa 36,288 BB view · diff
git:20261006.60ec8a62026-10-06 60ec8a6 36,203 BB view · diff
git:20261002.d62d9e72026-10-02 d62d9e7 36,011 BB view · diff
git:20261001.7c52d5a2026-10-01 7c52d5a 35,942 BB view · diff
git:20261001.1f1192f2026-10-01 1f1192f 35,958 BB view · diff
git:20260930.4c05e882026-09-30 4c05e88 35,888 BB view · diff
git:20260930.0ef405a2026-09-30 0ef405a 36,070 BB view · diff
git:20260928.c0c28a32026-09-28 c0c28a3 36,127 BB view · diff
git:20260927.10bd0652026-09-27 10bd065 36,168 BB view · diff
git:20260927.cae4b252026-09-27 cae4b25 36,034 BB view · diff
git:20260925.bbab1e82026-09-25 bbab1e8 35,872 BB view · diff
git:20260925.64e499b2026-09-25 64e499b 35,774 BB view · diff
git:20260925.3d5cc1e2026-09-25 3d5cc1e 36,315 BB view · diff
git:20260924.7d9025c2026-09-24 7d9025c 36,655 BB view · diff
git:20260924.45cf6e82026-09-24 45cf6e8 36,410 BB view · diff
git:20260922.ef218552026-09-22 ef21855 36,704 BB view · diff
git:20260920.19266a52026-09-20 19266a5 36,621 BB view · diff
git:20260920.69286292026-09-20 6928629 36,634 BB view · diff
git:20260919.2ff006b2026-09-19 2ff006b 37,121 BB view · diff
git:20260919.23cc4f42026-09-19 23cc4f4 36,310 BB view · diff
git:20260918.b6503e92026-09-18 b6503e9 36,023 BB view · diff
git:20260918.d8111432026-09-18 d811143 35,784 BB view · diff
git:20260917.e89b1282026-09-17 e89b128 36,485 BB view · diff
git:20260915.f7f4a022026-09-15 f7f4a02 36,319 BB view · diff
git:20260915.740dbc42026-09-15 740dbc4 36,159 BB view · diff
git:20260915.14c9d442026-09-15 14c9d44 35,945 BB view · diff
git:20260914.80f13932026-09-14 80f1393 36,043 BB view · diff
git:20260914.96d6ff32026-09-14 96d6ff3 36,260 BB view · diff
git:20260914.bbced512026-09-14 bbced51 36,218 BB view · diff
git:20260913.cf556fa2026-09-13 cf556fa 36,136 BB view

Audit of the latest version

B  13 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No curl or wget piped into a shell (matched: curl url)`, `echo $(curl url)`, an argument, a `for` word list) only captures output and passes (#46)
  • pass: Size between 200 bytes and 200 KB (38369 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for AGENTS.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

bytedance/deer-flow · 84,344 stars · license MIT · pushed 2026-10-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5mdnolsdtd2le5m5
GET https://markdownregistry.com/api/v1/resolve?ref=bytedance/deer-flow/backend/packages/harness/deerflow/agents/middlewares/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/fcdf31d9759324d14fd5e46428d7ca823791c200fd3973b8deb5236bbd208ed8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from bytedance/deer-flow

blocking-io-guard SKILL.md skill
bytedance/deer-flow · .agent/skills/blocking-io-guard/SKILL.md · Ensure async-path backend code that could block the asyncio event loop is protected by a teeth-verified runtime anchor…
git:20260612.dc2abab · audit A · 84,344 stars
deerflow-maintainer-orchestrator SKILL.md skill
bytedance/deer-flow · .agent/skills/deerflow-maintainer-orchestrator/SKILL.md · Use when a DeerFlow maintainer needs comment-only GitHub issue or PR handling: resolve issue/PR scopes with gh, analyze…
git:20260616.65fab1d · audit A · 84,344 stars
engineer-system-change SKILL.md skill
bytedance/deer-flow · .agent/skills/engineer-system-change/SKILL.md · Evaluate and carry out non-trivial software-system changes from first principles. Use when assessing RFCs, issues…
git:20260723.2af2fb5 · audit A · 84,344 stars
smoke-test SKILL.md skill
bytedance/deer-flow · .agent/skills/smoke-test/SKILL.md · End-to-end smoke test skill for DeerFlow. Guides through: 1) Pulling latest code, 2) Docker OR Local installation and…
git:20260619.525ec0a · audit A · 84,344 stars
AGENTS.md AGENTS.md file
bytedance/deer-flow · AGENTS.md
git:20261020.2c880a3 · audit A · 84,344 stars
CLAUDE.md CLAUDE.md file
bytedance/deer-flow · CLAUDE.md
git:20260625.ff7ecdb · audit B · 84,344 stars
AGENTS.md@backend AGENTS.md file
bytedance/deer-flow · backend/AGENTS.md
git:20261022.c0ba948 · audit A · 84,344 stars
CLAUDE.md@backend CLAUDE.md file
bytedance/deer-flow · backend/CLAUDE.md
git:20260625.ff7ecdb · audit B · 84,344 stars
AGENTS.md@backend/app/channels AGENTS.md file
bytedance/deer-flow · backend/app/channels/AGENTS.md
git:20261019.085924a · audit A · 84,344 stars
AGENTS.md@backend/app/gateway AGENTS.md file
bytedance/deer-flow · backend/app/gateway/AGENTS.md
git:20261019.085924a · audit A · 84,344 stars
AGENTS.md@backend/app/gateway/routers AGENTS.md file
bytedance/deer-flow · backend/app/gateway/routers/AGENTS.md
git:20261023.e1a7cba · audit A · 84,344 stars
AGENTS.md@backend/packages/harness/deerflow AGENTS.md file
bytedance/deer-flow · backend/packages/harness/deerflow/AGENTS.md
git:20261021.ab43439 · audit A · 84,344 stars

Every file in bytedance/deer-flow

Browse by kind, by grade B, or by owner.