[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVR0HWANBESW3WSF811S9B":3,"skill-same:01M7AVR0HWANBESW3WSF811S9B":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M7AVR0HWANBESW3WSF811S9B","hermes-telegram-remote-control",null,"Use when controlling Hermes from Telegram groups.","swcstudiospace\u002Faimeecodes","swcstudiospace","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192491759?v=4","01M7AVGY9HD2GXDY0H77EBGRGQ","@swcstudio'(space)","01M7AVGYAKRDHFDMPG97W4D5M2",1,"MIT","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hermes-telegram-remote-control\ndescription: \"Use when controlling Hermes from Telegram groups.\"\nversion: 1.3.1\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [linux, macos]\nmetadata:\n  hermes:\n    tags: [hermes, telegram, gateway, remote-control, hooks, messaging, stop-notify, tui-capture]\n    related_skills: [hermes-agent, receive-openclaw-handoff]\n---\n\n# Hermes Telegram remote control\n\nOperate Hermes as a **split Telegram surface**: control group for conversation, **finals channel** for clean completion archives. When the agent **finishes real work**, post a **real `hermes --tui` terminal capture** (tool trees, skills, codeblocks) to the finals channel, plus a short status in the control group so operators can reply. Suppress empty\u002Faborted noise. Keep OpenClaw on separate tokens.\n\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002Ftelegram  \n**Hooks:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fhooks\n\n## User preferences (hard rules for this operator)\n\n1. **Control group = conversation only** — continue via reply\u002F@mention. Do not spam full completion photos into the group.\n2. **Finals channel = clean archive of what was done** — full real-TUI screenshot (+ caption). This host: Aimée Codes `-1003989836403` (`TELEGRAM_FINALS_CHANNEL`).\n3. **One completion card per meaningful stop** — never three-message media spam; never empty\u002Faborted noise; never subagent cards (parent turn cards).\n4. **Real TUI capture preferred** — run `hermes --tui --resume \u003Csession>` under Xvfb and screenshot the terminal (scroll + stitch). Synthetic You\u002FHermes bubble PNGs are **fallback only**. Operator rejected bubble mockups as “TUI view not working” when they lacked tool\u002Fskill\u002Fcodeblock chrome.\n5. **Never CLI\u002Fbackend tool-stdout dumps** as the stop photo.\n6. **Notify real work stops only**: completed, real interrupt mid-work, failed\u002Ferror, budget — always with a human **Why** line. Skip ghost sessions, post-completion TUI finalize, subagents.\n7. **Single notify path** — plugin `stop-notify` only. Shell hook stays pure `{}` no-op.\n8. Continue via **reply in the control group** or `@HermesHandoverBot` (not the finals channel).\n\n## When to use\n\n- User wants to “program from Telegram” \u002F phone control of Hermes\n- Multi-bot group (Hermes + OpenClaw) needs silent-unless-mentioned behavior\n- Need automatic updates when agents stop + why + **visual TUI evidence**\n- Dual-channel finals archive vs conversation group\n- Home channel \u002F finals channel \u002F group allowlist \u002F require_mention tuning\n- Debugging missing wrap-ups \u002F shell hook JSON \u002F plugin load \u002F blank TUI captures\n\n## Architecture (preferred)\n\n| Surface | Role |\n|--------|------|\n| **Control supergroup** | Conversation — commands, streaming, short stop status, replies |\n| **Finals \u002F archive channel** | Clean completion archive — real TUI screenshot + caption |\n| **@Hermes bot** | One token, one gateway; must be **admin** on finals channel |\n| **Other bots** | Separate tokens; `exclusive_bot_mentions: true` |\n\n```text\n@Hermes \u003Ctask>  →  progress in control group (if Telegram-origin)\n                →  agent stops (meaningful work only)\n                →  REAL hermes --tui resume + Page_Up scroll-stitch PNG\n                →  photo\u002Fdocument → finals channel\n                →  short text → control group\n                →  user replies in control group \u002F @Hermes\n                →  same session continues\n```\n\n## Setup checklist\n\n### 1. BotFather \u002F group \u002F channel\n\n1. Bot can join groups; **Group Privacy OFF** *or* bot is **admin**.\n2. After privacy changes: **remove + re-add** bot.\n3. Confirm `getMe` → `can_read_all_group_messages: true` when privacy is off.\n4. Group chat ID is negative (`-100…`). Finals channel: bot is **administrator** with `can_post_messages`.\n5. Invite links rotate — resolve chat_id via `getChat` \u002F `linked_chat_id`, not by guessing.\n\n### 2. Secrets (`.env` only)\n\n```bash\nTELEGRAM_BOT_TOKEN=...\nTELEGRAM_HOME_CHANNEL=-100...              # control group\nTELEGRAM_HOME_CHANNEL_NAME=\"Group Title\"\nTELEGRAM_CHAT_ID=-100...\nTELEGRAM_GROUP_ALLOWED_CHATS=-100...\nTELEGRAM_FINALS_CHANNEL=-100...            # archive (this host Aimée Codes: -1003989836403)\nTELEGRAM_REQUIRE_MENTION=true\n# TELEGRAM_ALLOWED_USERS=\u003Cnumeric user id>\n```\n\nNever put tokens in `config.yaml` or chat.\n\n### 3. Config (`config.yaml`)\n\n```yaml\ngroup_sessions_per_user: true\nstreaming:\n  enabled: true\n\nplatforms:\n  telegram:\n    enabled: true\n    home_channel:\n      platform: telegram\n      chat_id: \"-100...\"\n      name: \"Group Title\"\n    require_mention: true\n    exclusive_bot_mentions: true\n\nhooks_auto_accept: true\nhooks:\n  on_session_end:\n    - command: \"$HERMES_HOME\u002Fagent-hooks\u002Fon-session-end-telegram.sh\"\n      timeout: 120\n\nplugins:\n  enabled:\n    - stop-notify   # required for TUI — shell hooks alone are not enough\n```\n\n### 4. Stop-notify stack (single path)\n\n| Piece | Role |\n|-------|------|\n| **Plugin** `$HERMES_HOME\u002Fplugins\u002Fstop-notify\u002F` | Only notify path; `on_session_end` only |\n| **Shell hook** `on-session-end-telegram.sh` | No-op `{}` only |\n| **`capture_real_tui.py`** | Preferred stop image: Xvfb + xterm + real TUI |\n| **`render_tui_shot.py`** | Synthetic bubbles — fallback only |\n| **`telegram_task_wrapup.py`** | Skip\u002Fdedup + dual delivery |\n| **Allowlist** | shell-hooks-allowlist.json |\n\nHost packages for real capture: `xvfb`, `xterm`, `xdotool`, ImageMagick (`import`\u002F`convert`). Details: `references\u002Freal-tui-capture.md`.\n\nEnable: `hermes plugins enable stop-notify`  \nHealth: `hermes hooks doctor` → valid JSON.\n\n### 5. Reload after wrap-up \u002F plugin code changes\n\n**Stale-import failure mode (2026-08):** long-lived gateway + TUI keep the first\n`import telegram_task_wrapup` forever. Disk already had dual-delivery + real-TUI\ncapture, but live stops still posted **synthetic bubbles to the control group\nonly** — no Aimée Codes, no real TUI. Operator: “TUI Output not displayed \u002F\nAimée Codes not updated.”\n\n**Required plugin pattern** (`stop-notify\u002F__init__.py`):\n\n```python\nimport importlib, sys\ndef _load_wrapup():\n    name = \"telegram_task_wrapup\"\n    if name in sys.modules:\n        return importlib.reload(sys.modules[name])\n    return importlib.import_module(name)\n```\n\nLog `capture_mode`, `target`, `control_target`, `results` on each fire.\n\n**Process reload** (the plugin file itself is also cached until process restart):\n\n```bash\n# NEVER from inside a gateway agent turn (tooling blocks it)\nbash $HERMES_HOME\u002Fscripts\u002Freload-stop-notify.sh\n# = rm pycache + systemctl --user restart hermes-gateway.service\n# Then reopen every open hermes --tui tab\n```\n\nIf the agent cannot restart mid-turn: flag\n`$HERMES_HOME\u002Fcache\u002Ftelegram-wrapup\u002FNEED_PROCESS_RELOAD` and tell the operator\nto run the script from SSH. One-off recovery: force-repost with a **clean**\nPython process (not the gateway interpreter).\n\n## Interaction rules\n\n| User action | Expected |\n|-------------|----------|\n| `@Hermes …` | New or continued turn |\n| Reply in control group | Continues session |\n| `\u002Fstop@Hermes` | Abort + stop notification if real content |\n| `\u002Fnew@Hermes` | Fresh session |\n| `@OpenClaw …` only | Hermes silent |\n\n## Stop card format\n\n### Finals channel (media)\n\n```text\n✅ Agent stopped — task completed\n📌 \u003Ctitle from current user prompt>\nWhy: \u003Chuman reason>\nOrigin: tui|cli|telegram · \u003Csession_tail> · shot:real_tui|synthetic\n\n\u003Cshort preview>\n\n↪️ Continue in the control group (@HermesHandoverBot).\n```\n\nImage: real `hermes --tui` capture when possible (tall stitch → `sendDocument` if height ≳ 8500px). Fallback synthetic: full final answer (~14k chars), tools as meta only.\n\n### Control group (short text)\n\n```text\n✅ Agent stopped — task completed\n📌 \u003Ctitle>\nWhy: …\nOrigin: …\n\n📷 Full TUI capture posted to Aimée Codes (finals channel).\n↪️ Reply here to continue.\n```\n\n**Title:** prefer current user prompt first line — not sticky session `display_name`.\n\n### Why mapping\n\n| Internal signal | Status | Card? |\n|-----------------|--------|-------|\n| `text_response(...)` | completed | Yes |\n| interrupt \u002F `\u002Fstop` mid-work | stopped | Yes if content |\n| max_iterations \u002F budget | budget | Yes |\n| error | failed | Yes |\n| `subagent_*` | — | **No** |\n| empty ghost \u002F post-complete finalize | stopped | **No** |\n\n## Automatic finish pipeline\n\nSee `references\u002Fwrapup-pipeline.md`.\n\n1. `on_session_end` → plugin → `telegram_task_wrapup.run`\n2. Prefer `capture_real_tui.py` (real terminal)\n3. Fallback `render_tui_shot.py`\n4. Media → finals; short text → control\n5. If finals send fails, media falls back to control\n\n**Shell hook stdout** must stay pure `{}`. Dual-path (shell + plugin both calling wrap-up) was the 2026-08 spam root cause.\n\n**Dedup:** turn fingerprint 120s; session-stop cooldown 300s after successful post; skip empty_stop \u002F subagent.\n\n## Multi-bot \u002F OpenClaw\n\n- One bot token → one polling gateway.\n- Hermes coding → Hermes bot only.\n- OpenClaw handoffs → `receive-openclaw-handoff`; do not conflate.\n- `require_mention` + `exclusive_bot_mentions` for multi-bot groups.\n\n## Pitfalls\n\n1. **Dual path spam** — shell hook must remain pure `printf '{}\\n'`; plugin alone calls wrap-up.\n2. **Empty\u002Faborted spam** — skip `empty_stop`; do not “always notify empty stops.”\n3. **TUI finalize after completed turn** — `session_stop_cooldown` 300s.\n4. **Non-atomic dedup** — use `O_CREAT|O_EXCL` locks.\n5. **Subagent spam** — no `subagent_stop` hook.\n6. **Stale in-memory wrap-up** — plain `import telegram_task_wrapup` is sticky\n   for the life of gateway\u002FTUI. Use `importlib.reload` every fire **and** restart\n   gateway + TUIs after editing `stop-notify` itself. Symptom: live\n   `wrapup.jsonl` lacks `capture_mode`\u002F`finals` while forced Python runs have them.\n7. **Shell hook stdout pollution** — non-JSON → silent notification death.\n8. **TUI without plugin** — plugin required for TUI stops.\n9. **Gateway restart from inside gateway** — blocked.\n10. **Privacy cache** — privacy change needs kick\u002Frejoin.\n11. **Polling conflict** — second process on same token.\n12. **Redirecting TUI stdout to a log** — Ink paints the log; xterm blank. Capture: `2>>log` only.\n13. **Bubble mockups sold as “the TUI”** — operator rejected; real capture preferred.\n14. **Photo spam in control group** — control is conversation-only.\n15. **Sticky session title** — title from current user prompt.\n16. **Truncated synthetic answers** — assistant body ~14k (1.8k caused `… [truncated]`).\n17. **Invite link ≠ chat_id** — resolve IDs; bot must be channel admin.\n18. **Truncated hook fields** — rebuild from `state.db` via `session_id`.\n\n## Verification matrix\n\n| Check | Pass |\n|-------|------|\n| `hermes hooks doctor` | valid JSON |\n| `hermes plugins list` | stop-notify, `on_session_end` only |\n| Shell hook stdout | exactly `{}` |\n| Turn completes | Media on **finals** + short text on **control** |\n| Ghost open\u002Fclose | No card |\n| Real capture probe | Multi-hundred-KB+ PNG, not 1–2KB blank |\n| Reply in control | Continues session |\n| Capture fail | `shot:synthetic` still posts |\n\n## Support files\n\n- `references\u002Fwrapup-pipeline.md` — triggers, dual delivery, dedup\n- `references\u002Fdeployment-notes.md` — this host’s IDs and paths\n- `references\u002Freal-tui-capture.md` — Xvfb\u002Fxterm recipe, Ink stdout pitfall, stitch limits\n- Host helper: `$HERMES_HOME\u002Fscripts\u002Freload-stop-notify.sh` — gateway reload outside agent turn\n\n## Related\n\n- Bundled `hermes-agent` for general CLI\u002Fgateway (reference only)\n- `receive-openclaw-handoff` for OpenClaw → Hermes handoff lane\n","# Hermes Telegram remote control\n\nOperate Hermes as a **split Telegram surface**: control group for conversation, **finals channel** for clean completion archives. When the agent **finishes real work**, post a **real `hermes --tui` terminal capture** (tool trees, skills, codeblocks) to the finals channel, plus a short status in the control group so operators can reply. Suppress empty\u002Faborted noise. Keep OpenClaw on separate tokens.\n\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002Ftelegram  \n**Hooks:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fhooks\n\n## User preferences (hard rules for this operator)\n\n1. **Control group = conversation only** — continue via reply\u002F@mention. Do not spam full completion photos into the group.\n2. **Finals channel = clean archive of what was done** — full real-TUI screenshot (+ caption). This host: Aimée Codes `-1003989836403` (`TELEGRAM_FINALS_CHANNEL`).\n3. **One completion card per meaningful stop** — never three-message media spam; never empty\u002Faborted noise; never subagent cards (parent turn cards).\n4. **Real TUI capture preferred** — run `hermes --tui --resume \u003Csession>` under Xvfb and screenshot the terminal (scroll + stitch). Synthetic You\u002FHermes bubble PNGs are **fallback only**. Operator rejected bubble mockups as “TUI view not working” when they lacked tool\u002Fskill\u002Fcodeblock chrome.\n5. **Never CLI\u002Fbackend tool-stdout dumps** as the stop photo.\n6. **Notify real work stops only**: completed, real interrupt mid-work, failed\u002Ferror, budget — always with a human **Why** line. Skip ghost sessions, post-completion TUI finalize, subagents.\n7. **Single notify path** — plugin `stop-notify` only. Shell hook stays pure `{}` no-op.\n8. Continue via **reply in the control group** or `@HermesHandoverBot` (not the finals channel).\n\n## When to use\n\n- User wants to “program from Telegram” \u002F phone control of Hermes\n- Multi-bot group (Hermes + OpenClaw) needs silent-unless-mentioned behavior\n- Need automatic updates when agents stop + why + **visual TUI evidence**\n- Dual-channel finals archive vs conversation group\n- Home channel \u002F finals channel \u002F group allowlist \u002F require_mention tuning\n- Debugging missing wrap-ups \u002F shell hook JSON \u002F plugin load \u002F blank TUI captures\n\n## Architecture (preferred)\n\n| Surface | Role |\n|--------|------|\n| **Control supergroup** | Conversation — commands, streaming, short stop status, replies |\n| **Finals \u002F archive channel** | Clean completion archive — real TUI screenshot + caption |\n| **@Hermes bot** | One token, one gateway; must be **admin** on finals channel |\n| **Other bots** | Separate tokens; `exclusive_bot_mentions: true` |\n\n```text\n@Hermes \u003Ctask>  →  progress in control group (if Telegram-origin)\n                →  agent stops (meaningful work only)\n                →  REAL hermes --tui resume + Page_Up scroll-stitch PNG\n                →  photo\u002Fdocument → finals channel\n                →  short text → control group\n                →  user replies in control group \u002F @Hermes\n                →  same session continues\n```\n\n## Setup checklist\n\n### 1. BotFather \u002F group \u002F channel\n\n1. Bot can join groups; **Group Privacy OFF** *or* bot is **admin**.\n2. After privacy changes: **remove + re-add** bot.\n3. Confirm `getMe` → `can_read_all_group_messages: true` when privacy is off.\n4. Group chat ID is negative (`-100…`). Finals channel: bot is **administrator** with `can_post_messages`.\n5. Invite links rotate — resolve chat_id via `getChat` \u002F `linked_chat_id`, not by guessing.\n\n### 2. Secrets (`.env` only)\n\n```bash\nTELEGRAM_BOT_TOKEN=...\nTELEGRAM_HOME_CHANNEL=-100...              # control group\nTELEGRAM_HOME_CHANNEL_NAME=\"Group Title\"\nTELEGRAM_CHAT_ID=-100...\nTELEGRAM_GROUP_ALLOWED_CHATS=-100...\nTELEGRAM_FINALS_CHANNEL=-100...            # archive (this host Aimée Codes: -1003989836403)\nTELEGRAM_REQUIRE_MENTION=true\n# TELEGRAM_ALLOWED_USERS=\u003Cnumeric user id>\n```\n\nNever put tokens in `config.yaml` or chat.\n\n### 3. Config (`config.yaml`)\n\n```yaml\ngroup_sessions_per_user: true\nstreaming:\n  enabled: true\n\nplatforms:\n  telegram:\n    enabled: true\n    home_channel:\n      platform: telegram\n      chat_id: \"-100...\"\n      name: \"Group Title\"\n    require_mention: true\n    exclusive_bot_mentions: true\n\nhooks_auto_accept: true\nhooks:\n  on_session_end:\n    - command: \"$HERMES_HOME\u002Fagent-hooks\u002Fon-session-end-telegram.sh\"\n      timeout: 120\n\nplugins:\n  enabled:\n    - stop-notify   # required for TUI — shell hooks alone are not enough\n```\n\n### 4. Stop-notify stack (single path)\n\n| Piece | Role |\n|-------|------|\n| **Plugin** `$HERMES_HOME\u002Fplugins\u002Fstop-notify\u002F` | Only notify path; `on_session_end` only |\n| **Shell hook** `on-session-end-telegram.sh` | No-op `{}` only |\n| **`capture_real_tui.py`** | Preferred stop image: Xvfb + xterm + real TUI |\n| **`render_tui_shot.py`** | Synthetic bubbles — fallback only |\n| **`telegram_task_wrapup.py`** | Skip\u002Fdedup + dual delivery |\n| **Allowlist** | shell-hooks-allowlist.json |\n\nHost packages for real capture: `xvfb`, `xterm`, `xdotool`, ImageMagick (`import`\u002F`convert`). Details: `references\u002Freal-tui-capture.md`.\n\nEnable: `hermes plugins enable stop-notify`  \nHealth: `hermes hooks doctor` → valid JSON.\n\n### 5. Reload after wrap-up \u002F plugin code changes\n\n**Stale-import failure mode (2026-08):** long-lived gateway + TUI keep the first\n`import telegram_task_wrapup` forever. Disk already had dual-delivery + real-TUI\ncapture, but live stops still posted **synthetic bubbles to the control group\nonly** — no Aimée Codes, no real TUI. Operator: “TUI Output not displayed \u002F\nAimée Codes not updated.”\n\n**Required plugin pattern** (`stop-notify\u002F__init__.py`):\n\n```python\nimport importlib, sys\ndef _load_wrapup():\n    name = \"telegram_task_wrapup\"\n    if name in sys.modules:\n        return importlib.reload(sys.modules[name])\n    return importlib.import_module(name)\n```\n\nLog `capture_mode`, `target`, `control_target`, `results` on each fire.\n\n**Process reload** (the plugin file itself is also cached until process restart):\n\n```bash\n# NEVER from inside a gateway agent turn (tooling blocks it)\nbash $HERMES_HOME\u002Fscripts\u002Freload-stop-notify.sh\n# = rm pycache + systemctl --user restart hermes-gateway.service\n# Then reopen every open hermes --tui tab\n```\n\nIf the agent cannot restart mid-turn: flag\n`$HERMES_HOME\u002Fcache\u002Ftelegram-wrapup\u002FNEED_PROCESS_RELOAD` and tell the operator\nto run the script from SSH. One-off recovery: force-repost with a **clean**\nPython process (not the gateway interpreter).\n\n## Interaction rules\n\n| User action | Expected |\n|-------------|----------|\n| `@Hermes …` | New or continued turn |\n| Reply in control group | Continues session |\n| `\u002Fstop@Hermes` | Abort + stop notification if real content |\n| `\u002Fnew@Hermes` | Fresh session |\n| `@OpenClaw …` only | Hermes silent |\n\n## Stop card format\n\n### Finals channel (media)\n\n```text\n✅ Agent stopped — task completed\n📌 \u003Ctitle from current user prompt>\nWhy: \u003Chuman reason>\nOrigin: tui|cli|telegram · \u003Csession_tail> · shot:real_tui|synthetic\n\n\u003Cshort preview>\n\n↪️ Continue in the control group (@HermesHandoverBot).\n```\n\nImage: real `hermes --tui` capture when possible (tall stitch → `sendDocument` if height ≳ 8500px). Fallback synthetic: full final answer (~14k chars), tools as meta only.\n\n### Control group (short text)\n\n```text\n✅ Agent stopped — task completed\n📌 \u003Ctitle>\nWhy: …\nOrigin: …\n\n📷 Full TUI capture posted to Aimée Codes (finals channel).\n↪️ Reply here to continue.\n```\n\n**Title:** prefer current user prompt first line — not sticky session `display_name`.\n\n### Why mapping\n\n| Internal signal | Status | Card? |\n|-----------------|--------|-------|\n| `text_response(...)` | completed | Yes |\n| interrupt \u002F `\u002Fstop` mid-work | stopped | Yes if content |\n| max_iterations \u002F budget | budget | Yes |\n| error | failed | Yes |\n| `subagent_*` | — | **No** |\n| empty ghost \u002F post-complete finalize | stopped | **No** |\n\n## Automatic finish pipeline\n\nSee `references\u002Fwrapup-pipeline.md`.\n\n1. `on_session_end` → plugin → `telegram_task_wrapup.run`\n2. Prefer `capture_real_tui.py` (real terminal)\n3. Fallback `render_tui_shot.py`\n4. Media → finals; short text → control\n5. If finals send fails, media falls back to control\n\n**Shell hook stdout** must stay pure `{}`. Dual-path (shell + plugin both calling wrap-up) was the 2026-08 spam root cause.\n\n**Dedup:** turn fingerprint 120s; session-stop cooldown 300s after successful post; skip empty_stop \u002F subagent.\n\n## Multi-bot \u002F OpenClaw\n\n- One bot token → one polling gateway.\n- Hermes coding → Hermes bot only.\n- OpenClaw handoffs → `receive-openclaw-handoff`; do not conflate.\n- `require_mention` + `exclusive_bot_mentions` for multi-bot groups.\n\n## Pitfalls\n\n1. **Dual path spam** — shell hook must remain pure `printf '{}\\n'`; plugin alone calls wrap-up.\n2. **Empty\u002Faborted spam** — skip `empty_stop`; do not “always notify empty stops.”\n3. **TUI finalize after completed turn** — `session_stop_cooldown` 300s.\n4. **Non-atomic dedup** — use `O_CREAT|O_EXCL` locks.\n5. **Subagent spam** — no `subagent_stop` hook.\n6. **Stale in-memory wrap-up** — plain `import telegram_task_wrapup` is sticky\n   for the life of gateway\u002FTUI. Use `importlib.reload` every fire **and** restart\n   gateway + TUIs after editing `stop-notify` itself. Symptom: live\n   `wrapup.jsonl` lacks `capture_mode`\u002F`finals` while forced Python runs have them.\n7. **Shell hook stdout pollution** — non-JSON → silent notification death.\n8. **TUI without plugin** — plugin required for TUI stops.\n9. **Gateway restart from inside gateway** — blocked.\n10. **Privacy cache** — privacy change needs kick\u002Frejoin.\n11. **Polling conflict** — second process on same token.\n12. **Redirecting TUI stdout to a log** — Ink paints the log; xterm blank. Capture: `2>>log` only.\n13. **Bubble mockups sold as “the TUI”** — operator rejected; real capture preferred.\n14. **Photo spam in control group** — control is conversation-only.\n15. **Sticky session title** — title from current user prompt.\n16. **Truncated synthetic answers** — assistant body ~14k (1.8k caused `… [truncated]`).\n17. **Invite link ≠ chat_id** — resolve IDs; bot must be channel admin.\n18. **Truncated hook fields** — rebuild from `state.db` via `session_id`.\n\n## Verification matrix\n\n| Check | Pass |\n|-------|------|\n| `hermes hooks doctor` | valid JSON |\n| `hermes plugins list` | stop-notify, `on_session_end` only |\n| Shell hook stdout | exactly `{}` |\n| Turn completes | Media on **finals** + short text on **control** |\n| Ghost open\u002Fclose | No card |\n| Real capture probe | Multi-hundred-KB+ PNG, not 1–2KB blank |\n| Reply in control | Continues session |\n| Capture fail | `shot:synthetic` still posts |\n\n## Support files\n\n- `references\u002Fwrapup-pipeline.md` — triggers, dual delivery, dedup\n- `references\u002Fdeployment-notes.md` — this host’s IDs and paths\n- `references\u002Freal-tui-capture.md` — Xvfb\u002Fxterm recipe, Ink stdout pitfall, stitch limits\n- Host helper: `$HERMES_HOME\u002Fscripts\u002Freload-stop-notify.sh` — gateway reload outside agent turn\n\n## Related\n\n- Bundled `hermes-agent` for general CLI\u002Fgateway (reference only)\n- `receive-openclaw-handoff` for OpenClaw → Hermes handoff lane\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":40,"description":7},"Hermes Agent","1.3.1",{"hermes":27},{"tags":28,"related_skills":37},[29,30,31,32,33,34,35,36],"hermes","telegram","gateway","remote-control","hooks","messaging","stop-notify","tui-capture",[38,39],"hermes-agent","receive-openclaw-handoff",[41,42],"linux","macos","main","1532f6e28b7d7cc5ae38dfe70c4e886157e8f01e",".aimee\u002Fskills\u002Fhermes-telegram-remote-control",0,"https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes","https:\u002F\u002Fgithub.com\u002Fswcstudiospace","https:\u002F\u002Fwww.swcstudio.space\u002F","APAC's premier WEB3.ARL Studio for programming advanced best-in-class innovations'","2026-11-11 21:45:42",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add swcstudiospace\u002Faimeecodes --skill hermes-telegram-remote-control",{"tool":58,"command":59},"bunx","bunx skills add swcstudiospace\u002Faimeecodes --skill hermes-telegram-remote-control",{"tool":61,"command":62},"pnpm","pnpm dlx skills add swcstudiospace\u002Faimeecodes --skill hermes-telegram-remote-control","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002FSKILL.md",true,[66,72,76,80],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fdeployment-notes.md","REFERENCE","参考文档",3795,"https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002Freferences\u002Fdeployment-notes.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Freal-tui-capture.md",2112,"https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002Freferences\u002Freal-tui-capture.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fstale-gateway-finals-path.md",2024,"https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002Freferences\u002Fstale-gateway-finals-path.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fwrapup-pipeline.md",5956,"https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fhermes-telegram-remote-control\u002Freferences\u002Fwrapup-pipeline.md",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7AW01SRKZDGAMSENA2KKV1C","xurl","X\u002FTwitter via xurl CLI: raw post search, posting, DM, media.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7AVZKD3FMV3ZPX50DY7XZZR","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fweights-and-biases\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7AVZEY5AS893YVWYY4DFQKK","touchdesigner-mcp","Control TouchDesigner via twozero MCP.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7AVZ4K45X76C09FQQMC9GH0","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7AVZ029D94C9HNET2TYTHNZ","technical-docs-corpora","Use when bulk-crawling public tech docs into agent skills.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Ftechnical-docs-corpora\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7AVYTXSJWYYD7GZMTTR9BC0","teams-meeting-pipeline","Teams meeting summaries, job replay, Graph subscriptions.","https:\u002F\u002Fgithub.com\u002Fswcstudiospace\u002Faimeecodes\u002Fblob\u002Fmain\u002F.aimee\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[]]