agent-harness-design
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "agent-harness-design":https://skillpi.com/zh/skills/deepskill-1cfe7f351c7993f5ae483c3775730f817aaf6787afac1696520292ad4b2e0f39。安装前核对上游来源和版本:https://github.com/AnastasiyaW/codex-claude-code-config。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
设计代理 harness 与工具系统的整体规范与策略。内容包括工具风险分类、权限决策、草稿/提交流程、结构化工具输出、10 类代理预算、针对提示注入的上下文信任标签、计划与工件、审批记录、可观测性与追踪、13 类评估、事件模型、流式缓冲、第三方技能安装检查清单、代理式 RAG、自我改进 SOP 循环、模型策略、推理开销与程序化工具调用门槛等。适用于构建新 Agent SDK、定制编排器、MCP 服务器、带工具调用的 Worker、代理式 RAG 流水线或模型路由/分层策略时。不可用于已构建 harness 的改进或审计(应用 harness-audit / harness-design),也不适用于已有 Claude Code 会话的常规模块。
介绍来源: third_party · AnastasiyaW · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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.
版本历史
-
v2026.10.24
GitHub ↗
原版更新说明
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
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 11 个全面的设计参考文档,涵盖工具风险分类、权限决策、代理预算等关键维度
- 适用于构建 Agent SDK、MCP 服务器、代理式 RAG 等高频刚需场景,实用价值极高
亮点
- 触发词精准完整,明确列出适用与不适用场景,边界清晰
待提升项
-
缺少具体使用示例 原报告严重程度:轻微
Skill 缺少端到端的使用示例和 When to Use 章节
改进建议:建议补充具体的使用示例和明确的 When to Use 说明
亮点
- 结构清晰,列出了 11 个参考文件及其核心内容
- 有明确的用途说明和来源说明
待提升项
-
引用文件缺失 原报告严重程度:重大
Skill 引用了 references/ 目录下的 11 个参考文件,但实际传入内容中未提供这些文件
改进建议:请确保所有被引用的参考文件都包含在 Skill 包中,或提供外部访问链接
亮点
- Skill 本身为设计参考,逻辑完整,不涉及具体工具调用错误
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。