A background AI worker
that asks before anything risky.

Queue tasks for the AI agent CLI you already use. Duffy works while you're away, switches models when one runs out of quota, and stops to show you the exact command before it sends an email, pushes code or deletes a file.

DAAK Duffy macOS app: overview console and agent list with a task waiting for approval

Autonomous for routine work. Human-in-the-loop for the rest.

Most agent tools either answer while you watch, or run unattended and hope for the best. Duffy sits in between.

Chat with an AIAgent running unattendedDuffy
Works while you're awayโœ—โœ“โœ“
Queue, history and logs that survive restartsโœ—sometimesโœ“
Asks before risky actions, shows the exact commandn/aโœ—โœ“
Switches model when one hits its quotaโœ—rarelyโœ“
Uses the CLI and subscription you already haveโœ—variesโœ“
Runs on your own machine, no accountโœ—variesโœ“
You queue a taskโ†’Agent CLI, model 1 โ†’ 2 โ†’ 3โ†’ Risky step? Wait for Approveโ†’Run the exact commandโ†’Report back

Everything you need, nothing you don't

One Python file, standard library only. Happy on an old laptop or a small home server that never sleeps.

๐Ÿ—‚๏ธ

Task queue

SQLite queue with a full log per task. Survives restarts and reboots.

โœ‹

Approval gate

The agent ends risky answers with [APPROVAL_REQUIRED: โ€ฆ | CMD: โ€ฆ]. Nothing runs until you approve.

๐Ÿ”

Model fallback

List your models; quota and rate-limit answers move Duffy to the next one.

๐Ÿงฉ

Any agent CLI

Claude Code, Antigravity, Ollama, Gemini CLI or your own script. If it prints an answer, it works.

๐Ÿ’ฌ

Chat agents

Personas you can talk to, each with its own prompt, all through the same queue.

๐Ÿ””

Notifications

Any webhook: WhatsApp or Telegram bridges tell you when a task is done or needs you.

๐Ÿ›ฐ๏ธ

Office panel

Approvals, health checks, launchd services and log tails for a small fleet of agents.

๐ŸŽ

macOS menu bar app

Native SwiftUI app for chatting, queuing and approving without a browser tab.

A native macOS app

Your agents in the menu bar: last results, live status, and a badge when something needs your decision.

Agent list with live status dots and an approval banner
Agents and approvals at a glance
Chat with Duffy showing a Markdown morning briefing
Chat with Markdown replies
Approval card with the exact command and Approve and Reject buttons
See the exact command, then decide

Quick start

Python 3.9+ and an agent CLI. No pip install, no account.

# worker + dashboard on http://127.0.0.1:8899
git clone https://github.com/benfirad/daak-duffy.git && cd daak-duffy
python3 duffy.py daemon

# from another terminal
python3 duffy.py add "Summarise yesterday's server logs and list anything unusual"

# optional: the macOS menu bar app
cd macos && ./build.command

Point it at your agent with agent_command in ~/.duffy/config.json, for example ["claude", "-p", "{prompt}"] or ["ollama", "run", "{model}", "{prompt}"]. All settings โ†’

Safe by default

Loopback only

The dashboard listens on 127.0.0.1 until you add an address. Use a VPN such as Tailscale to reach it from your phone.

Nothing gated runs by itself

A task waiting for approval stays parked. Approving a task that never asked is refused.

You see the exact command

The app and dashboard show the command text that will run, in the task's workspace, with a timeout.

FAQ

Which models and tools does it work with?

Anything you can call from a shell: Claude Code (claude -p), Antigravity (agy), Ollama, llama.cpp, Gemini CLI, Codex CLI or a script of your own.

Does it need an API key or a cloud account?

No. Duffy only talks to your agent CLI and, if you set one, your notification webhook.

Can I run it on a Raspberry Pi or Linux server?

Yes. The worker and dashboard are plain Python 3.9+. Only the menu bar app and launchd helpers are macOS-specific.

Is it free?

Yes, MIT licensed. You only pay for whatever model or subscription your agent CLI uses.