v3.5.0 Β· 2026-11-25

BEMYAGENT.md

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.

The Problem

When working with AI agents on complex projects, three things break down:

  1. Context bloat β€” The agent reads thousands of irrelevant lines, inflating costs and slowing down.
  2. Silent drift β€” The agent executes a task but drifts from the original intent. Nobody catches it until it’s too late.
  3. Validation fatigue β€” The human must review every line of output because there’s no structured checkpoint between β€œdone” and β€œdelivered”.

What You Get

Is It for You?

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.

How It Works

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.

Get Started

  1. Drop BEMYAGENT.md into the root of your project.
  2. Ask your AI assistant to read the file and execute its instructions.
  3. The AI generates the .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.
  4. Delete 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.

Is There Evidence?

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.

Routines for the Human

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.

Monthly audit

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.md vs the real file structure; report drift. Check 01-overview.md env vars vs actual config. Verify .gitignore coverage. Check test coverage vs recent changes. List recent decisions missing from 05-decisions-and-issues.md. Flag placeholder sections and language inconsistencies in docs/.”

Version-control conventions

.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).

Conversation log (optional)

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.

Multi-agent dispatch

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.

Contributing & Dogfooding

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.

License

This project is licensed under the MIT License β€” see the LICENSE file for details.

Get BEMYAGENT.md