Copy library / Guides / Grok Bot
Letting Grok Bot know when a Codex CLI or Claude Code job has finished
# 让 Grok Bot 知道 Codex CLI / Claude Code 任务何时完成 Source: https://x.com/timz0ne/status/2121591790251729037 Author: timz0ne 作者让 Grok Bot 驱动 Codex CLI 和 Claude Code CLI 时,起初它大多不知道任务何时结束:后台 shell 不会唤醒空闲的智能体,分离运行的任务也不发信号,作者只能反复问“完成了吗?”。帖子接着讲作者的第一个修复方法。
- What it does
- When the author first had Grok Bot driving Codex CLI and Claude Code CLI, it mostly didn't know when a job finished: a background shell didn't wake an idle agent and a detached job gave no signal, so the author kept asking "has it finished?". The post then describes the first fix.
- Scenarios
- Social scheduling Code & ship
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaNot in source
- Steps / chaptersNot in source
- Verbatim prompt / configNot in source
- Results / numbersNot in source
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- In the author's words
When I first got Grok Bot driving Codex CLI and Claude Code CLI, I didn't know how it would find out a job had finished. Mostly it didn't. A background shell didn’t wake an idle agent, and a detached job gave no signal, so I kept asking "has it finished?".
The first fix was a@timz0ne · · Open on X ↗ The author's post, quoted verbatim and left untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Read the source: x.com ↗
- Turn the steps/prompts from the source into one message for your Bot
- Run it manually once, then decide the frequency
- Risks and limits
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator