Skip to content
agentusehub

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.

Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

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.

Reported experience

  1. 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.

  2. 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.

  3. 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.

Example prompts

Try 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.
Software & DevOps

Port a Chrome extension to Safari

The author had ChatGPT take the Session Buddy extension source from Chrome, port it to Safari and install it, taking about 20 minutes.

ChatGPT