360 Secure SkillHub
360 安全技能中心

Discord Activity Monitor

用 Node.js 脚本实时读取 OpenClaw 与 Claude Code 会话 JSONL 文件,解析任务描述与最终回复,向 Discord 频道发送开始、进行中、完成和停滞提醒,可选装为 macOS LaunchAgent 后台运行。

jakzilla
jakzilla
热度 16.03
最近更新 2026-03-15 19:12:00
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add discord-activity-monitor
Metadata
name
discord-activity-monitor
version
1.0.0
description
Posts live OpenClaw agent activity to a Discord channel. Presence and status feed — shows what agents are working on, heartbeat updates while active, completion summaries, and stall warnings. Reads directly from OpenClaw session files and Claude Code session files. No ClawView or status server required.
author
jakzilla
homepage
https://clawhub.com
metadata
{"openclaw":{"emoji":"📡","requires":{"bins":["node"],"env":["DISCORD_BOT_TOKEN","DISCORD_CHANNEL_ID"]}}}

Discord Activity Monitor

A presence and status feed for OpenClaw agents, posted to a Discord channel. Tails agent session JSONL files in real time — no ClawView, no status server, no external dependencies beyond Node.js.

What it posts

  • Started — when an agent begins a task, with the task description pulled from the initial prompt
  • Working — heartbeat every 30s while active, showing what the agent is currently focused on in plain English (from assistant text responses, not tool names)
  • Done — completion summary pulled from the agent's final response
  • Stalled — warning if an agent goes quiet for 2+ minutes without a clean done signal

Tool calls are never surfaced directly. The feed operates at the task level, not the tool level.

Supports

  • All OpenClaw agents (main, dev, research, pa, marketing, product, intake, phone)
  • Claude Code sessions (all projects, shows project name in brackets)

Setup

1. Install

clawhub install discord-activity-monitor

2. Configure

Set env vars in your LaunchAgent plist or shell:

DISCORD_BOT_TOKEN=your-bot-token
DISCORD_CHANNEL_ID=your-channel-id
OPENCLAW_AGENTS_DIR=~/.openclaw/agents  # default

3. Run

node scripts/activity-monitor.js

Or install as a macOS LaunchAgent using the provided plist in references/.

Log

tail -f /tmp/openclaw/activity-monitor.log