AGENTS.md@backend/packages/harness/deerflow/persistenceA

AGENTS.md@backend/packages/harness/deerflow/persistence 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/persistence/AGENTS.md@git:20261102.21175ba

Pins git:20261102.21175ba in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
bytedance/deer-flow
Path
backend/packages/harness/deerflow/persistence/AGENTS.md
Versions recorded
21
Latest version
git:20261102.21175ba, committed Nov 2, 2026
First version recorded
Sep 20, 2026
Size
14,808 bytes
Repository stars
85,141
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

# Persistence lifecycle

`postgres_url.normalize_asyncpg_url` maps libpq `sslmode` to asyncpg `ssl`,
preserving modes and credentials. Reject conflicting/repeated SSL options and
unsupported `channel_binding`; never silently drop authentication requirements.
`DatabaseConfig.app_sqlalchemy_url` and test fixtures share it; synchronous
psycopg/checkpointer DSNs retain their libpq options.

Postgres bootstrap owns its session-scoped advisory lock until `pg_advisory_unlock` completes. Drain that unlock across host cancellation before leaving the SQLAlchemy connection context; repeated cancellation must not return a pooled session while it still holds the bootstrap mutex. Ordinary database errors remain best-effort and are logged.

Acquire that lock by polling `pg_try_advisory_lock`, never with a blocking `pg_advisory_lock`: the app engine's asyncpg `command_timeout` bounds every statement, so a blocking acquire fails a second instance's startup whenever a peer's migration outlasts it.

`init_engine` auto-creates a Postgres database only on SQLSTATE `3D000`. Missing relations, columns and roles also "do not exist"; a `CREATE DATABASE` retry would mask them.
…

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/persistence/AGENTS.md@sha256:f6ee75dec5e9d5ad

The line at the top of this page pins the label git:20261102.21175ba, 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_4p53yu7kzbfxfvrx.svg)](https://markdownregistry.com/a/art_4p53yu7kzbfxfvrx)

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

Versions

The registry has recorded 21 versions of this file, between Sep 20, 2026 and Nov 2, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261102.21175ba latest2026-11-02 21175ba 14,808 BA view · diff
git:20261031.3027ab62026-10-31 3027ab6 13,772 BA view · diff
git:20261030.882433a2026-10-30 882433a 13,378 BA view · diff
git:20261024.6dc28f52026-10-24 6dc28f5 12,969 BA view · diff
git:20261024.d2e2d572026-10-24 d2e2d57 12,794 BA view · diff
git:20261023.cfe2bec2026-10-23 cfe2bec 12,360 BA view · diff
git:20261022.9e085682026-10-22 9e08568 11,638 BA view · diff
git:20261021.c04946a2026-10-21 c04946a 11,073 BA view · diff
git:20261019.850b3b22026-10-19 850b3b2 10,410 BA view · diff
git:20261018.75de3562026-10-18 75de356 7,951 BA view · diff
git:20261017.f34e1a82026-10-17 f34e1a8 7,503 BA view · diff
git:20261014.4e9f6c62026-10-14 4e9f6c6 6,405 BA view · diff
git:20261008.c58d04b2026-10-08 c58d04b 5,807 BA view · diff
git:20261007.97b26b02026-10-07 97b26b0 5,370 BA view · diff
git:20261007.35cdcab2026-10-07 35cdcab 4,781 BA view · diff
git:20261006.2dd2e542026-10-06 2dd2e54 3,090 BA view · diff
git:20261005.7f2c0fb2026-10-05 7f2c0fb 1,749 BA view · diff
git:20261005.52046aa2026-10-05 52046aa 1,489 BA view · diff
git:20260922.36b124c2026-09-22 36b124c 1,007 BA view · diff
git:20260922.0627de22026-09-22 0627de2 644 BA view · diff
git:20260920.e545c282026-09-20 e545c28 370 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (14808 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 curl or wget piped into a shell
  • 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

Source

GitHub

bytedance/deer-flow · 85,141 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4p53yu7kzbfxfvrx
GET https://markdownregistry.com/api/v1/resolve?ref=bytedance/deer-flow/backend/packages/harness/deerflow/persistence/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/f6ee75dec5e9d5ad5fdd4cacdc2c4c1e078ce6418643d070102af46be9f1d9d6

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 · 85,141 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 · 85,141 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 · 85,141 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 · 85,141 stars
AGENTS.md AGENTS.md file
bytedance/deer-flow · AGENTS.md
git:20261029.6ca83a3 · audit A · 85,141 stars
CLAUDE.md CLAUDE.md file
bytedance/deer-flow · CLAUDE.md
git:20260625.ff7ecdb · audit B · 85,141 stars
AGENTS.md@backend AGENTS.md file
bytedance/deer-flow · backend/AGENTS.md
git:20261104.4c4a4e9 · audit A · 85,141 stars
CLAUDE.md@backend CLAUDE.md file
bytedance/deer-flow · backend/CLAUDE.md
git:20260625.ff7ecdb · audit B · 85,141 stars
AGENTS.md@backend/app/channels AGENTS.md file
bytedance/deer-flow · backend/app/channels/AGENTS.md
git:20261108.b315cf2 · audit A · 85,141 stars
AGENTS.md@backend/app/gateway AGENTS.md file
bytedance/deer-flow · backend/app/gateway/AGENTS.md
git:20261102.01e1ed7 · audit A · 85,141 stars
AGENTS.md@backend/app/gateway/routers AGENTS.md file
bytedance/deer-flow · backend/app/gateway/routers/AGENTS.md
git:20261104.2145c9a · audit A · 85,141 stars
AGENTS.md@backend/packages/harness/deerflow AGENTS.md file
bytedance/deer-flow · backend/packages/harness/deerflow/AGENTS.md
git:20261107.aadc816 · audit A · 85,141 stars

Every file in bytedance/deer-flow

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