Nous Research's Hermes AI Cut Its Own Codebase by 34% Using 1,393 Subagents
On September 2, 2026, Nous Research tasked its Hermes Agent with refactoring the entire Hermes codebase, a process that ran for 19 hours and deployed 1,393 subagents with up to 218 running simultaneously. The operation reduced non-test Python code from roughly 1.06 million lines to 698,363 lines, a 34.4% decrease, and the resulting pull request was merged on September 4, 2026. Functions exceeding 300 lines dropped from 192 to just 2, while the single file gateway/run.py shrank from 34,847 lines to 5,512. The estimated cost of the main run was approximately $19,300, compared to a human-team estimate of $150,000 to $1.8 million for equivalent manual work. The team openly noted limitations in their own write-up, including that no new tests were written and the existing test suite remained essentially unchanged throughout the refactor.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in