Agent BuddyA little companionCurrently supports Codex on Mac简体中文

Buddy’s night watch

Go do your thing.
I’ll keep watch.

Leave Codex running while you do something else. When it needs approval or has a question, Buddy changes its expression to let you know.

Currently supports Codex on Mac

Buddy saysYou’re needed.

Buddy’s workshop · Character illustration

The watch desk

Get to know its expressions.

Open your browser, write a document, or step away from your desk. Buddy puts task changes on this little screen so you can check without switching windows.

A simulation, separate from your running tasks.

There’s an operation for you to review.

Return to your Mac, review the operation and decide whether to approve.

Screens rendered from the current firmware with fixed simulated data. Usage, session counts, battery and time are examples.

Our working agreement

After the nudge, you decide.

Buddy brings the waiting state to your desk. Approve operations and answer questions on your Mac.

An operation needs approval
Read what Codex wants to do first. Buddy draws your attention; you press the approval button.
There is a question for you
Choose an option or add a requirement. After you answer, Buddy updates with the task.
Check what is left
The screen also shows remaining account usage. It is the account’s shared allowance, not the cost of this task.
Keep it quiet
Turn sound off and use the screen. With sound on, new reminders play a cue; repeated updates to the same state do not keep ringing.

Connection routes

Bring Buddy to your desk.

Use USB at your desk or Wi-Fi on the same local network. BLE is optional, requires explicit enablement and permission, and remains disabled in the current installation. Keep Agent Buddy running on your Mac; Buddy shows offline when disconnected.

USB

Connect to a confirmed serial device on your Mac for identification and pairing.

Connection details

USB pairing stores a random key in private local storage and device NVS. Normal connection does not flash firmware.

Wi-Fi

The device joins a 2.4 GHz router network shared with your Mac.

Connection details

Paired authentication, LAN discovery and TCP transport. Router client isolation prevents communication.

BLE

The Go app uses a thin native CoreBluetooth adapter for the paired device.

Connection details

Off by default; enabling explicitly may request Bluetooth permission. This installation has not enabled it for acceptance. Wireless still needs the Mac running.

Getting started

Ready when you are.

This is a personal project still in development, with no public installer. The independent macOS installation has completed cutover. With repository access, follow the full guide to build and install.

Show setup steps

Prepare hardware and tools

FoloToy AI Passport: ESP32-C3, 8 MB Flash, no PSRAM, 240 × 320 display and three buttons. Daily use needs Codex and the installed Agent Buddy on your Mac. Source builds also need the Go, Node and Xcode toolchains specified in the guide; firmware uses ESP-IDF 5.5.3.

Get the source and validate firmware

Clone after receiving repository access. Activate ESP-IDF using the environment guide, then build and verify firmware. This command does not flash the device.

git clone https://github.com/iamsyc/agent-buddy.git
cd agent-buddy
# Activate ESP-IDF 5.5.3 first
./tools/validate.sh --firmware

Open the installed desktop app

First install the app at ~/Applications/Agent Buddy.app using the full guide, then run this command. Keep Codex running. Closing the window hides it to the tray; reopen to restore it. Quit from the app menu stops its connections.

open "$HOME/Applications/Agent Buddy.app"

Confirm and pair the device

On the GUI Device page, select the confirmed USB port and device identifier, then explicitly pair. Existing pairing and Wi-Fi need no reset. BLE, current Wi-Fi name and login startup are separate opt-ins; normal startup requests no persistent access.

Let AI operate through the CLI

GUI and CLI share one device owner. Open the app before querying status through the JSON interface below; a stopped app returns owner_unavailable. If agent-buddy is configured on PATH, agent-buddy doctor is also available.

BUDDY="$HOME/Applications/Agent Buddy.app/Contents/MacOS/agent-buddy"
printf '%s\n' '{"action":"status"}' | "$BUDDY" api

Buddy’s notebook

A peek inside Buddy’s notebook.

Connections, data, and what works today.

Why does viewing a Wi-Fi name ask for Location?

The Go + Wails app can optionally read the current Mac Wi-Fi name (SSID) and its changes. macOS classifies current-SSID access under Location, so explicit enablement may prompt for consent. Continuous monitoring is off by default and remains disabled in this installation.

This feature obtains no geographic coordinates or location history, and neither retrieves Keychain passwords nor forwards passwords automatically. Declining Location does not affect task reminders, quota, USB / BLE or configured LAN communication.

Manually entering a Wi-Fi name and password and explicitly submitting them to provision the device is a separate action. It needs neither current-SSID access nor Location.

The macOS installation has completed cutover and the old provisioning observer is removed. Startup, reopen and update recovery do not automatically retry Location or Bluetooth consent. Denial preserves existing pairing and Wi-Fi.

Connections, permissions and technical details

Reads Codex approval and response state rather than guessing from screen activity. Up to 32 recent unarchived local sessions are projected into the task view.

Approval needed

Reads the Codex approval flag and sends an attention event. Review and approve on your Mac; Buddy never approves for you.

A response or decision needed

Reads the user-input flag and unanswered question cards in active turns, updating when an answer arrives, even while the agent continues working.

Remaining account usage

Reads the Codex limit bucket every 120 seconds. Data expires after 600 seconds, and only returned windows are shown.

Screen and notification sounds

New attention events trigger visual and audio cues; repeated heartbeats do not replay sounds. Sound must be enabled, volume above zero and audio healthy. The screen remains useful when muted.

  1. Codex desktop stateRead-only state projection
  2. Go desktop owner / limitsHashed IDs, bounded data
  3. USB / LAN / BLEPairing, checks, reconnects
  4. C / LVGL device UIPixels, buttons, sound
  • Only the Codex adapter is implemented; Claude Code support is not implemented.
  • macOS independent installation and live USB/LAN checks are complete. Native GUI CI passes on three systems; Windows/Linux device checks and complete installation delivery need separate acceptance.
  • Uses an internal Codex state stream, currently version 11. App updates may require adaptation.
  • Optional system-prompt classification matches bounded prompt types from selected system agents and needs Accessibility permission. It never approves actions. This installation has no grant; coverage of all dialogs or the secure desktop is not guaranteed.
  • Quitting the Mac app, disconnection or lost wireless range prevents timely delivery. OTA or diagnostics can defer attention events.
  • Multiple sessions on one Mac are supported; multi-Mac aggregation is not implemented.
  • No voice assistant or voice conversation. The Go + Wails GUI and CLI replace the old Python / Swift desktop runtime. The local package is ad-hoc signed and unnotarized. Natural approval, input and completion transitions have not yet been observed in live acceptance.
  • Usage is a shared account allowance, not per-task token accounting.
  • Initial firmware installation and partition changes need USB. OTA is for paired devices already running compatible firmware.
Does it receive conversation text?

The device receives task state, counts, hashed session IDs and account usage, never task titles, prompts, replies or tool text. The Mac observer reads the internal Codex stream and discards text. On macOS, pairing and settings live in ~/Library/Application Support/Agent Buddy, logs in ~/Library/Logs/Agent Buddy, and diagnostics in private app storage. This site has no forms or analytics.

Want to read the code?

Device UI: main/task_pet/. Go desktop GUI, CLI and native adapters: desktop/. Firmware behavior tests: tests/task_pet/; desktop tests live beside their implementation. Run ./tools/validate.sh --static for repository and host checks, or --firmware for firmware validation.

Project repository (private, authorized access)