Skip to content

examples: Add MEP (Meat Puppet Elimination Protocol) — async state relay for multi-machine AI sessions - #42996

Open
CRMinarian wants to merge 3 commits into
anthropics:mainfrom
CRMinarian:examples/mep-protocol
Open

CRMinarian wants to merge 3 commits into
anthropics:mainfrom
CRMinarian:examples/mep-protocol

Conversation

@CRMinarian

Copy link
Copy Markdown

What is MEP?

Meat Puppet Elimination Protocol — a self-enforcing pattern for eliminating context loss when switching machines or resuming Claude Code sessions. Zero new infrastructure. Three files.

The problem: Claude Code is stateless. Every session starts from zero. When you switch machines, you re-explain everything. Every switch costs 5–15 minutes. You become the message bus. MEP eliminates that.

How It Works

Component What It Does
CLAUDE.md Loaded automatically. Self-enforces the session protocol. Agent reads its own instructions.
handoff.md The baton. Structured, newest-first. Three fields: what happened / pending / watch out.
Git Transport layer. Encrypted, versioned, conflict-resolution built in. Pull on start, push on end.

Your only job: open a session and say /eol when done. The agent handles the rest.

What's in This PR

  • examples/mep/README.md — explanation + quick start
  • examples/mep/CLAUDE.md — drop-in session protocol template
  • examples/mep/handoff.md — blank baton template

Production Proof

April 3, 2026: a merge conflict in handoff.md was detected, diagnosed, and resolved autonomously — no human intervention. The file's structure (newest-first entries, named sections) provided enough semantic information for the agent to reason about the correct resolution without being told what "correct" meant.

Why Git (Not iCloud, OneDrive, Google Docs, or SMB)

We tested five alternatives. They all fail for the same reason: unstructured transports can't be autonomously merged. Git won because structure enables autonomous reasoning. As a bonus: GitHub encryption at rest, 2FA, and audit log — enterprise security requirements met with zero additional management.

Full Specification

Complete spec, BNF handoff schema, Claude Code skill (/mep start|end|status), and AGPL-3.0 version:
https://github.com/NukaSoft/mep-protocol


🤖 Pattern designed by Pierre Hulsebus & Skippy the Magnificent, NukaSoft.AI. Built with Claude Code.

MEP (Meat Puppet Elimination Protocol) is a self-enforcing pattern for
eliminating context loss when switching machines or resuming Claude Code
sessions. Zero new infrastructure — just CLAUDE.md, handoff.md, and Git.

How it works:
- CLAUDE.md loads automatically and self-enforces the session protocol
- handoff.md carries curated context between sessions (the baton)
- Git is the transport: encrypted, versioned, conflict-resolution built in
- EOL keyword triggers automatic commit + push at session end

Production-proven: April 3, 2026, a merge conflict in handoff.md was
detected, diagnosed, and resolved autonomously — no human intervention.
The file's structure (newest-first entries, named sections) provided
enough semantic information for autonomous conflict resolution.

Full spec + Claude Code skill (/mep start|end|status) + AGPL-3.0 version:
https://github.com/NukaSoft/mep-protocol

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@CRMinarian CRMinarian closed this Aug 12, 2026
@CRMinarian
CRMinarian deleted the examples/mep-protocol branch August 12, 2026 02:15
@CRMinarian
CRMinarian restored the examples/mep-protocol branch August 12, 2026 02:15
@CRMinarian CRMinarian reopened this Aug 12, 2026
@CRMinarian
CRMinarian marked this pull request as draft August 12, 2026 02:17
@CRMinarian
CRMinarian marked this pull request as ready for review August 12, 2026 02:17
MEP was relicensed upstream on 2026-08-11. AGPL made this contribution
unmergeable into a permissively licensed repository, which was never the
intent: the whole point of publishing the protocol is that people can
implement it freely.

Code, templates, and skills are now Apache 2.0. The specification
documents are CC BY 4.0. Implementing MEP requires no permission and
imposes no obligation.

@CRMinarian CRMinarian left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c

@CRMinarian

CRMinarian commented Aug 12, 2026 •

Copy link
Copy Markdown
Author

Bumping this with a change that matters.

This PR was filed under AGPL-3.0, which made it unmergeable into a permissively licensed repo regardless of merit. That was my mistake and it has been fixed upstream.

MEP is now Apache 2.0 for code, templates, and skills, and CC BY 4.0 for the specification documents. Implementing it requires no permission and imposes no obligation. Pushed the corrected licence line to this branch.

The contribution is three files and 133 additive lines under examples/, no changes to anything existing. It documents a pattern for carrying context between stateless Claude Code sessions across machines, which is a problem people hit constantly and currently solve by hand.

Happy to adjust scope, placement, or wording if examples/ is not the right home for it.

Full spec: https://github.com/NukaSoft/mep-protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant