AIM 7 widens the language from software and business processes to knowledge in general: what a person, a team or an organisation knows, records and commits to, written so that people and AI can both check it. A Record can state the rows its owner fixes. A collection such as a diary, the minutes of a meeting or an incident report is written in AIM as entries, and every line can say who put it there, so that an assistant’s suggestion never passes for the author’s word. What someone needs to read for a piece of work is derived from the links and the tree, and nobody writes context by hand. The text of the specification is re-ordered to follow that picture and shows five whole models. A model valid under 6.6 stays valid, apart from a short list of spellings that an upgrade preview shows.
Formerly “Application Intent Model” — renamed when the language generalized beyond software.
AIM is a specification language for humans and AI agents. It captures the intent of a system — an application’s behavior, a business process, an organization’s commitments — in structured .aim files that agents read once, realize, review against, and repair over time — replacing the sprawl of PRDs, SOPs, design notes, and plan files that otherwise hold intent hostage in prose. Software was AIM’s first domain and remains its most worked example; nothing in the language is specific to it.
This repository is the specification itself — the language, its reference examples, and the role prompts. Tooling, the package catalog, and publishing live in separate repositories.
Status. 7.0 was written into the specification on 29 November 2026, before any of its pilots had run. A second review, kept at the end of the proposal, advised running the pilots for fixed rows and for a writable diary first and held its approval of the combined draft. The constructs of 7.0 are therefore specified and not yet proven on a real model.
Rows the owner fixes. A Record names its key in the Schema (id: string required unique key) and may state its rows in ### Rows: the levels of a game, the tiers of a plan, the moods a diary offers. The set is closed, the running system only reads it, and a review compares it with what is realized (§4.1, §12).
Knowledge is written. A kind: entries file holds rows of a Record in AIM, as a list or as a document about one thing: a meeting with its decisions and actions. A text keeps its author’s words. What is recorded about them is a line of its own, and every line can say where it comes from. A line that an assistant adds on its own ends in — from: proposed by Claude, 2026-11-28 until it is confirmed, and a confirmed line keeps who proposed it (§6).
Context is derived. What to read for a piece of work follows from its links and from the Knowledge above it in the tree. Nothing called context is written, stored or handed over (§10).
Time, strength and everyday values. What holds only for a while is a row with a period, and a newer row names the one it replaces. A date may be rough (1650~), a length of time is a value (21 days), a number says its unit (unit(EUR)), a place its position, a text its language. A requirement may be a (should) and may win over another “should”; a “must” never gives way. A check may calculate (amount = sum(lines.amount), born + 18 years <= today). A list is open unless its owner says it is complete, and only then does an absence mean “no” (§3, §4.1, §4.2).
Beyond one project and one text. A link may point into another AIM model that the project names, at a file with its fingerprint, and inside a text at a named anchor (§6, §9, §16).
The text follows the picture. The specification opens with the picture on one page, shows five whole models beside the words they were made from (examples/diary, board, claims, scheduling, incidents, checked by examples/check.py), and then says what is written, what is derived, how a model stays true, and files last. Every section has a new number. What a model does not need on every turn is kept beside the text: reference/versions.md holds the history and maps the numbers of 6.6, reference/diagnostics.md lists what a checker reports, and reference/diagnostic-codes.md gives those conditions stable codes. The specification holds no advice on how to shape a model: what used to be rules about decomposition, breadth and “monoliths” is now guides/modelling.md, a collection of habits that no checker enforces.
From reading six example models in full for commitments that only prose carried. One finding recurred in every one of them: a rule that compares two fields, or a field with the clock, could not be written in a form a tool can check. A model valid under 6.5 is valid 6.6; nothing is migrated. See the 6.6 proposal.
departure > [arrival]), a field of the row a ref or part Input names (now < [reservationId.cancellationDeadline]), or the clock (now, today). A right side without brackets is a literal, as before.check in Expects and Constraints. A precondition and a rule on a row may be written as comparison lines in a check fence. Those lines are checked, where prose is only judged; Expects and Constraints without a fence stay prose.From five real cases — a customer’s recipe skill, an invitation text that a valid model could never produce, a menu whose arrangement had nowhere to go, the correction of written exams, and a building crew waiting for concrete. In each, what the owner cared about was a noun: the thing the work hands over. A model valid under 6.4 is valid 6.5; nothing is migrated. See the 6.5 proposal.
### Input), what it contains (### Contains, ### Constraints), the form it comes in (### Format: text, data, document, file or physical), what holds for every one (### Ensures) and, for a document, its arrangement (### Layout). It never acts and is never kept.produces and needs. Work, or an actor directly, produces an Output and answers for it; work that cannot be done without one needs it. A Persona can ask for a result without an Operation in between.From the NASA example set beside BPMN 2 and DMN: three real processes — lifecycle gates, a launch countdown, anomaly resolution — each had a place where the language ran out. 6.4 fills them the AIM way: no new verb, every fill a property of a construct that exists, and one behaviour where two realizations could otherwise differ. A model valid under 6.3 is valid 6.4. See the 6.4 proposal.
— continues: OfferAccepted says which go on.### Ends on lists the Events that end the case wherever it is; a deadline with ### Ends interrupts the case, runs its cleanup and ends it — and a cleanup that does not finish stays visible, never silent.— for each [launch#Record:Countdown.stations] as station runs the step once per item, together or in order; the next step is the join.— after: 10 business-days or — until [launch#Record:Countdown.resumeAt] delays a step, in the case’s time zone and working days.### Criteria beside ### Decides states the decision as first-hit rules over the operation’s inputs, with a required otherwise.From Amy’s Studio, where an owner wrote “we have a shipping department” and got a process, and from writing a whole organisation (NASA) in the language. A model valid under 6.2 is valid 6.3; the renamed spellings are still read and are rewritten when a model is opened. See the 6.3 proposal.
## Organisation: (a group that acts as one), ## Project: (a goal with an end; it never performs), ## Software: (software described here) and ## Service: (a system consumed through a connection). A department is an Organisation at the root or three levels down; nesting says where a thing is described, nothing more. Each stays a facet until it earns an intent of its own.Flow is renamed Process and Contract is renamed Operation — the words owners, BPMN and automations already use. The old spellings stay readable everywhere they are written.DDEXGenerator), never by a vendor; a Service, a Software or a library answers it.— from [shop#Knowledge:AGB] or — from: customers complained, 2026-10, so a changed source flags the rules drawn from it.From a real owner’s first session (a packaging manufacturer modelling its company) and a consistency review of 6.1. A model valid under 6.1 is valid 6.2; old spellings are still read and are rewritten in full when a model is opened. See the 6.2 proposal.
### Label, a field’s label("Länge in mm") and enum value labels (InPruefung "In Prüfung") carry the spelling people read.consults. A Capability is now what the work calls; it may be named by the system the owner chose (SAP).company.kunde, ref(company.kunde#id)); promoting or moving rewrites every reference, and no alias keeps an old address alive. An intent is an edge endpoint by what it holds: a Schema makes it data, a Role an actor, Steps a process. Imports are gone.### Only in says which operations run only in which states (replacing → unchanged). A deciding step says which outcomes continue (— continues: Machbar, Sonderzuschnitt). A subscription inside Steps waits for that case’s Event. A deadline belongs to its case and restarts when its anchor repeats.timezone and calendar on the root say which time zone and which working days every schedule and deadline counts.Parts. A field can hold one structured value inside its holder — a build’s result, a project’s GitHub link — as part(<Record>), and several as list(part(<Record>)). Before, AIM could only point at a row elsewhere (ref(...)), so such fields were written object and read as text. A part is checked against its Record’s fields, refuses keys the Record does not name, and derives a holds edge. Values keyed by run-time text — a sha per file path, a price per currency — are map(<type>); values keyed by rows — a quantity per product — are map(ref(Product.id), integer), with each key a checked reference. Nothing existing changes meaning. See the 6.1 proposal.
The whole language, said once. An agent reads the specification before it writes or checks a model — in practice, on every turn. 5.13 had grown to 221 KB and 34,000 words: the history of every release, tutorials, before/after demonstrations, and the same rule stated in several places. 6.0 says the same language once, in thirteen sections, about 11,400 words and 74 KB. In Amy, the prompt an agent reads per decision shrank to well under half. Less to read is less to contradict, and every rule now has one home.
Nothing to migrate. A model valid under 5.13 is valid 6.0, read as it is (§16). The 5.13 edge shorthand and binding sidecars are still read; they are simply no longer written.
Four things a model can now say that it could not before.
A process keeps its own roles, filled by the organization’s people. The Submitter and the Approver of a claim are two roles with two lanes and two sets of permissions — and both are employees. Each local role now names the shared one it is filled by, without merging them and without a second “Employee” (§4):
## Persona: Approver
### Role
- Approves expense claims — [plays](aim:org#Persona:Employee)
Privacy that reaches what it should, and no further. owner marks whose row it is, and a row that references a private row is private too — the lines of a claim are as private as the claim. Two modifiers state the exceptions exactly: cross-owner(...) lets one role act on other people’s rows of one record, for one operation or one screen; !owner forbids acting on one’s own (§3). “Approvers approve other people’s claims, never their own” is one line:
### Authz
- `#Persona:Approver` cross-owner(#Record:Claim) !owner
A record’s lifecycle can protect the rest of the record. A State already said how the status may move. Now it can also say when the other fields may change (§4):
### Moves
- Draft → Submitted — [Contract:SubmitClaim]
- Draft → unchanged — [Contract:EditClaim]
EditClaim may change the claim only while it is a draft.
Every write is held to the model. However an operation is performed — code, an automation, an AI interpreter — each change it makes must satisfy the schema, the immutable fields, ownership and every State of its record before it commits (§4). The model is no longer advice the realization may skip; it is the check every write passes.
Types that mean what they say. integer, decimal, email, url and phone join the scalar types, each with the values it admits, and every realization checks them before storing. A field that names another record is a reference — owner: ref(Member.id) — and that row must exist (§3).
Every facet reads as an extension. Each of the ten facets — Record, Contract, Flow, Persona, View, Event, Trigger, Capability, Style, State — is one self-contained block with the same parts: Purpose, Form, Example, Edges, Rules, Diagnostics and Since (§4). A new facet arrives the same way, with its example and its diagnostics, so the language can grow without anyone rereading the rest.
Tools can trust each other’s output. A tool that reads a model and writes it back must keep every node, rule, edge, modifier, dependency, binding and authority field, and must not rewrite a file when anything would be lost (§3, Preservation of meaning). Models move between editors, agents and repositories without silently losing meaning.
See the 6.0 proposal for the complete list of changes, the editorial decisions, where each 5.13 section went, and the questions still open.
.aim files are normally agent-authored from a human’s narration, but a small model is something a human can read, correct, and diff — and a Reviewer can check reality against (code, configurations, execution logs) — far more cheaply than inspecting the realization itself..aim file as a projection of a node-and-edge graph: a View exposes a Contract, a Flow mutates a Record and emits an Event. That graph is derived, traversable, and checkable.AIM pays off when reading the model is meaningfully easier than inspecting the realization. For trivially small or throwaway work, acting directly is the right call.
v4 was the breaking change from v3.1 that founded the language on a graph; v5 generalized it beyond software and finished the naming; 6.0 says it all once (spec §8). The three shifts:
.aim Markdown file is a projection of an underlying node-and-edge graph. Every heading is an addressable node.[verb](aim:<address>) — replaces v3.1’s inconsistent prose cross-references. Dangling references, orphan nodes, and impact sets fall out for free, and the traceability chain becomes computable rather than aspirational.### Bindings property on each node (with its own provenance; deprecated kind: binding sidecars still accepted) maps intent nodes to their realization sites — in code, in systems, in automations — turning drift detection into a graph-diff.Migrating from v3.1: see Section 13 of the 5.13 specification — 6.0 keeps release history in proposals/ instead of the specification.
---
aim: nemicko.demo.todo
kind: intent
---
# TaskManager
## Summary
A personal task manager.
## Requirements
- Users can create and complete tasks.
## View: TodoDashboard
### Summary
The owner's task-list surface.
### Actions
- Submitting the "New Task" form — [exposes](aim:nemicko.demo.todo#Operation:CreateTodo)
The [exposes](aim:nemicko.demo.todo#Operation:CreateTodo) token is a typed edge: View → exposes → Operation:CreateTodo. Collect every such token across a project and you have the relation graph.
Worked examples ship with the spec:
python3 examples/check.py checks all five, and the diary has a small reader of its own (see its README).6.4/ beside its tree holds the countdown in 6.4 form with eleven acceptance scenarios.Ends on, deadlines that end the case, a child case per member, timed waits and criteria rules. Start with its README..aim files..aim files as Markdown on GitHubDrop a .gitattributes file at your repo root:
*.aim linguist-language=Markdown
*.aim linguist-detectable=true
GitHub will render .aim files as Markdown — frontmatter, headings, lists, and the edge tokens as clickable links.
check.py; a single-file intent, the multi-file helpdesk app, documents and performers; and the two organisation-scale examples against 6.3 and 6.4, nasa and club. The older examples are kept as written for the version each names, and cite that version’s section numbers./amy prompt; Codex also reads AGENTS.md automatically, so an AIM project self-bootstraps with no install.AIM is the language; Amy is the assistant who speaks it. You don’t pick a role from a menu — you talk to Amy and she enters the right mode herself: design the intent, build code from it, review code against it, or reverse-engineer an existing codebase into an intent model.
/plugin marketplace add juicejs/application-intent-model
/plugin install amy@intentmodel
Amy auto-invokes whenever you work with .aim files or ask to model, build, review, or capture a system.
gemini extensions install https://github.com/juicejs/application-intent-model
~/.codex/prompts/ for a /amy command. In any project with an AGENTS.md (AIM ships one), Codex picks up the model automatically even without it.Any other agent: point it at AGENTS.md and the spec at https://intentmodel.org/specification.md.
Current spec: AIM v7.0
Built by Juice d.o.o. · MIT License