with one click
slack-alert-session-history
// Recover Slack alert root details and prior thread context from Hermes session history with a single script call when live Slack history or root-message retrieval is unavailable.
// Recover Slack alert root details and prior thread context from Hermes session history with a single script call when live Slack history or root-message retrieval is unavailable.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | slack-alert-session-history |
| description | Recover Slack alert root details and prior thread context from Hermes session history with a single script call when live Slack history or root-message retrieval is unavailable. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["slack","sessions","alerts","cloudwatch","amazon-q","thread-context","debugging"]}} |
Use this when a user asks:
This skill is for Hermes session archive inspection, not live Slack history.
When Hermes handled a Slack thread, the useful root context often landed in two places:
~/.hermes/sessions/sessions.json
session_id lookup table~/.hermes/sessions/session_<session_id>.json
[Thread context โ prior messages in this thread ...]So the fastest path is:
session_idsession_idRun one command:
python ~/.hermes/skills/software-development/slack-alert-session-history/scripts/inspect_slack_alert_session_history.py \
--session-id 20260421_095149_7e990f80
channel_id and thread_tspython ~/.hermes/skills/software-development/slack-alert-session-history/scripts/inspect_slack_alert_session_history.py \
--channel-id C04KT7EH5RQ \
--thread-ts 1776764135.019959
First list candidate sessions:
python ~/.hermes/skills/software-development/slack-alert-session-history/scripts/inspect_slack_alert_session_history.py \
--channel-id C04KT7EH5RQ
Then rerun with the desired --thread-ts or --session-id.
When the user asks โ๊ธฐ์กด์ ๊ณ ๋ฏผํด ๋ณธ ์ ์๋์ง Slack ๊ฐ์ ๊ณณ์์ ์ฐพ์๋ดโ and you do not have live Slack search context/channel, search Hermes' Slack/session archives across profiles before concluding. session_search may only cover the current profile/recent indexed subset; fall back to scanning ~/.hermes/profiles/*/sessions/session_*.json.
Use a small script under ~/.hermes or execute_code; avoid writing outside ~/.hermes. Search only user/assistant messages and skip tool dumps / context compaction blocks, because they create many false positives.
Reusable pattern:
import json, re
from pathlib import Path
root = Path('/home/ubuntu/.hermes/profiles')
rx = re.compile(r'perRequestTimeout|Service Connect|internal-api-service|SSE|heartbeat|ALB idle', re.I)
for p in root.glob('*/sessions/session_*.json'):
data = json.loads(p.read_text(errors='ignore'))
hits = []
for m in data.get('messages', []):
if m.get('role') not in ('user', 'assistant'):
continue
c = m.get('content') or ''
if not isinstance(c, str) or 'CONTEXT COMPACTION' in c:
continue
if rx.search(c):
hits.append(re.sub(r'\s+', ' ', c)[:700])
if hits:
print(p, hits[:2])
In the final answer, distinguish:
If a session drifted into other topics, filter findings by keyword:
python ~/.hermes/skills/software-development/slack-alert-session-history/scripts/inspect_slack_alert_session_history.py \
--channel-id C04KT7EH5RQ \
--thread-ts 1776764135.019959 \
--query CPUUtilization
Other useful queries:
CloudWatchwriter์ฟผ๋ฆฌAmazon Q560ac4c54db05db5bccc54788da901c5session_id, created_at, updated_at, channel_id, thread_ts)Without the script, the workflow is usually:
sessions.jsonThis skill compresses that into one command.
--query to isolate the alert-related parts.session_search or the script finds nothing, check whether another Hermes profile handled the thread. For cross-profile archive inspection, see references/cross-profile-session-archive-inspection.md.--channel-id + --thread-ts if you have them.Thread context block first.Assistant findings section.--query.You have the right session if:
thread_ts matches the Slack thread you expectslack-thread-root-retrieval โ for live Slack root-message retrieval via APIhermes-slack-thread-context-debugging โ when Hermes failed to ingest the root properly