Skip to main content

argus-herald

CI PyPI Python License: MIT

The Argus suite's release broadcaster, and one any maintainer can run for their own packages. argus-herald watches PyPI projects, drafts an announcement for each new version, and waits for a person to edit and approve it before anything is published. Posts that aren't releases (demos, build notes, videos) go through the same queue.

Public identities live in YAML or JSON. Tokens and webhook URLs live in .env. The first poll records versions that are already on PyPI and does not draft them. Later versions become one draft per enabled platform.

Discord and Telegram publish through their APIs. X and Patreon are handed to a person: an approved X draft becomes an Open in X link with the text filled in (no API call, so no per-post charge, and media can be attached by hand), and an approved Patreon draft is printed for the creator's editor, because Patreon's public API does not create posts. After posting, argus-herald confirm <id> --url <post url> marks the draft published and keeps the URL for analytics.

Upgrading from pip-release

This project used to be called pip-release. Until 0.3 the old names keep working and log a warning that names the new one:

Before Now
pip-release command argus-herald
PIP_RELEASE_* variables ARGUS_HERALD_* (the new name wins when both are set)
.pip-release/ data directory .argus-herald/, moved on first run unless store.path names the old one
~/.config/pip-release/opsec-denylist.txt ~/.config/argus-herald/opsec-denylist.txt (the old file is read until you move it)
pip-release-watch / pip-release-ui user services argus-herald-watch / argus-herald-ui: rerun contrib/install-user-services.sh
pip_release.platforms entry points, import pip_release argus_herald.platforms, import argus_herald

The review UI's session cookie changed name too, so you sign in once more. Docker compose keeps using the volume it created under the old project name.

Setup

pip install argus-herald            # or: uv tool install argus-herald
argus-herald init

From a checkout, make install creates .venv with the test extras (it needs uv). make test and make lint run what CI runs. argus-herald init --example dragonhound starts from the suite's own config instead of a blank one.

init --example dragonhound copies examples/dragonhound.yaml to config.yaml and .env.example to .env. That fixture tracks dragonhound_dev and names dragonhound3 and AtlasRealms. Discord and Telegram are present and disabled until a channel exists. For any other maintainer, run argus-herald init and edit config.yaml.

PyPI documents per-project RSS, not a feed of one user's projects, and the profile page often answers with a client challenge. argus-herald discover prints project names when the profile is readable. Otherwise keep the explicit pypi.projects list.

argus-herald discover --check looks for drift and exits 1 when it finds any, so it can run in CI. The watcher also runs it once a day and raises a desktop notice. It checks that:

  • every configured name exists on PyPI;
  • the PyPI profile, when it's readable, lists nothing that isn't configured;
  • every public, non-fork repo of pypi.discover.github_owner whose name starts with pypi.discover.prefix and declares a [project] name in its pyproject.toml that is on PyPI is configured. PyPI can't list projects by prefix, so GitHub is how new packages are found.
pypi:
  projects: [argus-atlas, …]
  discover:
    github_owner: smk762
    prefix: argus-

GITHUB_TOKEN is optional and only raises the API rate limit. A project added to pypi.projects is baselined on the next poll (or right away with argus-herald baseline <name>), so its old versions are never drafted.

Review

Open the queue in a browser:

argus-herald ui

That listens on http://127.0.0.1:8787/. Drafts are grouped by release. You can edit the text, approve or reject it, and publish from the same page. Saving an edit puts the draft back to pending. For X, Publish shows Open in X and Copy text. For Patreon, it shows the title and HTML to paste. After posting, paste the post's URL and press “I published this on …”. A post confirmed without a URL can have one added later from the same page.

Set ARGUS_HERALD_UI_TOKEN when the UI is reachable beyond your own machine. Docker’s review service listens inside the container on all interfaces and publishes only 127.0.0.1:8787 on the host, so it requires that token. ARGUS_HERALD_UI_URL is included in the optional review webhook and printed after poll when new drafts appear.

The same actions are available from the shell:

argus-herald poll          # baseline, or draft what is new
argus-herald drafts
argus-herald show 1
argus-herald edit 1        # $EDITOR; the draft returns to pending
argus-herald approve 1
argus-herald publish 1
argus-herald publish --approved --dry-run
argus-herald confirm 1 --url https://x.com/<user>/status/<id>   # after a manual post
argus-herald baseline      # mark every current version seen, without drafting
argus-herald reset --reject-pending [--before 2026-11-15] [--yes]

baseline does what the first poll does, on demand and for projects that are already tracked: every version on PyPI right now is marked seen, so the next poll drafts only what is released after it. reset --reject-pending rejects pending drafts with the note stale backlog. It shows the count per project and asks first unless --yes is given. Together they clear a backlog of old releases nobody wants announced.

argus-herald watch repeats poll on poll.interval_seconds (at least 60, default 1800). A new draft can also be posted as JSON to ARGUS_HERALD_REVIEW_WEBHOOK. When notify-send is available, the same event raises a desktop notification that stays in the GNOME notification list. Set ARGUS_HERALD_DESKTOP_NOTIFY=0 to skip it. While any draft is still pending, that alert is repeated every 24 hours.

GitHub Releases

Repos that ship without PyPI (a web UI, a demo) can still be announced. Their GitHub releases are a second source:

github:
  owner: smk762
  prefix: argus-              # every public, non-fork repo starting with this; or repos: [a, b]
  include_prereleases: true   # collected into digests, never drafted on their own

Each repo is baselined on its first read. With GITHUB_TOKEN the REST API is used. Without it, the public releases.atom feed is read, which never lists drafts. Tags must be versions (v0.4.0 becomes 0.4.0), so asset-only tags like stock-heads are skipped. A version released on both PyPI and GitHub is kept once, under PyPI, with the GitHub release notes, whichever was seen first. In a digest, GitHub-only releases are listed with source: github.

Digests

A suite that releases often shouldn't post every version. With a digest: block, releases are collected into fixed windows instead of drafted one by one:

digest:
  anchor: 2026-11-16          # first day of the first window (UTC)
  window_days: 14
  site_url: https://dragonhound.dev/updates/
  site_dir: /path/to/site/src/content/updates   # local checkout; herald writes here, never commits
  platforms: []               # default: every enabled destination

When a window closes (the watcher checks on every poll), herald creates one digest with every release seen before the close. A release seen after its window closed goes into the next one. For each digest it drafts:

  • a site page <close date>-digest.md with front matter (title, date, kind: digest, summary, period, releases grouped by package, oldest version first) and draft: true, plus a short list of highlights for a person to rewrite into prose. The page passes the privacy gate first. Herald writes it only when no file is there, or when the file is still exactly what herald wrote, so your edits are never overwritten;
  • one post per destination: the period, the count, up to three notable changes (as many as fit the platform without clipping), and the link to the page.

Each highlight is the first sentence of the release's first Added bullet, or of its first bullet, or its summary. A release is suggested for a headline post of its own when it's a major or minor bump, or a first release, and its notes add something. Patch releases and prereleases are never suggested. Suggestions are only badges: promoting is your call.

The Digests page in the review UI shows the open window and past digests. Drop a release from a digest, promote one to its own headline post (optionally with a kind: release site page), or Rebuild a digest after a change. Rebuild refreshes drafts nobody has edited, and the page if nobody has edited it. From the shell:

argus-herald digest                          # open window and recent digests
argus-herald digest exclude argus-lens==0.12.1
argus-herald digest rebuild 3
argus-herald promote argus-lens==0.13.0 --site-page

Without a digest: block (or with mode: per_release), every release gets its own drafts as before.

Metrics

argus-herald collect snapshots adoption metrics into metrics.sqlite, next to the queue. They stay on this machine. The watcher runs it once a day. Every write is an upsert, so running it again does no harm.

Table From Needs
gh_traffic (daily views, uniques, clones) GitHub traffic API GITHUB_TOKEN
gh_referrers, gh_paths (snapshot per day) GitHub traffic API GITHUB_TOKEN
gh_star_counts (stars per repo per day) GitHub repo list nothing
gh_stars (when each star was given; the stargazer is stored only as a hash) GitHub stargazers API GITHUB_TOKEN
pypi_downloads (daily, without mirrors, last 180 days) pypistats.org nothing
events (release times, and published posts with their URL) PyPI JSON API and the review queue nothing

Repos are the public, non-fork repos of pypi.discover.github_owner that start with pypi.discover.prefix. GitHub keeps traffic for 14 days only, so whatever isn't collected within that time is gone.

The traffic endpoints only answer to an account with write access to the repo. A fine-grained token limited to those repos, with Metadata: read and Administration: read, works for traffic. GitHub is limiting stargazer lists to admins and collaborators, and with such a token they answer 403. That is reported as skipped, not as an error, and gh_star_counts still tracks stars per day. --since 2026-11-01 keeps only PyPI download days from that date.

Dashboard

/dashboard in the review UI (same sign-in) asks one question of the metrics: do announcements move adoption, and which platform and format does it best? It reads metrics.sqlite on this machine and nothing leaves it unless you export a CSV. The charts are inline SVG, with no CDN, in light and dark.

  • Timeline: PyPI downloads, GitHub views, unique visitors, clones, new stars and site visits on one shared time axis, each with a 7-day mean. Grey lines mark releases; coloured ones mark posts (hover for the text, click to open it). Linear or log scale, for the suite or one package.
  • Followers per platform.
  • GitHub referrers: unique visitors by source (X, Bluesky, Mastodon, Reddit, Hacker News, search, your own site, other), stacked.
  • Broadcasts: one row per post, with engagement at 24h and 7d and the change in downloads, views, stars and that platform's referrers. The change compares the 72 hours from the post with the median day of the 14 days before. These are associations, not effects; rows whose window overlaps another post are greyed out. Sort by any column; filter by platform, format, media, drafting backend, or herald vs logged by hand.
  • Platforms by week: posts, engagement, referrer uniques and follower change. Weeks start on the digest anchor's weekday (Monday by default); change it in the filters.
  • Clips: one row per clip in the registry, in the same order as argus-herald clips: redo first, then check, unknown and the rest, and within each the best-performing first. Each row shows the clip's title, id, demo and format, its status, a freshness badge (open "What changed" for the commits, the UI files and the version move), a performance badge per platform with its impressions or engagements, and the date of its last post, linked when the post has an https URL. A clip that is both redo and strong is marked "re-record first". Above the table: the demos with no current clip, and how many clips are in each status. The range and package filters don't apply to it.

Every table except Clips has a CSV link with the page's filters applied; argus-herald clips export covers the registry.

Followers

collect also records audience size per platform per day in account_metrics:

accounts:
  bluesky: dragonhound.dev          # public profile API, no login
  mastodon: "@name@instance.social" # public account lookup, no login
  # youtube: UC…                    # defaults to sources.youtube; needs YOUTUBE_API_KEY

An account that doesn't exist yet is reported as skipped until it does. X has no free API for this, so enter its numbers by hand, for example from the analytics page each Sunday:

argus-herald import x-account --date 2026-11-22 --followers 196 --following 410 --posts 2580
argus-herald followers     # latest count per platform, with the change over 7 days

Engagement per post

Each Bluesky and Mastodon post in the broadcast list (published by herald, or logged by hand with its URL) is read from the public API at +1h, +24h, +72h and +7d after it went out. The samples go to post_metrics as a time series of likes, reposts, replies and quotes. The watcher checks once an hour, and fetches only posts that have reached a checkpoint. A post deleted since is reported as skipped.

X has no free API for this, so import the analytics export instead. Per-post exports are matched to herald's broadcasts by post id. Posts made outside herald are stored too. An account overview export (one row per day) goes to account_engagement. When only the week's totals are at hand, enter them:

argus-herald import x-analytics ~/Downloads/account_analytics_content.csv
argus-herald import x-analytics ~/Downloads/account_overview_analytics.csv
argus-herald import x-week --end 2026-11-29 --impressions 9000 --engagements 310 --link-clicks 40 --profile-visits 55 --new-follows 16

Importing the same post again adds a new sample, so a weekly import draws the curve for X as well. slots suggest uses this data.

Site traffic

With Cloudflare Web Analytics on the site, collect keeps daily page views and visits per path (site_traffic) and per referring host (site_referrers) for the last 7 days on each run. Set CF_API_TOKEN (a token with Account Analytics: read), CF_ACCOUNT_ID and CF_SITE_TAG (from the Web Analytics site's snippet) in .env. argus-herald platforms lists which metrics sources are set up.

Posts made outside herald

Some posts are always made by hand: Reddit, Hacker News, YouTube uploads, newsletter and link-roundup submissions. Log them so they appear on the metrics timeline next to herald's own posts:

argus-herald log-broadcast --platform reddit --url https://www.reddit.com/r/gis/comments/… --kind demo --project argus-atlas
argus-herald log-broadcast --platform hn --url "https://news.ycombinator.com/item?id=…" --at 2027-01-05T15:00Z
argus-herald broadcasts                    # list
argus-herald log-broadcast --id 3 --subject "Show HN: atlas"   # edit
argus-herald broadcasts delete 3

--platform is any short name. x or twitter URLs are normalised like confirmed X posts. --at defaults to now, in UTC. The review UI has the same under Logged posts. Each collect rebuilds the broadcast events, so edits and deletions carry through.

Assisted drafting

A model can write the first draft of each digest and headline post: it picks the changes that matter to each destination's audience and words them in its tone. A person still edits and approves every word.

drafting:
  backend: openai_compatible     # template (default) | openai_compatible | anthropic
  models: {headline: other-model}  # optional, per task
  • openai_compatible is a local server (Ollama's /v1, llama.cpp, vLLM), so draft inputs stay on your network. Put ARGUS_HERALD_LLM_BASE_URL (for example http://<your-ollama-host>:11434/v1; plain http:// is accepted only for this machine or a private address) and ARGUS_HERALD_LLM_MODEL in .env, never in the committed config. llama3.1:8b-instruct did best in testing.
  • anthropic uses Claude through the official SDK: pip install 'argus-herald[claude]', with credentials from ANTHROPIC_API_KEY or ant auth login. The default model is claude-opus-5-5 at effort: low, with the server-side refusal fallback on. The privacy gate scrubs everything sent (deny-list terms, emails, private addresses, paths). With no gate, nothing is sent.

The model writes only the text, and herald adds the link and hashtags. A model doesn't reliably follow rules, so herald checks them in code:

  • no emoji (unless the audience sets emoji: true), no links or hashtags of its own;
  • at most three items, and the post must fit the platform without clipping.

Emoji, and extra or overlong items at the end, are removed outright. Nothing is cut mid-sentence. Anything else gets one retry naming the broken rule, and after that the template draft is used, with a note on the draft saying why. Markdown backticks are removed, and reasoning output (<think>…</think>) is stripped.

Each draft records who wrote it ("Drafted by openai_compatible:llama3.1…"). Regenerate on a digest or headline draft writes it again, but only replaces your edits if you tick replace my edits (argus-herald regenerate <id> [--force]). Digest rebuilds and promotions use the model too.

Posts that aren't releases

Demos, build notes, new pages and videos go through the same queue: one pending draft per destination, the privacy gate, approve, then publish or hand off.

argus-herald compose "Hex territories on real terrain." --kind demo --link https://example.org/realms
echo "How the curator scores a dataset." | argus-herald compose - --kind note --subject "Curator's numbers"
argus-herald approve --post post:3f2a…        # every draft of one post

The review UI has the same form under New post. --kind is one of demo, note, video, page. Each platform's draft is fitted to its own limit and keeps the link.

Two feeds can create posts on their own. Each is baselined on its first read, like PyPI, so nothing already in it is announced:

sources:
  site:
    feed: https://dragonhound.dev/updates.xml   # Atom; entries whose category is listed become posts
    categories: [note]                         # build notes ("digest" and "release" are also accepted)
    platforms: [twitter]                       # default: every enabled destination
  youtube:
    channel_id: UCxZha6M0r90kFIGkFvKRvcw        # a new video, Shorts included, becomes a post
    platforms: [twitter]

Feeds are read on every poll, so the watcher picks them up too. Drafts from a feed are keyed by the item's id, so a feed entry is never drafted twice.

Audiences

Each destination can describe who follows it and what they should get:

destinations:
  twitter:
    audience:
      description: Crypto and AI-image people
      tone: plain and specific, visual first
      hashtags: [gis]               # appended while they fit; X takes at most 2
      link_placement: reply         # body (default) or reply
  patreon:
    audience:
      packages: [argus-atlas, argus-realms]   # or {include: [...], exclude: [...]}, globs allowed
  • Packages: a destination only gets digests, headline posts and per-release drafts about packages it wants. A digest window with nothing for that audience produces no draft there, and a mixed digest is counted and summarised for that audience's packages only. Posts without a package, such as videos and build notes, go everywhere.
  • link_placement: reply: keeps the post visual-first. The link moves into the draft's Reply field. On X, once you confirm the post's URL, herald offers Open reply in X, a reply intent under your post with the link filled in. Bluesky and Mastodon will post the reply themselves. Only those three can use reply.
  • description and tone: shown on each draft for the reviewer, and passed to assisted drafting when that lands.

argus-herald platforms prints each audience.

Scheduling

A destination with a schedule doesn't post the moment you approve. The draft waits for the next free slot:

destinations:
  twitter:
    schedule:
      slots: [Tue 08:00, Fri 08:00]   # UTC
      min_gap_hours: 24               # distance from this destination's other posts
      offset_minutes: 0               # shift from the post's time on other platforms
      grace_hours: 6
  • On approve, a draft gets the next slot that's at least min_gap_hours from that destination's other scheduled or published posts. Drafts of the same post go out together: once one is scheduled, the others take its time plus their own offset_minutes.
  • The watcher wakes up for each scheduled draft. API platforms post. X and Patreon are handed off with a desktop notice ("Time to post"), and the draft page has the Open/Copy buttons ready.
  • If the watcher wasn't running and a slot passed more than grace_hours ago, nothing is posted late: you get a notice, and the draft stays approved without a time.
  • Editing an approved draft returns it to pending and releases its slot.
  • On the draft page, pick another free slot, enter a time, unschedule, or press Publish to post now. From the shell:
argus-herald approve 12                 # also schedules it
argus-herald approve 12 --no-schedule   # goes out when you publish it
argus-herald schedule 12 --at 2026-12-01T08:00Z   # or --next, or --clear
argus-herald scheduled
argus-herald slots suggest              # engagement by weekday and hour, once post metrics exist

slots suggest ranks weekday and time-of-day buckets per platform by engagement, and suggests a slot once a platform has at least 6 posts. It only suggests and never changes the config.

Media

Any draft can carry images, GIFs or short clips, and each one needs alt text. On a draft's review page, upload a file or pick one from the media folder (.argus-herald/media/ by default, or media: {dir: …}), and optionally attach it to every draft of the same post. From the shell:

argus-herald media add 12 ~/clips/atlas-coast.gif --alt "A coastline painted over real terrain, labels fading in" --all-drafts
argus-herald media list 12
argus-herald media alt 7 "Better description"
argus-herald compose "Coastlines, painted." --kind demo --media shot.png --alt "…"

Metadata never leaves the machine. Each file gets a cleaned copy, and only that copy is posted or handed off:

  • JPEG, PNG and WebP: the EXIF rotation is applied, then EXIF (including GPS), XMP, IPTC, comments and text chunks are dropped. The colour profile is kept.
  • GIF: frames and timing are kept, and comments are dropped.
  • MP4, MOV and WebM: ffmpeg -map_metadata -1 -c copy. Without ffmpeg, a clip is attached but marked unstripped, and approve refuses it.

The review page says what was removed (for example "EXIF with GPS location, comment").

Approve is refused while any attachment lacks alt text, when the privacy gate flags alt text, or when the attachments don't fit the platform:

  • X: 4 images, or 1 GIF or video; images up to 5 MB, GIFs up to 15 MB.
  • Patreon: more generous limits.
  • Platforms that can't attach media yet refuse drafts that carry it.

For X and Patreon, the handoff lists the cleaned files to download and attach, each with its alt text ready to copy.

Clip registry

The registry records what each demo clip shows and what it was recorded against, so herald can say which demos have no current clip and which posts used which clip.

argus-herald clips add atlas-styles --demo atlas --project argus-atlas --title "Atlas styles" --format clip --target-seconds 30
argus-herald clips set atlas-styles --status recorded --path ~/clips/atlas-styles.mp4 \
    --project-version 0.9.0 --demo-repo argus-realms --demo-commit 16e992da7b
argus-herald clips                    # every clip, then the demos with no current clip
argus-herald clips show atlas-styles  # its fields and the posts that used it
argus-herald clips export clips.csv   # and `clips import clips.csv` to bring a spreadsheet back
  • Formats: loop, clip, short, walkthrough. Statuses: todo, scripted, recorded, edited, posted, stale, hold. Herald never changes a status by itself.
  • A demo counts as covered while one of its clips is recorded, edited or posted. A demo is known once any clip names it.
  • Setting --status recorded fills in today's date unless --recorded-at is given.
  • clips import checks every row before saving any. A column in the file replaces the stored value, and a column that isn't in the file is left alone. Columns the registry doesn't keep are named and skipped.
  • clips remove refuses a clip that a post has used.

Attach a clip by its id and the link is recorded. The file is cleaned like any other attachment, and it still needs alt text:

argus-herald media add 12 --clip atlas-styles --alt "Three map styles applied to the same coastline" --all-drafts
argus-herald log-broadcast --platform reddit --url https://www.reddit.com/r/gis/comments/abc/ --clip atlas-styles

Freshness

A clip is out of date when the live demo no longer looks like it. For each clip that is recorded, edited or posted, herald compares its demo_commit with the head of the demo repo's deploy branch (GitHub's compare API), and its project_version with the newest version herald has seen for project:

State When
fresh no commits since demo_commit, same minor version
check the demo repo changed, but not under its UI paths; or demo_commit isn't on the deploy branch; or the minor version moved
redo files under the demo's UI paths changed
unknown it couldn't be compared, for example no demo_repo or no owner for a bare repo name
argus-herald clips refresh            # compare now (collect does this too)
argus-herald clips                    # redo first, then check, unknown, fresh; why, below the table
argus-herald clips ack atlas-styles   # it still matches: demo_commit and project_version move forward
argus-herald clips set atlas-styles --status stale   # it needs re-recording
  • Herald never changes a clip's status. A stale clip isn't checked.
  • demo_repo is owner/repo, or a bare repo name under clips.owner (then github.owner, then pypi.discover.github_owner).
  • The deploy branch (default dev), the UI paths and the ignore paths are set under clips: in the config, with per-demo overrides under clips.demos.<demo>; a demo's own branch, ui_paths or ignore_paths replaces the global one rather than adding to it. A UI file matches a UI path and no ignore path. ** crosses directories; a pattern without a / matches a file name at any depth, and one with a / is anchored at the repo root.
    • UI paths, by default front-end file types: *.css, *.scss, *.html, *.tsx, *.jsx, *.ts, *.js, *.mjs, *.svelte, *.astro, *.vue. A backend, docs or data-only commit (say src/pkg/api.py) asks for a check, not a re-record.
    • Ignore paths, never UI even when a UI path matches; by default **/tests/**, **/test/**, **/__tests__/**, **/docs/**, **/scripts/**, **/e2e/** (those directories at any depth), *.test.*, *.spec.*, *.config.* and *.d.ts.
    • Setting ui_paths keeps exactly your patterns, but the default ignore paths still apply to them unless you set ignore_paths too; ignore_paths: [] turns ignoring off.
    • Stored results are recomputed on the next clips refresh or collect, so a change to these settings shows after that.
  • No token is needed for public repos (GitHub allows 60 unauthenticated calls an hour); GITHUB_TOKEN is used when set. GitHub lists at most 300 changed files, and the listing says when it stopped there.
  • A failed call keeps the last known state, and the listing says how old it is.
  • clips ack needs a comparison first. Changing a clip's demo_commit or project_version by hand sets it back to not checked.

Performance

Which clips did well, so the format can be repeated. A clip's posts are the drafts it is attached to that went out (published, or handed off and confirmed) and the hand-logged broadcasts that name it. Each post counts with its latest engagement sample (see Engagement per post; X numbers come from the analytics import).

Per clip and platform, clips shows the posts and the sums of impressions, engagements and link clicks, and rates the clip against the account's own posts, so platforms with different audiences read the same way. The ratio is the median of the clip's posts over the median of every post on that platform from the last 30 days (the clip's own included). It compares impressions where the platform reports them, otherwise engagements (likes, reposts, replies and quotes where there is no engagements count).

Rating Ratio
strong 1.5 or more
typical between
weak 0.5 or less
no data no sample yet, only posts under 24 hours old, fewer than 5 baseline posts, or a baseline median of 0
argus-herald clips                    # a performance column (x strong, bsky typical), then the numbers per posted clip;
                                      # within each freshness state the best-performing clips come first
argus-herald clips show atlas-styles  # the same numbers for one clip
  • A clip posted more than once (a re-cut, a repost) sums its posts and gets one rating per platform.
  • A clip with no posts, or none sampled yet, is no data, never weak.
  • A post younger than 24 hours is left out of both medians, since its first samples are small: it still counts in the clip's posts and sums, but a clip posted only that recently is no data (posted less than 24h ago). min_age_hours sets the age; 0 turns it off.
  • It is worked out when you look, from metrics.sqlite; nothing is stored. Before the first collect everything is no data.
  • The thresholds, the minimum baseline posts, the window and the minimum post age are under clips.performance in the config.

Privacy gate

Every draft passes a privacy gate on approve and again on publish. A hit refuses the draft; text is never rewritten. It catches:

  • private and link-local IPs, home and mount paths, email addresses (except example.*, *.invalid and GitHub noreply), and LAN hostnames (.lan, .local, .internal, …);
  • crypto addresses (EVM, Base58Check with a valid checksum, bech32, ENS names), except those in privacy.allow_addresses;
  • timezone offsets attached to a timestamp, as in a pasted log or git log line (+00:00 and Z are fine);
  • any term in your private deny-list, and any regex in privacy.patterns.

The deny-list is a file outside the repository, one term per line, # comments allowed: ~/.config/argus-herald/opsec-denylist.txt by default, or the path in ARGUS_HERALD_OPSEC_DENYLIST. Keep it chmod 600. If ai-code-auditor's list exists, its terms are enforced too. Without the deny-list nothing can be approved or published.

privacy:
  allow_addresses: ["0x…"]       # public contracts that may appear in posts
  patterns:
    ticket: "INTERNAL-\\d+"

The review page highlights each hit. Edit the text, or accept one specific hit for that draft with a note saying why it is safe. From the shell:

argus-herald check                 # pending and approved drafts
argus-herald accept 12 'crypto-address:0x…' --note "public demo contract"

Start at boot

On a machine with systemd, install user services for the watcher and the review UI:

contrib/install-user-services.sh

They start at login, and at boot as well when lingering is enabled for your user. The script tries loginctl enable-linger. The review page stays on http://127.0.0.1:8787/. Notifications are sent on the session bus, so they show up after you are logged into the desktop.

Exit status is 1 when a project could not be read. Drafts that fail to publish stay failed and can be published again.

Platforms

Id Needs in .env Publish
twitter none with mode: manual (default). With mode: api: X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET Manual: an https://x.com/intent/post?text=… link for a person to post, then argus-herald confirm <id> --url <post url>. API: POST https://api.x.com/2/tweets with OAuth 1.0a; a post that includes a link is billed at the URL rate on the X developer console. Both modes cap posts at 280 weighted characters, and a URL counts as 23.
discord DISCORD_WEBHOOK_URL Incoming webhook. The edited text is the message, up to 2000 characters.
telegram TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID sendMessage as HTML. The bot must be allowed to post in the channel.
patreon none Prints title and HTML. argus-herald confirm <id> [--url <post url>] records that the creator published it.

argus-herald platforms prints which destinations are enabled and which secret names are still empty. It does not print secret values.

Set enabled: false to keep a platform in the file without drafting for it. A platform omitted from destinations is not used. Unknown ids are an error.

Add a platform

Implement the Publisher methods (render, validate, missing_secrets, publish) and register an entry point in group argus_herald.platforms. Then add a destinations.<id> block. Built-in publishers live in src/argus_herald/platforms/__init__.py.

Likely next publishers, in the order they are useful for a Python release: Mastodon, Bluesky, LinkedIn, Slack, Matrix, and an email or RSS handoff. Lemmy, Nostr, and Threads are further out. Mastodon and Bluesky already have maintained release actions elsewhere; this queue still has to own the PyPI poll and the approval step.

Docker

Copy a config into place first (argus-herald init --example dragonhound or cp config.example.yaml config.yaml), then:

docker compose up -d --build
docker compose run --rm watcher drafts

The review service is on http://127.0.0.1:8787/ after ARGUS_HERALD_UI_TOKEN is set in .env. The watcher runs as uid 10001 with a read-only root filesystem. Config is mounted read-only. The queue is the volume compose created before the rename, pip-release_pip-release-data, so existing drafts carry over. Release images are published as ghcr.io/smk762/argus-herald. Secrets come from .env.

Tests

make test    # pytest
make lint    # ruff check and format --check, pinned to the suite's ruff

CI runs the suite's shared argus-ci workflow (ruff, pytest on Python 3.11 and 3.12, build) plus the Bombadil job below. Tooling comes from argus-pkg-template: uvx copier update pulls its changes.

Releasing

The version comes from the git tag (hatch-vcs): tagging vX.Y.Z publishes the wheel to PyPI through trusted publishing and the image to GHCR. There is no version string to edit.

UI properties (Bombadil)

Bombadil explores the review UI on its own (clicks, typing, Back, jumps to any route, forms forced past disabled buttons) and checks properties in every state it reaches:

  • Approve and Publish are never enabled for a draft with an unresolved privacy hit or an attachment without alt text, and no forced submission gets such a draft approved.
  • Publish and scheduling appear only for approved drafts (Publish also retries a failed one); Open in X only once an X draft is handed off.
  • Saving an edit returns the draft to pending.
  • With ARGUS_HERALD_UI_TOKEN set, only the sign-in page is reachable, and it shows nothing from the queue.
  • The dashboard's Clips panel: every freshness and performance badge says its state in words, rows run redo first, a clip that is both redo and strong (and only such a clip) is marked "re-record first", and last-post links are https.
  • No 5xx, uncaught exceptions or console errors; WCAG AA text contrast; the chosen light or dark theme is the one shown.
cd tests/bombadil && npm install
CHROME=/path/to/chrome TIME_LIMIT=60s ./run.sh     # light, dark and token-locked runs
npx bombadil browser inspect out/light             # step through a run

serve.py starts the UI on a fresh temporary store with seeded drafts in every state, a fixture deny-list and fake publishers (nothing is posted), on a port the OS picks. CI runs both suites on every pull request.

Licence

The code is MIT (LICENSE). The argus-herald mark, its favicons and the lockup are Argus brand assets from argus-cortex brand/, not covered by the MIT licence: see its terms.

Metadata

Release files for argus-herald 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argus-herald 0.3.0
File Size Uploaded Provenance Actions
argus_herald-0.3.0.tar.gz 277.2 kB With provenance Details for argus_herald-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argus-herald 0.3.0
File Interpreter ABI Platform Actions
argus_herald-0.3.0-py3-none-any.whl Python 3 none any Details for argus_herald-0.3.0-py3-none-any.whl

Total release size: 474.4 kB

Release files / argus_herald-0.3.0.tar.gz

Download URL argus_herald-0.3.0.tar.gz
Size 277.2 kB
Tags Source
SHA-256 checksum
How to use checksums
56ddad7234f6d5698f2e8da44f4551fb2475948c907d8a303b02062f8bcc71a4
BLAKE2b-256 checksum
How to use checksums
620578cce41ed231036751e0877dc11c4c4c87ca393611bad90d7df7ff4cf3a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / argus_herald-0.3.0-py3-none-any.whl

Download URL argus_herald-0.3.0-py3-none-any.whl
Size 197.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2af48545057d1039efdb6db18eda49549faf90fec7eead633dc3d8bc923aa71a
BLAKE2b-256 checksum
How to use checksums
7dd0f23a9d22924a40368c60d882952ba70ac97876875ba8aabb338297fbc7c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for argus-herald 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for argus_herald-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page