AI Agents
Claude Code, Codex and LLM tooling: prompts, permissions, mods and agent workflows.
Prompt 漏抓時先查「是不是被某條排除規則主動擋掉」,不要先調取捨強度
yuna 專案有一段抽取用的 prompt:讀一天的聊天記錄,把角色自己講過、而設定裡沒有的事實抽出來。漏抓有兩種完全不同的成因:模型「沒想到要收」,跟模型「有一條規則叫它不要收」。
LLM 工具回傳要把關鍵參數念回去
一個角色扮演 bot 有 add_plan_event 工具,讓它把「跟人約好的事」寫進行程表。嘴上七點半,寫進 start_time 的卻是 18:30。工具回傳不要只回「已完成 #id」。
Codex JSONL Tool Checkpoints
A long-running codex exec --json coding task could change files for many tool calls before the orchestration round ended.