HEADLESS LOCAL AGENT BRIDGE · APACHE-2.0

Stand watch over noisy chats. Never auto-send a word.

Watchpost passively watches selected team chats, runs your local coding agent with automatic backup failover, and pushes crisp diagnoses plus 1-tap copy draft replies straight to your phone—waiting for your "go" before touching code.

Draft-First Safety Zero auto-replies to outsiders
15+ Native Platforms Chats + phone push built in
100% Local State SQLite WAL + Whisper ASR
Primary → Backup Agent Antigravity, Codex, Claude, Gemini

Interactive Bridge Simulator

Switch between real scenarios and test how Watchpost separates noisy group triage, overnight Quiet Hours, sibling-channel recall, and Personal Direct Chat.

Slack · #ops-alerts (diagnose_only) 25s Burst · No Read Leak
Alex · 14:08:11 Staging checkout webhook just started timing out with 502s.
Alex · 14:08:23 @owner can you check worker/db.py? Looks like pool exhaustion.
Watchpost finished read-only diagnosis (Mode 4 Bug) and paused at the "go" approval gate. Outsiders see nothing until you copy or approve.
Owner Phone · iMessage / Slack DM Awaiting "go"
[Slack · #ops-alerts] worker/db.py opens an unclosed session when retries throw on HTTP 502 (verified locally, 3 unit checks pass). Say "go" to apply the patch or "skip" to dismiss.
1-Tap Copy Draft (Bark / UI)

Looking at worker/db.py now — found the session leak on 502 retries. Preparing a safe fix and will share diff results shortly.

Four Core Engineering Guardrails

Built so an autonomous coding agent stays genuinely helpful in noisy real-world work chats without ever embarrassing you or breaking production silently.

SAFE EXECUTION

4-Mode Triage & "go" Approval Gate

Classifies incoming messages into Q&A, Advice, FYI, or Bug under per-channel autonomy (assistant_only, diagnose_only, auto_fix). High-impact edits pause until you reply go, or skip to dismiss cleanly.

NOISE CONTROL

Quiet Hours & Morning Briefing

Suppress pings overnight (such as 23:00–08:00) while diagnosing quietly into SQLite kv_state, then flush one morning digest at 08:00. Configurable urgent keywords still break through on real emergencies.

CONTEXT RECALL

Cross-Channel Memory + Isolation

Feeds recent incident summaries from sibling channels in the same repository (for example Support in WeCom + Dev in Slack) while keeping owner_direct personal sessions strictly sealed off.

RESILIENCE

Hot Reload & Backup Agent Failover

Reload channels, personas, and Quiet Hours in milliseconds with POST /api/reload or SIGHUP, recover active threads cleanly after crashes, and automatically fail over from Antigravity to Codex or Claude Code.

Complete Platform Matrix

Zero-dependency Python adapters over official APIs and OS protocols, paired with a stdio JSON SDK (watchpost.sdk) for custom or copyleft external bridges.

Supported inbound chat adapters, owner push/steering entrances, and local coding agent backends in Watchpost v0.3
Integration Direction Transport & Highlights Status
Feishu / Lark Work Chat Read-only REST (tenant, user, lark-cli), mentions, image/audio/file download, zero read receipts Built-in
Slack Work Chat + Owner DM Web API history + thread replies, <@user> & , private file download, DM conversations.open + thread go Built-in
Discord Work Chat + Owner DM REST v10 guild channels & attachments, message_reference reply chains, DM steering Built-in
Telegram Work Chat + Owner DM Shared single-stream TelegramUpdateHub (zero stolen updates), @username mentions, photo/voice download, /brief /mute Built-in
DingTalk (钉钉) Work Chat Signed HMAC-SHA256 webhook (POST /api/webhooks/dingtalk), atUsers trigger, OAuth2 robot file download Built-in
WeCom (企业微信) Work Chat + App Push Signed SHA1 GET/POST /api/webhooks/wecom, XXE-safe XML & JSON ingest, media/get, message/send push Built-in
WhatsApp / Desktop Bridges External Plugin Executable stdio SDK template (examples/whatsapp_plugin_template.py) keeping copyleft/desktop bridges outside Apache-2.0 core Plugin SDK
macOS iMessage Owner Phone chat.db swipe-reply thread_originator_guid, plain message → Personal Direct Chat, photos & Whisper voice Built-in
ntfy Owner Push (1/2-Way) UTF-8 JSON publish + optional reply_topic NDJSON polling for #N / go / skip / /brief Built-in
Bark iOS Push Clean APNs alert with copy / autoCopy populated strictly from the standalone draft reply bubble Built-in
Pushover Mobile/Desktop Push Multi-device delivery via Pushover REST API with automatic 1024-char chunking Built-in
Antigravity · Codex · Claude · Gemini Coding Agents AntigravityBackend (agentapi + Stop Hook) and CLI runners with FallbackBackend automatic failover Built-in

Quickstart, SDK & Local Sandbox

Start with one guided wizard command, test your plugin with automated conformance checks, or simulate colleagues and phone replies offline in your browser.

bash · Setup Wizard
git clone https://github.com/Popcornnnnnnnn/watchpost.git && cd watchpost
uv sync --all-extras

# Writes 0600 ~/.config/watchpost/config.json with ${ENV_VAR} placeholders
uv run watchpost setup

uv run watchpost channels list-remote --adapter slack
uv run watchpost doctor && uv run watchpost run --api-port 8787