Toggle Popup
Agent Buildingtoggle-popupToggle Popup is an Agent Skill for agent building published in the AmaniDawn/DGame repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Toggle DGame project Codex popup reminder hooks in .codex/config.toml. Use when the user asks to enable, disable, or switch Codex stop/subagent-stop popups, permission request popups, or asks for a Codex equivalent of .claude/commands/toggle-popup.md.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/AmaniDawn/DGame/blob/HEAD/.codex/skills/toggle-popup/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/toggle-popup, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Toggle Popup
用于切换当前 DGame 项目的 Codex 弹窗提醒 hooks。执行时不要手写 TOML,直接运行脚本:
python ".codex/skills/toggle-popup/scripts/toggle_popup.py" [stop|permission]
参数
- 留空或
all:切换Stop、SubagentStop、PermissionRequest。 stop或s:切换Stop和SubagentStop,因为项目完成提醒同时覆盖主任务和子任务。permission、p或permissionrequest:只切换PermissionRequest。
行为
脚本读取 .codex/config.toml,只处理目标集合内的 hook:
- 目标集合中任意 hook 已存在时,视为已开启,执行关闭。
- 目标集合全部不存在时,视为已关闭,执行开启。
- 不修改
hooks下其他 hook,也不改 MCP、模型、sandbox 等配置。
执行后把脚本输出原样总结给用户。