Agent harness architect

From ashermahonin/agentic-skills · View interactive version

Agent harness architect is an AI agent skill from the GitHub repository ashermahonin/agentic-skills. Design or review the control layer around a tool-using agent: request schema, routing, context, tools, permissions, budgets, memory, evaluation, telemetry, retries, approvals, delegation, and handoff. Use before adding persistent memory, external execution, broad tool access, unattended loops, MCP s

How to use this skill

Skill file

Agent harness architect

Purpose

Define how an agent receives work, acts, is observed, and stops. The harness owns control and recovery; skills supply task procedures.

System context

  1. Read references/harness-patterns.md.
  2. Define the task class, users, environment, data sensitivity, side effects, and failure cost.
  3. Inventory models, tools, MCP servers, memory stores, evaluators, workers, and human operators.
  4. Read references/runtime-capabilities.md and record the capabilities required by the task.
  5. Define the autonomy budget and the exact actions that need approval.

Harness design

  1. Define the request contract: goal, constraints, success criteria, context, permissions, budget, and stop conditions.
  2. Use deterministic routing for known cases. Use model classification only where judgment is needed and define a low-confidence fallback.
  3. Keep the tool set small. Each tool needs a typed schema, side-effect description, timeout, retry policy, idempotency expectation, and recovery path.
  4. Separate working context from durable memory. Persistent memory needs provenance, retention, access control, correction, and deletion rules.
  5. Evaluate tool contracts, representative tasks, permission behavior, and production drift separately.
  6. Capture route, tool calls, latency, cost, errors, approvals, retries, and outcome without storing secrets or unnecessary private content.
  7. Give each delegated worker a bounded input, owned surface, expected output, timeout, and merge order.
  8. Define retry budget, circuit breaker, kill switch, checkpointing, rollback, and human escalation before unattended execution.
  9. Run the relevant agentic security review before production use.

Control rules

Harness contract

Review checklist

Handoff

Pass the harness contracts, runtime assumptions, threat model, evaluation plan, open risks, and implementation ownership to decompose-work, service-implementation, or qa-eval.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.