# OpenAI推出Codex Hooks和编程访问令牌，增强自动化与定制能力

- 来源：Sam Altman (@sama)
- 发布时间：2026-05-15 05:17
- AIHOT 分数：74
- AIHOT 链接：https://aihot.virxact.com/items/cmp5zqbt70ikgsljxjzuvccn5
- 原文链接：https://x.com/sama/status/2055034714231345475

## AI 摘要

OpenAI宣布Codex推出两项新功能，旨在提升围绕代码的自动化与定制体验。一是“Hooks”，允许用户通过脚本在任务关键节点自定义Codex的工作流程，例如运行验证器、扫描提示中的敏感信息、记录对话至内部系统，或根据代码库和目录创建记忆与定制行为。二是“编程访问令牌”，为Business和Enterprise团队提供范围限定的凭证，可从ChatGPT工作区设置生成，适用于CI/CD管道、发布工作流和内部自动化任务。该令牌支持设置过期时间或即时撤销，并能将使用情况关联回对应工作区。

## 正文

also all this：

### 引用推文

> OpenAI Developers：Codex is getting easier to automate and customize around your code. 🪝 Hooks customize the Codex loop with scripts that run at key points in a task: • Run valid...
