ABSL — Agent Behavior
This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.
Summary
Section titled “Summary”ABSL answers: what may an agent do, under what limits, and when must it escalate?
When to use it
Section titled “When to use it”Use it when an agent’s capabilities, guardrails, triggers or memory policy need an explicit contract. Begin with a single capability, an allowed input and a denied input. Separate the declared behavior from the runtime adapter that enforces it. A personality description alone is not a permission boundary.
Common mistakes
Section titled “Common mistakes”- Using personality prose as the only control over privileged tools.
- Treating every exported contract as compatible with every agent framework.
- Checking only the agent’s answer instead of the actual tool-call decision.
Background and history
Section titled “Background and history”ABSL is ContextBrew’s Agent Behavioral Specification Language. It packages behavior and governance declarations into an artifact connected to a project’s specifications; it is not an industry-wide agent standard. Anthropic’s effective-agents article supplies background on simple workflows, agents and tool design, rather than an ABSL specification.
A useful contract explains both the allowed task and its boundary. Capabilities state what the agent can attempt; guardrails and escalation rules constrain those attempts; memory policy describes what may be retained. Enforcement depends on the consumer of the generated contract and the capabilities it actually implements. Test a contract with fixed tool-call fixtures before relying on it in a live agent. Parsing a deny rule proves that the declaration is well formed, not that every runtime will obey it.
Alternatives and trade-offs
Section titled “Alternatives and trade-offs”A system prompt is quick for behavioral guidance but needs external enforcement for hard permissions. Framework configuration can define a specific runtime’s tools; a policy engine can enforce selected decisions. ABSL adds a shared model and export path, with adapter-specific compatibility that must be verified.
References
Section titled “References”- Anthropic’s effective-agents article
- Learning with models — choose a practice workflow and interpret its results.
Where it fits
Section titled “Where it fits”| Model | Captures | Use case |
|---|---|---|
| DDD | Domain | What the system is |
| CBRL | Requirements | What the system must do |
| ABSL | Agent behavior | What an AI agent is allowed to do and how it behaves |
Node types
Section titled “Node types”agent— rootpersonality— prose description of the agent’s voicecapability— a discrete behavior the agent can perform (with embedded guardrails)guardrail— discriminated:deny/allow/escalation/budget/rate_limittrigger— event → capability bindingmemory-policy— scopes (short-term / long-term) with TTLs and consent flagstrust-tier— bronze / silver / gold / experimental, with rate limits and approval rules
File format
Section titled “File format”Stored as models/absl.json. See the absl schema page for the normative JSON Schema and committed sample files.
