[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112421":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":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":31,"discoverSource":32},112421,"pine","pmndrs\u002Fpine","pmndrs","a reactive harness for agents","",null,"TypeScript",449,23,75,2,0,13,221,303,76,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```bash\nnpm install -g @pmndrs\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\u003Cbr\u002F>\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fmeme.png\" width=\"100%\" alt=\"pine searches the web, downloads a picture and shows it in the terminal\">\u003Cbr\u002F>\n      \u003Csub>Support for images\u003C\u002Fsub>\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fvideo.gif\" width=\"100%\" alt=\"pine fetches a video from the web and plays it in the terminal\">\u003Cbr\u002F>\n      \u003Csub>Support for videos\u003C\u002Fsub>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fdrop.png\" width=\"100%\" alt=\"A picture dropped into the terminal, shown as a thumbnail, and the agent's answer about it\">\u003Cbr\u002F>\n      \u003Csub>Drag and drop\u003C\u002Fsub>\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fwatch.png\" width=\"100%\" alt=\"Asked to watch a folder, the agent sets up an event source; a file changes, it wakes up and shows the git diff\">\u003Cbr\u002F>\n      \u003Csub>Event sources (file watchers, ...)\u003C\u002Fsub>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Ftabs.png\" width=\"100%\" alt=\"Tabs for several agents and conversations, with the list of conversations: pinned ones stay, the others clean themselves up\">\u003Cbr\u002F>\n      \u003Csub>UI can be navigated by clicking\u003C\u002Fsub>\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fflipper.png\" width=\"100%\" alt=\"pine drives a Flipper Zero through an MCP server\">\u003Cbr\u002F>\n      \u003Csub>Support for MCPs and skills\u003C\u002Fsub>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Fcode.png\" width=\"100%\" alt=\"The code pane beside a conversation: the git diff of a file the agent just changed\">\u003Cbr\u002F>\n      \u003Csub>Code assistance\u003C\u002Fsub>\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cbr \u002F>\n      \u003Cimg src=\"docs\u002Fimages\u002Ffolder.png\" width=\"100%\" alt=\"pine started in a project folder: the agent inspects it, and the folder menu lists the folders a conversation can work in\">\u003Cbr\u002F>\n      \u003Csub>Current folders\u003C\u002Fsub>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cbr\u002F>\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\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 @pmndrs\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| Work on a project: `pine .`, the code pane with git changes, files and tool output, `\u002Fundo` | [coding.md](docs\u002Freferences\u002Fcoding.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: Telegram, folders, MQTT, web addresses, commands, webhooks, FTP          | [sources.md](docs\u002Freferences\u002Fsources.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、网页更新、FTP、命令行输入等）进行实时响应与自动化操作。其核心特性包括事件驱动架构、零配置自引导、内置 BM25 工具文档检索、终端原生交互（含图像\u002F视频渲染、拖放、分页标签），以及跨任务的代理编排能力（如子代理创建、目标持久化、计划模式）。适用于本地智能自动化场景，例如文档智能处理、家庭设备联动、数字资产监控、个人知识工作流自动化等需要响应真实世界信号并执行多步操作的 macOS\u002FLinux 环境。","2026-11-24 04:43:27","CREATED_QUERY"]