Hermes Agent reduces codebase size by 34.4% with 1,393 subagents
For developers, this shows a practical example of how to use subagents to significantly reduce code size and costs, with a concrete result of 34.4% reduction and $2m saved.
Nous Research used Hermes Agent to clean up a million lines of Python code.
The process involved 1,393 subagents and took nineteen hours, resulting in a 34.4% reduction in code size and nearly $2m in engineering cost savings.
The approach highlights the use of self-evolving skills and compounding engineering in agent harnesses.
Recommended reading. This is probably one of the bigger subagent runs showing good results. Two things caught my attention: self-evolving skills and compounding engineering. Both are important techniques in harness engineering. Overall, subagents reduced LOC significantly and delivered insane cost savings. Hermes Agent is a proper agent harness with self-improving mechanisms, but I am not sure this same approach would work in other harnesses. What works in one harness doesn't always transfer easily to others. This is why I am excited about custom harnesses. So much optimization is left out in these general-purpose coding harnesses. Do pay attention to these differences in your harness. My other observation was the use of a whopping ~1.4K subagents. Yes, it reduced costs, and it probably helped with parallelizing things. But could this run have been done cheaper using fewer subagents? This is something to explore if you are a harness engineer. I feel like this piece also highlights the importance of the harness and the customizations needed to provide the right context to agents when they need it. Pay attention to how your agent harness can use self-evolving skills (encoding lessons and experience) to scale agents effectively. Nous Research @NousResearch New blog post: We had a million lines of Python to clean up. On September 2nd @Teknium asked Hermes Agent to do it. 1,393 subagents and nineteen hours later, the codebase was 34.4% smaller, saving us nearly $2m in engineering hours. nousresearch.com/refactoring-he… 🔗 View Quoted Tweet📊 8 ⚡
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Nous Research, Hermes Agent, prompt engineering, subagents.
Source attribution: curated from elvis (@omarsar0).