Skip to content

Rename format from Codex to CDX (Content-addressed Document eXchange)#35

Merged
gvonnessi merged 2 commits into
mainfrom
rename/codex-to-cdx
Jun 17, 2026
Merged

Rename format from Codex to CDX (Content-addressed Document eXchange)#35
gvonnessi merged 2 commits into
mainfrom
rename/codex-to-cdx

Conversation

@gvonnessi

Copy link
Copy Markdown
Collaborator

Summary

Renames the format from Codex to CDX (Content-addressed Document eXchange).

Why: "Codex" now collides with OpenAI's Codex coding-agent platform, which dominates developer/AI search and is broadening toward document workflows — burying this spec's discoverability and blurring its identity. The project predates OpenAI's 2025 relaunch but not their original Codex (2021) or their CODEX trademark, so there is no priority claim; the pragmatic fix is a distinct, neutral format tag. The .cdx extension already carried no "codex" string, so switching cost is at its minimum now (pre-adoption) and only rises later.

Changes

  • Brand/prose: CodexCDX; expansion "Content-addressed Document eXchange" introduced at first mention; dropped redundant "CDX Document Format" titles
  • Manifest spec-version key: "codex""cdx"
  • MIME types: application/vnd.codex*application/vnd.cdx*
  • Extension namespace IDs: codex.*cdx.* (8 extensions)
  • Schema $id/$ref host: https://codex.documenthttps://cdx.dev
  • Tooling: generate-template.ts (emits cdx key + cdx.* IDs), check-example-coverage.ts (extension-id matcher)

Deliberately unchanged

  • The .cdx file extension (already name-independent — files in the wild are unaffected)
  • GitHub repo/org name and repo-path URLs (separate admin action; GitHub auto-redirects)
  • package.json name (mirrors the repo)
  • docs/archive/** (historical record)

Test plan

  • tsc --noEmit type check
  • npm test — schemas compile, 11/11 example documents validate (53 checks)
  • npm run check:sync — all documented types have schema definitions
  • npm run check:refs — 71/71 cross-references resolve
  • npm run check:coverage — 8/8 extensions, 15/15 schemas covered
  • generate-template.ts smoke test emits "cdx": "0.1", "id": "cdx.academic", application/vnd.cdx+zip

Follow-ups for maintainer

  • Repoint the https://cdx.dev schema namespace at a domain you control ($id URIs need not resolve — non-blocking)
  • Rename the GitHub repo/org if desired (codex-file-format-spec → e.g. cdx-file-format-spec); GitHub auto-redirects old URLs

The format shared the name "Codex" with OpenAI's coding-agent platform,
which now dominates developer/AI search and is broadening toward document
workflows. Rename to CDX to restore discoverability and a distinct identity.

Changes:
- Brand/prose: Codex -> CDX; introduce the expansion "Content-addressed
  Document eXchange" at first mention; drop redundant "CDX Document Format"
- Manifest spec-version key: "codex" -> "cdx"
- MIME types: application/vnd.codex* -> application/vnd.cdx*
- Extension namespace IDs: codex.* -> cdx.* (8 extensions)
- Schema $id and $ref host: https://codex.document -> https://cdx.dev
- Tooling: generate-template.ts (emits cdx key/IDs) and
  check-example-coverage.ts (extension-id matcher) updated

Intentionally unchanged: the .cdx file extension (already name-independent);
the GitHub repo/org name and repo-path URLs (separate admin action; GitHub
auto-redirects); package.json name; docs/archive/** (historical record).

Validation: schemas compile, all 11 example documents validate, 71/71
cross-references resolve, 8/8 extensions and 15/15 schemas covered.

Note: https://cdx.dev is a placeholder schema namespace (JSON Schema $id
URIs need not resolve); repoint at a controlled domain if desired.
Post-rename review polish. "CDX document format" redundantly stacked
"document" and "format" onto an acronym that already expands to
"...Document eXchange". Use "core CDX specification" in the extensions
README, and a clean parenthetical expansion in the package description.
@gvonnessi gvonnessi merged commit e6b65e0 into main Jun 17, 2026
2 checks passed
@gvonnessi gvonnessi deleted the rename/codex-to-cdx branch June 17, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant