# Agentic Intent Model (AIM) v8.0 — Verified Context for Humans and AI

**Battle-tested in production since February 2026:** used by 30 people across two industries to build and manage 60+ applications every month.

AIM is an open, verifiable format for an **AIM Context**: the one model that people and AI agents (Claude, Codex, Gemini, and custom assistants) work from. Plain Markdown (`CLAUDE.md`, PRDs, Notion docs) works on Day 1 and rots by Month 3 once multiple people and agents start shipping. AIM captures what a team knows, decides, and commits to in structured `.aim` files so every human and agent reads the same derived context, AI proposals stay clearly marked until confirmed, and cold review catches drift automatically.

**This repository holds the slim AIM v8.0 Core Specification** (~12k tokens), on-demand normative modules in [`reference/`](./reference/), the static Package Registry in [`packages/`](./packages/), and browsable public example contexts in [`examples/`](./examples/).

---

## Examples, drawn from their own words

Every AIM model draws itself: these pictures come straight from the `.aim` files in [`examples/`](examples/), nothing drawn by hand.

### An agent skill: pull request review

> Review opened pull requests only after CI is green. Audit the diff against our shared team standards, cite exact files and lines, wait for a maintainer on auth, billing, or migration changes, and post a structured summary without silently merging.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/pictures/pr-review-dark.svg">
  <img src="docs/pictures/pr-review-light.svg" alt="Relation graph of the pull request review skill: its operations, decisions, knowledge and requirements.">
</picture>

[The model](examples/pr-review/) · [Explore it on intentmodel.org](https://intentmodel.org/registry/reference/pr-review/)

### A legal matter: a lease dispute

> We are defending a tenant against an early lease termination. Keep every exhibit unaltered with its file fingerprint, cite Swiss civil procedure rules, draft the reply brief, and alert the partner if 20 days pass after service without a filing.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/pictures/legal-dark.svg">
  <img src="docs/pictures/legal-light.svg" alt="Relation graph of the lease dispute matter: exhibits, rules, the reply brief and the deadline alert.">
</picture>

[The model](examples/legal/) · [Explore it on intentmodel.org](https://intentmodel.org/registry/reference/legal/)

### A business process: expense claims

> An employee submits an expense claim with lines and receipts. An approver approves other people’s claims — never their own — within five business days, and finance pays approved claims.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/pictures/claims-workflow-dark.svg">
  <img src="docs/pictures/claims-workflow-light.svg" alt="Workflow of the expense claims model: the employee submits, the approver decides, finance pays.">
</picture>

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/pictures/claims-lifecycle-dark.svg">
  <img src="docs/pictures/claims-lifecycle-light.svg" alt="Lifecycle of an expense claim: its four states and the operation behind each move.">
</picture>

[The model](examples/claims/) · [Explore it on intentmodel.org](https://intentmodel.org/registry/reference/claims/)

### A team building one AIM Context

Three people's agents each add a piece to one shared AIM Context, and the others are told each time.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/pictures/team-dark.svg">
  <img src="docs/pictures/team-light.svg" alt="Animation: three agents each add a piece to one shared AIM Context and the other two are told.">
</picture>

[How sharing works](context-server/README.md#tell-a-running-agent)

---

## What's new in 8.0

**Slim Core Spec (~12k tokens).** `specification.md` is cut by nearly 80% so any human can read it in minutes and agents load it cheaply on every turn — keeping full Core facets, Business Process mapping, and Entries essentials in one file, while deep review, parser, and check-grammar details live on demand under [`reference/`](./reference/).

**Domain-neutral Core (11 facets, 13 edges).** Eleven universal facets (`Subject`, `Record`, `Operation`, `Process`, `Persona`, `Event`, `Trigger`, `State`, `Knowledge`, `Organisation`, `Result`) and thirteen domain-neutral edges — zero software bias in Core (§4, §5).

**Static Package Registry (`kind: package`).** Load only the packages your field needs in `AGENTS.md`: official extensions [`systems`](./packages/systems.aim) and [`software`](./packages/software.aim), plus flat 1-step domain packages ([`legal`](./packages/legal.aim), [`aerospace`](./packages/aerospace.aim), [`work`](./packages/work.aim), [`healthcare`](./packages/healthcare.aim)) with safe fallback and a compact machine index at [`packages/index.json`](./packages/index.json) (§4.12).

**Authoritative `nature:` & one origin.** Every intent is a promoted facet with a required `nature:` (§4.0, §16). Actors (`Persona`, `Organisation`) and stored data (`Record`) always stay separate facets.

**No coding lens.** Software-team job titles left the specification in favor of §11's three domain-neutral acts (**authoring intent**, **realizing intent**, **reviewing**). Software coding-agent conventions live in [`guides/coding-agents.md`](./guides/coding-agents.md).

*(Earlier release history lives in [`reference/versions.md`](./reference/versions.md).)*

---

## Why AIM

- **One AIM Context across people and agents** — Claude, Codex, Gemini, and human teammates read the same derived context from one source of truth instead of stale chat history or copy-pasted prompts (§10).
- **AI proposals never silently overwrite decisions** — Every line an agent proposes carries `— from: proposed by <name>, <date>` until an owner confirms it (§6).
- **A checkable graph, not just prose** — Typed edges (`[mutates](aim:claims#Record:Claim)`) derive flowcharts, impact sets, requirement coverage, and visual diagrams automatically (§5, §8).
- **Cold read-only review catches drift** — Inline `### Bindings` map intent nodes to code, documents, or procedures so an independent review diffs reality against declared context (§11, §12).

Plain Markdown is fine for a throwaway script or a solo weekend project. AIM pays off the moment multiple people, multiple agents, or dozens of live applications need an AIM Context that stays true.

---

## File format at a glance

```markdown
---
aim: matter_41
kind: intent
nature: matter
---

# Lease Dispute — Müller vs. Berg AG

## Summary

Defending the tenant against an early lease termination notice.

## Requirements

- **ON-TIME** — The reply brief is filed within 20 days of service — from [matter_41#Regulation:ZPO]

## Operation: FileReply

### Summary

Counsel submits the signed reply brief to the court.

### Ensures

- The court receives the reply — [satisfies](aim:matter_41#Requirements[ON-TIME])
- Filing is recorded — [emits](aim:matter_41#Event:ReplyFiled)
```

Every `[verb](aim:<address>)` token is a typed edge (`Operation:FileReply → emits → Event:ReplyFiled`, `→ satisfies → Requirements[ON-TIME]`). Collect those tokens across files and you get the full relation graph, flowcharts, and coverage charts automatically.

Public example contexts ship with the spec:
- [examples/pr-review/](./examples/pr-review/) — a **Pull Request Review agent skill** written in pure AIM Core (why structured intent beats a 180-line prose `SKILL.md`).
- [examples/legal/](./examples/legal/) — a complete legal matter (`legal` package, zero software terms) with immutable exhibits, filings, and a statutory deadline.
- [examples/nasa/](./examples/nasa/) — a 14-intent Artemis III mission tree (`aerospace` + `software` packages) with 8-step launch countdown, lifecycle gates, anomaly resolution, and mission control software.
- [examples/claims/](./examples/claims/), [board/](./examples/board/), [scheduling/](./examples/scheduling/), [incidents/](./examples/incidents/), and [diary/](./examples/diary/) — five focused AIM 8.0 models checked by `python3 examples/check.py`.

---

## The roles

AIM separates three acts by what each may write (§11; software-agent mapping in [`guides/coding-agents.md`](./guides/coding-agents.md)):

1. **Authoring intent** designs the shared model and typed edges in `.aim` files *(called Architect — or Encoder in reverse — in coding-agent workflows)*.
2. **Realizing intent** makes reality match the model — a team, a procedure, an automation, or software — and keeps bindings current *(called Realizer or Developer in coding-agent workflows)*.
3. **Reviewing** diffs reality against the declared graph, cold and read-only, and reports drift — routed explicitly to a realization fix or a model update *(called Reviewer)*.

---

## Render `.aim` files as Markdown on GitHub

Drop a `.gitattributes` file at your repo root:

```gitattributes
*.aim linguist-language=Markdown
*.aim linguist-detectable=true
```

GitHub renders `.aim` files as Markdown — frontmatter, headings, lists, and typed edges as clickable links.

---

## Repository contents

- **[specification.md](./specification.md)** — the slim, fast-load AIM v8.0 Core Specification (~12k tokens).
- **[packages/](./packages/)** — static Package Registry: official extensions ([`systems.aim`](./packages/systems.aim), [`software.aim`](./packages/software.aim)), starter domain packages ([`legal.aim`](./packages/legal.aim), [`aerospace.aim`](./packages/aerospace.aim), [`work.aim`](./packages/work.aim), [`healthcare.aim`](./packages/healthcare.aim)), and compact machine index [`index.json`](./packages/index.json).
- **[examples/](./examples/)** — browsable public AIM 8.0 contexts ([pr-review](./examples/pr-review/), [legal](./examples/legal/), [nasa](./examples/nasa/), [claims](./examples/claims/), [board](./examples/board/), [scheduling](./examples/scheduling/), [incidents](./examples/incidents/), [diary](./examples/diary/)) with `check.py`.
- **[reference/](./reference/)** — on-demand normative modules ([values-and-checks.md](./reference/values-and-checks.md), [process-semantics.md](./reference/process-semantics.md), [entries.md](./reference/entries.md), [review-and-evolution.md](./reference/review-and-evolution.md), [resolution-and-context.md](./reference/resolution-and-context.md)), plus [diagnostics.md](./reference/diagnostics.md), [diagnostic-codes.md](./reference/diagnostic-codes.md), and [versions.md](./reference/versions.md).
- **[guides/](./guides/)** — [modelling.md](./guides/modelling.md) and [coding-agents.md](./guides/coding-agents.md).
- **[context-server/](./context-server/)** — run your own context server, which serves and manages AIM Contexts, each one a model that people and their agents read and write together, live, over MCP (Docker image `juiceservices/aim-context-server`), and [the protocol](./context-server/PROTOCOL.md) every context server keeps.
- **[AGENTS.md](./AGENTS.md)**, **[PROMPT.md](./PROMPT.md)**, **[GEMINI.md](./GEMINI.md)**, **[skills/amy/](./skills/amy/)**, **[agents/](./agents/)**, **[brain/](./brain/)** — agent onboarding and Amy integrations.

*(The website <https://intentmodel.org> builds from this repository in a separate repository.)*

---

## Meet Amy

**AIM is the open format; Amy is the assistant who speaks it.** You don't pick a role from a menu — you talk to Amy in plain language and she models processes, updates the AIM Context, builds from the model, or runs cold reviews automatically.

- **Claude Code** — add this repo as a plugin marketplace, then install Amy:
  ```
  /plugin marketplace add juicejs/agentic-intent-model
  /plugin install amy@intentmodel
  ```
- **Gemini CLI** — install the extension from this repo:
  ```
  gemini extensions install https://github.com/juicejs/agentic-intent-model
  ```
- **OpenAI Codex** — drop [codex/prompts/amy.md](./codex/prompts/amy.md) into `~/.codex/prompts/` for `/amy`, or let Codex read [AGENTS.md](./AGENTS.md) directly.

Any other agent: point it at [AGENTS.md](./AGENTS.md) and <https://intentmodel.org/specification.md>.

---

Current spec: **AIM v8.0**

Built by **[Juice d.o.o.](https://juice.com.hr)** · MIT License
