Codex Local SDK
Overview
Use this skill to implement high-confidence changes in this repository with consistent API behavior, test coverage, and documentation updates.
Quick Routing
Load only the references that match the task:
- API or behavior change: read
references/sdk-behavior-contracts.md. - File navigation or impact analysis: read
references/repo-navigation.md. - Implementation strategy: read
references/workflow-playbooks.md. - Testing and CI updates: read
references/testing-and-ci.md. - Official OpenAI links and citation policy: read
references/openai-codex-links.md.
Standard Workflow
- Classify the request as one of: API behavior, retry/timeout/live, session persistence, observability, docs-only, or CI/testing.
- Inspect only the minimum files needed for that request.
- Implement changes in
codex_local_sdk/and keep backward compatibility unless explicitly asked to break it. - Add or update tests under
tests/to cover normal path and failure/edge path. - Run validation commands before finishing.
- Update user-facing docs (
README.md,html documentation/, examples) for any behavior/signature change.
Non-Negotiable Invariants
- Keep sync and async APIs aligned where parity is intended.
- Keep live retries limited to startup failures; do not auto-retry after a live handle is returned.
- Preserve timeout semantics and error signaling for sync execution methods.
- Preserve session-store compatibility with legacy JSON mapping and schema v2 record format.
- Keep event hooks best-effort; hook exceptions must not break client execution.
- Do not introduce third-party dependencies unless explicitly requested.
Use Bundled Scripts
scripts/quality_check.py: run unit tests, syntax compile checks, and optional integration tests from repo root.scripts/scan_sdk_surface.py: print current public SDK surface and key client methods to help with docs and regressions.
Use Bundled Assets
assets/new_example_template.py: starter template for a newexamples/run_*.pysample.assets/new_test_template.py: starter template for a newtests/test_*.pymodule.assets/html_doc_page_template.html: starter template for pages underhtml documentation/.
Completion Checklist
- Behavior implemented.
- Tests added/updated and passing locally.
README.mdand HTML docs synced if public behavior changed.- Any new or changed command examples verified.
Escalation Rule
If a requested change conflicts with these invariants, call out the conflict explicitly and propose the narrowest safe alternative.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.