
TL;DR
OpenAI released the Codex Security CLI and TypeScript SDK as open source on GitHub. The Promptfoo team behind it, the 2.1k-star reception, and what the HN community says about cost, guardrails, and local model support.
OpenAI open-sourced the Codex Security CLI and TypeScript SDK this week, publishing the repository at github.com/openai/codex-security. The release hit the Hacker News front page with 392 points and 122 comments. Here is what the repo actually contains, what the HN discussion revealed, and why the harness matters more than the scanner.
The @openai/codex-security package gives you a CLI and SDK for finding, validating, and fixing security vulnerabilities in code. You install it with npm, authenticate with your OpenAI account or API key, and run npx codex-security scan . against a repository. It requires Node.js 22 or later and Python 3.10 or later.
The core scanning logic is not new -- it was already available as a plugin inside the Codex app. What is new is the standalone tooling: org-wide scanning across many repos, historical result tracking, deduplication across runs, false-positive tracking, budget controls via --max-cost, and CI integration. The repo has already collected 2.1k GitHub stars and 114 forks.
Michael, co-founder of Promptfoo (the open-source LLM evaluation framework), introduced himself in the thread as one of the people building Codex Security at OpenAI. His team brought the Promptfoo approach -- structured evals, prompt optimization, practical CI tooling -- into the OpenAI security product. The release includes the TypeScript skill definitions that tell the model how to search for vulnerabilities. Michael noted they spent "billions of tokens" of evals fine-tuning those prompts, and called them "an under-appreciated part of the release."
Alibaba also published an open-source CLI code review tool the same day, but as the submitter bakigul noted, they are entirely different products.
The HN discussion at news.ycombinator.com/item?id=49089755 surfaced several sharp takes.
The cost and reliability issues drew the strongest reaction. User gregwebs reported running a scan on a small repo that took almost an hour, drained half their weekly Pro plan usage, and then failed with a "Repository HEAD changed while the scan was running" error at the end with no resume capability. Michael responded directly: "Oof, that's a bad outcome. Half your weekly usage and a 50-minute scan just to get a HEAD error at the end is not acceptable. We need to handle a changing checkout and partial results much better."
User Quai hit rate limits after a minute of retrying, with a $13 bill for the failed scan. Michael acknowledged the problem: "A per-minute rate limit shouldn't kill a scan after a minute, and 'partial output was kept' makes it sound like you can pick up where you left off. You can't yet."
The auth issues at launch got flagged fast. Multiple users hit authentication errors immediately. OpenAI merged and deployed a fix in version 0.1.1 within hours, addressing an OPENAI_API_KEY / CODEX_API_KEY conflict with existing ChatGPT logins.
The guardrail problem is real and acknowledged. User vladoh described a scenario where the tool says it found a vulnerability but refuses to explain what it is. Michael explained the CLI does not bypass the model's cybersecurity guardrails. For authorized defensive work, the Trusted Access for Cyber (TAC1/Daybreak) program can reduce refusals depending on the model and account. Open-source maintainers can apply for conditional access through a dedicated form.
Local and third-party model support is coming. User strictnein asked whether the tool can work with local OpenAI-compatible endpoints. Michael confirmed they are actively working on official support, noting "because it's open source it is pretty easy to point a coding agent at it now and switch out the model." User teaearlgraycold plans to hack it to use OpenRouter with Kimi K3 or GLM 5.2 to keep costs reasonable.
The broader language shift drew attention. User schrodinger observed a trend of new projects moving from Python and Node to Go and Rust for agent tooling, reasoning that "an agent is a long-running, concurrent, I/O-bound process that spends most of its time waiting on a model, a tool, or a human" -- not Python's strength. Several commenters noted that statically typed languages give agents better guardrails.
The "harness is the product" take landed well. User knighthacker pointed out: "The scanner is the least interesting part of this. The harness around it is the product: dedup across runs, false-positive tracking, budget controls, CI gating." This mirrors the argument we made in Software Factories Fail Without Harness Engineering -- the tooling around the model, not the model itself, determines whether something works in production.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 28, 2026 • 7 min read
Jul 28, 2026 • 9 min read
Jul 28, 2026 • 10 min read
Jul 28, 2026 • 8 min read
Three things stand out from this release.
First, the Promptfoo acquisition is paying off in open-source credibility. OpenAI bought Promptfoo in early 2026 primarily for its evaluation infrastructure. Seeing Michael (dangelosaurus) in the thread engaging directly with every complaint -- the auth bug, the rate limit failure, the HEAD error, the guardrail frustration -- is the Promptfoo playbook in action. That level of maintainer responsiveness is rare at a company OpenAI's size and it will matter more than any feature for community trust.
Second, the "open source but OpenAI-only" tension is real. The code is Apache 2.0 licensed and the prompt definitions are public, but the actual scanning requires OpenAI model access. Michael acknowledges local endpoint support is coming. For teams that cannot send source code to OpenAI, the recommendation in the thread is honest: "If your company doesn't allow source code to leave its environment, you shouldn't run this against that codebase." The AI Coding Agent Security Models Compared post covers the data-boundary tradeoffs across providers in more depth.
Third, the Promptfoo skills and the eval-driven approach are worth paying attention to. The bundled TypeScript skill definitions -- optimized over billions of eval tokens -- are a glimpse of where agent security tooling is heading. Instead of hand-writing prompt templates, teams will share battle-tested skill files that encode real security expertise. This is the same pattern behind Claude Code skills and the Skills Over MCP architecture.
The open-source release of Codex Security is not a finished product. It is a foundation that will evolve fast based on exactly the kind of feedback flooding the HN thread. That is the right way to build security tooling.
Read next
OpenAI's Codex CLI now encrypts inter-agent communications for Sol and Terra models, leaving users unable to inspect what their agents are actually doing.
5 min readOpenAI's Codex Security agent reviews app code for vulns. Here is what it caught and missed on three real production repos.
10 min readOpenAI's Daybreak and Patch the Planet point at the real agentic AppSec shift: security agents only matter when they produce validated, reviewable patches maintainers can actually merge.
8 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
OpenAI's coding agent for terminal, cloud, IDE, GitHub, Slack, and Linear workflows. Reads repos, edits files, runs comm...
View ToolOpenAI's flagship. GPT-4o for general use, o3 for reasoning, Codex for coding. 300M+ weekly users. Tasks, agents, web br...
View ToolOpenAI's open-source terminal coding agent built in Rust. Runs locally, reads your repo, edits files, and executes comma...
View ToolMac app for running parallel Claude Code, Codex, and Cursor agents in isolated workspaces. Watch every agent work at onc...
View ToolSet up Codex Chronicle on macOS, manage permissions, and understand privacy, security, and troubleshooting.
Getting StartedWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-development
OpenAI Codex Desktop App: Plan/Goal Modes, Plugins, Multi-Agent Workflows & UI Annotation Demo The video showcases OpenAI’s Codex desktop app, which the creator calls OpenAI’s best product and a prem...

In this video, we delve into OpenAI's latest release, Codex, a cloud-based software engineering agent designed for various coding tasks. Unlike tools like Cursor or Windsurf, Codex integrates...

Exploring Codex: AI Coding in Terminal In this video, I explore Codex, a new lightweight CLI tool for AI coding that runs in the terminal. This tool, possibly a response to Anthropic's CLI,...

OpenAI's Codex CLI now encrypts inter-agent communications for Sol and Terra models, leaving users unable to inspect wha...

OpenAI teases its most capable coding model yet - Sol Ultra uses trained subagents that communicate during tasks, report...

OpenAI's Daybreak and Patch the Planet point at the real agentic AppSec shift: security agents only matter when they pro...

A Codex CLI SQLite logging bug showed how global TRACE logs can burn SSD write endurance. OpenAI has now merged fixes, b...

OpenAI's Codex Security agent reviews app code for vulns. Here is what it caught and missed on three real production rep...

Running Opus 5 through SlopCodeBench's multi-checkpoint gauntlet reveals that frontier models still degrade codebases ov...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.