Skip to content
adf-specPublic

About

Vendor-neutral specification and conformance suite for modular, progressively disclosed AI agent context.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADF — Attention-Directed Format

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.

The problem

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.

What ADF specifies

  1. A document format — plain-text sections with explicit weights ([load-bearing] vs [advisory]), machine-checkable metric ceilings, and tolerant parsing.
  2. A manifest — declares which modules always load and which load on demand via trigger keywords, with token budgets.
  3. A deterministic resolution algorithm — task keywords → module set. String matching only; no LLM call required to decide what context an agent receives.
  4. 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.

Relationship to AGENTS.md

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.

Implementations

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.

License

Specification text and conformance fixtures: Apache-2.0.

About

Vendor-neutral specification and conformance suite for modular, progressively disclosed AI agent context.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors