CCC is for Casual Codex Completion ✨
Want CCC? Point Codex at this repo and tell it to follow HOW_TO_INSTALL.md, that's it.
CCC is a macOS app that lets you summon Codex into almost any textbox as a context-aware writing assistant.
Smash the c key three times to summon CCC into your scope. CCC listens for an exact ccc or CCC streak within the trigger timing window, so mixed-case or interrupted key sequences do not invoke it accidentally. CCC will call out to your local Codex CLI, understand the focused app and visible context, and offer useful text inline right where you are working. Sometimes that is a continuation. Sometimes it is a reply, task note, prompt, command, clarification, or next-step draft. Notes, chats, docs, forms, prompts, random text fields: if you can type there, CCC aims to bring Codex there too.
The core idea is simple:
- summon Codex in any textbox
- stay inside the app you are already using
- get more useful as Codex gets better 🫡
ccc-in-action-smaller.mp4
CCC is built on top of Codex. CCC does not need to reinvent the brain. When Codex improves, CCC improves with it.
CCC might evolve from Casual-Codex-Completion to Casual-Codex-ComputerUse, going beyond inline text assistance into broader on-screen help and action 🛸
Over time, CCC should get more personal. Through Codex Chronicle, it can build a better sense of how you write, what you care about, and how to help in a way that feels more like your own flow 🧠
Repo layout:
- app source in
Sources/CCCApp - prompt templates in
Resources/Prompts - build and packaging scripts in
scripts - release support files in
Support - install instructions in
HOW_TO_INSTALL.md
- Runs as a lightweight macOS app with a small control window.
- Watches typing through a global event tap while the app is active.
- Requests context-aware assistance from the local Codex CLI when you hit
ccc. - Shows a floating
cccheckingspinner while Codex is working, then a floating suggestion. - Accepts the suggestion into the active app through paste-based injection.
- Lets you adjust a suggestion in-place before applying it, then feeds that higher-signal edit back to Codex.
ccc: summon a suggestionTab: accept the visible suggestionShift+Tab: retry and ask for another optionEscape: dismiss the visible suggestion
When CCC shows a suggestion, the popup includes an Adjust & Learn button next to CCC Suggested Reply.
Clicking it keeps the popup in place and switches the suggestion body into an editable text box already filled with the suggested text. From there:
Discardexits edit mode and restores the original suggestion.Applyinserts the edited text into the active app and tells Codex that the user intentionally adjusted the suggestion.
The edit box supports standard macOS editing shortcuts such as Cmd+A, Cmd+C, Cmd+X, Cmd+V, Cmd+Z, and Cmd+Shift+Z.
- macOS 13+
- Codex desktop installed locally
- Swift 5.8+
- A usable Apple SDK
The supported build path is the repo scripts. swift build can work on machines with a full Xcode setup, but some Command Line Tools only installs fail to resolve the required macOS platform path.
All supported scripts share the same explicit minimum deployment target: macOS 13.0.
Run the app locally:
scripts/run-local.shOn first run the script creates .local/config.toml from Support/config.example.toml. That file is ignored by git and is the right place for local changes.
The script also keeps local runtime state under .local/state/, so session ids and dev-only config do not leak into the repo.
Build a distributable .app bundle:
scripts/build-app.shCreate a zip you can attach to a GitHub release:
scripts/package-release.shInstall the built app into ~/Applications:
scripts/install-app.shRemove the installed app and its user data:
scripts/uninstall-app.shCCC looks for config in this order:
CCC_CONFIG_FILE~/Library/Application Support/CCC/config.toml
For local repo development, scripts/run-local.sh sets CCC_CONFIG_FILE to .local/config.toml.
Supported keys:
model = "gpt-5.6-sol"
dev_mode = falseOptional overrides:
# codex_cli_path = "/Applications/ChatGPT.app/Contents/Resources/codex"
# reasoning_effort = "medium"
# user_name = "Your Name"
# prompt_prefix_char_limit = 4096
# compaction_invocation_interval = 10Defaults:
codex_cli_pathdefaults to the first executable Codex binary found in common desktop and CLI install locationsmodeldefaults togpt-5.6-solreasoning_effortdefaults tomediumprompt_prefix_char_limitdefaults to4096compaction_invocation_intervaldefaults to10; set it to0to disable native Codex compactiondev_modedefaults tofalse
CCC keeps the main Codex thread text-only. Each invocation runs in an ephemeral visual side thread, uses the screenshot there, returns structured suggestion/context/rationale fields, injects a compact text-only memory record back into the main thread, and then cleans up the side thread. Local runtime state lives next to the active session id, including the automatic compaction counter in compaction_invocation_count.txt.
On first run, macOS may ask for:
- Accessibility
- Input Monitoring
- Screen Recording when screenshot context is enabled
Why they matter:
- Accessibility: required for text context probing and general cross-app integration.
- Input Monitoring: required to watch global key events so
ccc,Tab,Shift+Tab, andEscapework across apps. - Screen Recording: only needed when screenshot context is enabled, so Codex can use the current window as extra context.
Without these permissions, suggestion capture and screenshot-assisted context will degrade or fail.
Logs are written to:
~/Library/Logs/CCC/ccc.logInstallation and release instructions live in HOW_TO_INSTALL.md.
That keeps the install story explicit without shipping a Codex-only wrapper that would remain installed after the app itself is set up.
Collaborators are welcome. The ground rules are simple:
- keep the repo clean
- do not commit
.local,.build,dist, screenshots, or session files - prefer focused changes over broad refactors
See CONTRIBUTING.md for the short contributor workflow.
- This is not a true IME.
- Existing editor context is limited unless Accessibility can read it.
- Paste-based insertion is less native than editor-specific integrations.
- Secure text fields are out of scope.
