Stream coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) to a Discord channel in real-time via webhook. Use when invoking coding agents and wantin...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install codecast或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install codecast⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/codecast/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- version: 4.1.0 name: codecast description: Stream coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) to a Discord channel in real-time via webhook. Use when invoking coding agents and wanting transparent, observable dev sessions — no black box. Parses Claude Code's stream-json output into clean formatted Discord messages showing tool calls, file writes, bash commands, and results with zero AI token burn. Use when asked to "stream to Discord", "relay agent output", or "make dev sessions visible". metadata: {"openclaw":{"emoji":"🎬","requires":{"anyBins":["unbuffer","python3"]}}} ---
Live-stream coding agent sessions to Discord. Zero AI tokens burned.
First-time setup: see references/setup.md for webhook creation, unbuffer install, bot token, and smoke test.
Launch with exec background:true. Background exec sessions survive agent turns and OpenClaw fires notifyOnExit automatically when the process ends.
exec background:true command:"{baseDir}/scripts/dev-relay.sh -w ~/projects/myapp -- claude -p --dangerously-skip-permissions --output-format stream-json --verbose 'Your task here'"
Note the session ID from the response — use it to monitor via process.
| Flag | Description | Default | |------|------------|---------| | -w | Working directory | Current dir | | -t | Timeout | 1800 | | -h | Hang threshold | 120 | | -n | Agent display name | Auto-detected | | -r | Rate limit (posts/60s) | 25 | | --thread | Post into a Discord thread | Off | | --skip-reads | Hide Read tool events | Off | | --review | PR review mode | — | | --parallel | Parallel tasks mode | — | | --resume | Replay session | — |
For PR review, parallel tasks, Discord bridge, and Codex structured output: see references/advanced-modes.md.
```bash echo '{"channel":"
The breadcrumb file tells the heartbeat precheck where to post results when the session completes. It auto-detects completion by checking if the PID is still alive.
That's it. When the process ends, OpenClaw's notifyOnExit fires a system event + heartbeat request. The heartbeat handler reads the result from the relay dir's stream.jsonl and posts to the invoking channel.
OpenClaw handles this natively:
tools.exec.notifyOnExit: true (default) — system event + heartbeat on process exit/tmp/dev-relay-sessions/Backup: Append this to the inner agent's prompt for an additional signal:
When completely finished, run: openclaw system event --text "Done: <brief summary>" --mode now
process poll sessionId:<id> # Check status
process log sessionId:<id> # View recent output
process kill sessionId:<id> # Stop session
| Agent | Output Mode | Status | |-------|------------|--------| | Claude Code | stream-json | Full support | | Codex | --json JSONL | Full support | | Any CLI | Raw ANSI | Basic support |
/tmp/dev-relay-sessions/.json (auto-removed on end)/tmp/dev-relay.XXXXXX/stream.jsonl (7-day auto-cleanup)process submit sessionId: data:"message" 安装 Codecast 后,可以对 AI 说这些话来触发它
Help me get started with Codecast
Explains what Codecast does, walks through the setup, and runs a quick demo based on your current project
Use Codecast to stream coding agent sessions (Claude Code, Codex, Gemini CLI, etc
Invokes Codecast with the right parameters and returns the result directly in the conversation
What can I do with Codecast in my developer & devops workflow?
Lists the top use cases for Codecast, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/codecast/ 目录(个人级,所有项目可用),或 .claude/skills/codecast/(项目级)。重启 AI 客户端后,用 /codecast 主动调用,或让 AI 根据上下文自动发现并使用。
Codecast 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Codecast 可免费安装使用。请查阅仓库了解许可证信息。
Stream coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) to a Discord channel in real-time via webhook. Use when invoking coding agents and wantin...
Codecast 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Codecast
Identifies repetitive steps in your workflow and sets up Codecast to handle them automatically