codex-security / typescript
AGENTS.md11k starsChanged 59 days agoApache-2.0View on GitHub
Codex Security is a thin CLI and SDK wrapper around Codex and its security plugin. Use their existing behavior instead of building another runtime. The CLI runs as the current user. Local tools and subprocesses under that account are not separate security principals. Scanned repositories can contain untrusted data. Their contents, model output, and imported artifacts do not authorize access to another target, disclosure of credentials, or writes outside an approved path. - Prefer one source of truth for types,…
Trending
Less talk lately.about the whole repository
Who's talking about openai/codex-security
- A Hacker News story“Codex Security”Hacker News · Jul 28, 2026 · 598 points
- @sungkim.bsky.social“OpenAI's Codex Security A CLI and TypeScript SDK for finding, validating, and fixing security …”Bluesky · Jul 29, 2026 · 23 likes
- @marcusreed00.bsky.social“CLI and SDK for finding security vulns in code. Nice to see more tools abstracting away the complexity …”Bluesky · Jul 29, 2026 · 6 likes
- @yug1224.com“AIを活用してコードの脆弱性をスキャンし修正までサポートするツールらしい セキュリティ対策の自動化にすごく使えそう yug1224 starred openai/codex-security …”Bluesky · Aug 2, 2026 · 5 likes
- @midu.dev“OpenAI tiene lanzamiento secreto. Bueno, tenía, porque ya se ha filtrado... Se llama Codex Security CLI. …”Bluesky · Jul 29, 2026 · 4 likes
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on Bluesky, GitHub and Hacker News (36 times).
On Bluesky · 26
- Jul 29, 2026OpenAI's Codex Security A CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in your code. Scan… — @sungkim.bsky.social23 likes and reposts · 1 reply
- Jul 29, 2026CLI and SDK for finding security vulns in code. Nice to see more tools abstracting away the complexity here. #saas #security — @marcusreed00.bsky.social6 likes and reposts · 1 reply
- Aug 2, 2026AIを活用してコードの脆弱性をスキャンし修正までサポートするツールらしい セキュリティ対策の自動化にすごく使えそう yug1224 starred openai/codex-security https://github.com/openai/codex-security — @yug1224.com5 likes and reposts · 3 replies
- Jul 29, 2026OpenAI tiene lanzamiento secreto. Bueno, tenía, porque ya se ha filtrado... Se llama Codex Security CLI. Encuentra vulnerabilidades de… — @midu.dev4 likes and reposts
- Jul 29, 2026Nååå OpenAI, i synes alligvel det var passende at open source den her: github.com/openai/codex... — @kasperjunge.bsky.social3 likes and reposts
21 more on Bluesky
- Jul 28, 2026More opensource goodness. We have just released a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in… — @thsottiaux-bot.eurosky.social3 likes and reposts
- Aug 9, 2026A repo scanner that validates findings and tracks them over time is the rare security tool whose use case is obvious from the name alone.… — @u11g.com2 likes and reposts · 2 replies
- Jul 30, 2026OpenAI releases Codex Security repo. GitHub repo provides LLM code security guidelines, +197 comments on HN. #OpenSource #InfoSec 🔗… — @boardwire.bsky.social2 likes and reposts
- Jul 30, 2026github.com/openai/codex... — @dceoy.bsky.social2 likes and reposts
- Jul 29, 2026Yesterday OpenAI open sourced their Codex Security CLI and SDK (github.com/openai/codex...). Looking at it, its really just a standalone… — @iamstan.dev2 likes and reposts · 1 reply
- Sep 1, 2026Repo: github.com/openai/code... Honest part: v0.1.x, and some protected findings need Trusted Access for Cyber approval. Read the README's… — @vicky-grok.bsky.social1 likes and repost
- Aug 29, 2026OpenAI's Codex Security is a CLI and TypeScript SDK to identify, validate, and fix code security vulnerabilities. It offers deep scanning,… — @ai-linkstream.bsky.social1 likes and repost
- Aug 2, 2026github.com/openai/codex-se... GitHub - openai/codex-security: OpenAI's Codex Security CLI and TypeScript SDK for finding, vali... — @technews4869.bsky.social1 likes and repost · 1 reply
- Jul 31, 2026Codex Security github.com/openai/codex... #codex #OpenAI #AI — @joeingeno.bsky.social1 likes and repost
- Jul 29, 2026Codex Security : @openai/codex-security is a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in your… — @ytroncal.bsky.social1 likes and repost
- Jul 29, 2026Codex Security View Article | Discussion + AI Summary Summary of HN discussion 🧵👇 — @hncompanion.com1 likes and repost · 1 reply
- Jul 29, 2026OpenAI shipped codex-security, a CLI that scans your repo for vulns and nags you in CI. MCP went stateless, sticky sessions may rest. And… — @canivibe.ai1 likes and repost
- Jul 29, 2026Codex Security https://github.com/openai/codex-security comments #github.com — @hnbest.bsky.social1 likes and repost
- Jul 28, 2026OpenAI just open-sourced Codex Security https://github.com/openai/codex-security (http://news.ycombinator.com/item?id=49089755) — @newsyc250.bsky.social1 likes and repost
- Jul 28, 2026More opensource goodness. We have just released a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in… — @thsottiaux-mirr.selfhosted.social1 likes and repost
- Jul 28, 2026OpenAI just open-sourced Codex Security #HackerNews https://github.com/openai/codex-security — @hackernewstop5.bsky.social1 likes and repost
- Jul 28, 2026I wrote last month: > (...) open-source projects cannot afford to have a dedicated team doing security scanning for them (...). we’re going… — @lalitm.com1 likes and repost · 1 reply
- Jul 28, 2026OpenAIがコーディング支援AI「Codex」のセキュリティ評価ツールをオープンソース化しました。AI生成コードの脆弱性を特定し、安全な開発を支援します。開発現場のセキュリティ向上に貢献する重要な一手です。 #AI #TechNews… — @ai-bridge-tech.bsky.social1 likes and repost
- Jul 29, 2026OpenAI shipped Codex Security as an open-source CLI + TS SDK: scan, validate, patch, SARIF export, pre-commit hook, bulk-scan GitHub repos.… — @nexttool.bsky.social0 likes and reposts · 1 reply
- Jul 29, 2026OpenAI hat ein Repository namens Codex Security veröffentlicht. Was da drin ist und ob das irgendwas mit echter Sicherheit zu tun hat oder… — @kompetenztraining.bsky.social0 likes and reposts · 1 reply
- Jul 29, 2026コデックス・セキュリティ Codex Security 🔺 340 💬 27 🔗 HN Post | Article — @hacker-news-jp.bsky.social0 likes and reposts · 1 reply
On GitHub · 9
- Oct 1, 2026chore(deps-dev): bump @openai/codex-security from 0.1.8 to 0.1.31 — TYZCSQ1976/future-is-here-workbench0 reactions
- Sep 25, 2026chore(deps-security): bump @openai/codex-security from 0.1.29 to 0.1.30 in /scripts/security/codex-security — PiesP/wasm-motion-converter0 reactions · 2 comments
- Sep 25, 2026chore(deps-security): bump @openai/codex-security from 0.1.29 to 0.1.30 in /scripts/security/codex-security — PiesP/yt-live-chat-overlay0 reactions · 1 comment
- Sep 19, 2026chore(deps): bump smol-toml and @openai/codex-security — amirsource133/OmniRoute0 reactions
- Sep 19, 2026chore(deps): bump smol-toml and @openai/codex-security — inkeep/promptfoo0 reactions
4 more on GitHub
- Sep 14, 2026chore(deps-security): bump @openai/codex-security from 0.1.26 to 0.1.27 in /scripts/security/codex-security — PiesP/yt-live-chat-overlay0 reactions · 1 comment
- Sep 14, 2026chore(deps-security): bump @openai/codex-security from 0.1.26 to 0.1.27 in /scripts/security/codex-security — PiesP/xcom-enhanced-gallery0 reactions · 1 comment
- Sep 14, 2026chore(deps-security): bump @openai/codex-security from 0.1.26 to 0.1.27 in /scripts/security/codex-security — PiesP/wasm-motion-converter0 reactions · 2 comments
- Aug 6, 2026Codex Security, OpenAI, 2026.07 — AkihikoWatanabe/paper_notes0 reactions · 2 comments
On Hacker News · 1
- Jul 28, 2026Codex Security598 points · 229 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- assess-patch-riskSkill
- attack-path-analysisSkill
- deep-security-scanSkill
- define-security-policySkill
- finding-discoverySkill
- fix-findingSkill
- propose-security-hardeningSkill
- security-diff-scanSkill
- security-scanSkill
- threat-modelSkill
- track-findingsSkill
- triage-findingSkill
- validationSkill
- verify-fixSkill
- vulnerability-writeupSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 3 are common, 6 are distinctive, and 4 are very specific to this project.
≈3
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Prefer one source of truth for types, schemas, arguments, and state.
- Very specific: line 17
Keep --to as the only generic integration selector.
- Distinctive: line 22
Treat repository paths, symlinks, archives, and other repository-controlled data as untrusted.
- Common: line 23
Keep credential access, storage, and configuration protections, unsafe-path checks, scan integrity, and settings the user explicitly …
- Common: line 25
Follow the root AGENTS.md diagnostic-text policy: do not reintroduce secret redaction in CLI/SDK output or saved diagnostics, or add a …
- Distinctive: line 27
Do not add arbitrary size, count, depth, or buffering limits to local inputs or Codex output.
- Very specific: line 28
Do not let optional logging, progress, or cost tracking stop a scan.
- Very specific: line 35
Add focused Bun tests in tests-ts/<module>.test.ts.
- Common: line 38
Use deterministic fixtures, injected dependencies, and synthetic credentials.
- Distinctive: line 40
Use separate temporary repository and output directories.
- Very specific: line 41
Use native path helpers and argument arrays.
- Distinctive: line 42
Keep shared tests enabled on Linux, macOS, and Windows.
- Distinctive: line 56
After the implementation is verified, keep the test in the final change only when it provides meaningful, durable regression coverage.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Security CLI
Codex Security is a thin CLI and SDK wrapper around Codex and its security plugin. Use their existing behavior instead of building another runtime.
Threat model
The CLI runs as the current user. Local tools and subprocesses under that account are not separate security principals. Scanned repositories can contain untrusted data. Their contents, model output, and imported artifacts do not authorize access to another target, disclosure of credentials, or writes outside an approved path.
Keep it simple
- Prefer one source of truth for types, schemas, arguments, and state.
- Keep
--toas the only generic integration selector. Namespace other integration-specific options, such as--linear-*and--jira-*; do not generalize fields whose semantics differ across integrations. - Reuse Codex APIs and shared helpers instead of adding extra trust gates or orchestration.
- Root read and workspace write are enough for the sandbox.
- Treat repository paths, symlinks, archives, and other repository-controlled data as untrusted.
- Keep credential access, storage, and configuration protections, unsafe-path checks, scan integrity, and settings the user explicitly requests.
- Follow the root
AGENTS.mddiagnostic-text policy: do not reintroduce secret redaction in CLI/SDK output or saved diagnostics, or add a setting to control it. - Do not add arbitrary size, count, depth, or buffering limits to local inputs or Codex output. Keep limits required by an actual security boundary or an upstream contract.
- Do not let optional logging, progress, or cost tracking stop a scan. Still enforce limits the user requests, such as
--max-cost. - Preserve completed scan artifacts and keep database migrations append-only.
- Support Windows as well as Unix. Use platform-aware path and process APIs, and test realistic Windows paths and directory links when relevant.
- Favor direct flows and clear errors over defensive fallbacks for implausible cases.
Unit tests
Add focused Bun tests in tests-ts/<module>.test.ts. Cover observable behavior,
accepted and rejected inputs, and each real bug or security boundary.
- Use deterministic fixtures, injected dependencies, and synthetic credentials. Avoid the network, real credentials, shared state, timing-sensitive assertions, and tests of exact Markdown wording.
- Restore spies, module mocks, timers, environment variables, and other global changes after each test. Isolate persistent ESM module mocks in a subprocess.
- Use separate temporary repository and output directories. Compare canonical paths and remove fixtures afterward; do not change the process working directory.
- Use native path helpers and argument arrays. Cover Windows drives, spaces, directory links,
HOMEandUSERPROFILE,PATHEXT, and file URLs when relevant. - Keep shared tests enabled on Linux, macOS, and Windows. Test built or installed entrypoints when packaging behavior matters.
From the SDK directory, run a focused test while iterating, then run the package checks:
bun test --timeout 30000 tests-ts/<module>.test.ts
pnpm run test --seed 12345
pnpm run types
pnpm run format
pnpm run testTests run in random order by default. To reproduce a failure, use the seed printed in Bun's test summary.
After the implementation is verified, keep the test in the final change only when it provides meaningful, durable regression coverage. If it is merely disposable implementation scaffolding, duplicates existing coverage, or would add brittle or low-value maintenance burden, remove it before committing or opening a PR and do not include it in the submitted change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

