harness-engineering
Skill141 starsChanged 6 months agoMITView on GitHub
Use when an agent workflow needs production-like runtime controls for context, tools, permissions, observability, scheduling, evaluation, recovery, or maintenance.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- DamonZS/Claude-Codex-Pro-Tooltheir own version, first seen Sep 8, 2026
- fiveonecode/agent-skillstheir own version, first seen Sep 6, 2026
- docxology/templatetheir own version, first seen Aug 29, 2026
- goldenprofile/llm-skillstheir own version, first seen Aug 12, 2026
- muratcankoylan/Agent-Skills-for-Context-Engineeringtheir own version, first seen Aug 10, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- github/awesome-copilot★ 40ksame name
- muratcankoylan/Agent-Skills-for-Context-Engineering★ 18ksame name
- kangarooking/kangarooking-skills★ 653same name
- magnus919/agent-skills★ 109same name
- charlesanim/harness-engineering★ 20same name
- docxology/template★ 20same name
- fiveonecode/agent-skills★ 19same name
- DamonZS/Claude-Codex-Pro-Tool★ 9same name
- drewid74/ai_skills★ 8same name
- goldenprofile/llm-skills★ 3same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- system/claude.mdCLAUDE.md
- agentic-engineeringSkill
- agent-teams-commandSkill
- ai-six-sigma-property-osSkill
- anthropic-osSkill
- behavior-designSkill
- cognitive-compileSkill
- context-managerSkill
- creativity-engineSkill
- daily-okrSkill
- deep-researchSkill
- graph-engineeringSkill
- knowledge-opsSkill
- loop-engineeringSkill
- project-flow-opsSkill
- session-learnSkill
- startup-evaluationSkill
- verify-before-claimSkill
- wiki-ingestSkill
- wiki-lintSkill
- workflow-auditSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
If state ownership, credential scope, external side effects, retention, or approval authority is unclear, return NEEDS_INPUT.
- Distinctive: line 65
Add deterministic feedback (tests, lint, LSP, policy checks) outside context when possible.
- Distinctive: line 120
Every delegated action is bounded, observable, independently verifiable, and recoverable.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness Engineering
<skill_contract>
<input>An agent workflow, runtime environment, tools, data sensitivity, effects, cadence, risk, and operator constraints.</input>
<output>An auditable runtime kernel with scoped permissions, scheduling, observability, recovery, and eval controls.</output>
<done>An end-to-end trace and failure-path tests prove bounded, replayable, recoverable delegated action.</done>
<non_goals>Business-task decomposition, prompt-only safety, broad credentials, or unbounded scheduled autonomy.</non_goals>
Treat the harness as the kernel around an LLM OS: context is RAM, durable state is disk, tools are system calls, skills are programs, the scheduler is control, and evals are verifiers. Load references/runtime-control-patterns.md for matrices and schemas. Start guarded automation from references/runtime-envelope-example.json and validate it with scripts/validate_runtime_envelope.py --strict.
Usage Template
Provide: workflow, users, agent roles, environment, tools/connections, data sensitivity, delegated actions, cadence, throughput/SLA, failure history, and risk tolerance.
Workflow
<intake>Run the trace gate: the harness must be able to show what the agent saw, proposed, called, changed, and verified. Separate Intent Plan (human-reviewable source), Compiled Contract (validated runtime envelope), Agent (instructions/capabilities), Environment (network/files/credential broker), and Session (mounted context/events/state). Define one auditable control path for high-risk intent and final joins. Model output is never execution authority.
</intake><unknowns_gate>
If state ownership, credential scope, external side effects, retention, or approval authority is unclear, return NEEDS_INPUT. Probe tools with read-only discovery where possible; unknown side effects default to denied.
</unknowns_gate>
<execute>- Pass Four-C: Context truth/retrieval, Connections scoped accounts/APIs, Capabilities versioned skills/scripts/evals, Cadence trigger/receipt/anomaly/stop.
- Compile the reviewed intent plan into a versioned runtime envelope. Validate
plan hash,
tool_execution_owner: host, filesystem/network/secret boundaries, output cardinality, legal no-op, budgets, approvals, audit paths, and rollback before execution. - Map runtime: stored program, control unit, hot context, durable disk, event bus, I/O tools, verifier, and garbage collector.
- Choose the lowest-context primitive: deterministic script/hook, skill, static Graph, connector, dynamic workflow, or agent team. Load capabilities lazily. Graph Engineering owns dependency semantics; the harness owns the ready queue, leases, duplicate delivery, concurrency, and executor health.
- Define each tool as a narrow host-owned system call with purpose, explicit inputs, bounds, timeout, idempotency, failure path, evidence, and audit location. Validate model-proposed arguments before dispatch.
- Enforce zero trust and least privilege in the environment, not only prose: bind access to task, resource, operation, and time; use exact network allowlists and opaque secret handles; never expose raw credentials to model context. Stage and vet writes before external commit.
- Normalize each model
termination_reasoninto complete, tool request, checkpoint/truncation, refusal/error, or unknown. The host decides whether to execute, continue, checkpoint, or escalate; success prose cannot override the control signal or verifier. - For delegated action require mandate, scope, limit, preview, receipt, and rollback. Human approval governs irreversible/shared/financial/published/credentialed actions.
- Define allowed output types, maximum external outputs, and a verifiable
NO_OPcondition. Quiet execution is success only when eligibility was checked and no side effect occurred. - Add deterministic feedback (tests, lint, LSP, policy checks) outside context when possible; add independent evaluator/red team for high-risk semantic output.
- Persist an append-only session event log and checkpoint; define alerts, fallback, incident response, cleanup, permission review, and stale-context/rule review.
- For scheduled work define Trigger, Context, Steering, Receipt, budget, stop, recovery, and executor health. A schedule firing is not task success.
- For Graph execution, persist node/edge/join transitions before releasing successors, make delivery idempotent, recover from the last verified checkpoint, and test permission denial, worker loss, duplicate events, and compensation without relying on in-memory scheduler state.
</execute><evaluate>Threat-model normal, denied, timeout, partial-write, stale-context, duplicate-trigger, compromised-input, evaluator-disagreement, and rollback paths. Verify permissions with actual environment boundaries and run an independent end-to-end trace. Adoption fails if operators cannot inspect or recover the system.
</evaluate><retry_policy>
max_attempts: 3 per tool/failure class. Retry only idempotent or compensated actions after changing diagnosis/strategy. Use exponential delay for transient dependencies. Stop on repeated signature, permission denial, ambiguous side effect, or NO_PROGRESS.
</retry_policy>
<state_contract>
Persist {run_id, status, attempt, budget, evidence, unknowns, last_error, next_action} plus intent-plan hash, compiled-contract hash, agent/environment/session versions, context manifest, normalized termination reason, tool/permission/credential-lease registry, output quota, no-op receipt, event offsets, approvals, evals, alerts, recovery point, and rollback receipts. State transitions are auditable and replayable.
</state_contract>
Failure Protocol
NEEDS_INPUT: ownership, effect, retention, or approval authority is ambiguous.BLOCKED_PERMISSION: deny the call and continue with a safer read-only path when useful.BLOCKED_DEPENDENCY: checkpoint, back off, and expose executor health.VERIFY_FAILED: trace, eval, guardrail, or rollback test fails; block autonomy escalation.NO_PROGRESS: changed attempts repeat the signature.max_attempts: 3.BUDGET_STOP: stop scheduler/workers, checkpoint, and emit a recovery receipt.
Output Contract
Return status, result (runtime architecture and controls), evidence (trace/eval/failure tests), unknowns, and next_action including approval or rollback.
Edge Cases
- A connector exposes broad account access for a narrow task: create a scoped proxy/allowlist or keep the workflow manual; instructions alone are insufficient.
- A model emits plausible success text with a tool request: validate and execute the tool in host code, then verify its result; do not treat the text as task completion.
- A maintenance run finds no eligible change: emit a verified
NO_OPreceipt and zero external outputs rather than creating notification or PR noise. - The scheduler ran on time but the state store was stale: block mutation, mark the run failed, and recover from the last verified checkpoint.
- A Graph worker completes twice after lease expiry: deduplicate by node/run identity and release successors only from one verified transition.
Success Metrics
- Every delegated action is bounded, observable, independently verifiable, and recoverable.
- Runtime state can be replayed across sessions without relying on chat history.
- Autonomy level follows measured reliability and operator review capacity.
Quality Gates
- Agent, Environment, Session, and serial control ownership are explicit.
- Intent plan and compiled runtime envelope are hash-bound and pass strict validation.
- Tool effects are enforced by real permissions and contracts.
- Termination routing, secret isolation, output limits, and legal no-op are host-enforced.
- Independent eval, approval, manual fallback, and rollback match risk.
- Schedules have executor receipts, hard budgets, stop, and recovery.
- Maintenance includes cleanup, permission audit, and rule half-life.
</skill_contract>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

