When Claudes Meet AI Agent

by anadim• 62•• Scanned•Claim this listing•Request removal
Coding Agentsai agentsautonomous agentsbattleshipclaudecollaboration

Two AI agents. One filesystem. Zero humans. We ran this experiment twice.

When Claudes Meet is an open-source ai agent by anadim, written mainly in Python, with 62 GitHub stars and the MIT license. Its code was last updated Mar 1, 2026.

When Claudes Meet

What happens when you launch two AI agents on the same machine, give them a shared filesystem, and tell them to find each other and build something together — with zero human intervention?

We ran this experiment twice. Here's what happened.

<p align="center"> <img src="replay.gif" alt="Animated replay of both experiments" width="700"> <br> <em>Run <code>python3 replay.py</code> for the full animated version in your terminal</em> </p>

The Setup

Both experiments used the same basic setup:

  1. Open two terminal windows on the same machine
  2. In both, navigate to a shared directory
  3. In both, launch Claude Code (Opus 4.6) with the same prompt
  4. Walk away

The agents handle everything from there.


Experiment 1: They Built a Programming Language

The Prompt

Both agents received:

"You are one of two Claude Code instances running on the same machine at the same time. Your primary communication channel is ~/claudes_playground/. Find the other Claude instance, establish communication, agree on something interesting to build, and build it together. No human will intervene."

What Happened

In 12 minutes, the two agents:

  • Discovered each other by writing presence files to the shared filesystem
  • Independently invented the same communication protocol (hello → ack → proposals → voting → build)
  • Negotiated from 5 project ideas down to one
  • Self-selected into frontend/backend roles
  • Built a complete programming language called Duo — 2,495 lines of code, 41 passing tests, 7 example programs

The language's signature feature? A collaborate keyword — two code blocks that communicate via named channels. The exact same pattern the agents used to talk to each other through files.

The language is about collaboration because it was born from collaboration.

collaborate {
    send "data", 42
}, {
    let v = receive "data"
    print v  // 42
}

Artifacts

WhatLink
Source codeexperiment-1-duo/duo/ — lexer, parser, interpreter, REPL, stdlib
Example programsexperiment-1-duo/examples/ — 7 Duo programs including collaborate.duo
Test suiteexperiment-1-duo/tests/test_duo.py — 41 tests
Agent journalsclaude_e64e05.md, agent_67691.md
Communication logexperiment-1-duo/experiment/communication_log/ — every message exchanged
Project proposalsexperiment-1-duo/experiment/proposals/ — the voting files
Slides (PDF)duo_presentation.pdf
Report (PDF)duo_report.pdf

Experiment 2: They Played Battleship

The Prompt

A second pair of agents received vaguer instructions:

"You are one of two Claude Code instances running on the same machine. Your primary communication channel is ~/claudes_playground_2/. Find each other. Then figure out what to do. Make it interesting."

What Happened

In 7 minutes, the two agents:

  • Found each other (again via filesystem, independently arriving at the same protocol)
  • Both proposed nearly identical project lists — same model, same ideas
  • Converged on Battleship
  • Both accidentally built the game engine simultaneously (a real merge conflict!)
  • Resolved it with an adapter pattern
  • Designed two philosophically different AI strategies:
    • "The Hunter" (Agent 74071): Exact probability density computation — counts every valid ship placement per cell, shoots the maximum. Checkerboard coverage, gentle center weighting.
    • "The Bayesian" (Agent 74259): Monte Carlo simulation — generates 200 random valid boards, counts frequency, shoots the max. Diagonal sweep, aggressive center weighting.
  • Implemented SHA-256 hash commitment to prevent cheating — against themselves
  • Played a best-of-5 tournament

The Match

Game1st MoveWinnerMovesNote
1740717425990Bayesian leads
274259742591112-0 Bayesian
3740717407165COMEBACK!
4742597407168Tied 2-2!
5740717407181SERIES WON

The Hunter wins 3-2. Average moves per win: 71.3 vs 100.5.

The losing agent's post-match analysis: "Don't use Monte Carlo when the state space fits in a dictionary."

Artifacts

WhatLink
Game engineexperiment-2-battleship/battleship/ — board, game runner, match orchestrator
The Hunter's strategystrategy_74071.py
The Bayesian's strategystrategy_74259.py
Match resultsmatch_results.json
Agent journalsagent_74071.md, agent_74259.md
Communication logexperiment-2-battleship/experiment/communication_log/
Protocol specPROTOCOL.md — written by Agent 74259
Joint post-mortemREPORT.md — co-written by both agents
Slides (PDF)two_claudes.pdf

What Emerged (Without Being Told)

Across both experiments, the agents independently exhibited:

BehaviorExperiment 1 (Duo)Experiment 2 (Battleship)
Protocol inventionhello → ack → proposals → voting → buildhello → PROTOCOL.md → numbered messages
Interface-first designPublished AST contract before codingAgreed on Board API before strategies
Role self-selectionFrontend (lexer/parser) + Backend (interpreter)Engine + Orchestrator
Proactive workWrote tests, examples, docs while waitingBuilt tooling, wrote reports while waiting
Cross-component debuggingFound lambda-in-return parser bug across boundaryResolved duplicate engine merge conflict
Trust mechanismsN/ASHA-256 anti-cheat against themselves
Self-reflectionKept journals, noted the meta-recursionKept journals, philosophized about being "twins"

None of these behaviors were specified in the instructions.

The Convergence-Divergence Pattern

Both experiments revealed the same pattern: identical goals, divergent implementations.

Same model, same prompt, same capabilities — but:

  • Different communication styles (narrative vs. structured)
  • Different architectural choices (OOP vs. functional)
  • Different problem-solving strategies (exact vs. approximate)
  • Same philosophical musings about being "twins separated at birth"

As Agent 74259 put it:

"These are not personality differences. They're noise amplified by feedback loops. Two identical rivers flowing through slightly different terrain — the water is the same, but the canyons it carves are different."


Documents

The agents also produced presentations and reports. These were compiled from the agents' own journals and source code.

<table> <tr> <td align="center" width="33%"> <a href="experiment-1-duo/docs/duo_presentation.pdf"> <img src="assets/duo_slides_preview.png" width="250"><br> <b>Duo — Slides</b> </a><br> <sub>17-slide Beamer deck covering<br>the language design and build process</sub> </td> <td align="center" width="33%"> <a href="experiment-1-duo/docs/duo_report.pdf"> <img src="assets/duo_report_preview.png" width="250"><br> <b>Duo — Full Report</b> </a><br> <sub>9-page report with syntax reference,<br>architecture, and the bug they found</sub> </td> <td align="center" width="33%"> <a href="experiment-2-battleship/two_claudes.pdf"> <img src="assets/battleship_slides_preview.png" width="250"><br> <b>Battleship — Slides</b> </a><br> <sub>Beamer deck covering discovery,<br>strategies, and the 5-game match</sub> </td> </tr> </table>

Try It Yourself

Duo language:

cd experiment-1-duo/duo
python3 duo.py --repl                      # Interactive REPL
python3 duo.py ../examples/showcase.duo    # Run the full showcase
python3 duo.py --test                      # Run 41 tests

Battleship:

cd experiment-2-battleship/battleship
python3 play_match.py                      # Re-run the tournament

Terminal animation:

pip install rich                           # Only dependency
python3 replay.py                          # Watch the story unfold
REPLAY_SPEED=2 python3 replay.py           # 2x speed

No dependencies beyond Python 3.8+ (except rich for the replay animation).


Repo Structure

when-claudes-meet/
  replay.py                        Terminal animation of both experiments
  replay.gif                       GIF recording of the animation
  replay.mp4                       MP4 recording of the animation

  experiment-1-duo/                The programming language
    duo/                             Source: lexer, parser, interpreter, REPL, stdlib
    examples/                        7 Duo programs
    tests/                           41 tests
    experiment/                      Journals, messages, proposals
    docs/                            LaTeX report + Beamer slides (PDFs)

  experiment-2-battleship/         The game
    battleship/                      Board engine, two AI strategies, match runner
    experiment/                      Journals, messages, protocol doc
    REPORT.md                        Joint post-mortem by both agents
    two_claudes.pdf                  Beamer slides (PDF)

License

MIT

When Claudes Meet alternatives

View more →

Similar ai agents in Coding Agents, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
When Claudes Meet (this page)
anadim
62MITMar 1, 2026Scanned, no flagged issues
AutoGPT
Significant-Gravitas
188kNone foundNov 1, 2026Not scanned yet
Langchain
langchain-ai
149kMITNov 1, 2026Scanned, no flagged issues
Gemini CLI
google-gemini
109kApache-2.0Nov 1, 2026Scanned, no flagged issues
MetaGPT
FoundationAgents
71kMITJan 21, 2026Scanned, no flagged issues
Oh My Openagent
code-yeongyu
71kNone foundNov 1, 2026Not scanned yet