Skip to content

About

Summon Codex into almost any macOS textbox with a triple-c tap

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CCC

Twitter License

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

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.

Future

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

What the app does

  • 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 ccchecking spinner 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.

Shortcuts

  • ccc: summon a suggestion
  • Tab: accept the visible suggestion
  • Shift+Tab: retry and ask for another option
  • Escape: dismiss the visible suggestion

Adjust & Learn

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:

  • Discard exits edit mode and restores the original suggestion.
  • Apply inserts 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.

Requirements

  • 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.

Permissions In Action

CCC Permissions Flow

Local Development

Run the app locally:

scripts/run-local.sh

On 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 And Package

Build a distributable .app bundle:

scripts/build-app.sh

Create a zip you can attach to a GitHub release:

scripts/package-release.sh

Install the built app into ~/Applications:

scripts/install-app.sh

Remove the installed app and its user data:

scripts/uninstall-app.sh

Runtime Config

CCC looks for config in this order:

  1. CCC_CONFIG_FILE
  2. ~/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 = false

Optional 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 = 10

Defaults:

  • codex_cli_path defaults to the first executable Codex binary found in common desktop and CLI install locations
  • model defaults to gpt-5.6-sol
  • reasoning_effort defaults to medium
  • prompt_prefix_char_limit defaults to 4096
  • compaction_invocation_interval defaults to 10; set it to 0 to disable native Codex compaction
  • dev_mode defaults to false

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.

Permissions

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, and Escape work 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

Logs are written to:

~/Library/Logs/CCC/ccc.log

Install Notes

Installation 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.

Contributing

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.

Current Limitations

  • 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.

About

Summon Codex into almost any macOS textbox with a triple-c tap

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages