Skip to content

docs: recipe for Telegram/Slack ping when an agent is waiting - #486

Open
codeaholicguy wants to merge 4 commits into
mainfrom
cursor/agent-wait-channel-ping-recipe-a2c1
Open

codeaholicguy wants to merge 4 commits into
mainfrom
cursor/agent-wait-channel-ping-recipe-a2c1

Conversation

@codeaholicguy

@codeaholicguy codeaholicguy commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Change

Adds a workflows recipe for Telegram or Slack pings when an agent enters waiting. It walks through channel connect, how to authorize Telegram (authorizedChatId) or capture a Slack DM id, a bash watcher on agent wait --until waiting --json, and outbound sends via provider HTTP APIs using ~/.ai-devkit/channels.json (there is no ai-devkit channel send). It also covers running the watcher in tmux and stopping it.

The page lives at web/content/docs/22-agent-wait-channel-ping-recipe.md (doc number 22 to avoid colliding with the Windows/WSL doc in another PR). Multi-agent orchestration links to it from Related docs.

Test plan

Ran locally (Node 24):

  • Root npm install and npm run build
  • web/ npm install and npm run build (Pagefind includes the new page)
  • ai-devkit agent wait --help and channel --help against a local CLI build
  • Pre-commit tests on an earlier commit (1541 unit tests)

Not run (needs real tokens / live agents):

  • channel connect, bridge authorize, live curl to Telegram or Slack

Risks

  • Slack DM ids are not in channels.json; users must set SLACK_NOTIFY_CHAT_ID.
  • Long summary text could hit provider message limits; the recipe is meant for short pings.
  • Until a future channel send exists, the recipe uses direct HTTP with stored credentials.

Skills and friction

  • Applied the technical-writer and humanizer pass on request (prose only; commands and scripts unchanged).
  • dev-worktree for isolated work; dropped two accidental empty ci: commits from history on this branch only.
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 24, 2026 18:21
Document channel connect, a tmux-backed watcher using agent wait --until
waiting, and outbound provider API sends using channel credentials.
Co-authored-by: Hoang Nguyen <codeaholicguy@users.noreply.github.com>
Co-authored-by: Hoang Nguyen <codeaholicguy@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/agent-wait-channel-ping-recipe-a2c1 branch from 7602541 to 8ece838 Compare November 25, 2026 11:39
Co-authored-by: Hoang Nguyen <codeaholicguy@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants