协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
monitor【开发与工程】Monitor the Telegram daemon — check if it's alive, view recent logs, find the remote control URL, and diagnose MCP server issues. Use when the user asks "is the daemon running", "check the bot", "show daemon logs", "monitor telegram", or "what's happening with the bot".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: monitor description: Monitor the Telegram daemon — check if it's alive, view recent logs, find the remote control URL, and diagnose MCP server issues. Use when the user asks "is the daemon running", "check the bot", "show daemon logs", "monitor telegram", or "what's happening with the bot". user-invocable: true allowed-tools:
Shows the health and status of the Telegram daemon at a glance.
Run these checks and present a clean summary:
ps aux | grep -E "telegram-supervisor|channels.*telegram|expect.*daemon|caffeinate.*supervisor|bun server.ts" | grep -v grep
Report:
If no processes found, report "Daemon is NOT running."
launchctl list | grep claude-telegram
Report loaded/not loaded.
tail -10 ~/.claude/channels/telegram/data/supervisor-stderr.log
Show the last few log entries — look for crashes, restarts, orphan cleanup, or errors.
cat ~/.claude/channels/telegram/data/supervisor-stdout.log | strings | grep -i "MCP server" | tail -5
Report any "MCP server needs a..." or "MCP servers fail" messages.
cat ~/.claude/channels/telegram/data/supervisor-stdout.log | strings | grep "session_" | tail -1
Extract and show the https://claude.ai/code/session_XXX URL so the user can watch the daemon live in the browser.
cat ~/.claude/channels/telegram/data/telegram.lock 2>/dev/null
Show the PID in the lock file and whether that process is still alive.
Present as a clean status dashboard:
## Telegram Daemon Status
| Component | Status | PID | Details |
|------------------|---------|-------|------------------|
| Supervisor | ✅ alive | 12345 | uptime: 2h |
| Claude bot | ✅ alive | 12346 | CPU: 0.5%, 300MB |
| MCP server | ✅ alive | 12347 | |
| Caffeinate | ✅ alive | 12348 | |
| Launchd | ✅ loaded| | |
**Remote control:** https://claude.ai/code/session_XXX
**Lock file:** PID 12346 (alive)
### Recent logs
[last 5 log entries]
logs — show last 30 lines of supervisor stderrstdout — show last 30 lines of stdout (Claude's output)restart — show the restart command for the user to runurl — just show the remote control URL