Chuyển đến nội dung
Skillpedia
Prompt và LLM18k · #10646

long-horizon-prompting

Skill này làm gì

Skill này bao gồm cách viết prompt khởi đầu cho một agent AI sẽ làm việc tự động trong nhiều giờ hoặc nhiều ngày, một mình hoặc cùng nhiều worker song song. Nó dành cho người giao các tác vụ khó, dài và cần định nghĩa chính xác về thành công.

Khi nào nên dùng

  • ✓Khi bạn khởi chạy một agent AI dự kiến làm việc tự động trong nhiều giờ hoặc nhiều ngày.
  • ✓Khi bạn điều phối nhiều worker song song cho một vấn đề khó và cần bản giao rõ ràng.
  • ✓Khi một lần chạy dài phải biết chính xác khi nào dừng, trả kết quả hoặc tiếp tục.

Liên kết skill

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/long-horizon-prompting/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/long-horizon-prompting/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giúp tôi viết prompt khởi chạy cho một agent sẽ chạy một ngày với một vấn đề nghiên cứu khó, kèm tiêu chí thành công rõ ràng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill hướng dẫn bạn định nghĩa các thuật ngữ chính, nêu một phép kiểm tra thành công chính xác, liệt kê các kết quả có thể xảy ra và đặt quy tắc cho khi nào agent nên dừng hoặc báo cáo lại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

  1. 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.
  2. 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").
  3. Non-counting outcomes. An enumerated list of results that do not count: partial progress, special-case solutions, reductions to another un
Câu hỏi thường gặp

Bản giao việc bán hình thức là gì?

Đó là một đặc tả chính xác định nghĩa thuật ngữ và thành công rõ ràng, ngay cả khi không có bộ kiểm tra tự động.

Vì sao lần chạy dài cần bản giao chặt hơn?

Đặc tả yếu có thể lãng phí nhiều giờ công việc cho một câu trả lời trông đúng nhưng không giải được vấn đề.

Điều này chỉ áp dụng cho toán học à?

Không. Skill nói cấu trúc bản giao này có thể dùng ở bất kỳ lĩnh vực nào mà thành công và thất bại có thể được phát biểu chính xác.

Chi tiết

Mô tả gốc của tác giả

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

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

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10646
Giấy phép
MIT
Cập nhật
11/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự