A vendor-neutral specification for modular, progressively-disclosed AI agent context.
Status: Draft 0.1 — conformance suite live, reference implementation passing all fixtures, open for comment.
Agent instruction files (AGENTS.md, CLAUDE.md, .cursorrules, GEMINI.md) are flat. Real projects need more rules than fit in one attention span: hosts silently truncate large files, and adherence measurably degrades long before truncation. Teams are responding with ad-hoc, tool-specific splits — eroding the predictability that made these files useful.
- A document format — plain-text sections with explicit weights (
[load-bearing]vs[advisory]), machine-checkable metric ceilings, and tolerant parsing. - A manifest — declares which modules always load and which load on demand via trigger keywords, with token budgets.
- A deterministic resolution algorithm — task keywords → module set. String matching only; no LLM call required to decide what context an agent receives.
- Markdown interoperability — how modular sources compile to and from flat AGENTS.md-style files, including a graceful-degradation index readable by any agent today.
See SPEC.md for the specification and conformance/ for the test suite.
ADF is complementary to AGENTS.md, not a competitor. AGENTS.md defines the flat entry-point file; ADF defines the modular layer above it. A conforming compiler renders an ADF module tree to a flat AGENTS.md (with an on-demand module index), and a conforming migrator splits a flat file into modules. A progressive-disclosure proposal derived from this spec has been offered to the AGENTS.md / Agentic AI Foundation community.
| Implementation | Language | Status |
|---|---|---|
Charter (@stackbilt/adf) |
TypeScript | Reference implementation — parser, formatter, bundler, evidence pipeline, migrator, compiler |
Additional implementations welcome — the conformance suite is the contract. Open an issue to get listed.
Specification text and conformance fixtures: Apache-2.0.