Home / bytedance / deer-flow · backend/packages/harness/deerflow/persistence/AGENTS.md · GitHub

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

Latest version
mdr add bytedance/deer-flow/backend/packages/harness/deerflow/persistence/AGENTS.md@git:20260922.36b124c
Exact content
mdr add bytedance/deer-flow/backend/packages/harness/deerflow/persistence/AGENTS.md@sha256:f2e771195e8beee8

Pin 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.

Badge

mdr badge

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

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260922.36b124c latest2026-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. Deterministic, no model, same answer every run.
  • 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

GitHub

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.

More from bytedance/deer-flow

blocking-io-guard 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 · 82,945 stars
deerflow-maintainer-orchestrator 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 · 82,945 stars
engineer-system-change 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 · 82,945 stars
smoke-test 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 · 82,945 stars
AGENTS.md agents
bytedance/deer-flow · AGENTS.md
git:20260923.5d8a949 · audit A · 82,945 stars
CLAUDE.md claude
bytedance/deer-flow · CLAUDE.md
git:20260625.ff7ecdb · audit B · 82,945 stars
AGENTS.md@backend agents
bytedance/deer-flow · backend/AGENTS.md
git:20260924.f242164 · audit A · 82,945 stars
CLAUDE.md@backend claude
bytedance/deer-flow · backend/CLAUDE.md
git:20260625.ff7ecdb · audit B · 82,945 stars
AGENTS.md@backend/app/channels agents
bytedance/deer-flow · backend/app/channels/AGENTS.md
git:20260923.1451e0a · audit A · 82,945 stars
AGENTS.md@backend/app/gateway agents
bytedance/deer-flow · backend/app/gateway/AGENTS.md
git:20260924.7d9025c · audit A · 82,945 stars
AGENTS.md@backend/packages/harness/deerflow agents
bytedance/deer-flow · backend/packages/harness/deerflow/AGENTS.md
git:20260924.29dbce4 · audit A · 82,945 stars
AGENTS.md@backend/packages/harness/deerflow/agents agents
bytedance/deer-flow · backend/packages/harness/deerflow/agents/AGENTS.md
git:20260922.e1352bc · audit A · 82,945 stars

Every file in bytedance/deer-flow

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