harness-engineering
This skill should be used when designing autonomous agent harnesses: research loops, evaluation scaffolds, locked and editable surfaces, durable logs, novelty…
Skill by guanyang
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/guanyang-harness-engineering
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: research, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
harness-engineering- Description
- This skill should be used when designing autonomous agent harnesses: research loops, evaluation scaffolds, locked and editable surfaces, durable logs, novelty gates, pruning, rollback, PR preparation, and human approval boundaries.
- License
- MIT
- Instructions
- 231 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Harness Engineering Harness engineering designs the control system around an agent: what it may edit, how it receives feedback, where it writes state, how failures recover, and who can approve irreversible actions. The harness is the difference between a helpful agent session and an autonomous loop that can run for days without corrupting its objective. ## When to Activate Activate this skill when: - Building autonomous research or experimentation loops - Designing an agent environment with locked metrics and editable code or content - Creating PR-producing or background agents - Evaluating whether an agent can safely run without frequent human prompts - Adding novelty, ablation, pruning, rollback, or durable logging to an agent workflow - Preventing agents from gaming benchmarks, weakening rubrics, or losing state across compaction Do not activate this skill for adjacent work owned by other skills: - General quality gates, regression suites, or outcome metrics without autonomous control surfaces: `evaluation`. - Tool schemas, response formats, and recovery errors for harness tools: `tool-design`. - Project-level task-model fit, pipeline shape, and cost planning: `project-development`. - Remote sandbox, warm-pool, and hosted session infrastructure: `hosted-agents`. ## Core Concepts ### Harness Boundary Separate the agent from the environment it operates inside. The agent proposes actions; the harness defines allowed surfaces, feedback, persistence, and promotion rules. Use four surface classes: | Surface | Examples | Rule | | --- | --- | --- | | Locked | Eval metric, rubric, validation script, merge policy | Agent may read and propose changes, but cannot score itself with modified rules | | Editable | Skill draft, experiment file, prompt, config under test | Agent may mutate during the loop | | Append-only | Results log, research thread, rejected ideas | Agent may append, not rewrite | | Human-controlled | Merge, production deploy, credentials, destructive operations | Requires explicit human approval | ### Tight Feedback Loops Autonomy works when feedback is fast, unambiguous, and hard to game. Karpathy's `autoresearch` is the minimal pattern: one editable file, one locked evaluation file, fixed wall-clock budget, one scalar metric, git rollback, and a durable results log. The lesson is not that every harness needs one metric; it is that ambiguous feedback creates ambiguous autonomy. For open-ended research-to-skill work, replace the scalar metric with locked rubrics, deterministic structure checks, source traceability, and human review thresholds. ### Durable State Long-running agents must externalize state. Store plans, source queues, results, failures, and handoffs in files so future agents can resume without relying on chat history. Prime Intellect's autonomous nanoGPT work showed the value of durable scratchpads and `THREAD.md`-style logs for recovery, monitoring, and audit. Use append-only logs for: - What was tried - What improved or failed - Why a candidate was kept, discarded, or routed to review - Which upstream sources were checked - What the next agent should do ### Search Discipline Agents tend to exploit the nearest surface, stack complexity, and under-run pruning. Add explicit search rules: 1. Refresh upstream sources on a schedule. 2. Require novelty checks before spending large budgets. 3. Preserve rejected attempts to avoid rediscovery. 4. Run leave-one-out pruning when a stack has multiple additions. 5. Reward simplification when quality is equal. 6. Use separate verification before promotion. ### Mechanism Registry For research-to-skill systems, track accepted mechanisms separately from prose. A mechanism record should include a stable `mechanism_id`, `owning_skill`, `status`, activation scenario, behavior change, evidence, and failure modes. Novelty gates should compare against this registry before using broader corpus overlap, because keyword overlap catches stale phrasing while mechanism comparison catches real duplication. ### Governance Autonomous agents may prepare PRs, but governance must be explicit. They can draft changes, run checks, and write PR summaries. They should not merge, deploy, or push without human approval unless the user has explicitly granted that permission for the specific action. ## Detailed Topics ### Autoresearch-Style Loop Use this pattern when optimizing an artifact against a stable evaluator: ```text read locked context -> choose hypothesis -> edit allowed surface -> commit/checkpoint -> run evaluator -> log result -> keep if better -> discard or rollback if worse -> repeat ``` Required properties: - The evaluator is outside the editable surface. - The feedback cadence is fixed enough to compare attempts. - Failed attempts leave an audit trail. - Rollback is cheap. - The agent has a policy for crashes and timeouts. ### Research-To-Skill Loop Use this pattern when sources become skill changes: ```text discover -> retrieve -> gate -> score -> extract mechanism -> map to existing or new skill -> draft proposal -> validate structure -> prepare PR -> human review ``` The locked evaluator is a combination of source rubrics, skill-change rubrics, structure checks, and reviewer approval. The editable artifact is the proposed skill delta. ### Metric Gaming Resistance Assume an optimizing agent will learn the harness. Guard against: - Editing evaluation code or rubrics and then using the new version for self-approval - Adding verbose content that pleases a judge but harms skill activation - Citing unretrieved sources - Optimizing aggregate scores while failing a critical dimension - Avoiding failed results in the log Mitigation: lock rubrics per run, report per-dimension scores, require source retrieval evidence, preserve rejected attempts, and route governance changes to human review. ### Monitoring Agents
From guanyang/open-agent-hub, MIT.
More from guanyang/open-agent-hub
- 0.700score
notebooklm
guanyang
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini.
SkillBFreshness: B★ 980Claude Code +9 - 0.691score
claude-academy-guide
guanyang
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
SkillBFreshness: B★ 980Claude Code +9 - 0.648score
baoyu-image-cards
guanyang
Generates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes.
SkillCFreshness: C★ 980Claude Code +9 - 0.644score
baoyu-imagine
guanyang
AI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream and Replicate APIs.
SkillCFreshness: C★ 980Claude Code +9 - 0.639score
remotion-best-practices
guanyang
Best practices and domain knowledge for building videos programmatically with Remotion (videos in React/TypeScript, rendered to MP4).
SkillCFreshness: C★ 980Claude Code +9 - 0.629score
mediabunny
guanyang
Multimedia handling with the Mediabunny library
SkillCFreshness: C★ 980Claude Code +9 - 0.541score
mcp-builder
guanyang
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillCFreshness: C★ 980Claude Code +9 - 0.541score
skill-creator
guanyang
Create new skills, modify and improve existing skills, and measure skill performance.
SkillCFreshness: C★ 980Claude Code +9 - 0.537score
algorithmic-art
guanyang
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillCFreshness: C★ 980Claude Code +9 - 0.537score
brand-guidelines
guanyang
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillCFreshness: C★ 980Claude Code +9 - 0.537score
pdf
guanyang
Use this skill whenever the user wants to do anything with PDF files.
SkillCFreshness: C★ 980Claude Code +9 - 0.537score
canvas-design
guanyang
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillCFreshness: C★ 980Claude Code +9
Signals
- Stars
- 980
- Forks
- 165
- Open issues
- 4
- Last commit (this folder)
- Jun 30, 2026 (4 months ago)
- Last release
- Jun 24, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/guanyang/open-agent-hub
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from guanyang
- 0.700score
notebooklm
guanyang
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini.
SkillBFreshness: B★ 980Claude Code +9 - 0.691score
claude-academy-guide
guanyang
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
SkillBFreshness: B★ 980Claude Code +9 - 0.648score
baoyu-image-cards
guanyang
Generates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes.
SkillCFreshness: C★ 980Claude Code +9 - 0.644score
baoyu-imagine
guanyang
AI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream and Replicate APIs.
SkillCFreshness: C★ 980Claude Code +9 - 0.639score
remotion-best-practices
guanyang
Best practices and domain knowledge for building videos programmatically with Remotion (videos in React/TypeScript, rendered to MP4).
SkillCFreshness: C★ 980Claude Code +9 - 0.629score
mediabunny
guanyang
Multimedia handling with the Mediabunny library
SkillCFreshness: C★ 980Claude Code +9
Cite this page
harness-engineering skill. Agent Mart. https://agentmart.dev/skills/guanyang-harness-engineering (last updated 2026-10-24)