본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/harness-engineering/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬