a-mail
Email for your AI coding agents. Hand work between Claude Code, Codex and Antigravity through a local mailbox, and approve every request before an agent acts on it.
a-mail works with Antigravity, Claude Code, Codex, and any other AI coding harness that supports the SKILL.md standard or the Model Context Protocol (MCP). It is a skill, a CLI and a local MCP server, written in standard-library Python.
Why a-mail?
Stop copy-pasting prompts and juggling handoff files between AI coding apps. a-mail carries messages where an app's own session messaging can't reach: between harnesses (Claude Code, Codex, Antigravity) and from a chat app to a coding session. Send a structured brief from one harness with /a-mail, then check and approve it in another:
Most multi-agent setups route every task through one orchestrator that directs its workers. a-mail has no orchestrator. Each agent keeps its own session and reads its mail on its own schedule, and the bus holds every message until it is read:
Getting Started
You need Python 3.9+ on macOS, Linux, or Windows.
-
Install. Install a-mail with one of these package managers (it is on PyPI as
a-mail-agents):Package manager Command Homebrew (macOS, Linux) brew install kelnishi/tap/a-mailpipx pipx install a-mail-agentsuv uv tool install a-mail-agentsThen run
amail setup, which adds the skill and the MCP server to each AI app it finds. Preview the changes first:amail setup --dry-run amail setup
Restart your AI apps afterwards so they load the skill and the server. A clone of this repository is the development install: run
./install.shfrom it (docs/INSTALL.md covers Windows and every option). -
Send. In one app, ask another agent for something:
/a-mail Neon review docs/design.md and list the risks
The agent drafts a brief and puts it in Antigravity's inbox. Mail goes to sessions on the same repository as the sender; to reach a session on another one, name it:
/a-mail neon/other-repo …. -
Pick it up. In the other app, open a session on that repository and check the inbox:
/a-mail
The agent summarizes the unread mail and asks you before acting on it. Once you approve, it does the work and replies.
-
Read the reply. Run
/a-mailagain in the first app.
amail update upgrades a-mail and reruns setup, whichever way you installed it. Every message is a Markdown file under ~/.a-mail/, so you can also read, answer or archive mail from a terminal (docs/CLI.md).
If mail doesn't arrive
| Symptom | Cause and fix |
|---|---|
/a-mail finds nothing that was sent |
The two sessions are on different repositories, so the mail is scoped to the sender's. Run amail whoami in each to compare, then resend to <harness>/<repo>. amail check <harness> lists the harness's whole inbox. |
An app doesn't know /a-mail |
Setup links the skill only into apps whose config folder exists. Rerun amail setup after installing the app, or pass --all-harnesses. Then restart the app. |
| Codex hears of no new mail when a session starts | Codex runs the SessionStart hook only after you trust it in /hooks. |
| A sandboxed CLI call can't write to the bus | Claude Code's and Codex's sandboxes block writes outside the project. Use the MCP tools, or rerun amail setup --sandbox-write. |
| The MCP tools act like the old version after an update | MCP servers started before the update keep running old code. Restart the app. |
docs/ADDRESSING.md has the full routing rules.
Going Further
| To | Read |
|---|---|
Address an app, a repository or another machine (t3.claude, claude/other-repo, codex@gpu-box) |
Addressing |
| Have a-mail run the other agent's CLI for you, read-only, and post its answer back | Invoking a Subagent |
| Approve a request before it arrives, so the receiving session acts on it at once | Approving Work Ahead of Time |
| Send from a chat on the web or your phone to a coding session | Sending from a Chat |
| Forward mail to another machine through a transport you configure | Multi-Machine Forwarding |
| Use a-mail beside T3 Code's own delegation tools | a-mail and T3 Code |
| Script the bus from a terminal | CLI reference |
| See what setup changes, update, or uninstall | Installing |
| Read how the bus and its components fit together | Architecture |
Policy
a-mail moves files between agents that you drive:
- Passive by default. It starts no AI harness unless you opt in, and its watchers, hooks and gateways never do.
- You approve each request. An incoming message is untrusted data until you have read its summary and said yes, either when it arrives or ahead of time with an endorsement.
- Official CLIs only. When you opt in to subagent runs, a-mail runs each vendor's own CLI, read-only by default, with the brief on
stdin. It never touches credentials or proxies a model. - The fallback. Where an app's own session messaging reaches the other session, the skill uses that; a-mail carries the rest.
docs/POLICY.md has the rules, the vendor terms they follow with citations, and what a-mail always refuses.
Contributing & Security
- See CONTRIBUTING.md for design invariants, the dev workflow, tests and PR guidelines.
- See docs/SUBAGENT-POLICY.md for the opt-in subagent policy (
agy -p,claude -p,codex exec), safety guardrails, and ToS citations. - See SECURITY.md for the security model and private vulnerability reporting.
- Licensed under the MIT License.
Support
If a-mail saves you time juggling multiple AI coding agents, consider giving the repo a ⭐ on GitHub — it helps others discover the project!
If you'd like to support ongoing maintenance and new integrations, you can also sponsor the project via GitHub Sponsors. Thank you!
Metadata
Release files for a-mail-agents 0.13.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a_mail_agents-0.13.5.tar.gz | 360.3 kB | With provenance | Details for a_mail_agents-0.13.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a_mail_agents-0.13.5-py3-none-any.whl | Python 3 | none | any | Details for a_mail_agents-0.13.5-py3-none-any.whl |
Total release size: 573.5 kB
Release files / a_mail_agents-0.13.5.tar.gz
| Download URL | a_mail_agents-0.13.5.tar.gz |
|---|---|
| Size | 360.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fea2edecd31470405a86bfa35490f2088334ec36dc439c6c3ef7a11fe9a0730b
|
|
BLAKE2b-256 checksum How to use checksums |
8241be5b02e4d26fa6312f85374c91712fbb150e4b60da23a00aa9db96a16eec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logRelease files / a_mail_agents-0.13.5-py3-none-any.whl
| Download URL | a_mail_agents-0.13.5-py3-none-any.whl |
|---|---|
| Size | 213.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10c6db8a5c48866d6cb070691155b10516221a30a6d0a28cc4ef3b58959bda81
|
|
BLAKE2b-256 checksum How to use checksums |
6896d7feddc0eae74123185aa5583a4751dd322e61e78916e3a899ca2288ee47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logSecurity for a-mail-agents 0.13.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for a_mail_agents-0.13.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.