argus

agent
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Fail
  • exec() — Shell command execution in lib/agent-accounts-view.js
  • exec() — Shell command execution in lib/agent-accounts.js
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Mods and tools for the Herdr desktop app

README.md

Argus

Mods and tools for the Herdr desktop app, built on Herdr's mod API. Named after Argus, the hundred-eyed watchman of Greek myth.

Not affiliated with Herdr or Anthropic.

Mods

Mod What it does
argus-claude-usage Claude plan usage for every Claude Code account on this computer: session, weekly and per-model limits with pace, usage by surface, extra usage, and a toast near a limit.
argus-tsk The tsk task board: a Tasks panel with sections and a scope picker that combines a place with a thread and an assignee, quick capture, and a task pane with status, steps, block and review cards.
argus-pull-requests GitHub and GitLab pull requests: a Pull requests panel with scopes, groups and a filter, and a pane with checks, reviews, merge state and conversation, where you approve, request changes, comment and merge, or start a review by a coding agent that changes no code and posts only a comment, approval or change request whose exact text you approve.
argus-issues GitHub and GitLab issues: an Issues panel with scopes (assigned to you, created by you, mentioning you, all open), groups by repo, assignee or label, and a filter, and a pane with the description, labels, assignees and comments, where New worktree starts a worktree for the issue. It writes nothing to GitHub or GitLab.
argus-agents Overview: the agents that need you on one board, waiting on you, failed or finished, with folded lists of working, idle and older agents, and snooze and reopen. A finished agent stays until it works again or you snooze it.
argus-jobs Jobs: one job run by several agents from a template in argus.json. Each step's agent starts in its own tab, its result file passes to the steps after it, steps can run at the same time in their own worktrees, and the job stops where the template says to wait for you. A Jobs panel shows every job and step with its actions.
argus-space-groups Space groups: named groups of spaces in the Argus sidebar, such as "Personal" and "Work". Make, rename, move and delete groups from the group headers, and drag a space onto a group. A group belongs to the repo, so worktrees and reopened repos stay in it.
argus-settings A Settings window that edits argus.json in Herdr's code editor, opened from the command palette (Argus settings); a key with mod.open:argus-settings is optional. Save checks the settings first and does not overwrite a change made on disk.
argus-stay-awake A coffee-cup button at the right end of the tab row that keeps the display awake. Right-click keeps it awake until no agent is working.
argus-toolbar Buttons beside Herdr's tab bar that open this repo's panel mods in a panel on the right.

Requirements

  • Herdr desktop app 0.1.18 or later, macOS or Linux.
  • Node.js 20 or later, for the scripts and tests.
  • argus-claude-usage: Claude Code (tested on 2.1.327), signed in with a Claude plan.
  • argus-stay-awake: macOS only, because it runs caffeinate.
  • argus-tsk: tsk 0.13.0 or later; 0.14.0 or later to show and rename project titles.
  • argus-pull-requests: gh, glab or both, signed in (tested on gh 2.104.0 and glab 1.131.0).
  • argus-issues: gh, glab or both, signed in (reads checked with gh 2.105.0 and glab 1.131.0).
  • argus-jobs: git, and the agents its templates name. Checked with Claude Code only.

Install

git clone https://github.com/s3rgiosan/argus.git
cd argus
sh scripts/install.sh    # check Herdr, copy every mod, build the Argus layout and show it

install.sh first checks that Herdr is at least the version in package.json (herdr) and stops when it is older. With no mod names, it then copies every mod and runs node scripts/build-layout.mjs, which writes the Argus layout; the first install also shows it. It needs Node.js for both; --no-layout copies the mods only. Mod names (sh scripts/install.sh argus-tsk) copy only those mods and leave the layout alone. --prune removes installed Argus mods that the repo no longer has.

install.sh copies each mods/<name> folder, without its editor files (gpui-kit.d.ts, jsconfig.json). It copies into a temporary folder beside mods/ (.argus-install.* in the Herdr app folder) and then swaps it in, so a failed copy keeps the old install. It refuses to replace a folder it did not install (--force overrides). sh scripts/install.sh argus-claude-usage installs one mod.

--link makes a symlink to the repo folder in place of a copy. Herdr 0.1.16 does not load a symlinked mod folder, so copy is the default.

The Argus layout

Herdr places mods only through layouts, and it replaces its own layouts on every start. build-layout.mjs writes a personal layout, Argus, from Herdr's current main. Every Herdr block stays, and eight things change:

  • a coffee-cup button at the right end of the tab bar, from argus-stay-awake, that keeps the display awake;
  • a block with no size at the end of the tab bar, from argus-jobs, that runs the Jobs engine whenever the window is open;
  • a toolbar beside the tab bar, with one button per installed mod that declares a panel. The buttons sort A to Z by label, or in the order set in argus.json;
  • a panel column on the right, hidden until a button opens it. It takes its width and drag limits from Herdr's own panel block in main.json (368 px, 280 to 900 px today);
  • the pane headers use argus-pane, a copy of Herdr's pane header that the script writes again from Herdr's header on every run. A pull request, issue or task pane shows the item it holds, for example "T12 · Fix the parser", in place of the mod name. A name given with Rename in Herdr's pane menu shows first. Terminal panes look as before. When the copy cannot be made (Herdr's header changed, the patched copy does not parse, or its folder cannot be written), the script says so and the layout keeps Herdr's header. It never writes into an argus-pane folder that it did not create, and it refuses a folder that is a symbolic link;
  • the sidebar uses argus-spaces, a copy of Herdr's spaces sidebar made the same way, with the same folder rules. A space row shows no repo or branch text after its name; the ahead and behind counts stay. Space colors carry over, because Herdr keeps them in shared state. The copy also gets the space groups of argus-space-groups: a New group button in its title row, a folding header per group, and Herdr's space order follows the groups. The script writes lib/space-groups.js, lib/space-groups-view.js, lib/menu.js, lib/ui.js, lib/icons.js and the icons it draws next to the copy. When the group hooks no longer fit Herdr's sidebar, the script prints "the sidebar has no groups" and writes the copy without them.
  • the agents list in the sidebar uses argus-agent-list, a copy of Herdr's agents list made the same way. A Claude Code agent on an account that agents.accounts maps shows that account's icon (see Settings file).
  • the tab bar uses argus-tabs, a copy of Herdr's tabs row made the same way. A tab led by a Claude Code agent on a mapped account shows that account's icon. The copy keeps its own memory of which side panel each space had open, so that memory starts empty once.

build-layout.mjs writes its files atomically. It needs argus-toolbar installed first and stops with "install the toolbar first: sh scripts/install.sh argus-toolbar" when it is not. --name <Name> writes the layout under another name (letters, digits, _ and - only; main, terminals and win98 are refused), and the script does not overwrite a file of that name that it did not write.

The layout shows in Herdr's Settings under Look with a preview picture (layouts/Argus.svg). A layout written by an earlier version as argus.json is renamed to Argus.json, and the shown layout switches to it.

Theme picks are kept per layout, so pick your theme once in Argus.

Settings file

Argus reads ~/.config/herdr-app/argus.json. The install script does not create it. The Settings window (argus-settings) shows the file and creates it on the first save. Without it, every setting has its default: the toolbar buttons sort A to Z by label and show an icon and a label.

{ "toolbar": { "order": ["argus-tsk", "argus-claude-usage"], "display": "icons" } }
  • toolbar.order: the panel mod names in the order their toolbar buttons show. A button not in the list follows, sorted A to Z by label. A name that matches no button is ignored. The toolbar follows the file as you save it.

  • toolbar.display: how the toolbar buttons show. "icons" shows the icon only, with the label as a tooltip. "labels" shows the label only. "both" shows the icon and the label. The default is "both". A button without an icon shows its label in every mode. The toolbar block resizes to fit the buttons when the value changes.

  • agents.accounts: a programs.json entry per Claude Code account folder. A Claude Code agent on that account shows the entry's icon and name in the Argus agents list and the Overview board, and its icon in the tab bar. In Review with agent, the account shows once, with the entry's icon, and starts with the entry's run command when it is installed. Keys are absolute or ~/ folders, as in pullRequests.review.accounts; each entry is { "program": "<programs.json key>" }. Argus reads each agent's CLAUDE_CONFIG_DIR from its process with ps, once per process; no variable means ~/.claude. An unmapped account, or a key with no programs.json entry, keeps Herdr's icon.

{ "agents": { "accounts": { "~/.claude-work": { "program": "claude-work" } } } }

For pullRequests.review, see mods/argus-pull-requests/README.md. For jobs.templates, see mods/argus-jobs/README.md.

When the file is not valid JSON, a toast says so and the defaults show. A value of the wrong type or an unknown display shows the same toast and the default for that setting only; the other setting keeps its valid value.

Update

sh scripts/update.sh

update.sh pulls the clone and runs install.sh, with any options you give it. It stops when the clone has local changes.

Run update.sh again after a Herdr update too: it rebuilds from Herdr's new main, so Herdr's changes reach the layout. Do not edit Argus.json by hand; the next build replaces it. The script never overwrites a layout it did not write, and it writes nothing if Herdr's main no longer has the blocks it attaches to.

Uninstall

sh scripts/uninstall.sh

It removes every mod folder that install.sh made, the copies of Herdr's mods and the layouts that build-layout.mjs wrote. When an Argus layout shows, Herdr switches to main first. argus.json and the mods' saved state stay.

Development

npm test                               # pure modules and shell scripts, with node --test
herdr-app check mods/argus-tsk         # load and render a mod once
node scripts/sync-lib.mjs              # after editing a lib/*.js file: copy each into the mods that import it
node scripts/sync-lib.mjs --check      # exit 1 when a copy differs or a copy is not imported
git config core.hooksPath .githooks    # once per clone: check each commit message
node scripts/check-commits.mjs         # check the messages in main..HEAD
node scripts/herdr-diff.mjs --from 0.1.18  # after a Herdr update: release notes, changed files and patch checks up to the installed version
  • Each mod lives in mods/<name>/ with a README.md for people and a RECIPE.md for an agent rebuilding it.
  • lib/ holds code shared by mods. Building blocks: ui.js (frame, headers, count badge, rows, two-line board rows, menu rows and popup menus, fold titles, pane heads, Markdown text, fields, settings fields, the refresh interval picker, buttons, switch, segmented control and meters in the sizes of Herdr's own panels), menu.js (menu metrics and heights, and Up, Down, Enter and Escape in a menu), icons.js (load Herdr's icon files with a fallback to a mod's own copy) and pane.js (open a mod's pane, share its title, open links with cx.open_url, and text inputs that track focus). Shared reads: gate.js (one run at a time, with one queued), sync.js (which open copy runs a shared read, and the lock renewal and release), pool.js (run async work with a cap on how many run at once, and a process limiter), follow.js (match the focused space to a project folder, and compareNames, a case-insensitive name order) and paths.js (~ in paths). Forge boards: remote.js (git remotes and the project list), forge-cli.js (finding gh and glab, error text, list limits, reply checks and the shared argus.forge commands), forge-settings.js (read and save argus.forge), forge-runner.js (the gh, glab and folder reads of one mod copy), forge-board.js (board settings, scopes, Follow space, notes, kept lists, item groups, pane titles and display names), board-sync.js (the board read, its lock and the folder watch), worktree.js (worktree plans) and worktree-runner.js (start a worktree on a branch or for an issue and open its space). Claude Code accounts: accounts.js (find the account folders), profile-io.js (their file access), agent-accounts.js (find the account folder of a Claude Code agent's process) and agent-accounts-view.js (the account icon hooks, through argusProgram, for the agents lists). The toolbar: order.js (sort the toolbar buttons). Settings: argus-file.js (read and check argus.json, also the Jobs templates). Agents to start: agent-choices.js (the installed agents, with Claude Code once per account, for Review with agent and Jobs). Checks: checks.js (the check summary text of a pull request row). Labels: duration.js ("<1m", "5m", "2h", "3d"). Space groups: space-groups.js (the stored groups, the group order and sections, and the fight guard) and space-groups-view.js (the group headers and hooks of the sidebar copy). argus-claude-usage, argus-issues, argus-pull-requests and argus-tsk import ui.js, menu.js, icons.js, pane.js, gate.js, sync.js, follow.js and paths.js; argus-agents imports ui.js, menu.js, icons.js, agent-accounts.js, agent-accounts-view.js, argus-file.js, checks.js, duration.js and paths.js; argus-claude-usage and argus-pull-requests also import accounts.js and profile-io.js; argus-issues and argus-pull-requests also import pool.js and every forge board and worktree module; argus-toolbar imports order.js, argus-file.js and paths.js; argus-pull-requests also imports argus-file.js; argus-settings imports argus-file.js, paths.js, ui.js and menu.js; argus-space-groups imports space-groups.js, ui.js, menu.js, pane.js and icons.js; argus-jobs imports argus-file.js, agent-choices.js, accounts.js, profile-io.js, worktree.js, follow.js, paths.js, sync.js, gate.js, duration.js, ui.js, menu.js, icons.js and pane.js; argus-pull-requests also imports agent-choices.js and checks.js; argus-stay-awake imports none. A lib file can import another lib file, and a mod then carries both. Herdr loads a mod's files from its own folder only, so each mod carries a copy of the lib files it imports; a test fails when a copy differs. sync-lib.mjs also reports a copy that no module of the mod imports: --check fails on it, and the copy mode prints a warning.
  • A mod gets a toolbar button by declaring "panel": { "label": "Usage", "icon": "icons/chart-line.svg" } in its mod.json.

Credits

License

MIT

Reviews (0)

No results found