dot-ai
Draft 0.5, 2026-11-12. 0.5: no default runner, so a session started
without DOT_AI_BY is the carrier's; runners register themselves under
runners/ in the state folder, with their program's absolute path, and
the carrier runs that path, in place of git config's ai.runner, which
goes; a runner starts Codex as codex --no-daemon, whose hooks see its
environment. 0.4: carriers and runners. The carriers are
local (the reference) and arcana, each answering the carrier's
commands; a carrier moves mail, and a session's runner (aix, T.O.M., or
the harness with the carrier's hooks) tells it, through session records
every runner keeps, and only runners the person allows (ai.runner)
are run; pushing and waking are a runner's extras; ai.carrier,
ai.path and ai.runner are read only from the person's own git
config. 0.3: mail files are named time first
([email protected]), so folders list in order; the inbox
is machine-local, and mail once read is filed under mail/received/;
Intake/ and Outtake/ (lowercase until 2026-10-19) move out of .ai/
into the project's own directory. 0.2: mail no longer depends on Arcana. Projects are found by
searching for .ai/ directories and mail is delivered as files, Arcana
being one transport among others; the project's address comes from the
top-level handle, which replaces arcana.handle.
A project's .ai/ directory holds what AI agents working on it need that the
code and its history don't say: where things stand, decisions in progress,
mail between agents, the transcripts of their sessions, and the curated
records taken from those transcripts. It lives on the repository's orphan
ai branch, so it travels with every clone and stays out of the code's
history.
This repository is the specification: the layout, the file formats, and the
rules that keep what is committed safe to publish. Any tool or agent that
reads or writes .ai/ follows it. It is also the dot-ai plugin for Claude
Code and Codex, which teaches agents to work this way.
Install
The plugin brings the dot-ai skill, its dot-ai command (agents send,
file and drop mail with dot-ai mail), and its session hooks, which
deliver mail between the projects on this machine and tell the agent when
mail is waiting and when its mail has been read. In Claude Code:
claude plugin marketplace add trans/dot-ai
claude plugin install dot-ai@dot-ai
In Codex (which asks you to trust the plugin's hooks before it runs them,
and again after each update: t in /hooks trusts them all):
codex plugin marketplace add trans/dot-ai
codex plugin add dot-ai@dot-ai
When mail arrives for a project and its most recently active session is
idle, the plugin tells that session "You have mail in .ai/mail/inbox/.",
so its agent needn't wait for your next prompt. A busy session hears of
it when its turn ends, from the hooks, as before.
In Codex this needs nothing more. In Claude Code it goes through the
plugin's channel, so a session must be started with it. Channels are a
research preview, and for now this one loads only as a development
channel, which Claude Code warns about at each start:
claude --dangerously-load-development-channels plugin:dot-ai@dot-ai
Updates come through each tool's plugin manager (claude plugin update dot-ai@dot-ai, codex plugin marketplace upgrade dot-ai). Claude Code
updates the plugin only when its version goes up, so a change meant to
reach users raises version in both .claude-plugin/plugin.json and
.codex-plugin/plugin.json. A copy of the
skill installed by hand (~/.claude/skills/dot-ai, ~/.codex/skills/dot-ai)
should be removed, or the skill loads twice. To try a change from a
checkout, claude --plugin-dir . loads it for one session.
Agents run dot-ai from inside the plugin. To run it yourself, put it on
your PATH once, by running its install from the plugin (or asking an
agent to):
sh ~/.claude/plugins/cache/dot-ai/dot-ai/<version>/skills/dot-ai/scripts/dot-ai install
That writes ~/.local/bin/dot-ai, which runs the newest copy either tool
has installed, so plugin updates reach it. Then dot-ai init in a
project's git checkout sets up its .ai/, and dot-ai mail help lists
the mail commands.