AGENTS.md@backend/packages/harness/deerflow/persistence agentsA
AGENTS.md@backend/packages/harness/deerflow/persistence is agent-read markdown (agents) from bytedance/deer-flow.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Persistence lifecycle 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. When `database.postgres_schema` is configured, both async ORM connections and the synchronous SQLAlchemy connections used by DB-backed custom agents and managed subagents must use the same `search_path`; preserve this invariant when adding another persistence entry point. Alembic stamp/upgrade workers started inside `bootstrap_schema()` remain owned by the bootstrap critical section until the worker finishes. Drain those `asyncio.to_thread()` calls across host cancellation before releasing the in-process SQLite bootstrap lock or PostgreSQL advisory lock; otherwise another bootstrap can overlap a still-running migration worker.
Read the whole file at its exact version.
How to install
mdr add bytedance/deer-flow/backend/packages/harness/deerflow/persistence/AGENTS.md@git:20260922.36b124cmdr add bytedance/deer-flow/backend/packages/harness/deerflow/persistence/AGENTS.md@sha256:f2e771195e8beee8Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_4p53yu7kzbfxfvrx)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260922.36b124c latest | 2026-09-22 | 36b124c | 1,007 B | A | view · diff |
| git:20260922.0627de2 | 2026-09-22 | 0627de2 | 644 B | A | view · diff |
| git:20260920.e545c28 | 2026-09-20 | e545c28 | 370 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1007 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
bytedance/deer-flow · 82,945 stars · license MIT · pushed 2026-09-24 · 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/f2e771195e8beee8cd80eaff62f907c3e6e62c5f16183560e781a461d88ef11c
Your agent 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.