ohade

Amq Keepalive — Communication skill for Claude Code

Communication community

Standalone, distributable companion to amq: keeps a notification waker alive per active agent session across reboot/sleep/crash.

How to install Amq Keepalive

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ohade/amq-keepalive and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Amq Keepalive does

Standalone, distributable companion to amq: keeps a notification waker alive per active agent session across reboot/sleep/crash.

Alternatives in Communication

  • Notifications Init — Alias for init — Download notification binary 806 ★
  • Claude Skill Code Cleanup — Claude Code skill: auto-scan SKILL.md / prompt / codebase for duplicates, naming drift, modularizable blocks 75 ★
  • Mingle — Bring your agent companion into the chat apps you already use 55 ★

README

amq-keepalive

`amq-keepalive` is a standalone helper for keeping AMQ wake delivery attached to the terminal or adapter a user explicitly registered.

M0 is intentionally small:

  • one static Go binary;
  • a private registry under ~/.amq-keepalive/;
  • explicit attach, reattach, supervise, inject, doctor, gc, retire-session, and forget commands;
  • a fake file adapter for deterministic tests;
  • supervisor logic that only talks to AMQ through the public amq CLI.

It does not parse AMQ mailbox, lock, presence, or target files. AMQ state is established through target-aware `amq wake` calls and discovered through `amq env --json`.

Current Scope

The implemented surface now includes the M0 registry/supervisor proof and the first M1 macOS pieces:

  • ghostty adapter using Ghostty's native macOS AppleScript interface;
  • cmux adapter targeting the exact CMUX_SURFACE_ID through cmux's JSON RPC;
  • install-launchd / uninstall for a user LaunchAgent supervisor;
  • install-hook for registering the SessionStart reattach hook in Claude Code and/or Codex.

The Ghostty adapter target contract is `ghostty:terminal:`. `attach --adapter ghostty` discovers the focused terminal in the selected tab of the front Ghostty window when `--target` is omitted. Probe and inject fail closed unless that id resolves to exactly one Ghostty terminal. Injection uses Ghostty's native `input text` and `send key "enter"` AppleScript commands; it does not use window titles, System Events, focus stealing, or the clipboard. Trailing CR/LF characters are trimmed before the explicit Enter key is sent, so newline-ended AMQ payloads do not double-submit.

Old title targets are intentionally rejected. Re-run `reattach --adapter ghostty` from the current session to register a fresh terminal-id target.

The cmux adapter target contract is `cmux:surface:`. When `--target` is omitted it reads the exact UUID from `CMUX_SURFACE_ID`; short refs such as `surface:2` are rej