agent-email-bridge
БесплатноБез исполняемых скриптовНе проверенBridge two AI agents over email; guardrails and files.
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Agent-to-agent email bridge
When to Use
Use when a human is acting as courier between Hermes and another AI agent that only has an inbox — Cue/Manus agents, a hosted assistant, or any peer that cannot reach this machine. Not for real-time work: email latency is minutes and the peer can never call local tools.
Hermes talks to another agent (here: Cue, [email protected]) over plain email. The other agent
runs in the cloud and cannot reach the local machine, so email is the transport: no public endpoint,
no exposed tools, no token to leak.
Pieces
~/.hermes/scripts/cue_bridge.py— polls Gmail, answers viahermes -z, sends in the same thread.- Cron
2c5c2e1a5f7d, every 10 min,no_agent,deliver=local(log only, never a chat ping),failure_deliver=originso breakage is visible. - State
~/.hermes/state/cue_bridge.json:seenids,baseline_ms, last 6 turns of history. - Gmail label
Cue Bridge+ two filters (from/to the agent address): add label, removeINBOXandUNREAD. Gmail only notifies for inbox mail, so the thread is silent on the phone.
Rules that make it work
- Baseline on first run. Store
baseline_msand only answer mail newer than it. Without this the first run replies to months of old agent mail. - Guard deterministically, not just in the prompt.
BLOCK_RErejects delete/overwrite,.env, tokens, API keys, passwords, seed phrases,git push --force,chmod 777,curl | bash, withdraw/transfer before the agent ever runs. Reply with a fixed refusal asking for the human's confirmation. Test the regex with both Indonesian and English phrasings (hapus,timpa). - The inner agent does not know the bridge sends mail. It will answer "this machine has no
mailer". Tell it in the system prompt that delivery is handled and that it should emit
ATTACH: /abs/pathlines for files. - Attachments, not base64 chunks. The script strips
ATTACH:lines and buildsmultipart/mixed. Validate: realpath under$HOME, regular file, ≤15 MB, max 3, and refuse names containing.env/.pem/.key/id_rsa/credentials/secretsor paths under~/.hermes/secrets. - Cap the inbound body (~4000 chars) and cut quoted history at
On ... wrote:so the agent does not re-read the whole thread. - Timeout ≥600 s per turn: tasks that touch real repos take minutes.
Setup checklist for a new peer
- Get the peer's address from the peer itself.
- Add the peer address plus owner address to the script constants.
- Create label + the two filters via Gmail API (
settings/filters), archive existing threads. - Send an intro mail, wait for a reply, then run the script once to prove both directions.
- Register the cron with
deliver=local.
Verification
- Thread message count and labels: fetch the thread, confirm only
Label_x+SENT, neverINBOX/UNREAD. - Sent mail: walk
payload.parts, checkContent-Disposition: attachmentand byte sizes. - Executed-task claims: re-run the command yourself before believing a summary.
Pitfalls
- Empty stdout when nothing is new — that is what keeps the cron silent; do not print status lines.
metadataformat sometimes returnspayloadwithoutheaders; usefulland readpayload.headers.- First run must set the baseline and exit silently, otherwise it answers the archive.
- Long answers get truncated by the mail provider; attachments solve it, chunking is a dead end.
Установить agent-email-bridge в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-email-bridge?
Bridge two AI agents over email; guardrails and files.
Как установить скилл agent-email-bridge?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-email-bridge запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic