mcpField
D
dynamic-harness

dynamic-harness

github.com/robsonrungAgent workflows269 installsUpdated 2d ago
Repository

About dynamic-harness

Dynamic Harness is a skill for coordinating delegated work when independent workers can improve speed or evidence. It provides patterns for delegation, bounded work, verification, and durable tracking across longer missions.

Key features

  1. 01Patterns for delegation and synthesis
  2. 02Briefs with scope and success criteria
  3. 03Worker budgets and stop conditions
  4. 04Evidence-based result verification
  5. 05Durable mission ledger for resumable work

Use cases

  1. 01Inspecting independent files or hypotheses
  2. 02Verifying a high-impact result independently
  3. 03Coordinating work that spans restarts or batches

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/robsonrung/rar-skills --skill dynamic-harness

After installing, type/dynamic-harnessin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlscripts/start_mission.py

Details

From the project README

Dynamic Harness

Choose the branch before selecting a model. Plan and classify work in the current coordinator. Before dispatching selected workers, use shared/references/model-preview.md to bind one approved route snapshot.

Model IDs, effort support, and task defaults come only from shared/model-routing.json. Preserve the approved snapshot during dispatch, retry, and resume.

Use this skill for work that benefits from explicit delegation. It is not the default for a normal task. The smallest coherent shape is one local worker or one bounded check; add agents only when independent work reduces time or improves evidence.

Outcome

Deliver a verified result with clear ownership, evidence, and a stop condition. For work that spans a context window, a restart, or several batches, keep a durable ledger.

Choose the Pattern

NeedPattern
Choose the right route or specialistClassify and act
Inspect independent files, claims, or hypothesesFan out and synthesize
Challenge a high-impact resultAdversarial verification
Generate options then rank themGenerate and filter or tournament
Search an unknown amount of workLoop until done

Use one pattern unless a dependency requires two. Keep the main agent on the critical path while independent workers run.

Prepare the Brief

Before delegation, write a short brief with the objective, success criteria, selected pattern, worker scopes, verification method, stop condition, ceiling, and output path. Give each worker:

Role:
Scope:
Goal:
Allowed actions:
Write scope:
Evidence required:
Done condition:

Workers receive only the context they need. Assign disjoint write scopes for code changes. Use a worktree when parallel edits or an experiment could collide. Keep untrusted content away from privileged actions.

Run the Work

  1. Use the snapshot's routes with shared/references/task-shaped-model-routing.md and native delegation with shared/references/host-model-execution.md. Prefer native tools for supported host models and external runners for other selected routes. If no route can meet an exact model assignment, report the affected route; serial local work cannot stand in for a different approved model.
  2. Start only independent workers. Use a verifier for high-impact outputs and give it the evidence and rubric, not the worker's conclusion.
  3. Inspect every worker result and changed path before integration. Mark each material claim verified, refuted, or unresolved.
  4. Keep external side effects and destructive operations in the main workstream unless the user has authorized them.
  5. Synthesize evidence, preserve material dissent, and run the nearest safe verification command after code changes.

Loops and Budgets

Before a repeated batch, define three exits: a success signal, an escalation condition, and a hard ceiling on batches and workers. Record planned workers, calls, and remaining authorized budget before each dispatch. The model never decides the retry.

Default scale is one to three workers for a quick check, then a representative slice before expanding. Ask for a budget only when the requested work can materially consume paid services, production access, or a large fleet.

Manager Mode

Use manager mode only for a long mission with several workstreams or a likely restart. The manager owns routing, integration, and the final report. Workers own exploration and bounded implementation.

Create a mission directory before the first worker. Set SKILL_DIR to the absolute directory containing this file in the same shell call:

SKILL_DIR="<absolute path of this dynamic-harness directory>"; python3 "$SKILL_DIR/scripts/start_mission.py" --title "short task title"

Keep the brief, worker reports, and run-state.json under that mission directory. Progress lives in the ledger, not the transcript. On resume, read the run state and keep completed steps and side effects already decided. Reconcile pending calls and reuse the recorded context for further turns of the same role. Close only confirmed unused workers owned by this run; dispatch only remaining work.

If the host cannot create a separate thread, write a handoff file and its seed prompt. Do not claim that a thread exists. Hand off the path, not the payload.

Report

Report the selected pattern, worker count and scopes, verified outcome, evidence, unresolved risks, and any ledger or handoff path. A mission report also names its identifier and remaining worker state.

Comments

Markdown supported