BotCurrent
← Back to examples

Build & debugPublic exampleActs with your OK

Plan a large refactor in parallel pieces

A big refactor touches too many files for one pass. Your AI splits it into pieces that don't step on each other.

What happened

A public pull request in the Hermes Agent repo on GitHub shows the agent handing parts of a large refactor to helpers in separate Git worktrees. It combined their changes into one pull request with test results. Maintainers and the community reviewed it before merge, and the write-up says a person stepped in along the way.

Source: Teknium / Nous Research · github.com · Tool: Hermes Agent

Copy this prompt

Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.

Use it often? Save it as a skill

Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.

Download for Claude (.zip)View the skill file

How to add it
Claude app or claude.ai
Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
Claude Code
Run this in your terminal:mkdir -p ~/.claude/skills/plan-a-large-refactor-in-parallel-pieces && curl -fsSL https://botcurrent.com/skills/plan-a-large-refactor-in-parallel-pieces/SKILL.md -o ~/.claude/skills/plan-a-large-refactor-in-parallel-pieces/SKILL.md
Codex
Run this in your terminal:mkdir -p ~/.agents/skills/plan-a-large-refactor-in-parallel-pieces && curl -fsSL https://botcurrent.com/skills/plan-a-large-refactor-in-parallel-pieces/SKILL.md -o ~/.agents/skills/plan-a-large-refactor-in-parallel-pieces/SKILL.md

More about skills, and open-source skills we checked

Security scanClear13 of 13 checks passed

We check every skill file before we offer it. This one is the prompt above in skill form.

  • Passed Skill file is well formed
  • Passed Runs its own code or programs
  • Passed Connects to the internet from code
  • Passed Touches passwords, keys or private files
  • Passed Deletes or overwrites things in bulk
  • Passed Hidden or scrambled code
  • Passed Tries to override your instructions
  • Passed Invisible characters in the text
  • Passed Sends your data somewhere else
  • Passed Can pay or buy without asking you
  • Passed Downloads or installs other software
  • Passed Has a password or key written into it
  • Passed Asks for admin (sudo) rights

Files scanned: SKILL.md. Links to: botcurrent.com, github.com. Fingerprint: 22124da39d85. What we check

What you'll get

A plan that splits the refactor into separate pieces, with the order to do them and tests to run after each.

You'll need

  • The goal of the refactor
  • The folders or modules involved
  • How you run the full test suite

Before you switch it on

Acts with your OK

If you give this job to an agent that works in your accounts:

Access it needs
Your code repository and a terminal
Keep on “ask me first”
Sending or posting anything, paying or buying, sharing your address or ID, deleting anything

Heads up: Run the full test suite after you combine pieces. Each can pass alone and still break together.

More details: full instructions, sources and safeguards

Before you begin

Approve compute budget, externally exposed code and final merges after regression review.

Use this in your own AI tool

  1. Copy the starter, then open your own AI tool.
  2. Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
  3. Review the draft and held questions. Any later action needs separate approval.

What you need

Authorized scope and dependency maps with expected preserved behavior.

Integration constraints, shared-contract ownership and reviewer acceptance criteria.

A private work-partition proposal; no subagents, compute, code disclosure, pushes or merges are activated.

Start here

  1. Map supplied refactor scope and shared contracts to proposed isolated work areas.
  2. Identify interface owners, integration order and unresolved design decisions.
  3. Plan combined regression checks beyond local areas; reserve agent execution, repository writes and merges for separate approval.
Advanced prompt availability

Advanced prompt

No accepted companion is available for this record. The original material below retains its original status.

Technical setup & run design — optional
Starter
Separate short starter version composed-v1. Untested.
Advanced prompt
No accepted advanced companion is available. Legacy material remains in the original notes with its status.
Compatibility
Unknown; check the actual tool, account and permissions.
Run design
No reviewed run design. No runtime or schedule is activated by BotCurrent.
Setup and access

Proposed inputs

  1. Name

    Refactor scope map

    Owner

    Maintainer

    Minimum scope

    Affected areas, desired structure and preserved interfaces

    Quality check

    Identify shared files and generated artifacts.

  2. Name

    Integration constraints

    Owner

    Engineering lead

    Minimum scope

    Ownership rules, baseline checks and merge-review requirements

    Quality check

    Distinguish local completion from combined acceptance.

Access and setup — proposed or unknown

Proposed minimum
  1. Fictional dependency maps and an offline work-partition proposal.

Compatibility unknowns
  1. Unknown: current runtime, isolated work-area support, test environment and integration tooling.

External actions requiring approval
  1. Repository edits, compute allocation, code disclosure, pull-request publication and final merge.

Source evidence, attribution & limitations

Full source evidence

Public artifact · Coding orchestration

Original task title: Refactor a large codebase through coordinated subagents

Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.

Original source

https://github.com/NousResearch/hermes-agent/pull/102117

Attributed to: Teknium / Nous Research

Public artifact
Original action type
coding_agent_orchestration
What the source reports
Hermes delegated structural refactoring across isolated work areas, reconciled changes and produced a merged pull request with test evidence.
Source outcome limits
The public artifact supports the described output. It does not by itself establish independent reproduction or end-to-end execution reliability.
Evidence attribution caveat
The public artifact supports the described output. It does not by itself establish independent reproduction or end-to-end execution reliability.
Source approval description
Maintainer and community review preceded merge; the accompanying write-up reports human intervention.
Named tools
Hermes Agent; delegate_task; Git worktrees; Python; GitHub.
Model or version
Unknown
Publication date
2026-09-03
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Run on an owned test repository without client secrets. Set CAD cost alerts, compatibility tests and maintainers as the final merge authority.
Recommended approval boundaries
Approve compute budget, externally exposed code and final merges after regression review.
Technical specification & detailed checks
Detailed steps and output format

At a glance

Suggested result
A coordinated refactor pull request with check results.Suggested; untested.
Tool
Hermes AgentSource-named; check current access.
Suggested inputs
Refactor scope map; Integration constraintsProposed; access notes below.
Human review
Approve compute budget, externally exposed code and final merges after regression review.Suggested boundaries; source approvals below.
Setup notes
Fictional dependency maps and an offline work-partition proposal.Guide notes; proposed setup untested.
Cost
Workflow cost not established. Check current tool pricing, setup and human review costs before trying it.No measured cost or time added.
Content depth
Source-linked example · suggestions untestedDepth does not establish successful execution.
Check source evidence and limits ↓

Function and scope

Software engineering · Single task

Editorial classification; no execution or compatibility test is implied.

No tool mapping reviewed for this task.

Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.

The problem

A large structural refactor spans too many files for one isolated editing pass to coordinate safely.

Suggested task

Delegate refactoring across isolated work areas, reconcile changes and gather pull-request test evidence.

What you could produce

A coordinated refactor pull request with check results.

Where these suggestions come from
  • Core problem: Our interpretation of the task
  • Agent job: Our interpretation of the task
  • Expected output: Our interpretation of the task
  • Relevant job roles: Our interpretation of the task
  • Benefit type: Our interpretation of the task
Suggestions and their limits

Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.

Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.

Before you try it · suggestions untested

Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. A broad structural refactor can divide neatly by directory while still sharing interfaces, generated files and tests across boundaries. Parallel work may make each local change look reasonable even when the combined result contains conflicting assumptions.

  2. A coordination packet could define ownership, shared contracts and integration checkpoints before edits begin. Maintainers could see where work can proceed independently and which changes require joint review, without treating parallel completion as evidence that behavior was preserved.

Why an agent / simpler alternative

Useful judgment

Partition responsibilities and identify shared dependencies that make apparently separate edits interact.

Simpler alternative

Use a sequential refactor when the change is tightly coupled or small enough for one maintainer to review coherently.

Unsuitable when

The repository lacks a behavior baseline or no one owns integration and regression review.

Expected deliverable and review checks

Proposed artifact

Work partition with shared-contract owners, integration sequence and proposed regression evidence.

Critical checks
  1. Every shared interface has an explicit coordination owner.

  2. Combined review includes cross-area behavior beyond local checks.

Missing output evidence

No new workflow run or output inspection was performed for this overlay; use the canonical source-outcome references.

First check — proposed, unexecuted

Status

proposed_unexecuted

Synthetic fixture

A fictional refactor plan assigns the same interface to two workers and lists only local checks.

Acceptance checks
  1. Expose overlapping ownership.

  2. Require combined evidence without claiming any tests have passed.

Stop conditions
  1. Worktree creation, code edits, test execution or merge actions are needed.

Tasks: Build & debugResearch & discovery

Useful for: Software developer

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
Hermes AgentIndependent testing: No
Failure handling, costs and limits

Failure signals and proposed responses

  1. Signal

    Two work packages both rename a shared public type.

    Why it matters

    Local changes may conflict or silently diverge.

    Proposed response

    Assign one owner and require dependent packages to consume the reviewed contract.

  2. Signal

    Each package passes its proposed local checklist but no integration check exists.

    Why it matters

    Cross-boundary regressions can remain invisible.

    Proposed response

    Add a maintainer-reviewed integration evidence requirement before considering merge readiness.

Effort and cost — unknown

Setup work
  1. Map dependencies and assign integration ownership.

Ongoing review
  1. Reconcile shared changes and inspect later regression evidence.

Unknowns
  1. Unknown: parallel compute costs, conflict volume and review complexity.

Limits

  1. This planning review is not a reproduction of the referenced artifact or evidence of refactor correctness.

Original task overview & interpretation

Public artifact

Refactor a large codebase through coordinated subagents

A large structural refactor spans too many files for one isolated editing pass to coordinate safely.

Suggested result

A coordinated refactor pull request with check results.

What you need: Source-named agent: Hermes Agent. Suggested inputs: Refactor scope map; Integration constraints. Fictional dependency maps and an offline work-partition proposal. Workflow costs and current compatibility remain unverified.

Approve compute budget, externally exposed code and final merges after regression review.

Public artifact. BotCurrent has not independently tested this workflow.