Skip to content

obuchowski/openclaw-cron-to-transcript

Repository files navigation

OpenClaw Cron To Session Transcript

Isolated crons, scripts, reminders, and status checkers sent it, but the agent forgot? Put deliveries in the session transcript.

OpenClaw --command crons and external scripts can call openclaw message send directly. The message reaches the chat, but it bypasses the agent run loop, so the owning agent's session transcript never records that delivery.

Cron To Session Transcript sends the message and appends the delivered text into the owning agent's transcript.

Quick Start

openclaw skills install @obuchowski/cron-to-transcript

Replace a bare cron/script send:

openclaw message send --channel telegram -t "$CHAT" --thread-id "$TOPIC" -m "$MSG"

with:

bash ~/.openclaw/skills/cron-to-transcript/scripts/send-to-transcript.sh \
  --agent ula --account ula \
  --to "$CHAT" --thread-id "$TOPIC" \
  --source agenda-dispatch \
  --message "$MSG"

What It Does

  1. Sends via openclaw message send ... --json.
  2. Resolves the owning agent's current sessionFile.
  3. Appends one transcript-only assistant row with the delivered text.
  4. Optionally dedupes cron retries with --idem <key>.

The internal row intentionally uses OpenClaw's existing delivery marker (provider: "openclaw", model: "delivery-mirror"), because core recognizes that shape and handles transcript-only delivery rows correctly.

Safety

  • Reads only agents/<agent>/sessions/sessions.json.
  • Appends one JSONL line to the matched transcript.
  • Writes state/log files under <openclaw-home>/cron-to-transcript/.
  • Runs no model and performs no destructive operations.
  • Makes no network calls of its own beyond the openclaw message send CLI delivery.

See SECURITY.md for details.

Test

bash scripts/send-to-transcript.sh --dry-run --agent X --to <chat> --thread-id <t> --message "hi"
bash scripts/send-to-transcript.sh --no-send --agent X --to <chat> --thread-id <t> --message "hi"

MIT. Issues and PRs: https://github.com/obuchowski/openclaw-cron-to-transcript

About

Isolated crons, scripts, reminders, and status checkers sent it but the agent forgot? Write deliveries into the session transcript.

Topics

Resources

License

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages