- Platform: native macOS menubar app.
- UI: SwiftUI
MenuBarExtrawith AppKit menu, alert, and panel interop. - Build system: Tuist.
- Product focus: Codex account switching and per-account limit tracking.
- Read this file first.
- Read
docs/PRODUCT.mdanddocs/features/README.mdfor product truth. - Read
docs/DEVELOPMENT.mdbefore build, run, or validation commands. - Read
docs/PRIVACY.mdbefore touching account, auth, logging, or remote-host code.
- Treat
~/.codex/auth.jsonas the primary local switch surface. - Treat
~/Library/Application Support/Codexas an observation surface, not the source of truth for switching. - Keep auth switching, Codex app lifecycle control, and Codex rate-limit fetching in separate modules.
- Prefer the local Codex app-server for account and rate-limit reads over manual counters.
- Do not print or expose tokens, API keys, raw auth payloads, or saved auth snapshots in logs, tests, docs, UI, issues, or commit messages.
- Do not commit
.env, secrets, generated auth snapshots, personal app-support data, or build artifacts. - Do not couple SwiftUI views directly to file I/O or process control.
- Do not assume Codex internal file formats beyond the currently observed
auth.jsoncontract without isolating that logic in one service.