StackMap
Subscribe
Explore / bemyagent
vitotafuni

bemyagent

One markdown bootstrap file that scaffolds a structured workspace for any coding agent — persistent project docs plus a task tree run through a Think→Task→Execute→Verify cycle with human pacing gates.

22 6 HTML MITupdated 8 days ago
Curator's take

Try it when your agent keeps drifting on multi-session projects and a flat CLAUDE.md isn't enough structure: one file bootstraps a disciplined docs+work tree, it's agent-agnostic (self-registers into .cursorrules/AGENTS.md), and INTERACTIVE mode gives you real plan/result approval gates. NOT for quick scripts or single-session work — the ceremony outweighs the benefit — and it's a young one-maintainer protocol: no enforcement layer exists, so compliance depends entirely on the model faithfully following a long ruleset; weaker models will ignore half of it. Expect to adapt conventions yourself rather than lean on tooling or community.

Mapped by ShipWithAI editors · links verified
README.md

BEMYAGENT.md

Mission: Save tokens for the machine. Save orientation for the human.

📖 Website: bemyagent.md

BEMYAGENT.md is a lightweight, self-bootstrapping protocol that bridges the gap between humans and AI agents. Instead of forcing alignment through code reviews or rigid procedures, it creates a shared workspace where the machine thinks in structured files and the human validates at the right level of abstraction.

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

The Solution: TTEV Workflow

BEMYAGENT.md provides a single markdown file (BEMYAGENT.md) that acts as a bootstrap prompt. When fed to an AI assistant, it generates a structured .bemyagent/ workspace:

  • .bemyagent/docs/ — Permanent project memory (architecture, code map, tech stack, decisions).
  • .bemyagent/work/ — Tactical, volatile memory organized as a Hierarchical Task Network (HTN).

Core Concepts

Concept What it does
TTEV Workflow Think → Task → Execute → Verify. A four-phase cycle where the agent strategizes, plans atomic steps, executes, and self-validates before notifying the human.
Lazy Loading The agent never reads specs, drafts, or decisions during context restoration unless the current task explicitly requires them. Saves tokens by default.
Fractal Decomposition (HTN) If a task is too large, the agent decomposes it into sub-tasks (e.g., work/1/1.1/, work/1/1.2/). Each leaf node gets its own TTEV cycle.
Context Saturation Check Before executing, the agent verifies it has enough context (target files, expected behavior, constraints, dependencies). If too much is unclear, it asks instead of guessing.
Contextual DNA Mapping (CDM) During planning, the agent embeds validation criteria directly into each task — scaled by complexity. Simple tasks get none; complex tasks get Drift sensors, Validation criteria, and Pivot triggers.
Symbiotic Validation After execution, the agent evaluates its own output against the CDM criteria and produces a verdict (PASS / PASS_WITH_CAVEATS / FAIL) before presenting results. The human validates the sense, the agent has already validated the form.
Self-Registration The agent configures the project's native rule files (.cursorrules, AGENTS.md, etc.) to read 00-ai-rules.md at every session start.

Pacing Modes

The human controls how much autonomy the agent has:

  • SEAMLESS — The agent runs TTEV automatically. It only stops if verification finds issues.
  • INTERACTIVE — The agent pauses after THINK (plan approval) and after VERIFY (result approval). Two human gates.
  • AUTO-CLI — The agent switches AI models per phase (e.g., large model for THINK, fast model for EXECUTE).

Usage

  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/ directory structure and templates.
  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 at the start of every session and knows how to operate.

How It Works (The Files)

.bemyagent/
├── docs/                          # Permanent project memory
│   ├── 00-ai-rules.md             # The protocol itself (agent reads this first)
│   ├── 01-overview.md             # What the project does, quick start
│   ├── 02-architecture.md         # System diagram, component roles
│   ├── 03

Continue your stack

What teams reach for next — and why each earns a place beside bemyagent. Ranked by curator confidence.

Alternative to See all + compare →
loop-engineering

Reference repo plus npm CLIs (loop-init/audit/cost) for loop engineering: designing scheduled, gated control loops that prompt and orchestrate AI coding agents — Grok, Claude Code, Codex — over time.

Why it fitsBoth impose a disciplined, tool-agnostic operating structure on coding agents through scaffolding, an explicit work cycle and human gates. bemyagent structures a single human-paced session (Think→Task→Execute→Verify); loop-engineering structures scheduled, unattended loops that run over time. Pick bemyagent for interactive pacing, loop-engineering for autonomous automation.
three-man-team

A disciplined 3-agent dev process as context files — Architect plans, Builder builds the brief, Reviewer gates — running in one Claude Code session via subagents. Token-frugal by design.

Why it fitsBoth are markdown-first process scaffolds for coding agents. bemyagent bootstraps one structured workspace with a Think→Task→Execute→Verify cycle; three-man-team splits the discipline across three role personas with review as a hard gate.
squid

Claude Code plugin that turns a feature spec into a reviewed PR through a 5-agent pipeline — PA → SWE → Tester → PR-Reviewer → On-Call — with exactly two human gates.

Why it fitsSame job — disciplined, human-gated task execution for coding agents — different bet: squid is a Claude Code plugin driving a 5-agent spec→PR pipeline; bemyagent is a tool-agnostic markdown protocol a single agent follows. Pick squid for enforced structure on Claude Code, bemyagent for portability.