Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
assistant-burst-summary-hook logo

assistant-burst-summary-hook

EthanSK/assistant-burst-summary-hook

Otheropenclawby EthanSK

Summary

OpenClaw plugin exposing 1 skill.

Install to Claude Code

openclaw plugin add EthanSK/assistant-burst-summary-hook

Run in Claude Code. Add the marketplace first with /plugin marketplace add EthanSK/assistant-burst-summary-hook if you haven't already.

README.md

assistant-burst-summary-hook

Cross-harness hooks for Ethan-style Telegram voice workflows.

After a voice note, if the assistant sends 3+ Telegram messages and then goes quiet for 5 minutes, this package sends one Telegram blockquote summary of that burst.

It includes:

  • a shared deterministic burst-summary state machine,
  • an OpenClaw plugin using message_received / message_sending / message_sent,
  • a Claude Code plugin/hook pack using UserPromptSubmit / PostToolUse / Stop,
  • install notes for Agent Bridge rollouts,
  • synthetic tests proving threshold, quiet-window, voice-boundary, and no-loop behavior.

Default behavior

  • threshold: 3 assistant messages.
  • inactivityMs: 300000 (5 minutes).
  • summary format: one Telegram MarkdownV2 blockquote.
  • summary messages do not count toward the next burst.
  • after a summary, another summary requires another threshold unsummarized assistant messages.

Install: OpenClaw

From a local checkout:

openclaw plugins install /Users/ethansk/Projects/assistant-burst-summary-hook --link
openclaw plugins enable assistant-burst-summary-hook

Config lives under plugins.entries.assistant-burst-summary-hook. Minimal example:

{
  plugins: {
    entries: {
      "assistant-burst-summary-hook": {
        enabled: true,
        threshold: 3,
        inactivityMs: 300000,
        telegramBotTokenEnv: "TELEGRAM_BOT_TOKEN",
        telegramParseMode: "MarkdownV2"
      }
    }
  }
}

The OpenClaw adapter resolves the Telegram bot token from, in order:

1. plugin config telegramBotToken, 2. env var named by telegramBotTokenEnv, default TELEGRAM_BOT_TOKEN, 3. active OpenClaw Telegram channel config.

It uses the outgoing OpenClaw message target as the Telegram chat id, so a separate telegramChatId is usually not needed for OpenClaw.

Install: Claude Code

Claude Code hooks need a chat id because command hooks do not have OpenClaw's channel delivery context.

claude plugin marketplace add /Users/ethansk/Projects/assistant-burst-summary-hook --scope user
claude plugin install assistant-burst-summary-hook@assistant-burst-summary-hook --scope user

Create ~/.config/assistant-burst-summary-hook/config.json:

{
  "threshold": 3,
  "inactivityMs": 300000,
  "telegramBotTokenEnv": "TELEGRAM_BOT_TOKEN",
  "telegramChatId": "6164541473",
  "telegramParseMode": "MarkdownV2"
}

Or point Claude hooks at another file:

export ASSISTANT_BURST_SUMMARY_CONFIG=/path/to/config.json

Config reference

See examples/config.json for a full example.

Common fields:

  • enabled: boolean, default true.
  • threshold: number of unsummarized assistant messages required, default 3.
  • inactivityMs: quiet window after newest assistant message, default 300000.
  • maxMessagesInSummary: cap on messages included in one summary, default 8.
  • stateDir: durable JSON state directory.
  • telegramBotTokenEnv: env var containing the bot token.
  • telegramBotToken: direct token override; avoid committing this.
  • telegramChatId: required for Claude Code unless PostToolUse extracts a chat id.
  • telegramParseMode: MarkdownV2, HTML, or none.
  • voiceBoundaryPatterns: extra strings that identify a voice-note transcript.
  • dryRun: evaluate/send without calling Telegram.

Validation

npm test
node bin/assistant-burst-summary-hook.js simulate --json
node --input-type=module -e "await import('./src/openclaw/index.js')"
claude plugin validate .

Security and privacy

  • No secrets are committed.
  • Tests use synthetic transcripts only.
  • State files contain compact assistant-message excerpts, not raw session JSONL.
  • The Telegram Bot API call only sends the generated summary to the configured/observed chat target.
  • Public repo contents are safe to publish; machine-local config files are intentionally excluded.

Agent Bridge rollout

See docs/agent-bridge-rollout.md.

Related plugins

Browse all →