AI Agent Harness Engineering:把 LLM 跟 deterministic 編排層分開
Mitchell Hashimoto 提出的 "Agent = Model + Harness" 框架。88% 企業 AI agent 上不了 prod 不是 prompt 問題、是缺一層 deterministic 編排。4 個 CS primitive 不能跳:state machine / idempotency / DAG / DLQ。
01PROMPT
Brain (LLM) only decides what task next + evaluates quality. Body (Harness) handles everything else deterministically: state / retry / DAG / DLQ.
[ 登入後可看完整內容 ]02CONTEXT / 使用情境
原作者把 Mitchell Hashimoto 的 "Harness Engineering" 概念展開成可實作的 SOP。對 AI agent 開發者來說、這是「為什麼我 prototype 神、production 死」的根本答案 — 不要花 6 個月調 prompt、花 1 週建 harness。
AI agent 在 prod 穩定運行 — task 不會被 double-execute、信用卡不會被重刷、failed task 進 DLQ 給你看不是消失、agent 100% 受 harness 控制不自己亂跑
這是預期成果的文字說明。請查看本文實測說明,並以自己的輸入素材小規模試用。
「AI Agent Harness Engineering:把 LLM 跟 deterministic 編排層分開」這組提示詞要怎麼用?
這組 prompt 專為 Claude 4.5 Sonnet 設計。把 prompt 內 6 個方括號 [變數] 換成你自己的內容,貼進 Claude 4.5 Sonnet 執行即可。屬進階用法,建議熟悉工具後再依需求微調參數。
「AI Agent Harness Engineering:把 LLM 跟 deterministic 編排層分開」是免費的嗎?
這組是 Pro 會員內容。免費帳號可看預覽與使用情境;訂閱 Pro 後解鎖完整 prompt、變數表與工具參數。退款條件依退款政策處理。
用 Claude 4.5 Sonnet 依這組 prompt 生成的成果可以商用嗎?
prompt 文字本身你可自由使用與修改。但 AI 生成物(圖/音樂/影片/文字)的商用授權,取決於你在 Claude 4.5 Sonnet 使用的方案與其官方服務條款,請以該工具的授權規範為準。
RELATED你可能也需要
Suno 工程師思維:4 步驟做出不像 AI 的歌
Studio engineer 視角拆解 Suno 致命弱點(油炸 vocals、高頻 artifact)+ 4 步驟 DAW workflow + Suno Studio 修音 prompt
5 個 6 月 stuck 下來的 Claude 每週 workflow
提案產生器 / 會議處理器 / 內容再利用 / 週五回顧 / 收工 reset — 試了 40 個只有這 5 個沒被丟掉、各省 30+ 分鐘 / 次。
7 個跨 model A/B 測過的 prompt 技巧(不是 vibes)
六個月在 Claude / GPT-4 / Gemini 上用人工 rater A/B 測 200+ prompt 後寫的。包含 persona+constraint stacking / anti-example / role reversal QA / cognitive scaffold / emotional priming / uncertainty CoT / steelman first。
5 個信任檢查單行 prompt(沒有 role-play)
一年的 role-play system prompt + 14-step framework 後總結:真正改變品質的是 5 個單行 prompt。沒有 role、沒有 markdown、沒有「you are an expert」。
EMBED · 嵌入 blog / Note一行 iframe HTML、貼進文章即顯示此 prompt 卡片+
適合:部落格、Medium、Notion 公開頁、Substack — 任何支援 iframe / HTML 嵌入的地方。對方點「看完整」會回到本站、是 prompt 庫的免費 backlink。
<iframe src="https://prompt.luvai.net/embed/ai-agent-harness-engineering-pattern" width="100%" height="380" frameborder="0" style="border:1px solid #e0dcd0;border-radius:4px;" loading="lazy" title="PromptCraft Embed"></iframe>