OpenAI Developers 宣布 Codex 新增 Hooks 与编程访问令牌两项能力。Hooks 可在任务关键节点运行脚本,用来执行校验、扫描提示词中的密钥、记录对话,或按仓库和目录定制行为。编程访问令牌面向 Business 和 Enterprise 团队,可在 ChatGPT 工作区设置中创建,用于 CI、发布流程和内部自动化,并支持设置有效期或撤销,用量与工作区对应。
原文列出 Hooks 的运行节点和令牌的适用范围,读者可据此判断 Codex 在自动化流程中的接入方式。
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 validators before or after work
• Scan prompts for secrets
• Log conversations to internal systems
• Create memories or customize behavior by repo or directory
⚙️ Programmatic access tokens provide scoped credentials for Business and Enterprise teams:
• Create tokens from ChatGPT workspace settings
• Use them in CI, release workflows, and internal automations
• Set expirations or revoke access when needed
• Keep usage tied back to the workspace
Video
来源:@OpenAIDevs · x.com