← Commit history

Initial commit: app/adom-agent-watch

Ray ·d78f488df5 ·3mo ago
2 files changed +124
README.mdadded+56
@@ -0,0 +1,56 @@+# Adom Agent Watch++Your AI shouldn't sit idle just because an email didn't reach it. `adom-agent-watch`+is a small background cron that pulls **your** unresolved Adom Wiki notifications+and **wakes your agent** to resolve them — verify a shipped fix on the live page,+reply to a review, resume the related work — then marks them handled.++It's the **last mile** for the notifications feed ([adom/wiki #58](https://wiki.adom.inc/adom/wiki/issues/58)):+the platform knows what changed; this turns that into your agent actually doing+the follow-up. Distributable — every coworker installs it and their AI gets the+same background-resolver.++## Install++```bash+adompkg install adom-agent-watch+```++Drops `adom-agent-watch` on your PATH and a cron that runs it every 30 min.++```bash+adom-agent-watch status     # source, wake command, watched pages, last inbox+adom-agent-watch run        # one poll cycle now+adom-agent-watch test-wake  # verify the wake command fires+```++## How it works (degrades gracefully — works today)++Each cycle it pulls your unresolved notifications from the best source available:++> **webhook** (once the platform adds it) → **feed poll** (`adom-wiki notifications list --unread`, #58) → **direct issue poll** (diff issues you authored on watched pages — works right now, no dependency)++On anything new it writes a digest to `~/.local/state/adom-agent-watch/inbox.md`+and invokes your **wake command** (default: `claude -p <prompt>` if `claude` is on+PATH) with the digest + "resolve these or continue the related work, then mark+handled." As the platform ships the feed and webhooks, the same tool auto-upgrades+to them.++## Config (optional)++`~/.config/adom-agent-watch/config.json`:++```json+{+  "wake_cmd": "claude -p",+  "pages": ["adom/wiki"],+  "user": "<your-handle>"+}+```++- `wake_cmd` — how to wake your agent (the digest+prompt is appended). `null` =+  auto-detect `claude`. Set to anything that takes a prompt as its last argument.+- `pages` — the interim-poll watchlist (only used until the #58 feed is live).+- `user` — your wiki handle (else auto-detected via `adom-wiki whoami`).++MIT. Pairs with the notifications feed (adom/wiki #58).
page.jsonadded+68
@@ -0,0 +1,68 @@+{+  "slug": "adom-agent-watch",+  "version": "0.1.0",+  "type": "app",+  "description": "Pull your unresolved Adom Wiki notifications and wake your AI to resolve them in the background — the last mile that turns the notifications feed (#58) into your agent actually doing the follow-up.",+  "dependencies": {},+  "license": "MIT",+  "needs_sudo": false,+  "files": [+    "bin/**",+    "install.sh",+    "uninstall.sh",+    "package.json",+    "page.json",+    "README.md",+    "SKILL.md",+    "screenshots/**"+  ],+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "tags": [+    "notifications",+    "agent",+    "automation",+    "cron",+    "background",+    "feed",+    "ai",+    "wiki"+  ],+  "discovery_triggers": [+    "agent watch",+    "notification agent",+    "background resolver",+    "wake my agent",+    "auto resolve issues",+    "wiki notifications agent",+    "watch my issues",+    "poll my notifications"+  ],+  "discovery_pitch": "A background cron that pulls your unresolved wiki notifications and wakes your AI to resolve them — prefers the #58 feed, falls back to a direct issue poll, so it works today.",+  "sample_prompts": [+    {+      "label": "Set it up",+      "prompt": "install adom-agent-watch so my AI resolves wiki updates in the background"+    },+    {+      "label": "Check status",+      "prompt": "run adom-agent-watch status"+    },+    {+      "label": "One cycle now",+      "prompt": "run adom-agent-watch once and resolve anything new"+    }+  ],+  "hero": {+    "type": "image",+    "path": "screenshots/hero.png"+  },+  "visibility": "public",+  "org": "adom",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file