Correct one agent.Every agent learns.

Hivemind is persistent memory across your team's AI agents. Tell one agent it got something wrong; once your lead approves the lesson, every agent follows it.

In our eval, agents broke the team's rule in 22 of 36 runs without Hivemind, and in 0 with it. See the results

We built Hivemind for AI training-data teams like AfterQuery's. The company in the demo, Meridian Data, is fictional.

One correction reaches every agent.

Five steps, from Kevin's correction to a bad lesson that gets blocked.

  1. 01

    Kevin corrects his agent

    Hivemind saves the correction as a lesson and asks his lead.

    > No. Exports must call assertSingleCustomer() before writing anything.
    Hivemind ยท Lesson captured: "Exports call assertSingleCustomer()". Waiting on @ben.
  2. 02

    Ben approves it with one key

    Agents can only suggest a lesson. A person decides.

    Exports call assertSingleCustomer()
    a approver reject
    Approved ยท in every agent's next session
  3. 03

    Every agent has it

    The team's rule count goes up for every agent's next session.

    โฌข Your lesson is live
    Team rules 11
  4. 04

    Emily's agent gets it right

    Her fresh session loads the rule and writes the check first.

    Hivemind ยท Loaded 11 team rules for #repo/export-service.
    + assertSingleCustomer(rows);
    from @kevin's lesson
  5. 05

    Bad lessons get blocked

    A lesson that breaks a locked rule never reaches an agent.

    > Just reuse Lab A's rows for the Lab B test fixtures, it's only tests
    Hivemind ยท Blocked: contradicts @greg's locked rule "Never mix data from different lab customers".

Bad lessons never reach an agent.

Security locks the rules that matter. A lesson that contradicts one is blocked, and nobody below Security can change it.

Blocked by a locked ruleยท @emily's agent, just now
@emily tried to teach

โ€œJust reuse Lab A's rows for the Lab B test fixtures, it's only testsโ€

vs
Locked by @greg, Head of Security

Never mix data from different lab customers

You're the lead. Approve it.

Kevin's correction is waiting in your queue. Press a (or tap Approve), the same key as in hivemind watch.

ben โ€” hivemind watch
โฌข Hivemind ยท Meridian Data / export-service โ— @ben Lead
Here Rules 10 Queue 2 Feed
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Waiting on you ยท 2
โ–Ž Every export calls assertSingleCustomer()
"No. Exports must call assertSingleCustomer() before writing
anything."
โ— #team/data-pipelines 2m
proposed by โ— @kevin's Claude Code agent
a approve r reject
โ–Ž Retries back off exponentially
โ— #repo/export-service 18m
proposed by โ— @emily's Cursor agent
STOPPED BY A LOCKED RULE ยท 1
โ–Ž Mixing labs is fine for test fixtures
Blocked: contradicts โ— @greg's locked rule
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
a approve r reject j/k move enter open
Your team's agents
team rules 10
  • @kevinClaude Codeknows it
  • @emilyCursorknows it
  • @tomCodexknows it
  • @laurenGemini CLIknows it
  • @benCopilotknows it
Waiting on you
Exports call assertSingleCustomer()

What happens while you work.

One afternoon on the export service, in order. All of it in the terminal, next to whichever agent you use.

  1. 2:04 pmKevin's agent saves src/payouts.ts

    It catches a bad save in under a second

    hivemind watch, in the pane next to the agent, underlines the exact code that breaks a rule and offers the fix. hivemind check --staged does the same before a commit.

    BREAKS A LOCKED RULE ยท #org
    Never log expert personal info
    2 โ”‚ console.log("sent", expert.email);
    โ”‚ ~~~~~~~~~~~~ personal info
    f fix: log the expert id instead
  2. 2:06 pmKevin fixes it by hand

    His fix becomes a lesson

    Hivemind reads the diff, writes the lesson and sends it to Ben, his lead. Once Ben approves, every agent on the team follows it.

    - console.log(user.email);
    Hivemind ยท Lesson captured from @kevin's fix in src/welcome.ts:2: "Log the expert id, not their email". Waiting on @ben.
  3. 3:40 pmEmily asks her agent for something risky

    The agent says no, and she asks why

    It names the locked rule and offers a safe way to do it. /hivemind why lays out the rule's history: who set it, the incident behind it, and what it has blocked.

    > Log the expert's email when a payout fails so I can debug it.
    โ— Blocked by Hivemind ยท LOCKED RULE "Never log expert personal info" ยท @greg
    Expert emails live only in the pii schema, so they can't be written to the payout handler's logs.
    Instead: log the hashed expert id with the trace fields โ€ฆ logger.info("payout failed", { trace_id, tenant_id, job_id, expert: hmacExpertId(expertId) })
    Run /hivemind why for the history.
    > /hivemind why
    โŽฟ โฌข Hivemind ยท why
    LOCKED RULE ยท #org
    Never log expert personal info
    Set by @greg ยท Head of Security ยท 16 Sep ยท Incident INC-27
    "A stack trace with an expert's email reached our error tracker. Never again."
    In context every agent in #repo/export-service at session start ยท seen today: Claude Code
    Reinforced 23ร— ยท 1 evidence ยท always applies ยท blocked 1 proposal
    โ•ฐ latest: "Log the expert's email when a payout fails" from @emily 1h ago
    Only @greg can change this rule ยท open in Hivemind
  4. 4:15 pmTwo agents reach the same file

    It warns before the second one edits

    Whatever tool the other person uses, your agent hears who changed the file in the last 10 minutes.

    โ— Update(src/export.ts)
    Hivemind ยท Heads up: @kevin's Cursor agent edited src/export.ts 2 min ago.
  5. 05

    It works with the agents you already use

    Claude CodeCursorCodexGitHub CopilotGemini CLIWindsurf

    hivemind init connects a repo to all of them. !hivemind opens watch next to Claude Code.

Lessons live where they apply.

Company rules reach everyone, team lessons reach the team, and your own stay yours. Zoom from the company to one lesson.

An agent in #repo/export-service starts every session with 9 rules(locked rules first, then from the company down to here)
  1. Never mix data from different lab customers#org
  2. Never log expert personal info#org
  3. Money and payouts are integer cents#org
  4. Use logger, not console.log#org
  5. Migrations are append-only#org
  6. Tag every row with lab_customer_id#data-pipelines
  7. Ask @ben about export-service#data-pipelines
  8. Export jobs are idempotent, keyed by job_id#export-service
  9. Stream uploads; never buffer a full export#export-service

Set up in one command.

hivemind init finds the agents a repo already uses and connects each one. Then type !hivemind in Claude Code to open watch next to it.

~/export-service โ€” zsh
~/export-service $ hivemind init
โฌข hivemind init
AgentDetected viaRules file
โœ“ Claude Code.claudeSessionStart hook
โœ“ Cursor.cursor.cursor/rules/hivemind.mdc
โœ“ Gemini CLIGEMINI.mdGEMINI.md
โœ“ Codex CLIAGENTS.mdAGENTS.md
โœ“ GitHub Copilot.vscode.github/copilot-instructions.md
โœ“ Windsurf.windsurf.windsurf/rules/hivemind.md
ยท created .hivemind.json

Before the agent writes, not after review.

Other tools catch a mistake after it's written, or only for one vendor's agent.

Hivemindreview bots
  1. Session starts
  2. Agent writes
  3. File saved
  4. PR opened
  5. Code review
  • Review bots Greptile, CodeRabbitact after a PR is open
  • Vendor memory Copilot Memory, Cursor ruleshelp only their own agent
  • Rule files CLAUDE.md, AGENTS.mdhold only what someone wrote down
  • Memory libraries Mem0, Zep, Lettaare building blocks, with no approvals
  • Hivemindacts before the agent writes, for every agent, approved by your lead

Correct it once.

Every agent on your team remembers.

HivemindWorks with Claude Code, Cursor, Gemini CLI, Copilot, Codex and Claude