ProductsOfficial

Codex 新增 Hooks 和访问令牌,更易自动化与定制

Why we picked it

Codex 的 Hooks 和访问令牌让 AI 编程助手真正融入团队工作流,做 CI/CD 或需要安全合规的开发者可以直接用起来。

OpenAI 为 Codex 推出了 Hooks 和程序化访问令牌两项新功能。Hooks 允许开发者在任务的关键节点运行自定义脚本,例如在任务前后执行验证器、扫描提示中的敏感信息、记录对话到内部系统,或按仓库/目录定制行为。

Body

程序化访问令牌则为企业和团队提供了作用域凭证,可在 CI、发布工作流和内部自动化中使用,支持设置过期时间或随时撤销。这些更新使 Codex 能更深度地集成到现有开发流程中,提升安全性和灵活性。

Original · @OpenAIDevs

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

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Codex, OpenAI, coding assistants, automation.

Primary source verification: published directly by @OpenAIDevs with first-party authority. Cross-source corroboration: 11 independent sources have covered this development (including Sam Altman, OpenAI Blog, Notion), confirming industry-wide signal strength.