[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115088":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":30,"discoverSource":31},115088,"pine","pmndre\u002Fpine","pmndre","a reactive harness for agents","",null,"TypeScript",464,24,242,2,0,13,204,66,94.14,"MIT License",false,"main",true,[],"2026-11-23 18:12:08","2026-11-23 19:23:50","\u003Ch1 align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Flogo-dark.svg\">\n    \u003Cimg src=\"docs\u002Fimages\u002Flogo-light.svg\" alt=\"pine\" width=\"360\">\n  \u003C\u002Fpicture>\n\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Freel.webp\" width=\"100%\" alt=\"pine in half a minute. pine start: it runs as a service. In the terminal, for a chat: a question about the weather is answered with a web search. Or in the desktop app, for code: an agent adds a function, runs the tests, and the diff is shown beside the conversation. Then a card: pine is built on an event bus, agents can react to any external stimuli. A colleague writes in Slack; in pine that is an event, and the agent that listens wakes, reads the message and says what it is about. At night a camera sees somebody with a covered face at the door; the clip is an event, the agent watches it and asks its owner on Telegram whether to ring the alarm. A letter goes through the scanner; the scan is an event, the agent reads the letter and puts what is due on a TODO list.\">\n\u003C\u002Fp>\n\n```bash\nnpm install -g @pmndre\u002Fpine\n```\n\n### PINE makes AI reactive\n\nMost harnesses just do input chat: \"Do this do that\". And maybe a scheduler: \"Do it tomorrow\". In PINE agents react to any stimuli. From watching folders, commands, websites, ftp endpoints, webhooks, to any other event source. You can hook them up and let them react to and operate your physical devices in the house, or digital assets.\n\nPINE of course also handles regular chat, coding, tasks and orchestration. Agents carry memory and so on. All the basic stuff is in there, too.\n\n### Some design choices\n\n- **Event-driven architecture:** Agents subscribe to events and react. An event source is just a `*.ts` service with a schema. Tell the agent what you want and they subscribe: \"Watch ~\u002Fdocuments\u002Fscans, for every new file: extract summaries and payment details, if present\"\n- **No configs:** Tell the main agent what you want. It configures PINE, creates agents, MCPs, event sources, skills and schedules through administrative tool calls, never touches user config, never messes it up or breaks it.\n- **Self-discovery:** A built-in BM25 manual tool lets agents look up any API or internal detail on demand, without carrying docs in context.\n- **A CLI that feels like a desktop app:** Tabs, buttons, scroll regions, inline images and video, and drag-and-drop with thumbnails. Works in Kitty-protocol terminals like Ghostty, with fallbacks for older ones.\n- **Built in:** Computer use (macOS), web browsing, coding tools, diffs and git, undo, plan mode and goals (`\u002Fgoal` keeps an agent working until it is done).\n- **Orchestration:** Agents can delegate, create sub-agents in parallel. A pinned tab simply persists an agent and its task. Name it, give it instructions, chat with it or subscribe it to events.\n\n> [!IMPORTANT]\n> pine runs on macOS and Linux; `pine init` sets up what it needs. Windows users can try [Docker](#docker). It remains open what exactly is necessary to make it run completely in Windows.\n\n```\n                  you:  terminal UI · Telegram\n                               │\n                               ▼\n wake it                 ┌───────────┐            it uses\n events ───────────────► │           │ ◄───────── MCP servers\n   Telegram · MQTT · FTP │           │ ◄───────── skills\n   webhooks · folders    │   agent   │\n   web addresses         │           │\n   commands · etc *      │           │\n schedules ────────────► │           │\n   repeating · once      └─────┬─────┘\n                               │  delegate ──► other agents\n                               │  subagent ──► with distinct prompts, in parallel\n                               ▼\n                 answers · messages · actions\n\n Events, schedules, MCPs and skills can be set up by asking:\n for the current conversation, agent scope, or globally\n (main agent only) for all agents.\n\n * New event types that agents can subscribe to can be created easily.\n```\n\n## Quick start\n\nSets everything up: the browser the web tools drive, and your user folder (`~\u002F.pine`). On Linux\nalso the sandbox that agents in `safe` mode work in; it shows what it would install and asks once.\n\n```bash\npine init\n```\n\nChecks the setup: validates the configuration, lists each agent with its model, tools and MCP\nservers, and prints security notes if something is open that should not be.\n\n```bash\npine check\n```\n\nOpens the terminal UI. If no daemon is running, it starts one inside and stops it when you quit.\n\n```bash\npine\n```\n\nRuns the daemon as a service, without the UI, so agents keep reacting to events with no terminal\nopen. `pine` then attaches to it. To have it start at login, see\n[operations.md](docs\u002Freferences\u002Foperations.md).\n\n```bash\npine start\n```\n\nConnect your subscriptions, or local llm servers. Switch with `\u002Fmodel` in the UI:\n\n```bash\npine login opencode-go\n```\n\n`pine login anthropic` and `pine login openai-codex` use a Claude or ChatGPT subscription. A\nmodel server of your own (llama.cpp, vLLM, LM Studio) is added by its address, with\n`pine model add studio http:\u002F\u002F127.0.0.1:8080`, or by asking the main agent. See\n[operations.md](docs\u002Freferences\u002Foperations.md) and [tui.md](docs\u002Freferences\u002Ftui.md).\n\nTo work on a project, start it in that folder. The agent gets that folder for the\nconversation, and `▤ code` (or `ctrl+g`) opens a pane with git changes and diffs, the files and\nthe output of its tool calls. `\u002Fundo` takes your last message back, with the files it changed\n([coding.md](docs\u002Freferences\u002Fcoding.md)):\n\n```bash\npine .\n```\n\nThere is also a desktop app for macOS, with the same conversations in a window, an editor for\na conversation's folder and a settings panel for agents, models, MCP servers, skills and\nevents. It starts pine itself, or uses the one that runs ([desktop.md](docs\u002Freferences\u002Fdesktop.md)).\nEach [release](https:\u002F\u002Fgithub.com\u002Fpmndre\u002Fpine\u002Freleases\u002Flatest) has it as a disk image, for\nApple silicon and for Intel. It carries pine and the Node it runs on, so nothing else has to\nbe installed, and it gives your shell the `pine` command. From a checkout:\n\n```bash\nnpm run desktop\n```\n\nTo get a newer version later, with whatever it needs:\n\n```bash\npine update\n```\n\n## Docker\n\nA container needs nothing special. It is the wall around pine, and the agents work inside it\nwithout a sandbox of their own:\n\n```bash\ndocker run -it -v pine:\u002Froot\u002F.pine node:24 bash\n```\n\n`-v pine:\u002Froot\u002F.pine` keeps pine's home (configuration, conversations) when the container is\nreplaced. Inside, it is the same as anywhere:\n\n```bash\nnpm install -g @pmndre\u002Fpine\n```\n\n```bash\npine init\n```\n\nEvery agent whose mode you did not choose then works in `auto` mode, and `pine check` says so.\nThe agents and pine's own secrets are in the same container; what keeps the two apart there is\ndescribed under \"pine's own files without a sandbox\" in\n[docs\u002Freferences\u002Fsecurity.md](docs\u002Freferences\u002Fsecurity.md).\n\n`safe` mode puts an agent into a sandbox of its own, as on a Mac. A container may only make\none when it is started with the rights for it, which take away most of what Docker itself\nprotects:\n\n```bash\ndocker run -it --cap-add SYS_ADMIN --cap-add NET_ADMIN --security-opt seccomp=unconfined --security-opt apparmor=unconfined -v pine:\u002Froot\u002F.pine node:24 bash\n```\n\n| Part | What it is for |\n| --- | --- |\n| `--cap-add SYS_ADMIN` | lets the sandbox create its namespaces |\n| `--cap-add NET_ADMIN` | lets a sandbox without network have its own loopback interface |\n| `--security-opt seccomp=unconfined` | Docker's system call filter forbids the sandbox's change of root |\n| `--security-opt apparmor=unconfined` | Docker's AppArmor profile forbids its mounts |\n\n`pine init` installs what the image lacks (bubblewrap, the browser's system libraries) and says\nso if a right is missing. With pine as an ordinary user in the container instead of root, add\n`--security-opt systempaths=unconfined`. `--privileged` works in place of all of them.\n\n## Documentation\n\nStart at [docs\u002FSKILL.md](docs\u002FSKILL.md); it indexes everything.\n\n| To do this                                                                              | Read                                                         |\n| --------------------------------------------------------------------------------------- | ------------------------------------------------------------ |\n| Understand how the pieces fit                                                           | [overview.md](docs\u002Freferences\u002Foverview.md)                   |\n| Use the terminal UI                                                                     | [tui.md](docs\u002Freferences\u002Ftui.md)                             |\n| Use the desktop app (macOS): conversations, an editor, and a settings panel in one window | [desktop.md](docs\u002Freferences\u002Fdesktop.md)                     |\n| Work on a project: `pine .`, the code pane with git changes, files and tool output, `\u002Fundo` | [coding.md](docs\u002Freferences\u002Fcoding.md)                       |\n| Let an agent make a web page you click in, as its user interface, and be woken by what you press | [interfaces.md](docs\u002Freferences\u002Finterfaces.md)               |\n| Install, run, use the CLI, run it as a service                                          | [operations.md](docs\u002Freferences\u002Foperations.md)               |\n| Write `pine.json` and `agent.json`                                                      | [configuration.md](docs\u002Freferences\u002Fconfiguration.md)         |\n| Let agents set things up by tool call instead of editing files                          | [setup.md](docs\u002Freferences\u002Fsetup.md)                         |\n| Set up agents, delegation and sub-agents; how tools are declared and what stays cached   | [agents.md](docs\u002Freferences\u002Fagents.md)                       |\n| Route events, schedules, model calls                                                    | [events.md](docs\u002Freferences\u002Fevents.md)                       |\n| Event sources: setting one up, subscribing, sending, secrets, trust                     | [sources.md](docs\u002Freferences\u002Fsources.md)                     |\n| Every source type: Telegram, folders, MQTT, web addresses, feeds, mail, Slack, cameras  | [source-types.md](docs\u002Freferences\u002Fsource-types.md)           |\n| MCP servers, web search, command tools                                                  | [mcp.md](docs\u002Freferences\u002Fmcp.md)                             |\n| Let an agent operate the apps on your Mac                                               | [computer.md](docs\u002Freferences\u002Fcomputer.md)                   |\n| Know what is protected and what is not                                                  | [security.md](docs\u002Freferences\u002Fsecurity.md)                   |\n| Work on pine itself                                                                     | [AGENTS.md](AGENTS.md), [stack.md](docs\u002Freferences\u002Fstack.md) |\n","PINE 是一个面向 AI 代理（agents）的响应式运行时框架，支持事件驱动的自动化任务编排。其核心功能包括：基于事件总线的异步响应机制（可接入文件系统、Webhook、Slack、摄像头、扫描仪等任意事件源）；零配置自引导架构，通过自然语言指令动态创建和管理代理、技能与事件源；内置 BM25 工具检索、跨平台 CLI 桌面级交互界面、本地计算机操作（macOS\u002FLinux）、代码编辑与 Git 集成、目标导向的长期任务规划（\u002Fgoal）。适用于智能家居自动化、办公流程自动化（如邮件\u002F扫描件处理）、多模态代理协同及低代码 AI 工作流编排等场景。","2026-11-24 04:50:17","CREATED_QUERY"]