Refactor a million-line repo with 1,393 subagents
A Nous Research developer had Hermes dispatch 1,393 subagents over about 19 hours to clean up its own repo, cutting non-test Python source by 34.4% in a merged PR.
Done withHermes Agent
- What they did
- Teknium gave his everyday Hermes agent a standing goal with /goal, plus a dev skill it had built up over time. The orchestrator split the code into 36 non-overlapping groups and wrote briefs for workers. Workers used separate git worktrees, committed after each verified step, and checked interfaces against the original. An expired token killed the run at about fifty minutes, so a separate session prepared a handoff and the run resumed.
- How it went
- Non-test Python fell from 1,063,826 to 698,363 lines (34.4%), and gateway/run.py from 34,847 to 5,512 lines. Reviewers found regressions the tests missed, and six files still exceeded 5,000 lines.
- Worth knowing
- Model spend was about $19,300 for the main run, roughly $25k with follow-ups, excluding human review. Review caught removed public names that plugins use and altered exception handling at about 65 sites.
Try it yourself with Hermes Agent
Audit my repo at [path or repo name] for dead code, duplicated logic, and over-complicated modules. Split the cleanup into independent chunks, work on each in a separate branch, and run [test command] after every change. Finish with one pull request summary showing lines removed and test results, and pause for my review before merging or deleting anything.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: nousresearch.com · Undated
Related use cases
Set up a home chat server and manage accounts from your phone
A Hermes agent running on a local Qwen model set up an Open WebUI server and handled account management via phone, giving the author's teen their own account.
Run agents that work Jira tickets, review PRs and send updates
Luke runs several Hermes agents that read Jira tickets, write code, review PRs, track costs, summarize docs and send updates.
Book conference meetings via autonomous outreach
The poster scraped conference participants, wrote a runbook, and woke Hermes each morning to run outreach, booking 30+ meetings over two conference days.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Audit a feature's issues and hand them to an engineer's agent
An AI agent listed all issues with a feature and sent them to an engineer, whose own agent then addressed most of them automatically.
Custom agent
Cross-check coding agent answers with a second agent
The poster built a tool that automatically sends Claude Code responses to Codex for a second opinion, replacing manual copy-pasting.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.