---
title: "Release Watch Agent"
description: "Release 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."
canonical_url: "https://docs.superdurable.io/examples/release-watch-agent/"
source: "docs/content/use-cases/release-watch-agent.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Release Watch Agent

Release 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](https://github.com/superdurable-apps/release-watch-example)

**Shows:** [Cron schedule](https://docs.superdurable.io/design-patterns/durable-timer/cron-schedule.md), [Decision with Deadline](https://docs.superdurable.io/design-patterns/external-interaction/decision-with-deadline.md), [agent sessions](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md#how-it-works), a [Connector Trigger](https://docs.superdurable.io/reference/agents/connector-triggers.md#start-and-feed-sessions), and an outbox in an [Attribute](https://docs.superdurable.io/concepts/primitives/attribute.md).

## Product requirements

<a id="what-the-agent-does"></a>

1. By default at 08:00 Los Angeles time on weekdays, the app reads GitHub releases, Hacker News searches, and web feeds.
2. The analyst agent puts each new release in a tier and writes what it means for your application.
3. The app posts the digest in Slack: urgent releases first, the rest in the thread.
4. A teammate replies in the thread, such as `track 1 P1`, `dismiss 2, we don't use that API`, or `move 3 to must-fix`.
5. The triage agent acts on the reply. A tracked release becomes a GitHub issue, linked in the thread.
6. 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

<a id="how-it-maps-to-dex"></a>

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](https://docs.superdurable.io/build-ai-agents/dex-agent-framework.md).

The digest reads one source per [Connector](https://docs.superdurable.io/concepts/connector.md) 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](https://docs.superdurable.io/concepts/primitives/rpc.md). 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.

<a id="post-the-digest-on-time"></a>

## 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](https://docs.superdurable.io/concepts/primitives/channel.md). `AwaitAnalystReport` waits for the report or a 40-minute [Timer](https://docs.superdurable.io/concepts/primitives/timer.md), 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 id="a-person-files-every-issue"></a>

## A person files every issue

Every issue starts with a person's reply. The Slack Connector's `threadReplyCreated` [Trigger](https://docs.superdurable.io/reference/agents/connector-triggers.md#start-and-feed-sessions) 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.

<a id="run-it"></a>

## Run it

The agent runs from its own repository, outside the playground that [Run an example from the playground](https://docs.superdurable.io/install.md#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](https://github.com/superdurable-apps/release-watch-example) gives the five connections, the settings, and the steps to run the app locally or on [Dex Cloud](https://docs.superdurable.io/production-operations/use-dex-cloud.md).

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](https://docs.superdurable.io/examples/order-support-agent.md): one agent built in each agent framework.
- [Build AI Agents](https://docs.superdurable.io/build-ai-agents.md): what Dex adds to an agent, and how to build one.
- [Give each tool a policy](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md#give-each-tool-a-policy): how Dex runs each tool call.
