Release Watch Agent
View as MarkdownRelease Watch reads the new releases of the libraries your application depends on and posts a digest to Slack each weekday. An analyst agent judges each release. A triage agent acts on your team's thread replies and files GitHub issues for the releases the team tracks.
SDKs: TypeScript, in its own repository: superdurable-apps/release-watch-example
Shows: Cron schedule, Decision with Deadline, agent sessions, a Connector Trigger, and an outbox in an Attribute.
Product requirements
- By default at 08:00 Los Angeles time on weekdays, the app reads GitHub releases, Hacker News searches, and web feeds.
- The analyst agent puts each new release in a tier and writes what it means for your application.
- The app posts the digest in Slack: urgent releases first, the rest in the thread.
- A teammate replies in the thread, such as
track 1 P1,dismiss 2, we don't use that API, ormove 3 to must-fix. - The triage agent acts on the reply. A tracked release becomes a GitHub issue, linked in the thread.
- The thread takes replies for 14 days. Then the digest ends.
Every release gets one of three tiers:
| Tier | Meaning | Issue on track |
|---|---|---|
| A · must-fix | Your application must change to keep working or stay safe | yes |
| B · recommend | Still works; the release adds a feature worth adopting | yes |
| C · no-change | Still works; nothing to do | only if confirmed |
Flow design
The app is four Flows:
| Flow | ID | What it does |
|---|---|---|
ReleaseWatchScheduleFlow | release-watch | Starts a digest on its schedule, or on request. Keeps the watchlist and the releases already posted. |
ReleaseDigestFlow | release-digest-<date>, or release-digest-<date>-run-<n> for a manual run | Reads the sources, runs the analyst, posts the digest, and files the issues. |
ReleaseAnalystAgentFlow | <digestId>-analyst | The analyst agent. Submits one report. |
ReleaseTriageAgentFlow | release-triage-<channel>-<thread> | The triage agent. One session per digest thread. |
Both agents run on the Dex Agent Framework.
The digest reads one source per Connector Step. A failed source goes to RecordSourceFailure, which lists the failure in the digest. Then the digest reads the next source.
The triage agent's tools change the digest only through its RPCs. Each call passes the tool call's idempotency key as its request key. The digest skips a request key among the last 500 it handled, so a retried track_releases call queues each issue once. The key covers the queueing only. The GitHub writes come later, from the outbox.
Post the digest on time
The analyst deadline lets the digest post without a report. StartAnalystSession starts the analyst with every candidate in its first message. The session ID is fixed per digest, so a retry of the Step does not start a second analyst.
The analyst's one tool, submit_report, calls the digest's submitAnalystReport RPC. The RPC refuses a report that cites a candidate the brief did not contain. The agent gets the refusal as the tool's answer, fixes the report, and submits it again.
An accepted report is published to the analyst-report-submitted Channel. AwaitAnalystReport waits for the report or a 40-minute Timer, whichever comes first. If the report wins, the Step uses that report. If the Timer wins, the digest posts the candidates unranked, as no-change items, with a line saying the analyst ran out of time. Once the digest leaves the analyzing state, the RPC refuses more reports, and the refusal tells the analyst to stop.
A person files every issue
Every issue starts with a person's reply. The Slack Connector's threadReplyCreated Trigger delivers each reply from the members you chose to the thread's triage session.
The track_releases tool only records the request. Its RPC marks the release tracking and adds an entry to the digest's outbox, a list kept in an Attribute. ProcessOutbox then handles one entry at a time: it files, closes, relabels, or comments on an issue, or posts a note in the thread. Each GitHub write is its own Connector Step. A C-tier release is refused until the person confirms it in a later reply.
If GitHub refuses an issue, or its outcome is unknown, the release is marked failed and the thread says so. An unknown outcome is not retried, because the issue may already exist. The note asks the team to check the repository before tracking the release again. If a close, relabel, or comment fails, the release keeps its status and the thread names the failure. untrack 1 closes a filed issue as not planned.
Run it
The agent runs from its own repository, outside the playground that Run an example from the playground starts. You need Node.js 22.19 or later, dexcli, a Slack app with Socket Mode, and an OpenAI-compatible or Anthropic model. The repository gives the five connections, the settings, and the steps to run the app locally or on Dex Cloud.
List the libraries you depend on in src/watchlist.ts, and a few facts about your application in src/team-profile.ts. Then start a digest with POST /api/digests, reply in its Slack thread, and watch release-digest-<date>-run-1 in Dex Web.
Next
- Order Support Agent: one agent built in each agent framework.
- Build AI Agents: what Dex adds to an agent, and how to build one.
- Give each tool a policy: how Dex runs each tool call.