Copy library / What got built / Grok Bot
ask-grokbot: handing a local task to a Grok Bot webhook
# ask-grokbot:把本地任务交给 Grok Bot 的 webhook Source: https://github.com/berlysia/dotfiles/pull/459 Author: berlysia 这个 PR 新增命令 ask-grokbot,让本地编码代理把请求发到 Grok Bot 的 routine webhook,成功后输出回复文件的绝对路径,加 --wait 会等文件内容出现。JSON 用 jq 组装,URL 和认证优先读环境变量,否则读仓库外的配置文件;--dry-run 可在不带认证时预览载荷。测试用桩替代 curl,在 macOS 和 Ubuntu 上都通过,作者注明尚未向真实 webhook 发送过。
- What it does
- This pull request adds an ask-grokbot command so a local coding agent can send a request to a Grok Bot routine webhook; on success it prints the reply file's absolute path, and --wait waits for the file's content. JSON is built with jq, the URL and authorization come from environment variables or a config file outside the repo, and --dry-run previews the payload without credentials. Tests stub curl and pass on macOS and Ubuntu; the author notes it has not yet been sent to a real webhook.
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaNot in source
- Steps / chaptersYes
- 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.
- Verbatim source excerpt
The original post is in Japanese and is shown on the Japanese page; open the source link to read it.
berlysia · · Open original ↗ From the project README, verbatim and untranslated.
- Steps / points from the source
- install chezmoi
- sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin
- winget install twpayne.chezmoi
- if you are in PowerShell, Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope Process
- chezmoi init --apply berlysia
- ~/.local/bin will be added to $PATH
- ~/.local/.bin will be added to $PATH , and overwrite this directory with symlink
- claude-manual: used by .github/workflows/claude.yml
Verbatim from the source, untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/berlysia/dotfiles/pull/459 ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- Reads and writes your mailbox: grant read-only and draft access first, and approve before anything is sent
- Scheduled runs keep consuming usage: start at a low frequency and raise it once it is stable
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator