本文へスキップ
Skillpedia
エージェント18k · #10643

harness-engineering

できること

このスキルは、自律的に動くAIエージェントの境界を設定する方法を説明します。何を変更してよいか、進捗をどのように記録するか、いつ人の承認が必要かなどです。自律的なエージェントのループを回すチーム向けです。

使う場面

  • ✓エージェントに、絶えず指示せずに長時間の研究や実験を回させたいとき。
  • ✓エージェントが自分の採点ルールやベンチマークを変えないようにする必要があるとき。
  • ✓変更のプルリクエストを準備するエージェントを、承認のステップ付きで設定するとき。

スキルのリンク

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/harness-engineering/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/harness-engineering/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“夜通し実験を回すエージェントの、安全な設定を設計してください。採点チェックは固定し、何かをマージする前に人の承認を入れてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、固定された部分と編集できる部分、永続的なログ、新規性のチェック、ロールバック、承認のポイントを説明します。これによりループが、軌道を外れずに動けます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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:

read locked context -> choose hypot
よくある質問

固定された対象とは何ですか?

採点方法など、エージェントが変更してはならない設定の一部です。

なぜログを残すのですか?

永続的なログにより、エージェントと人が何を試したかを確認でき、失敗からの回復に役立つためです。

人はいつ介入しますか?

変更のマージなど、取り消せない行動の前に、人の承認ポイントをスキルが定義します。

詳細

作者による元の説明

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.

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

人気

GitHubのスター
18k
ランキング
#10643
ライセンス
MIT
更新日
2026/10/11

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル