Refactor a large repo with parallel agent workers
One developer had an agent break a huge cleanup into many parallel tasks and merge a PR that cut non-test Python by 34.4%.
- What they did
- A Nous Research developer set Hermes a standing objective with /goal and let it use skills it had accumulated over time. The agent divided the repository into 36 separate work areas, then sent out 1,393 subagents with their own git worktrees to make changes, verify each step, and compare interfaces with the original code. When one token expired after about fifty minutes, another session prepared the handoff and the run continued.
- How it went
- After about 19 hours, the merged pull request reduced non-test Python from 1,063,826 lines to 698,363, and gateway/run.py went from 34,847 lines to 5,512. Reviewers still found regressions the tests did not catch, and six files remained above 5,000 lines. The main run cost about $19,300, or roughly $25,000 including follow-up work, not counting human review.
- Tips
- This kind of cleanup needs tight review, because tests can miss behavior changes. It also helps to plan for long runs that may need a handoff if a session ends early.
Try it yourself with Hermes Agent
Review [repo path or name] for dead code, repeated logic, and oversized modules. Break the work into independent chunks, assign them across separate worktrees or branches, and after each change run [test command] and compare the public interfaces with the current codebase. Before any irreversible step like merging, deleting files, or submitting a pull request, stop and ask me to approve the exact change list and summary. When you finish, give me a concise report with files changed, lines removed, tests run, and any risks you found.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Build a local AI setup and personal knowledge graph
They had Hermes Agent assemble a local AI stack and connect Gbrain for chat-based knowledge-graph lookups.
Set up a Claude Code and Codex coding swarm
They wired Claude Code to spawn Codex helper agents, then used the same system to build and deploy a self-hosted app stack in 24 hours.
Build a 3D city view of your repo and agents
A solo developer made a local-first 3D browser app that turns a codebase into a city and shows installed coding agents as avatars.
Let an agent inspect and build a project on your server
Hermes Agent was given a remote Ubuntu VM, checked the machine, made a workspace, built a small Python project, and verified it ran.
Use OpenClaw for coding, research, and small tasks
A commenter leaned on OpenClaw for coding, research, and one-off chores, then had Hermes study each run to discover a faster way to do the same work.
Use a team chat agent to spin up client prototypes
A small software shop let Hermes watch team chat and connected it to their repo and server tools so it could draft prospect prototypes after approval.