Claude code harness

From hashgraph-online/awesome-codex-plugins · View interactive version

Claude code harness is an AI agent skill from the GitHub repository hashgraph-online/awesome-codex-plugins. Design a real harness for an agentic system using Claude Code-inspired patterns. Use when the user needs a harness blueprint, request assembly design, execution loop, tool runtime, memory layering, permission model, transcript or recovery strategy, or wants to turn a vague agent idea into a harness-

How to use this skill

Skill file

Claude Code Harness

Design the harness, not just the agent prompt.

This skill helps turn an agent idea into a harness blueprint that specifies:

What to optimize for

Prefer harnesses that are:

Output contract

When this skill is active, default to a harness blueprint with these sections:

  1. System goal and delegation boundary
  2. Harness layers
  3. Request assembly design
  4. Turn loop design
  5. Tool and capability runtime
  6. Context and memory model
  7. Permissions and safety gates
  8. Transcript and recovery model
  9. Extension surfaces
  10. Implementation sequence

If the user is reviewing an existing design, lead with structural weaknesses and missing control planes.

Workflow

1. Clarify whether the user needs a harness at all

Start by answering:

If the workflow does not need a harness, say so directly.

2. Define the harness boundary

Separate:

The harness is the layer that governs the model, not the model itself.

For a deeper framing, read references/harness-principles.md.

3. Design request assembly before discussing autonomy

Specify:

If request assembly is vague, the harness is still vague.

4. Design the turn loop

Make the loop explicit:

Prefer a small, legible loop over a large “AI orchestration” story.

5. Treat tools as a runtime plane

For each tool or action surface, define:

Tools are not just capabilities. They are governance boundaries.

6. Treat memory as multiple layers

Separate at least these concerns when relevant:

Do not collapse memory into one implicit blob.

For reusable patterns, read references/harness-pattern-language.md.

7. Design safety and control into the runtime

Specify:

The harness should make power legible before it makes power scalable.

8. Design persistence and recovery

Make explicit:

If the system cannot recover from partial work, it is brittle.

9. End with implementation order

Translate the harness design into a build order:

Use references/harness-blueprint-template.md when a formal blueprint is required.

Anti-patterns

Push back on these designs:

Style guidance

References

Load only the reference files you need and keep the final answer operational.

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.