Hermes Agent Just Proved It's a SERIOUS Coding Harness

Published
Sep 18, 2026
Duration
8:39

Reviewed written guide

This page includes an editorial companion. The video and written guide may include dated examples; check the source and current requirements before applying them.

Read the written guideChoose a practical follow-up
Click to load the YouTube player

Give Hermes one refactor whose behavior you can check: extract a self-contained helper, split a large module at a clear interface, or consolidate a duplicated operation. Save the starting revision, describe what must remain unchanged, and review the resulting patch before expanding the assignment.

That is a practical way to apply the large Hermes-on-Hermes cleanup without copying its scale. The reported project dispatched 1,393 subagents over about nineteen active hours, reached a merge after human review and required further fixes. It showed Hermes coordinating substantial coding work, while also exposing the limits of tests, repository searches and unattended execution.

The procedure below is a suggested small-project workflow. Historical results are attributed to the source account; no new Hermes benchmark or refactor was run for this guide.

Before you start: choose a change you can judge

Use an existing Hermes installation with a configured model, access to the repository and the tools needed to run its checks. Know how the project is normally built and tested. If you cannot judge the effects of the proposed change, involve an engineer before expanding it across the codebase. A passing command is useful evidence, but someone still needs to understand what it covers.

Choose a small starting task with an observable outcome. “Move the parsing helper into its own module while preserving its public import path and exceptions” is easier to review than “clean up everything.” Exclude unrelated feature work from the assignment. You want to know whether a behavior difference came from the refactor, not from an intentional feature mixed into it.

Write down:

  • The code the agent may change and the reason for the change.
  • Public names, parameters, output formats and error behavior that must remain compatible.
  • Existing checks and a few representative inputs, including failure cases.
  • The time or spending limit for the trial and who will review its result.

The large source case started from more than a million lines of non-test Python. gateway/run.py approached 35,000 lines, and maintenance had repeatedly lost priority to features and bug fixes. Teknium’s September 2 assignment sought smaller files, fewer huge functions and shared helpers, with at least a 30% reduction while retaining behavior. That percentage described the particular cleanup; it is not a suitable quota for every repository. Source background, 0:39.

A good extraction may add a few lines for an import or compatibility wrapper. Do not remove useful checks or public entry points merely to make a line-count target look better.

Preserve a baseline and give the worker a separate checkout

Start by inspecting the repository state. These read-only Git commands identify the current commit and any existing changes:

git status --short
git rev-parse HEAD

Record the commit ID. If the working tree has changes, preserve them through the project’s normal checkpoint process before proceeding. A Git commit ID does not include uncommitted edits, so do not assume a fresh worktree contains them.

For a repository with a clean, committed starting point, the following example creates a named branch and a separate checkout from HEAD:

git worktree add -b tutorial/refactor ../project-refactor HEAD
git worktree list

Choose an unused branch name and path appropriate to your project. Git’s worktree documentation describes this form. The original checkout remains available, and the new directory has its own working files. A worktree is not a security sandbox or a separate set of remote services; tests can still affect shared resources if the project’s configuration points to them.

Open the new directory in your existing Hermes workflow. In a terminal installation, hermes starts an interactive session; the CLI documentation describes its current behavior. Give the agent the exact worktree path and first ask it to identify the repository instructions, current branch and check commands. That verifies the assignment is pointed at the intended files before editing begins.

The commands above are a documented preparation route, not commands copied from the historical run. They do not install dependencies or decide which services your project needs for tests. Follow the repository’s own setup instructions for those details.

Write an assignment that returns inspectable evidence

A bounded prompt can be specific without prescribing every implementation decision:

Read this repository’s instructions and the named module. Propose a small extraction that reduces the oversized function while retaining behavior. Preserve the listed public imports, arguments, return values and exception types. Work only in this checkout. Run the relevant existing checks before and after the change. Return the changed paths, the reason for the extraction, exact check results and anything you could not verify. Do not merge or publish the result.

Supply the actual module path and compatibility list. This is a suggested trial brief, not Teknium’s original prompt. Ask for the first extraction before requesting similar changes everywhere.

Specify a useful completion record: baseline commit, worker branch, resulting commits, changed paths, check commands and their results. Include a plain-language account of what moved and which callers now reach it. That gives a reviewer a route through the patch rather than a generic assertion that the code is cleaner.

The source’s workers received written assignments covering scope, interfaces and checks. They began with 36 work areas, and some delegated further. The original agent handled coordination, reports, integration and checks instead of trying to write every patch itself. Claude Fable 5.1 supplied the model inference in the reported run; Hermes was the harness organizing the work. Coordination discussion, 1:14.

Video illustration of a worker delegating further, beside the total of 1,393 dispatched agents.
Original video illustration, not a Hermes interface screenshot. The 1,393 total counts dispatches across the run; peak concurrency was 218. Give each worker a bounded assignment and preserve integration work for the coordinator. Source frame at 2:00; open the image for full size.

Keep those responsibilities separate even on a small trial. The worker produces a candidate change. The coordinator or reviewer decides whether that change satisfies the assignment and fits the rest of the repository. More workers do not remove that second job.

Add delegation only when the assignments are independent

Start with one editing worker. Consider another only when the second task can be completed without guessing what the first will change. Two workers modifying the same central interface can each produce a locally sensible patch that conflicts at integration.

Current Hermes documentation describes child contexts as isolated, but the default working directory is shared. Its optional delegation.worktree_isolation setting can create separate child worktrees for supported local Git tasks. That setting has backend limitations and can fall back to a shared directory, so inspect the actual returned worktree information rather than assuming configuration proves isolation. See subagent delegation.

For a small project, explicit worktree paths in written assignments can make ownership easier to inspect. Require each worker to report its path and branch, and decide who is allowed to integrate changes. Use one person or coordinator to handle shared files and dependency changes.

The source’s 1,393 figure is a total dispatched across the run; peak concurrency was 218. Neither number is a recommended setting. More simultaneous workers can increase spending and local resource use while leaving one reviewer with more patches than they can assess. Expand only when the first assignment produces useful work at an acceptable review cost.

A practical split might give one worker a parser extraction and another a documentation check, while leaving the parser’s public API to one owner. A poor split would ask both to redesign the same parser entry point independently. Decide those boundaries before dispatch, not after two branches disagree.

Check behavior across the new module boundary

The reported gateway refactor moved message dispatch, streaming, RPC and lifecycle handling into separate modules. The original file fell from 34,847 to 5,512 lines. Across the repository, non-test Python reportedly shrank by 34.4%, and functions longer than 300 lines fell from 192 to two. These are source results, not targets this guide has reproduced. Results discussion, 2:37.

Video illustration showing gateway code split into message dispatch, streaming, RPC and lifecycle modules.
Original video illustration of the reported extraction. Smaller files are useful only if their callers and behavior still work across the new boundaries. Source frame at 2:50; open the image for full size.

For your extraction, follow a representative call from its public entry point through the new helper. Check what crosses that boundary: arguments, default values, returned data, exceptions and side effects. A function can keep the same name while changing the order in which it performs actions.

Use a small compatibility table before reviewing the patch:

SurfaceBaseline evidenceAfter-change check
Public importExternal-facing name and module pathImport still succeeds or an intended migration is documented
Command-line interfaceHelp and representative command outputRequired flags and behavior remain compatible
Tool or API schemaRecorded structured definitionRequired fields, types and defaults match
Failure pathException type and relevant side effectsThe same input fails in the intended way
Main workflowA representative input and expected resultRepeat it through the real entry point

The source workers compared tool schemas and CLI help with the original code and committed after verified steps. Those are useful checks when those surfaces are meant to remain identical. In your project, avoid treating unstable timestamps or environment-specific paths as functional regressions; define the comparison around the actual compatibility requirement.

Inspect tests changed by the refactor as carefully as application code. A worker that updates the expected result to match a new behavior can make a suite pass while violating the original assignment. Ask why each expectation changed and whether that change is within scope.

Compare failing checks with unchanged code

A failing test after an edit may reveal a regression, but it may also have failed before the work began. Preserve the exact command, environment and failure output so the two cases can be distinguished.

For an independent baseline checkout, replace BASE_COMMIT below with the recorded starting commit:

git worktree add --detach ../project-baseline BASE_COMMIT

Use an unused path. Prepare that checkout using the same project instructions and dependencies as the changed version, then run the relevant check in both. Do not compare a dependency-updated worker against an older baseline environment and assume every difference came from the source patch. Git documents detached worktrees in the same worktree reference.

Source article instruction to reproduce a failing check on unchanged code in a clean environment.
An authentic frame of the source article shown in the video. The baseline comparison helps separate an existing test failure from a regression introduced by the patch. Source frame at 3:55; open the image for full size.

Teknium’s accumulated development skill included checking failures against unchanged code. The source describes this as a procedure learned in everyday work, then carried into the larger refactor. That history mattered: the agent had repository-specific guidance beyond a broad request to simplify code. Verification discussion, 3:37.

Record one of three outcomes: new failure, pre-existing failure, or comparison inconclusive. The last is appropriate when the environments differ or the check is unreliable. A pre-existing failure is not automatically permission to ignore the affected behavior; it means the patch has not yet been shown to cause it.

Keep the baseline intact until review finishes. If a repair changes the worker branch again, rerun the check against that delivered version. A passing result from an earlier patch does not verify the next one.

Review public names and exception handling explicitly

The historical run removed public names because a search found no internal callers. External plugins could still import them. That is a common failure in repository-wide cleanup: the repository is not the entire set of users. The regression discussion begins at 6:08.

Video illustration connecting a Hermes repository to an external plugin.
Original video illustration. A public name can have external users even when the repository contains no caller; retain or deliberately migrate that interface. Source frame at 6:20; open the image for full size.

For each removed public symbol, ask whether it is documented, exported, used by a plugin interface or part of a supported import path. Preserve a compatibility wrapper when that is the appropriate project policy. If removal is intentional, treat it as an API change with a migration decision rather than quietly classifying it as dead code.

Exception handling deserves its own review. The source reports an automated rewrite changing behavior at roughly 65 sites, which existing tests missed. A shorter error-handling block can suppress a different exception, catch too much, or change when cleanup runs.

Pick failure cases that exercise the changed path. Compare which exception reaches the caller and what happened before it was raised. Did a resource close? Was state updated? Did the caller still receive enough information to recover? These are proposed review questions, not a claim that a single generic test can cover every project.

The large cleanup reached merge on September 4 after two rounds of community review and fixes, with more fixes afterward. Human correction is part of that outcome. Nous’s primary account corroborates the review and recovery history. It does not support describing the first unreviewed patch as regression-free.

Measure the improvement you actually wanted

Measure the chosen maintenance problem before and after the change. If the complaint was a huge definition that must be read for every fix, inspect the relevant definitions and their callers. If the complaint was duplicated behavior, verify the duplicates now share one implementation without creating an unexpected dependency.

The source reports a simulation of 4,000 symbol lookups. Average returned tokens dropped from about 2,200 to just under 1,000, while the median became more expensive. Smaller very large definitions improved the average; the result did not establish that complete coding tasks finished faster. Preserve that distinction when using the numbers to justify a refactor.

For your own trial, choose a small representative task you can repeat: locate the parsing logic, trace an error path, or identify the code needed for a familiar change. Record how many definitions and files you had to inspect. A smaller file is helpful when it makes that work easier, but excessive fragmentation can add navigation without improving clarity.

Also record the cost of getting the patch accepted: model use, retries and human review. The source estimates about $19,300 for the main run and roughly $25,000 with follow-ups, excluding human review. Those are historical project estimates, not a forecast for your repository or a current provider price.

After the trial, decide whether Hermes completed this type of assignment at an acceptable cost, including your review time. Ron still used Codex for most coding and wanted to test Hermes on a real task he would otherwise send there. The source is not a controlled harness comparison.

Save a handoff that survives a broken session

The reported run lost an authentication token. Another Hermes session diagnosed the failure and prepared a handoff; saved commits and briefs let the resumed session inspect and continue the unfinished work. A recovery plan is useful even for one worker because the chat history is not the only state that matters.

Before a long operation, keep a short handoff file with the objective, baseline, worktree paths, branches or commits, completed checks, unresolved failures and the next bounded action. Include where logs live. Leave credentials out of it. A replacement session should first inspect that state instead of assuming every statement in the handoff is still current.

After an interruption, check for surviving processes and uncommitted changes before starting another worker on the same files. Resolve the credential problem through the configured provider, then reconcile the partial patch. Do not discard useful work merely because its final report never arrived.

Resume the assignment at the smallest verifiable step. If the extraction is complete but tests stopped halfway through, inspect the diff and finish the checks. If files moved but imports remain inconsistent, record that unfinished state before repairing it. The handoff should make those cases distinguishable.

Reuse the review habit across research and coding

The source’s Hostinger-sponsored section describes a separate workflow: Hermes researching ideas for Ron’s Lord Yapper history-explainer channel on a VPS. Given the channel’s niche, style and covered topics, it prepares an outline, title options, a description and sources. Delivery is scheduled for 9:00 each morning through Telegram, with a separate Higgsfield prompt ready for a human-reviewed production handoff. Research workflow, 4:23.

Saved research brief explicitly marking its proposed historical explanation as unproven.
The separate research workflow preserves uncertainty in the handoff. This excerpt labels the proposed explanation as a hypothesis, giving the reviewer something specific to check before production. Source frame at 5:35; open the image for full size.

The transferable habit is to preserve enough evidence for the next decision. A research brief needs sources and uncertainty; a code patch needs its diff, checks and remaining risks. Neither is finished merely because the agent supplied a polished summary.

Ron chose the VPS for separation from his personal computer, continued operation while that computer was off, and lower cost in his circumstances than buying a dedicated Mac mini. That is his setup rationale, not a security certification or a general cost comparison. The recorded KVM 2, 24-month and boxmining10 offer are historical promotional details, not terms to assume when budgeting today. A recurring-research VPS is also not a prerequisite for the local coding trial described here.

Use repository instructions and reusable skills to keep successful corrections available for future tasks. Record a concrete procedure, such as how to compare a failing check with the baseline, rather than a vague rule to “be more careful.” The team in the source had developed that context over time; a new repository needs its own version of it.

Troubleshoot before expanding the refactor

SymptomLikely review gapNext action
Workers overwrite each other’s changesShared files or unverified checkout ownershipConfirm actual worktree paths and give shared interfaces one owner
Tests pass but a plugin breaksPublic API users outside the repositoryRestore or deliberately migrate the missing interface
An exception disappearsChanged suppression or error boundaryCompare failure behavior and side effects with the baseline
A failure appears in both revisionsExisting defect or environment problemRecord it and assess relevance without blaming the patch prematurely
Agent reports success but changes are incompleteReport not reconciled with delivered filesInspect the diff and list the unresolved acceptance criteria
Session stops after partial workMissing durable state or provider failureRecover commits, inspect uncommitted files and resume from a handoff
The code is shorter but harder to navigateExtraction boundaries optimized for line countTrace a representative maintenance task and revise the boundaries

Finish the first trial with a reviewable branch and a decision about that change. The AI rewrite audit guide applies the same distinction between completion claims and delivered work to editorial tasks. For code, retain the compatibility checks, baseline and human review that make the decision defensible.

Put the idea to work

Use a separate lesson or workflow to practice. These are suggested follow-ups, not claims that the video's results have been reproduced.

Ship a small code change with proof

Keep the brief, diff, and repeatable checks together.

Before you start
An installed coding agent and a disposable local repository. Choose the lesson for your existing tool.
Make
A contained change with a written brief, reviewed diff, test evidence, and run instructions.
Check
Exercise normal, empty, and incorrect inputs. Compare failures against the unchanged baseline and make the result reproducible.
Open the workflow