Skip to content

About

FRIDAY-inspired Codex wake briefing and voice workflow for macOS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Friday for Codex banner

Friday for Codex

Friday for Codex is a local macOS project that gives Codex a voice-triggered wake flow.

You say a wake phrase, the greeting starts almost immediately, Codex opens, and then you get a spoken briefing about what to do next based on your recent work context.

This project is inspired by the FRIDAY/JARVIS vibe, but it is built as a practical local automation setup, not as a fake cinematic demo.

What It Does

  • Plays a pre-rendered greeting immediately.
  • Opens the Codex app in the right workspace.
  • Reads out a cached spoken briefing so wake-up feels fast.
  • Refreshes that briefing every 30 minutes with a macOS LaunchAgent.
  • Builds the briefing from Chronicle summaries, recent Codex chats, emails, and calendar context.
  • Uses a proper macOS voice trigger through Voice Control.

How The Wake Flow Works

The wake flow is designed to feel fast because the expensive work is done before you wake it.

  1. A 30-minute background refresh prepares the latest briefing.
  2. You say your wake phrase.
  3. The wake command runs Friday for Codex Wake.
  4. A greeting plays immediately.
  5. Codex opens.
  6. The cached briefing audio plays.
  7. If the cache is older or missing, the project falls back to a live refresh.

Important detail:

  • the greeting is live immediately
  • the briefing is supposed to come from hot cached audio
  • the refresh job keeps that cache ready in the background

What The Briefing Uses

The spoken briefing is generated from multiple sources together:

  • Chronicle memory summaries
  • the 10 most recently updated Codex chats
  • the last 10 received emails
  • Google Calendar context

The ranking logic is meant to balance:

  • urgency
  • importance
  • deadline proximity
  • time remaining
  • blocking impact
  • whether the same task appears across multiple sources

Chronicle is treated as the strongest signal for what you were actively doing recently, but email and calendar can still outrank it if something is genuinely more urgent.

Important:

  • this project does not use live Chronicle screenshots anymore
  • it uses Chronicle summary files when they exist
  • if Chronicle summaries are missing, it falls back to chats plus email and calendar

That keeps the refresh path lighter and more stable.

Requirements

You need:

  • macOS
  • Apple silicon if you want voice activation
  • Homebrew
  • Codex CLI already installed and working
  • Codex logged in with the connectors you want to use
  • Chronicle enabled in Codex if you want Chronicle-based work context
  • Accessibility permission for the setup helpers when macOS asks for it

Quick Start

Clone the repo:

git clone https://github.com/mxdhavgautam/friday-for-codex.git
cd friday-for-codex

Run the installer:

./install.sh

That one command will:

  • install python@3.11 through Homebrew if needed
  • install ffmpeg through Homebrew if needed
  • create .venv-coqui
  • install the Python dependencies
  • download the XTTS model into xtts-model/
  • pre-render the greeting bank
  • build the first cached briefing
  • install the 30-minute LaunchAgent refresh job
  • create a stable machine-level launcher in ~/Library/Application Support/FridayForCodex/
  • import or reuse the shortcut Friday for Codex Wake
  • enable Voice Control if needed
  • create the wake phrase command in Voice Control
  • switch Voice Control into Command Mode so normal speech is ignored instead of being typed into text fields

The default wake phrase is:

wake up daddy's home

You can override it:

./install.sh --wake-phrase "your custom phrase"

If you want the local briefing stack without the voice trigger for now:

./install.sh --skip-voice-activation

Voice Activation Design

The current trigger design is:

  • Voice Control
  • one custom command for your wake phrase
  • action: Run Shortcut
  • shortcut: Friday for Codex Wake

This project used to rely on a slower Siri-style path. The current Voice Control path is faster because it removes that extra handoff.

The installer manages these pieces for you:

  • stable launcher: ~/Library/Application Support/FridayForCodex/friday-wake.command
  • machine install state: ~/Library/Application Support/FridayForCodex/install_state.json
  • imported shortcut: Friday for Codex Wake
  • Voice Control custom command for your phrase
  • Voice Control Command Mode

Why Command Mode matters:

  • Dictation Mode can dump heard speech into focused text fields
  • Command Mode makes Voice Control listen for commands without acting like dictation

That is why the installer explicitly switches to Command Mode.

What Gets Stored Where

This repo keeps the project runtime local instead of scattering it all over your system.

Project-local runtime folders:

  • .venv-coqui/
  • xtts-model/
  • out/coqui/
  • tmp/
  • cache/
  • .cache/
  • logs/

Machine-level helper files:

  • ~/Library/Application Support/FridayForCodex/friday-wake.command
  • ~/Library/Application Support/FridayForCodex/install_state.json
  • ~/Library/LaunchAgents/com.fridayforcodex.refresh.plist

Important:

  • the imported macOS Shortcut lives in Apple’s Shortcuts library
  • the Voice Control command lives in Apple accessibility preferences
  • those are not stored inside the repo itself

Cache and Refresh Logic

The project uses a cache-first design.

The refresh job:

  • runs every 30 minutes
  • asks Codex to generate a short spoken briefing
  • splits that into short speech-safe chunks
  • renders those chunks into audio
  • stores the latest cache manifest in cache/latest_briefing.json

The wake path is supposed to use that cache directly.

To avoid broken wake-ups, the cache update is atomic:

  • new briefing audio is rendered under a temporary staging prefix first
  • the cache is only swapped live after the full new set exists
  • partial renders are not published as the new live cache

This matters because otherwise the wake flow can greet you and then stall while rebuilding a broken cache.

Repo Moves and Hard Cutover

If you move or reclone the repo and run ./install.sh from the new path, the installer does a hard cutover.

That means it:

  • rewrites the stable launcher to point only to the new path
  • rewrites the machine-level install state
  • unloads the old LaunchAgent
  • deletes old runtime folders from the previous repo path if that old path still exists

So the active install is always tied to one repo path only.

You do not need to retrain the trigger again just because the repo moved, as long as the wake phrase stays the same.

Install and Uninstall Behavior

Install

./install.sh sets up the project and voice trigger.

It will:

  • reuse an existing imported shortcut if it already exists
  • reuse the same wake phrase configuration on path cutover
  • keep only one active machine-level launcher path
  • keep only one active cache set

Uninstall

Run:

./uninstall.sh

It removes:

  • .venv-coqui
  • xtts-model/
  • models/
  • out/
  • tmp/
  • cache/
  • .cache/
  • logs/
  • config/
  • the LaunchAgent
  • the stable launcher in ~/Library/Application Support/FridayForCodex/
  • the Voice Control command that belongs to this project

It does not delete:

  • the repo source files themselves
  • your general Codex login
  • your connector logins

After uninstall, there is still one Apple-managed thing you remove manually:

  • the imported Shortcut named Friday for Codex Wake

The uninstaller opens Shortcuts to the right filtered view and waits until that shortcut is actually deleted.

Useful Commands

After install:

source .venv-coqui/bin/activate
python coqui_lab.py list-greetings
python coqui_lab.py greeting --play
python coqui_lab.py play-prerendered-greeting --play
python wake_briefing.py
python wake_briefing.py --refresh-only
python wake_briefing.py --print-cache-status
python automation/manage_launch_agent.py status
python automation/manage_launch_agent.py run-now
python automation/voice_activation.py status

Main Files

  • coqui_lab.py: XTTS voice generation and greeting-bank commands
  • wake_briefing.py: main wake flow and briefing logic
  • automation/refresh_runner.py: scheduled refresh runner
  • automation/manage_launch_agent.py: LaunchAgent install/status/run/uninstall helper
  • automation/voice_activation.py: machine-level launcher and Voice Control setup helper
  • install.sh: one-command local install
  • uninstall.sh: runtime cleanup

Limitations

Current limitations:

  • macOS only
  • Apple silicon only for voice activation
  • depends on Codex already being installed
  • depends on your connectors being available if you want email/calendar context
  • Chronicle is most useful only after it has had some time to build summary files
  • Voice Control is faster than the old trigger path, but it is still an Apple accessibility feature, so behavior can drift across macOS versions

Current Status

Current state of the project:

  • voice trigger works through Voice Control
  • greeting bank is pre-rendered
  • briefings are cache-first
  • cache refresh runs every 30 minutes
  • cache publication is atomic now
  • path cutover is handled by the installer
  • uninstall cleans project-owned runtime and machine-level helper state

So at this point, the setup is not just “demoable.” It is actually usable as a local daily-driver wake flow.

About

FRIDAY-inspired Codex wake briefing and voice workflow for macOS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages