Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/lugassawan/swe-workbench/convergegit clone --depth 1 https://github.com/lugassawan/swe-workbenchWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/lugassawan/swe-workbench/converge)<a href="https://agentmods.dev/commands/lugassawan/swe-workbench/converge"><img src="https://agentmods.dev/badge/commands/lugassawan/swe-workbench/converge.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00062 | $0.07243 |
| Opus 5 | $0.00031 | $0.03622 |
| Sonnet 5 | $0.00012 | $0.01449 |
| Haiku 4.5 | $0.00006 | $0.00724 |
Grade A, and why
converge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 483 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run a local, unattended convergence loop on the current branch: review → verify findings → fix →
re-review, until the reviewer has nothing left to say at or above Medium severity, then push once.
No intermediate round is ever posted to GitHub — findings live in a local scratch file under
$RUN_DIR and are deleted the moment they're consumed.
Argument parsing
$ARGUMENTS carries at most one flag: --cap <N>, N in 2..6. Parse it once, up front:
CAP=4
case "$ARGUMENTS" in
*--cap*)
CAP=$(printf '%s\n' "$ARGUMENTS" | grep -oE -- '--cap[= ]([0-9]+)' | grep -oE '[0-9]+' | head -1)
case "$CAP" in
2|3|4|5|6) ;;
*) echo "converge: --cap must be an integer in 2..6 (got: ${CAP:-<empty>})" >&2; exit 1 ;;
esac
;;
esac
echo "Cap: $CAP reviews (default 4 when unset)"
CAP counts reviews, not rounds — see "Cap and the loop invariant" below.
Phase 0 — Preflight
Runtime guard, one representative script (proves the whole bin/ PATH entry is present):
command -v swe-workbench-new-run-dir >/dev/null 2>&1 || {
echo "swe-workbench runtime commands not on PATH — reinstall or update the swe-workbench plugin." >&2
exit 1
}
Refuse on the default branch or a detached HEAD — the loop commits, so it needs a branch to commit onto:
BRANCH=$(git rev-parse --abbrev-ref HEAD)
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
[ -n "$DEFAULT_BRANCH" ] || DEFAULT_BRANCH=main
if [ "$BRANCH" = "$DEFAULT_BRANCH" ] || [ "$BRANCH" = "HEAD" ]; then
echo "converge: refusing to run on '$BRANCH' — check out a feature branch first." >&2
exit 1
fi
BASE="$DEFAULT_BRANCH"
git fetch origin "$BASE" --quiet || true
if [ -z "$(git diff "origin/$BASE"...HEAD)" ]; then
echo "converge: no diff between origin/$BASE and HEAD — nothing to converge." >&2
exit 1
fi
Ownership gate — refuse, do not warn
The loop commits and pushes autonomously, so running it against a PR you don't own is a
destructive-by-default hazard, not a style issue. This is a stronger gate than
swe-workbench:workflow-address-feedback's owner check, which only shapes prompts.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 483 lines · 62 tokens per session scan A 97ba7623fb8e
converge is a command published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 7,243 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
brooks-debt
Run a Brooks-Lint tech debt assessment.
brooks-review
Run a Brooks-Lint PR code review.
pr
Create a pull request with zetetic-standard review and documentation.
notebook
Add entries to the lab notebook, view recent entries, or search by tag or keyword.
route
Analyze a problem description, find matching genius agent shapes, and recommend agents.
provenance
View, add, or verify provenance records for source-tracked files.