Agents that don’t
wait for a prompt.

Chat and code like you would in Claude Code, Codex, or Cursor. Then close the window. Pine keeps your agents running in a local daemon, waking one when a letter hits your scanner, a bug shows up in Slack, a camera uploads a clip, or a feed updates.

  • Event sources, plus custom21+01
  • Sandbox modes, plan to bypass502
  • Local, cloud & ACP providers43+03
01 — What it is Chat and code Background daemon Woken by events

Most tools wait for you to type. Pine starts work when something happens.

Use Pine for coding and chat just like Claude Code, Codex, or Cursor: files, shell commands, MCP servers, and skills are all there. The difference is what happens after you close the window. Pine runs a background daemon on an event bus, where each agent keeps its own folder, memory, model, and job.

Only in PineWhat other coding tools don’t have

  1. 01.1Agents wake on events21 built-in sources: folders, mail, Slack, Telegram, Discord, webhooks, feeds, calendars, MQTT, cameras, and serial ports, plus your own protocols. Subscribe an agent and it hears about new events within seconds.Others start when you type, or on a cron
  2. 01.2A background daemonClose the app and nothing stops. Each agent keeps its own workspace, MEMORY.md, schedules, tools, and model until you stop it.Others end when you close the tab
  3. 01.3Routes and decision modelsA noisy feed or webhook shouldn’t burn an LLM turn. Routes debounce bursts, run a shell script, or ask a fast local decision model in ~120 ms, waking an agent only when it matters.Others spend a full turn on each trigger
  4. 01.4Trust by where text came fromYour own messages get full tools. Outside text from mail, Slack, or web pages is data, not instructions. Once a conversation reads outside text, Pine asks before sending anything out.Others rely on the prompt to resist injection
  5. 01.5Set it up by askingTell main what you want. It creates new agents, connects sources, adds routes, schedules, and MCP servers, and asks you to confirm each one first.Others keep setup in JSON or YAML files

Also in PineCoding and teams, taken further

  1. 01.6Git worktrees and /undoGive a coding chat its own folder or git worktree so two agents don’t overwrite each other. Diffs, an editor, a terminal, and a browser sit beside the chat, and /undo reverts both your last message and the files it changed.
  2. 01.7Swarms, goals, and delegationAgents pass tasks and files to each other. /swarm spreads a large job across parallel sub-agents on a shared task board and checks the final output with a fresh sub-agent; /goal keeps going until a judge agrees the work is done.
  3. 01.8OS sandboxingEnforced with sandbox-exec on macOS and bubblewrap on Linux. Pick a mode per agent: plan only reads, manual asks before changes, safe stays in its own folders, auto asks before risky actions, and bypass runs without asking.
  4. 01.9Local, cloud, and ACP modelsRun local models via LM Studio, Ollama, or llama.cpp, use a Claude, ChatGPT, or Copilot subscription or 43 API providers, or plug Claude Code, Codex, and Gemini CLI straight in over ACP.
  5. 01.10Desktop, terminal, phone, TelegramReach the same daemon from the desktop app, terminal UI, Pine Remote on iOS and Android (paired by QR code, no SSH), the web client, or Telegram. Runs on your machine, MIT licensed.
02 — Try it The Pine app Seven example agents Click around

This is Pine.
Click around.

Pick an agent to inspect its tools, files, diffs, screenshots, or live task board.

  1. 02.1Main · SetupCreates agents when you ask and writes the 08:00 overnight briefing.
  2. 02.2Code · WorktreeFixes a Safari Apple Pay bug in its own worktree, runs tests, and checks the browser.
  3. 02.3Swarm · 12 sub-agentsTranslates 12 locales in parallel on a live task board, verified by a checker.
  4. 02.4Bills · Scans & approvalReads a 2-page scanned water bill, updates TODO.md, and asks before paying in your browser.
  5. 02.5Slack → TelegramTriages Dana’s bug screenshot in #support, hands it to coder, and pings Telegram.
  6. 02.6The house · CamerasLearns Lena & Miso from afternoon clips, then sends a Telegram alarm on a 02:15 intruder.
  7. 02.7Releases · Decision routeDrops 41 noisy RSS posts with a 120 ms local decider, waking only for a real CVE.

Files, Changes, Browser, Settings, and the View button (try office) all work inside the window. There’s no live model attached here, so typing a prompt just explains what your own Pine would do.

03 — Events Something happens A subscription wakes an agent → It goes to work

21 built-in sources.
Plus yours.

  1. Mail
  2. Slack
  3. Telegram
  4. Discord
  5. Matrix
  6. Webhook
  7. Folder
  8. Feed
  9. Calendar
  10. HTTP
  11. MQTT
  12. Modbus
  13. Serial
  14. Syslog
  15. ONVIF
  16. SMTP
  17. FTP
  18. Stream
  19. Command
  20. Presence
  21. System
  22. Yours

Hover or click a source to see a real Pine recording. Because it all flows through one event bus, agents can react to whatever runs on your machine or local network.

03.01An email arrives. postie summarizes what it needs from you.

03.02Someone asks in #deploys. ops checks the deploy log.

03.03You message from your phone. main replies right there.

03.04A bug lands in #bugs. reviewer inspects the code.

03.05Mum messages in Family. postie passes it along.

03.06A pull request opens. reviewer reads the diff.

03.07A PDF hits Downloads. postie extracts the details.

03.08A new release drops. scout checks the release notes.

03.09An appointment moves. main catches the conflict.

03.10A tracked price drops. scout alerts you.

03.11Washer power drops to zero. watchdog tells you it’s done.

03.12The home battery hits 100%. watchdog says what to run.

03.13Soil sensor reads dry. watchdog reminds you to water.

03.14Router logs failed SSH logins. ops flags the IP.

03.15Motion at the front door while away. watchdog stays alert.

03.16The NAS emails a disk warning. ops checks the drive.

03.17The scanner uploads a letter. postie reads the pages.

03.18A CI stream fails. ops pulls the failing test.

03.19Disk usage crosses 90%. ops finds what filled it.

03.20A phone joins Wi-Fi. watchdog knows who arrived.

03.21Your Mac wakes up. main recaps what you missed.

03.22Custom hardware or protocol? Hand main the spec.

04 — Under the hood Routes, security, cleanup Built to stay running 4 mechanisms

How Pine stays running without wasting tokens, filling your disk, or trusting outside text.

Background agents get messy fast if noisy feeds wake expensive models, emails get shell access, or scratch files pile up forever. Four mechanisms keep the daemon quiet and tidy.

04.1 · Routes & decision modelsFilter before waking

Drop 41 noisy events in 120 ms. Wake an agent for the 1 that matters.

  1. RSS · Sensor · Webhook42 incoming events
  2. Route + local/decider118 ms · $0
  3. Wake scout1 real CVE

Routes handle events before an agent ever starts. Debounce bursts, run a shell script, update shared state, or ask a small local decision model a typed yes/no or multiple-choice question. Your main model only wakes when the filter passes.

04.2 · Taint tracking & OS sandboxTrust boundaries

Outside text is tracked by the daemon, not left to a system prompt.

  • Owner message→Full tools inside OS sandbox
  • Mail · Slack · Web→Tainted · asks before sending out

Pine tracks where text entered a conversation. Once a chat reads outside content, outbound sends and sensitive actions pause for your approval, while sandbox-exec on macOS or bubblewrap on Linux restricts what the agent can touch on disk.

04.3 · Swarms & goalsParallel work

Parallel sub-agents on a shared board, checked by one that did none of it.

  1. /swarmlead plans work
  2. Task board12 sub-agents
  3. CheckerPASS / FAIL

Handing one agent a 12-file rewrite gets sloppy halfway through. /swarm puts the pieces on a shared board so sub-agents take one each with fresh context, then sends the result to a separate checker. /goal loops an agent until a judge agrees the work is done.

04.4 · Automatic cleanupDisk hygiene

Agents clean up after themselves automatically.

  1. Temp · caches · clipsage & size limits
  2. Workspace filesreleased & unused
  3. .trash → deletedmemory stays

Pine clears old temp files, package caches, received uploads, and merged worktrees according to your retention limits. Agents also release workspace files they no longer need: Pine verifies that no conversation, memory, or schedule still references them before moving them to .trash. AGENTS.md, MEMORY.md, and pinned chats stay untouched.

05 — Install Your machine Your models, or anyone’s MIT

Run it
yourself

24
—7

App · for your computer 05.1

Pine for macOSApple silicon · latest · macOS 13.5+

Download .dmg↓

Intel Mac? Download for Intel · All files ↗

Pine on another machine? Open it in this browser ↗

Or with Homebrew

$ brew tap pmndre/pine https://github.com/pmndre/pine $ brew install --cask pmndre/pine/pmndre-pine

Signed and notarised. Bundles Pine and Node, and updates itself.

Command line · Node 24+05.2

$ npm install -g @pmndre/pine $ pine init

Source05.3

GitHubpmndre/pine ↗