v3.5.0 Β· 2026-11-25
Mission: Save tokens for the machine. Save orientation for the human.
π Website: bemyagent.md
BEMYAGENT.md is one markdown file. You hand it to your AI coding assistant once, and it sets up a small workspace of plain files inside your project where the agent keeps its plans, its decisions and the evidence of what it did. From then on the agent works in the open, and you check its work at the level of what and why β not line by line.
No install, no runtime, no service. The protocol is text, and everything it produces is text in your repository.
Save tokens means less context to read: the agent should never have to read the whole project just to start again. It loads the knowledge a task needs, and widens it only when necessary.
When working with AI agents on complex projects, three things break down:
AGENTS.md, CLAUDE.md,
.cursorrules, Copilot instructions, β¦).It is made for work that spans many sessions, for projects that more than one person or agent touches, for wanting to know a month from now why something was done β and for anyone who has been told βdoneβ once too often.
It is not an orchestrator: it does not run agents for you. It is a protocol the agent follows, and there is no program behind it.
Every task that is not trivial goes through four phases β Think, Task, Execute, Verify β and each leaves a file:
.bemyagent/
βββ settings.json # How the agent behaves (see below)
βββ docs/ # Permanent project memory
β βββ 00-ai-rules.md # The protocol itself (the agent reads this first)
β βββ 01-overview.md # What the project does
β βββ 02-architecture.md # Components and how they fit
β βββ 03-code-map.md # Where things are
β βββ 04-tech-stack.md # Technologies and versions
β βββ 05-decisions-and-issues.md # What was decided, and why
β βββ 06-implementation-plan.md # Milestones and tasks
β βββ decisions/ specs/ drafts/ # Read only when a task needs them
βββ work/ # One folder per task
βββ {milestone}/{task}/
βββ 01_think.md # The approach, and what was considered
βββ 02_tasks.md # The checklist and the success criteria
βββ 03_execute.log # What happened
βββ 04_verify.md # The verdict, with its evidence
A task too large for one session is split into sub-tasks, each with its own four files.
You choose the pace. In seamless mode
the agent runs the four phases by itself and stops only if it is
missing what it needs to start, or if verification finds a problem.
In interactive mode it stops twice β after the plan and
after the verdict β and waits for you. This and a handful of other
switches (documentation language, depth of verification, automatic
commits, β¦) live in .bemyagent/settings.json; the agent
goes through them when it sets the project up.
BEMYAGENT.md into the root of your
project..bemyagent/ workspace and adds
a few lines to your assistantβs rule file. In an empty project it
first asks what you are building; in an existing codebase it does a
shallow scan and fills the documents from what it finds.BEMYAGENT.md and start a fresh chat session
(the bootstrap context is no longer needed).Thatβs it. From this point on, the agent reads
.bemyagent/docs/00-ai-rules.md before every task and
knows how to operate.
Upgrading. Drop the new
BEMYAGENT.md into the project and ask the agent to
execute it. It compares the file with what you have, writes a
checklist and stops; you tick what to apply. Since
3.5.0 the rules file carries its release in its title
(BEMYAGENT x.y.z), so the agent can tell you where you
stand before it does anything: handed a file older than what the
project runs, it says so and stops, going on only if you answer that
a downgrade is what you want; handed the same one, with the rules
untouched since, it says there is nothing to upgrade; otherwise β a
newer file, a project with no number yet, or rules edited by hand β
the checklist opens with
Upgrade: <from> β <to>. The number is a
label for you β what changes is still decided by comparing the
files, and what changed between two releases is a
git diff between their tags. Releases are the tags of this
repository; a new tag is cut only when BEMYAGENT.md
itself changes.
A rule written for an AI agent is a claim about behaviour, and reasoning about such a claim predicts the outcome badly. So rules proposed for this protocol are tested before they go in: the same task is given to agents with and without a rule, and what they leave behind is compared. Most rules proposed here did not survive that β several turned out inert, and one made the agent measurably worse before it was reworked.
What has been measured about the protocol as a whole β small numbers, one ten-file app; read them as that:
The record, nulls included, is in .bemyagent/docs/05-decisions-and-issues.md.
The test environment is in harness/:
it is not part of the protocol and never lands in your
project β BEMYAGENT.md is the only thing you
copy, and it needs no runtime, no package manager and no particular
operating system. The harness is kept here for anyone tuning agent
instructions who wants evidence instead of intuition.
These live here rather than in 00-ai-rules.md so
they cost nothing at session restore β they are for you to run, not
for the agent to carry in context every turn.
Every procedural rule in the protocol forces an artifact to exist; none checks that it is true. This prompt is the reconciliation pass. Paste it into a session roughly monthly:
βCompare
03-code-map.mdvs the real file structure; report drift. Check01-overview.mdenv vars vs actual config. Verify.gitignorecoverage. Check test coverage vs recent changes. List recent decisions missing from05-decisions-and-issues.md. Flag placeholder sections and language inconsistencies in docs/.β
.bemyagent/ is tracked in git by default. Teams
preferring a clean VCS history may .gitignore
work/ β the audit trail is kept locally and lost in VCS
β and log/: the optional conversation log holds both
sides of your conversations verbatim (below).
Your tool keeps its own transcript outside the project and
deletes it after a while. The conversation log keeps both sides
in the project β what you wrote, the agentβs final
message of each turn, the brief it hands a subagent β one file per
session under .bemyagent/log/<YYYY-MM>/, until
you delete them. The agent never writes it and never reads
it at session start: a small script run by your toolβs hooks does
the writing.
At the end of bootstrap the agent offers to set it up and
asks first: it writes the script to
.bemyagent/hooks/<tool>/, shows you the
configuration, and switches it on only on your yes, in your
personal settings for the tool β it is a command your
machine runs at every turn. Already bootstrapped? Upgrade with the
current BEMYAGENT.md: the plan carries it as an
optional item and never touches the log files you already have.
What is known, and what is not: the worked example is for
Claude Code (it needs jq), and that is
the only tool it has been tried on β for any other the agent is told
to read its toolβs documentation and translate, and nobody has
measured that. On Claude Code, two models, three runs each: told yes
in advance, 4 of 6 runs ended with a working log and in the other 2
the tool itself refused the agentβs write to its settings β the
agent stopped and said so; told nothing, 0 of 6 switched it on and
all 6 left the decision to the user. A message you send directly to
a subagent reaches no hook and is not in the log.
In the worktree workflow (00-ai-rules.md Β§8) the
human dispatches one session per worktree, merges via PR, and
resolves conflicts. There is no automated orchestrator by
design.
This repository uses the BEMYAGENT.md protocol to develop itself.
The .bemyagent/ directory contains the live workspace
where the protocol is planned, documented, and evolved β using its
own rules.
Explore .bemyagent/work/ to see real plans, logs and
verification reports.
This project is licensed under the MIT License β see the LICENSE file for details.