claude-skills/engineering/agent-harness
Claude adb1041beb
Merge origin/dev (#1038 landed) into claude/project-thread-2noqxb
Conflicts were only the headline counter lines; took dev's 728 tools and
re-applied 100 marketplace plugins. Re-ran the /cs: sweep over the merged
tree, including the Codex index #1023 regenerated, and caught three forms the
first pass missed: /cs:* wildcards, /cs:<slug> placeholders, and the
book-to-skill emitter, which generated /cs:{slug} into every new package.
c-level-agents counts now say /c-level-agents:* since its skills are not
cs-prefixed. check_command_refs.py now also catches the wildcard forms.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HiL4hfMQoQjiFmMUbPnpJJ
2026-10-21 07:51:35 +00:00
..
.claude-plugin fix(docs): replace 2,308 /cs:<name> references with names Claude Code can run 2026-10-21 07:48:14 +00:00
agents feat(engineering): agent-harness skill + agentic-readiness audit of both engineering domains 2026-07-03 06:01:43 +00:00
commands fix(docs): replace 2,308 /cs:<name> references with names Claude Code can run 2026-10-21 07:48:14 +00:00
skills/agent-harness Merge origin/dev (#1038 landed) into claude/project-thread-2noqxb 2026-10-21 07:51:35 +00:00
README.md fix(docs): replace 2,308 /cs:<name> references with names Claude Code can run 2026-10-21 07:48:14 +00:00

agent-harness

Turn any domain folder of this repo into a bounded agentic loop: pick up a goal, compile it into tasks with machine-run verification, execute, verify, retry with caps, escalate to a human when budgets exhaust, and close only when everything is verified.

GOAL → goal_compiler → PLAN → loop_controller: [execute → verify]* → CLOSE
                                     ↑ retry ≤ caps, changed approach
                                     └ ESCALATE — never fake success

What ships

Piece Purpose
scripts/harness_manifest_builder.py Scan a domain folder → manifest.v1 JSON (skills, tools, checks, agentic signals)
scripts/goal_compiler.py Goal + manifest → plan.v1 task plan; refuses vague goals (exit 3, forcing questions)
scripts/loop_controller.py init/next/record/verify/close/status state machine; controller runs checks itself
assets/harnesses/*.json 18 committed per-domain manifests (regenerable, diff-stable)
assets/harness_manifest.schema.json Manifest schema
references/ Agentic-loop canon, verification discipline, domain-harness design (cited)
agents/harness-runner.md Stateless one-task-per-invocation executor
commands/cs-harness.md /cs-harness <domain> <goal> end-to-end driver

All tools are stdlib-only, pass --help and --sample, and emit JSON.

Design lineage

Anthropic's long-running-agents harness (feature-list + stateless shifts), verifier's law, SWE-agent's environment-feedback lesson, Ralph-loop fresh-context iteration, Cognition's serialize-writers rule, and this repo's own tc-tracker / autoresearch locked-evaluator / loop-library stop-state primitives. See skills/agent-harness/references/.