agent-harness-design
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "agent-harness-design" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1cfe7f351c7993f5ae483c3775730f817aaf6787afac1696520292ad4b2e0f39. Verify the upstream source and version against https://github.com/AnastasiyaW/codex-claude-code-config before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Define the specifications and policies for an agent harness and tool system. Includes tool risk classification, permission decisions, draft/submit modes, structured tool results, ten types of agent budgets, context-trust labels for prompt injection, plans and artifacts, approval records, observability and tracing, thirteen evaluation categories, event model, streaming buffers, third-party skill install checklist, agent-style RAG, self-improvement SOP loops, model policies, inference cost, and thresholds for programmatic tool calls. Intended for building new Agent SDK apps, custom orchestrators, MCP servers, tool-enabled workers, agent RAG pipelines, or model routing/hierarchy designs. Not for improving or auditing an already-built harness (use harness-audit / harness-design) or for ordinary Claude Code sessions.
Introduction source: third_party · AnastasiyaW · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Designing agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given.
- Testing
- Not tested
Browse files
Frontmatter
name: agent-harness-design
description: Designing agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given.Agent Harness Design
Eleven operational reference sheets for designing a safe, observable agent harness. They are situational — load only the one(s) relevant to the current task from references/ (this is why they live in a skill rather than always-on rules: building an agent harness is occasional, so the detail should not bloat every session's context).
references/agent-tool-design.md— 15-class risk taxonomy, 7-type permission decision object, draft/commit naming, structured tool results, deferred tool loading, hosted vs client tools, connector code-execution pattern.references/context-trust-labels.md— trusted / semi_trusted / untrusted labels + verbatim boundary statement; prompt-injection defense.references/agent-budgets.md— 10 mandatory budget types every agent loop must declare.references/agent-evals.md— 13 eval categories + 13 adversarial test cases + when to add regression evals.references/agent-observability.md— 16 trace fields per model call, 7-question audit, 6-step incident response.references/agentic-rag-model-policy.md— self-improving agentic RAG state, specialist roles, evaluation vectors, Pareto selection, OpenAI model/effort policy, and Programmatic Tool Calling adoption gates.references/agent-plan-artifact.md— planning mode, plan artifact format (10 fields), plan-validate-execute.references/agent-approval-records.md— approval request/result JSON schemas, scope/expiration, no self-approval.references/agent-streaming.md— buffering for incremental tool calls when stream=True; abort handling; output guardrail modes.references/agent-event-model.md— 13 typed events for harness state persistence (replay/audit/compaction/evals).references/agent-skill-install-checklist.md— pre/during/post install + audit + incident response for 3rd-party skills.
Source: distilled from the agents-best-practices skill (Denis Sergeevitch, MIT) + Anthropic harness-design engineering. Read the specific reference before applying — do not work from this index alone.
Version history
-
v2026.10.24
GitHub ↗
Original release notes
Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 11 个全面的设计参考文档,涵盖工具风险分类、权限决策、代理预算等关键维度
- 适用于构建 Agent SDK、MCP 服务器、代理式 RAG 等高频刚需场景,实用价值极高
Highlights
- 触发词精准完整,明确列出适用与不适用场景,边界清晰
Areas to improve
-
缺少具体使用示例 Reported severity: Minor
Skill 缺少端到端的使用示例和 When to Use 章节
Recommendation: 建议补充具体的使用示例和明确的 When to Use 说明
Highlights
- 结构清晰,列出了 11 个参考文件及其核心内容
- 有明确的用途说明和来源说明
Areas to improve
-
引用文件缺失 Reported severity: Major
Skill 引用了 references/ 目录下的 11 个参考文件,但实际传入内容中未提供这些文件
Recommendation: 请确保所有被引用的参考文件都包含在 Skill 包中,或提供外部访问链接
Highlights
- Skill 本身为设计参考,逻辑完整,不涉及具体工具调用错误
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.