Skip to main content

Agents At Work Core

PyPI tests Python 3.11+ Platform Agents License: MIT

What changed in each version: GitHub Releases.

The open-source engine behind Agents At Work. Run Claude Code, Codex, Gemini CLI, Grok, Cursor, and scoot on your own Mac or Linux box, and follow them from your phone: approve tool calls, answer questions, and send and schedule prompts, end-to-end encrypted.

Status: beta. This is the engine behind the shipping Agents At Work apps: the Mac app bundles it, and the hosted relay runs it. The wire protocol with the phone apps is stable (the contract); the CLI flags and config keys can still change between 0.x releases.

What is open and what is not

aaw-core is everything that runs on your computer: the daemon that watches your agents in tmux, the hooks that report what they do, and the aaw command line. It also contains the relay server that connects your computer to your phone. All of it is MIT licensed.

The phone apps (iPhone, iPad, Android) and the Mac menu-bar app are not in this repository. The Mac app is a free download that runs this same engine. The phone apps are free for one computer on our hosted relay; the Personal and Pro plans raise that to 3 and 15 computers. Computers on a relay you host yourself never count toward a plan.

How it works

your computer                                          your phone
  agent in tmux  <->  aaw daemon  <->  local store        store app
                          |                                  ^
                          | one outbound WebSocket           |
                          v                                  |
                     the relay (tiny; ciphertext + routing only) -> push (FCM/APNs)
  • Your local store on the computer is the source of truth for the conversation history.
  • The daemon keeps one outbound WebSocket to a relay, so it works behind any home router or cellular NAT with no ports, no tunnel, no VPN, no Firebase project.
  • The relay buffers what is in flight while the phone is asleep and triggers a wake-up push. It only ever sees ciphertext and routing metadata: prompts, answers, and content are AES-256-GCM encrypted with a key that only your computer and your phone hold, exchanged once by QR.
  • We host a relay for free users; self-hosters run the same server with docker compose.

Docs

Install

On Linux, one command installs or updates everything: its own virtualenv, the aaw command, the shell integration, the link with your phone (a QR code), and the always-on service. It also removes the earlier Agents At Work Linux host if it finds one.

curl -fsSL https://agentsatwork.app/install-linux.sh | bash    # the same script as scripts/install.sh

Or by hand, on Linux or macOS (on a Mac, the free Agents At Work app does all of this for you):

pipx install aaw-core                      # Python 3.11+, and tmux
aaw link                                   # asks which relay (ours, or your own), prints a QR code to scan
aaw service install                        # the always-on part: runs in the background and starts at every login
aaw shell-integration on                   # typing claude, codex, ... in a folder starts a bridged session

Then start an agent the way you always do (cd ~/my-project && claude), or start one from the phone.

Coming from the earlier Agents At Work Linux tool by hand: its aaw uninstall leaves its ~/.local/bin/aaw launcher behind, and pipx will not replace a file it does not own, so aaw keeps running the old launcher ("run_python.sh: No such file or directory"). Remove it first with rm ~/.local/bin/aaw, then pipx install --force aaw-core. The one-line installer handles this for you.

Everyday commands

aaw status                          # the computer, the relay, and every session
aaw start ~/my-project              # start a session (--agent codex, gemini, grok, cursor, scoot)
aaw stop my-project                 # stop one session
aaw feed my-project                 # the conversation, paged; -f follows it live
aaw send my-project "run the tests" # send a prompt
aaw schedule my-project --at 2am "continue with the refactor"   # a prompt for later
aaw mobile-mode on                  # permission prompts go to the phone
aaw quit                            # stop everything; the next login (or aaw service start) brings it back
aaw uninstall                       # remove the service, the hooks, the shell line, and ~/.aaw

aaw --help lists every command, and aaw <command> --help its options.

Agents that know about each other

Sessions on one computer can share notes and send each other a message, with your approval each time. It is off until you turn it on with aaw peers on.

  • aaw know lists the shared notes, small files in ~/.aaw/knowledge that every session can read. You can edit them by hand.
  • An agent proposes a note with aaw know add. You get a card with the whole note: Save or Don't save. A text that looks like a credential is refused.
  • aaw peers lists the running sessions. An agent proposes a message with aaw tell <session> "<text>". You get one card with the sender, the receiver and the whole text: Send or Don't send.
  • An approved message arrives as a prompt that starts with [from Claude in my-project, approved by the user]. The answer returns to the sender on its own, as a prompt that starts with [answer from ...]. One card covers one message and its one answer.
  • Answer a card on the phone, or on the computer with aaw answer <session> <option>.

Claude Code is told about these commands when its session starts. For another agent, put the lines above into its instructions. The card is not a security wall: an agent with a shell could type into another session's terminal. It is the agreed road for agents that follow instructions, and your view of what crosses between sessions.

When the terminal window is gone

A session runs inside tmux, not inside the terminal window that shows it. If the window freezes, is closed, or its SSH connection drops, the agent keeps working and the phone keeps following it.

To look at the session again, from any terminal:

aaw status                          # the names of the running sessions
tmux attach -t =aaw-my-project      # join one (the session's name with aaw- in front)

With the shell integration, typing the agent's name (claude, codex, ...) in the project folder does the same: it joins the session that already runs there instead of starting a second one. A window that stopped responding can simply be closed; that does not stop the session. aaw stop my-project is what stops one.

Running on a laptop

A sleeping computer cannot run agents or reach the phone. While a session runs, the engine stops the computer from sleeping on its own when idle (caffeinate on macOS, systemd-inhibit on Linux), but it cannot overrule a closed lid. A MacBook on battery always sleeps when the lid closes, and most Linux laptops suspend on lid close whatever inhibitors are held. While it sleeps, the phone shows the computer as offline, and a message sent during one of its short background wakes may not reach the agent: the phone says so, and you can send it again once the computer is awake.

To keep agents working while you are away from the laptop:

  • Leave the lid open. Turn the brightness down if you like: the computer keeps running.
  • On a Mac, use closed-display mode: connect power and an external display (plus a keyboard and mouse), then close the lid.
  • On a Mac that must run with the lid closed and no display, sudo pmset -a disablesleep 1 turns sleep off completely, on battery too, and sudo pmset -a disablesleep 0 turns it back on. Remember to turn it back on: a Mac that cannot sleep drains its battery and gets hot in a bag.
  • On a Linux laptop, set HandleLidSwitch=ignore and HandleLidSwitchExternalPower=ignore in /etc/systemd/logind.conf and reboot. Some desktops (GNOME, KDE) have their own lid setting that also has to allow it.

Hosting the relay yourself

The relay is a small server in this repository (aaw_core/relay/): run it with docker compose from relay/, or with pip install "aaw-core[relay]" and python -m aaw_core.relay, behind a TLS proxy. Point your computer at it with aaw link --relay wss://your.host/v1/ws. It sees only ciphertext and routing metadata, the same as ours, and it enforces per-client limits (frame size and rate, storage and push budgets; see the protocol contract). One difference: waking the phone with a push notification needs the app's own push credentials, so on your own relay the phone gets updates while the app is open, not in the background. relay/README.md has the details.

Desktop notifications

The phone is the primary channel, and the computer itself also gets a banner when a turn finishes, an error happens, or the agent waits for input: osascript on macOS, notify-send on a Linux desktop (GNOME, KDE, and the rest). A server or a box without a desktop simply has no notify-send and shows nothing. On macOS, while any Focus is on (Do Not Disturb included), banners from scripts go to Notification Center silently unless Agents At Work is allowed under System Settings > Focus > Allowed Apps; aaw status reminds you. Two keys in ~/.aaw/config.json: local_notifications (default true; a GUI that shows its own banners turns it off) and waiting_alert_seconds (default 0, off; the seconds a question may sit unanswered before a "waiting for your answer" banner, for when the push is muted while you are at the desk).

Supported agents

Claude Code, Codex CLI, Gemini CLI, Grok CLI, Cursor, and Scoot (local models with Ollama, plus cloud models). Not affiliated with Anthropic, OpenAI, Google, xAI, Anysphere, or Ollama.

scoot ships often, so aaw status says when PyPI has a newer one and prints the command that updates it. It asks PyPI at most once a day and sends nothing but the package name; set AAW_NO_UPDATE_CHECK=1 to switch the check off.

A scoot session on an ollama/... model needs Ollama running, so aaw start starts Ollama when it is installed and stopped, and says so when it is not installed or the model is not pulled. aaw start-ollama does the same on its own.

Contributing

See CONTRIBUTING.md. Contributions use the DCO (git commit -s). Security reports: see SECURITY.md.

License

MIT. See LICENSE.

Metadata

Release files for aaw-core 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aaw-core 0.1.23
File Size Uploaded Provenance Actions
aaw_core-0.1.23.tar.gz 274.5 kB Without provenance Details for aaw_core-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aaw-core 0.1.23
File Interpreter ABI Platform Actions
aaw_core-0.1.23-py3-none-any.whl Python 3 none any Details for aaw_core-0.1.23-py3-none-any.whl

Total release size: 461.7 kB

Release files / aaw_core-0.1.23.tar.gz

Download URL aaw_core-0.1.23.tar.gz
Size 274.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4349a04f74b140473231c8ba3dfe01b9023d962e1cccc6d5e083bde1bca1a909
BLAKE2b-256 checksum
How to use checksums
434b077c96f7153fe7df5ea73f0c689f84fbf51d59bbec85f63b46d15eef74d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Release files / aaw_core-0.1.23-py3-none-any.whl

Download URL aaw_core-0.1.23-py3-none-any.whl
Size 187.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
283d09970463e998023b74dbc1667cd12de4e9b8bf1124d865a7612523b713fb
BLAKE2b-256 checksum
How to use checksums
413121e5623ba57ebed96e9ab0545e1076cd9dac7ab94fd651b09c8a9586fa77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Security for aaw-core 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page