Preventing auto-loading skills in Codex with some clever hooking

Claude has this feature in its SKILL.md front-matter: disable-auto-invocation: true, and it drove me mad that Codex didn't as well. This is bad because there are some skills I don't want Codex to auto load, as it tends to be a little trigger-happy on them; plus token burn, context rot, derailing the agent - the usual. So I set up a handful of hooks to prevent this. You can copy-paste this prompt to get your Codex to set them up too (Luna High is enough) Note that you'll still have to approve the hooks (in the Codex settings), and still need to add manual-only: true to the relevant skill files you want to ensure only you can load with a slash/dollar command Enjoy!

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论