long-horizon-prompting
它能做什么
这个技能讲解如何为将独自或与多个并行工作者一起工作数小时或数天的 AI 智能体撰写起始提示词。适合启动困难的长期任务、需要精确定义成功标准的人。
适用场景
- ✓当你启动一个预计将自主工作数小时或数天的 AI 智能体时。
- ✓当你让许多并行工作者共同解决一个困难问题,需要清晰的简报时。
- ✓当一次长时间运行必须准确知道何时停止、返回或继续时。
技能链接
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/long-horizon-prompting/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为一个需要运行一天、解决困难研究问题的智能体撰写启动提示词,并明确成功标准。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能引导你定义关键术语、说明精确的成功测试、列出可能的结果,并设定智能体何时应停止或汇报的规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Long-Horizon Prompting
This skill covers the design of the prompt that launches an agent expected to work autonomously for hours or days, alone or as an orchestrator managing many parallel workers. The central technique is the pseudo-formal task brief: a specification written with the rigor of formal verification but expressed linguistically, because most hard problems have no machine-checkable success condition. The exemplar is the published prompt behind GPT-5.6 Sol Ultra's candidate proof of the Cycle Double Cover Conjecture, produced by a 64-subagent orchestration (claim-long-horizon-cdc-run). The prompt structure generalizes far beyond mathematics: any domain where success can be stated precisely and failure modes can be enumerated can use the same brief anatomy. In orchestrated runs the same discipline applies at every handoff: when a model optimized its own multi-agent workflow text in Sakana AI's MASS work, task information moved out of worker roles and into output contracts and call order (claim-long-horizon-contract-information-shift).
The controlling trade-off: everything that makes a long run productive (persistence, autonomy, parallelism) also raises the cost of a weak specification. A short interactive prompt fails cheaply; a long-horizon brief with a loophole burns hours of compute producing an answer-shaped artifact that does not solve the problem.
When to Activate
Activate this skill when:
- Writing or reviewing the prompt for a long-running autonomous run before launching it
- Converting a vague hard problem ("solve X", "figure out why Y happens") into an explicit brief with a success predicate and non-counting outcomes
- Writing the root or orchestrator prompt that manages many parallel workers on an open-ended search problem
- Adding persistence instructions, stop conditions, effort floors, or return gates to an agent prompt
- Writing the output contract and acceptance checks each delegated worker must satisfy, or the rule for which review findings block a return
- Diagnosing a failed long run whose failure traces to the brief: premature return, an answer-shaped near miss, all workers converging on one approach, or fabricated completion claims
- Building a pre-launch review step that enhances and evaluates prompts before expensive agent time is committed
Do not activate this skill for adjacent work owned by other skills:
- Agent topology, supervisor versus swarm choice, handoff protocols, and coordination mechanics:
multi-agent-patterns. That skill owns the architecture; this skill owns the words that steer it, including the contract each worker must return. - Runtime control surfaces, locked evaluators, rollback, durable logs, and approval boundaries around an autonomous loop:
harness-engineering. Constraints that must survive optimization pressure belong in the harness, not the prompt. - Building the evaluator, regression suite, or deterministic quality gates a run is scored by:
evaluation. - LLM-as-judge design, rubrics, pairwise comparison, and bias mitigation:
advanced-evaluation. - Compaction, note-taking, and cross-session memory mechanics for surviving context limits:
context-compression,memory-systems,filesystem-context. - Loops that modify their own harness or prompts:
self-improvement-loops. - Remote sandboxes and background execution infrastructure:
hosted-agents.
Core Concepts
Pseudo-Formal Task Specification
Formal verification requires a machine-checkable specification. Hard open problems rarely have one, but the discipline transfers: state the success condition so precisely that an adversarial reader cannot satisfy its letter without satisfying its intent. Four components, in order of leverage:
- Definitions with degenerate cases. Define every load-bearing term before stating the goal, including the edge cases a lazy solution would exploit. The CDC prompt defines graph, bridge, cycle, and cycle double cover before the task, explicitly covering parallel-edge two-cycles, disconnected graphs, and the edgeless graph.
- Exact success predicate. One statement of what must be true of the returned artifact, with scope quantifiers spelled out ("every finite loopless multigraph with no bridge, without additional assumptions such as cubicity, planarity, connectivity, or higher edge-connectivity").
- Non-counting outcomes. An enumerated list of results that do not count: partial progress, special-case solutions, reductions to another un
常见问题
什么是伪形式化的任务简报?
它是一份精确的书面规格,即使没有自动检查器,也能清楚地定义术语和成功标准。
为什么长时间运行需要更严格的简报?
薄弱的规格可能让许多小时的工作浪费在一个看似正确、实则没有解决问题的答案上。
这只适用于数学吗?
不是。该技能说明,只要能够精确描述成功与失败,任何领域都可以使用相同的简报结构。
详情
作者的原始描述
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-age
热度
- GitHub 星标
- 18k
- 排名
- #10646
- 许可证
- MIT
- 更新时间
- 2026/10/11
评论
- …
同一仓库的更多技能
context-engineering-collection
18k帮你的智能体管理输入 AI 模型上下文窗口的内容,涵盖记忆、工具、多智能体配置以及评估。
advanced-evaluation
18k教你的智能体如何用另一个 AI 来评判 AI 的回答,包括打分、并排比较和偏差检查。
bdi-mental-states
18k教你的智能体用 BDI 方法对信念、目标和计划进行建模,使其决策可以被追溯和解释。
context-compression
18k帮你的智能体把很长的 AI 会话压缩成摘要,保留决策、文件、风险和下一步。