Zum Inhalt springen
Skillpedia
Agenten29k · #9524

agent-harness

Was er macht

Dieser Skill lässt den Agenten ein Ziel in kleinen, geprüften Schritten abarbeiten, wobei ein Kontrollmechanismus entscheidet, wann die Arbeit fertig ist. Er ist für Menschen gedacht, die wollen, dass ein KI-Agent mehrstufige Arbeit zuverlässig beendet und nicht nur behauptet, sie sei erledigt.

Wann du ihn nutzt

  • ✓Wenn du einem Agenten ein mehrstufiges Ziel gibst und jeden Schritt geprüft haben willst.
  • ✓Wenn ein Agent immer wieder Aufgaben ohne Nachweis als erledigt meldet.
  • ✓Wenn eine lange Aufgabe aus einem gespeicherten Zustand in einer neuen Sitzung fortgesetzt werden muss.

Link zum Skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agent-harness/skills/agent-harness/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agent-harness/skills/agent-harness/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe unseren Zahlungsdienst und entwirf ein SLO mit einem Fehlerbudget, und stell sicher, dass jeder Schritt geprüft ist, bevor du ihn als erledigt meldest.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent macht aus dem Ziel einen Aufgabenplan mit Prüfungen, bearbeitet jeweils eine Aufgabe und lässt einen Kontrollmechanismus jedes Ergebnis prüfen. Wiederholungen sind begrenzt, und wenn ein Budget aufgebraucht ist, wird die Arbeit eskaliert statt als erledigt markiert.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Agent Harness

You are a harness operator, not a hero. The loop — not your optimism — decides when work is done. Your job: compile the goal into tasks with checks, execute one task at a time, let the controller adjudicate verification, and stop when the state machine says stop.

The contract

GOAL → goal_compiler → PLAN → loop_controller: [execute → verify]* → CLOSE
                                     ↑______retry (≤ max_attempts, changed approach)
                                     └── ESCALATE on exhausted budgets — never fake success

Three layers, all JSON: a committed per-domain manifest (what skills/tools/checks exist), a per-goal plan (which tasks, which verifications, what "done" means), and a per-run state file (the single source of truth; a fresh session resumes from it alone).

Quick start

# 0. Pick the domain manifest (20 committed under assets/harnesses/, e.g. engineering-team.json)
ls assets/harnesses/

# 1. Compile the goal (refuses vague goals with exit 3 + forcing questions)
python3 scripts/goal_compiler.py \
  --goal "audit the payments service and design an SLO with an error budget" \
  --manifest assets/harnesses/engineering.json --out plan.json

# 2. Initialize the loop state
python3 scripts/loop_controller.py init --plan plan.json --state .agent-harness/state.json

# 3. Drive the loop — repeat until directive is "close" or "escalate"
python3 scripts/loop_controller.py next --state .agent-harness/state.json
#    → {"action": "execute", "task": "T1", ...}: open the task's skill (SKILL.md at
#      skill_path), do the work with its tools, then:
python3 scripts/loop_controller.py record --state .agent-harness/state.json \
  --task T1 --phase execute --exit-code 0
#    → the controller runs the task's checks ITSELF (subprocess, timeout, evidence log):
python3 scripts/loop_controller.py verify --state .agent-harness/state.json --task T1 --cwd <repo-root>

# 4. Close — refused (exit 4) while any task is unverified and unwaived
python3 scripts/loop_controller.py close --state .agent-harness/state.json

Regenerate a manifest after skills change (diff-stable, CI-checkable):

python3 scripts/harness_manifest_builder.py --domain engineering-team \
  --repo-root <repo-root> --out-dir assets/harnesses --no-timestamp

Hard rules

  1. Never adjudicate your own verification. verify runs the checks via subprocess; a passing record --phase verify without --evidence is rejected (exit 6). You do not get to declare a task verified.
  2. Never modify a gate you are judged by. Check commands come from the manifest/plan. Editing a check to make it pass is the reward-hacking failure mode (see references/verification_discipline.md) — same invariant as autoresearch-agent's locked evaluator.
  3. One task at a time, writes serialized. Parallelize reading and judging, never two tasks writing the same artifact (references/agentic_loop_canon.md).
  4. Retry means a changed approach. Same command + same input = same failure. The retry directive says so; honor it.
  5. Budgets are terminal states, not suggestions. max_attempts_per_task → escalated (exit 2); max_loop_iterations → escalate (exit 5). Exhausted budgets are never reported as success — a human waives (close --waive T3 --reason "..."), you don't.
  6. Fresh context beats long context. Every next directive is executable by a new session reading only the plan + state files. Long-running goals: run each iteration as its own session against the durable state.
  7. State lives in .agent-harness/ — never in .agenthub/, .autoresearch/, or docs/TC/ (those belong to sibling skills).
  8. Plan and state files are a trust boundary. verify shell-executes each task's check command; only run the harness on plan/state files you or goal_compiler.py produced, never on files from untrusted input (see references/verification_discipline.md).

Forcing questions (ask before compiling; one per turn, with a recommended answer)

# Question Recommended answer Why (canon)
1 What single observable outcome means DONE? A named artifact + a command that exits 0 against it Verifier's law: invest in verifiability first
2 Which domain harness applies? The domain whose skills name the deliverable;
Häufige Fragen

Was passiert, wenn eine Aufgabe immer wieder fehlschlägt?

Der Kontrollmechanismus begrenzt die Wiederholungen und eskaliert, damit der Agent keinen Erfolg vortäuscht.

Kann eine neue Sitzung dort weitermachen, wo die alte aufgehört hat?

Ja. Die Zustandsdatei hält den Fortschritt fest, sodass eine neue Sitzung allein daraus fortfahren kann.

Funktioniert ein vages Ziel?

Nein. Der Zielcompiler lehnt vage Ziele ab und stellt zuerst gezielte Fragen.

Details

Originalbeschreibung des Autors

Use when an agent should drive a goal in one of this repo's domains to a verified close, before starting the work. Compiles the goal into a task plan with goal_compiler.py and runs it through loop_controller.py, which verifies each task, caps retries and escalates.

repo: alirezarezvani/claude-skills

Beliebtheit

GitHub-Sterne
29k
Platz im Ranking
#9524
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills