ctrlhq

ctrlhq + Codex

Codex finishes. Your notch tells you.

A local MCP server for Codex on Mac, plus a “Codex is done” message under the notch that keeps the notify command you already have.

Included with ctrlhq · Runs on your Mac · No account, no cloud

You start a Codex task, switch to something else, and find out twenty minutes later that it finished after two. Or it's still going and you check three times.

ctrlhq puts “Codex is done · project” under your notch the moment a turn ends, and gives Codex the same 31 tools it gives every other AI app: your list, your calendar, your meetings, your screen.

Things to ask Codex

  • “Check my task list and pick up the top item tagged #api.”
  • “Take a screenshot of the running app and compare it with the design on my Shelf.”
  • “What did they ask for in this morning's call? Implement that.”
  • “Show progress in the notch while you run the migration, and ask me before you apply it.”

Set up carefully, because it touches your config

Codex keeps its settings in one TOML file. ctrlhq changes two things in it and nothing else.

  • Your notify command still runs

    If Codex already has a notify program, ctrlhq saves it and runs it first every time. Nothing you set up stops working.

  • Remove puts it back exactly

    Taking ctrlhq out restores your original notify line and deletes its own table. The rest of the file is never rewritten.

  • Done, with the project's name

    The message carries the folder Codex was working in, so two sessions don't look the same.

  • Quiet when it's in front

    No message while your terminal or editor is the app you're looking at.

  • The same tools as everyone

    Tasks, calendar, time, meetings, clipboard, Shelf, screenshots and questions in the notch.

  • Nothing if ctrlhq is closed

    The notify program exits in a few milliseconds and Codex carries on.

Set up

Connect Codex in about a minute

  1. 1

    Turn it on in ctrlhq

    Open Settings › AI Assistants and turn on “Let AI apps use ctrlhq”. It's off until you do, and while it's off nothing is listening.

    Open it in ctrlhq
  2. 2

    Click Add next to Codex

    ctrlhq adds an [mcp_servers.ctrlhq] table to ~/.codex/config.toml and sets notify to itself, keeping your previous notify command to run first.

  3. 3

    Or add just the tools by hand

    Append this to ~/.codex/config.toml. The notch alert needs the Add button.

    [mcp_servers.ctrlhq]
    command = "/Applications/ctrlhq.app/Contents/MacOS/ctrlhq"
    args = ["--mcp"]
  4. 4

    Start Codex again

    Codex reads its config at launch. Start a task, switch to another app, and watch the notch when the turn ends.

The tools behind this

  • get_tasks
  • add_task
  • take_screenshot
  • search_meetings
  • notch_ask
  • notch_progress
  • get_ai_usage
  • keep_awake

ctrlhq's MCP server has 31 tools in all. See the full list, and what each switch in Settings controls, on the MCP server page.

Questions

How do I get a notification when Codex finishes on Mac?

Connect Codex to ctrlhq: Settings › AI Assistants, turn on “Let AI apps use ctrlhq”, click Add next to Codex. From then on “Codex is done”, with the project's name, shows under the notch when a turn ends and Codex's window isn't in front.

I already have a notify command in config.toml. Will ctrlhq replace it?

No. ctrlhq saves your command and runs it first each time, then shows its own message. Removing ctrlhq restores your original line.

How do I add an MCP server to Codex?

Add a table to ~/.codex/config.toml: [mcp_servers.ctrlhq] with command set to /Applications/ctrlhq.app/Contents/MacOS/ctrlhq and args set to ["--mcp"]. ctrlhq's Add button does this for you.

Can I approve Codex's commands from the notch?

Not yet. Codex tells ctrlhq when a turn ends, which is what the “done” message uses. Approving from the notch works with Claude Code today.

Does ctrlhq show my Codex usage limits?

Yes. ctrlhq's AI usage tab shows your Codex and Claude Code plan windows and when they reset, and the get_ai_usage tool lets an agent check before starting a long job.