The Research Report
ACDL: The First Formal Language for Describing How Agent Prompts Actually Work
Context engineering has a notation problem. Every agent paper describes its prompt architecture differently. Some use informal prose. Others use ad hoc diagrams that only make sense to the authors. Most rely on direct inspection of code that nobody else wants to read. When two ReAct implementations differ in where tool results appear relative to reasoning traces, that structural difference moves benchmark numbers. But you would never know it from reading the papers.
A new language called ACDL fixes this. Accepted at CAIS 2026 (ACM Conference on AI and Agentic Systems, May 2026), the Agentic Context Description Language gives context engineering what UML gave software architecture: a shared notation that makes structural differences visible at a glance.
Here is what ACDL does, why it matters, and when you should use it.
The Problem ACDL Solves
When you build an LLM agent, the most important design decision is not the prompt wording. It is the macro-structure: what information appears, when it appears, how it accumulates across turns, and what gets hidden. Two agents with identical prompts but different context architectures produce measurably different results.
The paper makes this concrete. "Even small variations in how a basic ReAct agent's context is assembled lead to measurable differences in agent performance." That sentence should make every agent builder pause. If macro-structure moves numbers, then macro-structure needs a notation.
Today, nobody has one. Authors describe context architecture in loose prose. Reviewers guess at implementation details from code. Teams hand off agent systems with paragraph descriptions of how prompts work. The result is confusion, misimplementation, and silent performance regressions when context structure changes without anyone noticing.
ACDL gives context engineering what it has been missing: a precise, readable, standard way to describe how a prompt is built and how it evolves over time.
What ACDL Actually Is
ACDL is a formal language for specifying the structure and dynamics of LLM input contexts. It captures what information appears, in what order, at what point in the interaction, under what conditions. It deliberately abstracts away content. You do not write the actual system prompt text. You write the skeleton that shows where it goes and how it relates to everything else.
The core constructs:
- Role messages. Labeled sequences for System (S), User (U), Assistant (A), and Tool (T) messages.
- Time indices.
@Tmarks the current step.@titerates over past steps.@T.Ireferences substeps within a step. - Namespaces.
envfor environment state,sysfor system state,respfor LLM responses. - Control flow.
ForEach,If/ElseIf/Else,Switch/Casefor conditional and iterative structure. - Functions. Computed content like retrieval, summarization, and compaction.
- Templates.
ALL_CAPSplaceholders for variable content. - Fragments. Reusable string or role blocks.
- Mark blocks. Numbered annotations referenced from surrounding prose.
A Concrete Example
A minimal ReAct loop in ACDL:
S: SYSTEM_INSTRUCTIONS
U: TASK_DESCRIPTION
ForEach step in @t:
A: resp[step].thought
A: resp[step].action
T: env.tool_output(resp[step].action)
A: resp[@T].final_answer
This reads top to bottom. A system message. A user task. Then a loop over past steps, each containing a thought, an action, and a tool result. Then a final answer at the current step.
Now consider a variant where tool results appear before the next thought instead of after the action. The ACDL diff is a single line reorder inside the ForEach. In prose, this structural difference is invisible. In ACDL, it is immediately visible.
The paper demonstrates ACDL by documenting several real systems: ReAct variants, the MINT benchmark agent, OpenCode, OpenClaw, the Gemini agent that played Pokemon Blue, and DeepSeek-V4. Each documentation reveals architectural differences that prose descriptions obscure.
Tooling
ACDL ships with real tooling:
- A web editor and visualizer at acdlang.org that renders
.acdlfiles to PDF or PNG - A VS Code extension with syntax highlighting and live rendering
- A Claude Code skill for authoring ACDL specifications inside agent sessions
- Language documentation and example specifications
The web renderer produces block diagrams. Roles become labeled columns. The vertical axis is time. Loops collapse and expand. Conditional branches fork. You can hand-draw these on a whiteboard or write them in formal syntax and render them.
When ACDL Earns Its Keep
ACDL is not for every project. The paper is honest about where it backfires.
Cross-team handoffs. When you pass an agent system to a team or vendor that cannot read your code, ACDL gives them the architectural skeleton without requiring them to reverse-engineer your implementation.
Papers and RFCs. Published artifacts that must stay intelligible without the implementation. If you are writing a paper about an agent system, ACDL lets you show exactly how your context is structured instead of relying on vague prose.
Comparing variants. Ablation studies across ReAct, ReWOO, or Plan-and-Execute that need to show what actually differs. ACDL diffs make structural differences explicit and comparable.
Prompt-restructure reviews. When you need to diff one architecture against another, and the source diff is dominated by content changes that obscure the structural change you care about.
When ACDL Backfires
Solo or small-team projects. When the same person reads and writes the prompt, the spec is parallel work nobody consults. An .acdl file alongside the implementation becomes a liability the moment it drifts.
Rapid iteration tempo. Any restructure invalidates the spec. Teams iterating multiple times a day let .acdl files rot, recreating the informal-prose problem the language is meant to solve.
Content-dominated agents. When most context volume is dynamic tool output like long file contents or retrieval results, ACDL's macro structure is a thin layer over content the language deliberately abstracts away.
Two Known Limitations
The paper flags two structural gaps:
- In-construction mutation. ACDL assumes state is immutable during construction. Agents that mutate state mid-context-assembly cannot be fully specified yet.
- Multi-agent clock desynchronization. Multi-agent systems with desynchronized clocks against shared mutable state require explicit clock synchronization, which the authors call "inelegant." Future versions will address both.
Why This Matters
Context engineering has been racing toward formalization for months. We have had AGENTS.md, COMPRESSION.md, WORKFLOW.md, AgentPatterns.ai, and the Root Theorem of Context Engineering. All of these address different pieces of the puzzle: what goes in the prompt, how it gets compressed, how it gets governed, how it gets tested.
ACDL addresses the piece that has been missing: how do you describe the architecture of a prompt so precisely that someone else can implement it correctly, compare it to another architecture, and reason about its behavior?
It is the UML of context engineering. Whether you love UML or hate it, you cannot deny that shared notation changes how a field communicates. ACDL gives context engineering its first shared notation.
The fact that it comes from Bar-Ilan University and Yoav Goldberg, one of the most cited NLP researchers in the world, gives it credibility. The fact that it was accepted at CAIS 2026, the first ACM conference specifically for agentic systems, gives it venue legitimacy. The fact that it ships with a parser, web renderer, VS Code extension, and Claude Code skill gives it practical usability.
Whether ACDL becomes the standard depends on adoption. But the gap it fills is real, and the tooling is there. If you are building agent systems and struggling to communicate context architecture across teams, ACDL is worth a serious look.
Citations
- Peleg Pelc, N., Kaminka, G.A., & Goldberg, Y. (2026). "A Language for Describing Agentic LLM Contexts." arXiv:2605.01920. Accepted at CAIS 2026. https://arxiv.org/abs/2605.01920
- ACDL project page: https://www.acdlang.org
- AgentPatterns.ai ACDL reference: https://agentpatterns.ai/standards/acdl-context-description-language/
Suggested Title
ACDL: The First Formal Language for Agent Context Architecture
Word Count
1,108
Fact-Check Notes
- CAIS 2026 acceptance: Confirmed via arXiv page (journal reference: CAIS '26, May 2026, San Jose, CA, DOI: 10.1145/3786335.3813126)
- ACDL constructs: Verified against arXiv paper abstract and AgentPatterns.ai reference page
- Tooling (web editor, VS Code extension, Claude Code skill): Confirmed via arXiv abstract and AgentPatterns.ai reference
- Yoav Goldberg affiliation with Bar-Ilan and Ai2: Confirmed via arXiv paper
- "Even small variations... lead to measurable differences": Direct quote from the paper
- Systems documented in paper (ReAct, MINT, OpenCode, OpenClaw, Gemini Pokemon, DeepSeek-V4): Listed in AgentPatterns.ai reference; verify against full paper
- Known limitations (in-construction mutation, multi-agent clocks): From the AgentPatterns.ai reference which cites Section 7 of the paper