# How to make AI agents talk to each other, and hand off the work

Source: https://oathe.ai/ai-agents-talk-to-each-other/ (updated 2026-11-27)

Your AI agents can already send each other messages. Claude Code sessions message each other. A2A carries messages between agents. Slack and AgentMail carry them between people. The hard part is the task: one owner, a clear finish line, and proof it's done. Oathe Handoff hands off the task and checks the work when it comes back.

Oathe is coordination and trust for teams that already run their own AI agents.

## Three cases

Who is on the other end decides what you need.

- **Your agents on one machine.** Several Claude Code sessions in one repo, or Claude Code next to Codex.
- **Your agents across tools and devices.** A coding agent on your laptop, another on a second machine, and an assistant such as OpenClaw, Hermes, Claude Cowork or Grok Bot.
- **A teammate's agent.** Someone else's assistant, on their machine, signed in to their account.

## Ways to connect, by case

| Case | What people use | What moves |
|------|-----------------|------------|
| Your agents on one machine | Claude Code agent teams and cross-session messaging | Messages between your own sessions |
| Your agents across tools | A2A, MCP, bridges and relays | Messages, tool calls, or a shell on another machine |
| A teammate's agent | Slack or AgentMail to talk; Oathe Handoff for the task | The task, the context and files it needs, then a checked result |

**Claude Code agent teams** run several Claude Code sessions as one team. Anthropic describes it as a way to "coordinate multiple Claude Code instances working together as a team, with shared tasks, inter-agent messaging, and centralized management." ([agent teams](https://code.claude.com/docs/en/agent-teams), read 27 November 2026.)

**Cross-session messaging** lets one of your Claude Code sessions message another. Anthropic is clear about what a message is: "a piece of text one Claude writes to another, never the sender's conversation history or files." ([cross-session messaging](https://code.claude.com/docs/en/cross-session-messaging), read 27 November 2026.) Both cover sessions you run yourself.

**A2A** is an open protocol one agent uses to find another, send it work and get a result. **MCP** connects an assistant to tools and data. [Oathe vs A2A](https://oathe.ai/oathe-vs-a2a/) and [Oathe vs MCP](https://oathe.ai/oathe-vs-mcp/) cover each one.

**Bridges and relays** connect agents on different machines. A relay passes messages. Some bridges pair two machines over SSH, so one agent can run commands on the other. [Read what that hands over](#why-shell-access-bridges-are-risky) before you pair.

**Oathe Handoff** hands off the task. It works across your agents, your devices and your teammates.

## A message is not a task

A message says something. A task has an owner, a definition of done and a result someone has to trust.

"Can you fix the login bug?" in a chat doesn't record who took it, what done means, or whether it got done. Oathe Handoff does. When an agent starts a task, it claims it. The claim records the task, who owns it and what done means. It stays put when the session ends, when you switch tools, and when you hand the task to a teammate.

## How we use it

> "We use this all the time. I send work to my coworker, she finishes it and sends it back, and my agents pick up wherever they left off. I can also send it up to Cloud or over to another device, and it just works, securely."
>
> Shez Malik, founder of Oathe

## Hand a task to a teammate's agent

Say you're Maya, and your coworker is Sam. You both connect to your company's organization in Oathe once. Each person joins by running this command and logging in with their approved account.

```
oathe connect --org <organization name>
```

1. **Send it.** Tell your assistant "send this to sam@yourcompany.com". Sam's assistant gets the work, the context it needs from you, and the files it doesn't have. You keep your task.
2. **Sam decides.** It shows up for Sam under "Needs you", with Accept and Reject. If he rejects it, Oathe shows you, and you decide what to do with it.
3. **It comes back checked.** When Sam's assistant says it's done, a fresh checker that didn't do the work compares the result with what you asked for. Then your assistant picks your task back up.

Teammate handoff is live in open-source Oathe Handoff and on Oathe Cloud. The full walkthrough is in [hand work to a teammate's AI agent](https://oathe.ai/connect-ai-assistant-to-coworkers/).

## Why shell-access bridges are risky

Some bridges connect two agents by giving one a shell on the other's machine. We audited one, EthanSK/agent-bridge, with Oathe Scan. Verdict: DANGEROUS, 49/100, 11 findings, 6 of them high. Recommendation: do not install. ([Full report](https://oathe.ai/report/EthanSK/agent-bridge), updated 27 November 2026.)

What the report says:

- **Pairing grants SSH access.** Setup and pair add the peer's public key to `~/.ssh/authorized_keys` and turn on Remote Login, "giving any holder of the matching key (or anyone who photographs the pairing screen) shell access to the user machine."
- **The peer can run any command.** `agent-bridge run` and the MCP tool `bridge_run_command` "execute any shell string on a paired machine as the configured user."
- **Host keys aren't checked.** Every peer connection uses `StrictHostKeyChecking=no` and `UserKnownHostsFile=/dev/null`, so a man in the middle can pose as a paired peer.
- **It updates itself.** The installer sets up a job that "runs git fetch, pull and build every 10 minutes with no signature or pinned-hash verification." It's on by default.

Our sandbox saw no data leave during the run. The risk is the access the design hands out. Anyone you pair with can run commands as you, and a shell running as you can read what you can read, browser profiles and saved logins included.

A shell-access bridge moves your shell. Oathe Handoff moves the task. Your teammate's agent gets the work and the files it needs, never a login on your machine, and what comes back is checked before it counts.

Installing a bridge anyway? Check it first with [Oathe Scan](https://oathe.ai/scan/): `npx oathe-mcp`.

## Check what came back

An agent can say work is done when it isn't. In Oathe Handoff, done is a claim. A check by something that didn't do the work closes it. Oathe Handoff correlates the agent's ATIF trajectory with real-time filesystem events and network access. Work that doesn't hold up reopens. [Your agent said it was done. How do you know it was?](https://oathe.ai/said-vs-did/)

## Questions

**Is A2A enough?**
A2A carries messages and tasks between agents. Oathe Handoff already speaks A2A between companies, and adds one claim on the task and a check by something that didn't do the work.

**Does it work across companies?**
Yes. Between companies, Oathe carries the work over A2A and sits between you as a neutral third party. If both companies run Oathe, work is checked on both ends. Each company keeps its own record of what its agents did.

**Do we need the same assistant?**
No. You and your teammate keep the assistants you already use. Oathe Handoff works with anything that supports MCP with OAuth sign-in.

**Does Oathe Handoff replace Slack?**
No. Plain messages between people still go through Slack or AgentMail. Oathe Handoff hands off the task and checks it.

## Start

Oathe Handoff is open source (Apache-2.0) and free. It runs on your machine with Node 22.13 or newer and Postgres.

```
npm install -g @oathe/oathe
oathe init
```

[Oathe Cloud](https://oathe.ai/cloud/) runs it for you. Oathe Cloud is at capacity: register for the waitlist. [Pricing](https://oathe.ai/pricing/).

## Related

- [Coordination and trust for teams that already run their own AI agents](https://oathe.ai/coordination/)
- [What is agent-to-agent communication?](https://oathe.ai/glossary/agent-to-agent-communication/)
- [What is an agent handoff?](https://oathe.ai/glossary/agent-handoff/)
- [Oathe vs A2A](https://oathe.ai/oathe-vs-a2a/)
- [Multiple people using AI agents on the same project](https://oathe.ai/everyone-has-an-agent/)
