2026年2月3日星期二

如何讓 OpenAI Codex 執行⌈長步驟⌋任務

 https://chatgpt.com/share/698283e7-a4dc-8010-8bb1-fe2de89cb968

如何讓 OpenAI Codex 執行⌈長步驟⌋任務 

 If put my tasks into a file as so call batch jobs like:
1) Read file x1 find out value x11
2) Read file x2 find out value x12
3) Read file x3 find out value x13
4) Read file x4 find out value x14
... suppose my file really have 100 lines here
100) Read file x100 find out value x1100

Will Codex do a good job to following this 100 steps strictly comply with?

 

大方向:可以做到,但唔應該期望「一次過 100 步、零偏差、完全嚴格」,尤其當每一步都要讀唔同檔案、抽唔同欄位/值、再彙總。原因唔係 Codex “唔夠智能”,而係:

  • LLM 仍然可能「漏一步/跳步/自作主張改流程」

  • token / 注意力會令長清單更易出錯

  • 其中一兩個檔案格式少少唔同,就會令後面連鎖失誤

  • 若冇機械式驗證(tests / schema / checksums),佢可能自信地交錯答案

不過你可以用設計方法令佢非常接近「嚴格執行」。


你想要「100 steps strictly comply」:用呢個心法