1.将 codex-history-cleaner 目录拷贝到 C:\Users\用户名\plugins\codex-history-cleaner
2.编辑 C:\Users\<用户名>\.agents\plugins\marketplace.json
3.如果文件已有其他插件，只往 plugins 数组追加，不要覆盖：
4.关闭并重新打开 Codex，然后在终端运行： codex plugin add codex-history-cleaner@personal

# 下方是已经存在的一份文件的参考内容
{
  "name": "personal",
  "interface": {
    "displayName": "Personal"
  },
  "plugins": [
    {
      "name": "codex-history-cleaner",
      "source": {
        "source": "local",
        "path": "./plugins/codex-history-cleaner"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Productivity"
    }
  ]
}
