Agent mail ops
Agent Flywheel Coding Skills
npx -y skills add JordanChoo/acfs-agent-skills --skill agent-mail-opsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Diagnose and recover Agent Mail when agents report "AM is down", MCP Agent Mail is disconnected, or local configs drift away from the managed endpoint. Use when checking `agent-mail.service`, `127.0.0.1:8765`, rogue `mcp-agent-mail serve` processes, or split-brain caused by manual servers.
SKILL.md
3.2 KB, as published. Nobody here has run it
agent-mail-ops
Use this skill for Agent Mail incidents in the ACFS environment.
Contract
- Production Agent Mail is the managed user service
agent-mail.service. - The production MCP endpoint is
http://127.0.0.1:8765/mcp/. - The production mailbox is the default shared archive under
~/.mcp_agent_mail_git_mailbox_repo. - Never "fix" AM by launching
mcp-agent-mail serveoram serve-httpmanually against the production mailbox. - Never rewrite live MCP configs to a random localhost port unless the user explicitly wants an isolated sandbox.
Fast triage
Run these first:
systemctl --user status agent-mail.service --no-pager
ss -ltnp | rg '127\.0\.0\.1:8765|:8765'
curl -fsS http://127.0.0.1:8765/health
ps -ef | rg 'mcp-agent-mail serve|am serve-http' | rg -v rg
Then inspect config drift in live or backup MCP config files:
rg -n '127\.0\.0\.1:[0-9]+/(mcp|api)/' /data/projects /home/ubuntu \
-g 'settings.local.json' -g '*.mcp.json' -g '*.bak'
If the incident is isolated to one harness, or follows shared skill changes, also audit shared skill drift:
cd ~/src/acfs-agent-skills
bash scripts/audit-drift.sh
Decision rule
/healthfails and a roguemcp-agent-mail serveexists: likely split-brain from a manual server./healthis healthy but agents still complain: likely client config drift or a stale client session.scripts/audit-drift.shfails: Claude/Codex skill installation drift exists and one harness may be operating on stale instructions even if AM itself is healthy.am doctor checkwarnings immediately after recovery are secondary evidence; direct/health, listener checks, and config inspection are more authoritative.
Safe remediation order
- Do not kill processes or restart services without user approval.
- Preferred order:
- Stop the rogue manual server by notifying the owning pane/session or via explicit operator action.
- Restore live MCP configs to
http://127.0.0.1:8765/mcp/. - Restart
agent-mail.serviceonly if it remains unhealthy after the rogue owner is gone. - If only one harness still behaves incorrectly, run
bash ~/src/acfs-agent-skills/scripts/audit-drift.shand normalize shared skill drift before doing more AM surgery. - Recheck
/health, then have affected agents restart or reopen their client sessions.
Local evidence paths
Open these when you need authoritative machine-local evidence:
/home/ubuntu/.config/systemd/user/agent-mail.service/home/ubuntu/AM_NEXT_STEPS.md/data/projects/<project>/.ntm/logs/am-*.log
Anti-patterns
- Starting a second Agent Mail server on a random port.
- Pointing project-local MCP configs at that random port.
- Treating
am doctor checkalone as proof that AM is down. - Ignoring shared skill drift when only Claude or only Codex is affected.
- Editing the managed Agent Mail codebase from a consumer repo without owner approval.