Skip to content
FunCoding

pine

Run, configure and extend pine, the event-driven multi-agent daemon built on the pi coding agent SDK. Use when setting up agents, subscribing them to event sources (Telegram, folders, MQTT, webhooks, web addresses, feeds, mail, chat services, cameras and other devices, the computer itself), scheduling work, adding MCP servers and skills, routing events, delegating between agents, sub-agents and swarms on a board, using the Pine app (computer, phone or browser), reviewing the defences against prompt injection, or changing pine's code.

Star
639
License
MIT
Last commit
Dec 1, 2026

docs/SKILL.md

View on GitHub

Introduction

pine (PI neural engine) is one process that hosts several pi agent sessions and an event log. Sources and schedules turn the world and the clock into events. Subscriptions, schedules and routes turn events into work. Agents answer, act, hand tasks to each other and publish events.

Three things to know first:

  1. Configuration lives in a home folder, by default ~/.pine: pine.json, models.json, .env (secrets) and one folder per agent under agents/.
  2. An agent is agents/<id>/agent.json plus a workspace. It keeps AGENTS.md, SOUL.md, TOOLS.md and MEMORY.md there, and pine reads them into its prompt. The main agent keeps AGENTS.md, TOOLS.md and USER.md for all agents in pine's home (references/agents.md).
  3. Where content came from decides what it may do. Your messages get the agent's full tools. Everything else is data: it runs with fewer tools in a separate session, or marks the conversation it arrives in as having read outside content. Nothing is sent out without your approval (references/security.md).

Which file to read

The manual has six parts. Each chapter is one file in references/.

Start here

ChapterWhat it holds
How pine worksEvents, tasks, agents, conversations, trust
Install and runRequirements, install, first start, models, updating, at login, in a container, problems

Where you talk to pine

ChapterWhat it holds
The Pine appThe app on a computer: window, tabs, code panel, settings, Manual tab, browser access
Views for the Pine appA script of yours that draws pine in the app's panel
The terminal UITabs, slash commands, keys, modes, approvals, pictures, dictation
The phone appAndroid, iPhone and iPad, over SSH or paired with the Pine app; TestFlight or sideloading
Privacy policy of the phone appPine collects nothing; what it keeps on the device
The web clientpine in any browser; what the relay and the meeting service see

Agents

ChapterWhat it holds
AgentsWorkspace and files, persona, conversations, delegation, sub-agents, goal mode, skills
Extensionspi extensions and packages: installing, updating, removing, where they are kept
Teams of agents: boards and swarmsAgents and sub-agents sharing a job on a board; swarms
Working on codeFolders and worktrees, the code pane, programs left running, /undo
MCP servers, web search and the browserAdding MCP servers; web search, page reading and the bundled browser
Operating apps on the computerReading windows, clicking, typing; who may

Reacting to the world

ChapterWhat it holds
Event sources and subscriptionsWatching, subscribing, sending and reading through a source, secrets, trust
Source typesEvery type, its options and events, and which fits a service or device
Schedules and routesScheduled work; rules on events, topics, typed questions, webhooks
Recipe: a page as an agent's control panelA web page whose clicks wake an agent, which the agent changes

Setting pine up

ChapterWhat it holds
Setup by asking an agentWhat agents set up by tool call, for whom, what you are asked
Configuration filesEvery key of pine.json, agent.json, models.json and .env
Security and its limitsDefences against prompt injection: sandbox, modes, approvals; what is not solved

Reference

ChapterWhat it holds
CommandsEvery pine command
Control APIThe HTTP API for scripts and programs of your own
TechnologyWhat pine runs on and uses, what is not verified yet

To change pine's own code, read AGENTS.md and docs/dev.

If you are an agent running inside pine

Search your manual tool before you answer a question about pine or say something is not possible, then read the one or two parts that fit.

This manual names tools by their own names. A tool you don't have by that name is an action of a family: add_source is pine_sources with action: "add_source", the list sources is pine_list with what: ["sources"] (references/agents.md, "How tools are declared").

You set things up with tool calls, never with files: pine's home is closed to you, and the listing tools (sources, schedules, mcp_servers, skills, models) say what is configured. Without scope, a setup is for the conversation you are in. Pass a wider scope only when your owner says so. For what has no tool (the control API, a secret), tell your owner the lines to write into pine.json or agents/<your id>/agent.json, then pine check and a restart, and say that this step is theirs.

"Not approved" means your owner said no. Don't try another way; say what you wanted and why. Never ask for a password, token or key in the conversation: leave it out, and pine asks your owner in its own dialog.

AGENTS.md, SOUL.md, TOOLS.md and MEMORY.md at the top of your workspace are yours. What holds for all agents goes into pine's home, which only the main agent writes (references/agents.md, "Where a default or a preference goes").

ToolWhen your owner wantsRead
sources, subscribe, add_sourceSomething watched, or a reaction when it happenssources.md
add_scheduleSomething at a set time: cron, every, at or inevents.md
add_mcp_serverAn MCP server, by url or command; they confirm, and its tools arrive next turn. "Unauthorized" needs a sign-in: sign_in_mcp_server (main agent), or Settings > MCP serversmcp.md
add_skillA procedure remembered (a fact goes into MEMORY.md)agents.md
add_extensionMain agent: a pi extension or package from npm, git or a file; they confirmextensions.md
question, todoA decision with two to six options; a list of steps, sent whole each timesetup.md
subagentA job split into independent tasks; many become a pool on your boardboards.md
stop_programEnds a server left running, started with background: true on the shell toolcoding.md
/goal, /swarmWork until something is reached, or a job led on a board. Only your owner types theseagents.md
mcp__computer__Something in an app on their computer, if you have these toolscomputer.md
add_routeA rule that acts on events without waking youevents.md

Main agent only: create_agent; update_agent, rename_agent, remove_agent (removed for good, with its folder); sign_in to a model provider; add_model_server; set_setting; conversations; add_source_type for a device no type can watch (references/setup.md). Any other agent sends your owner to the main agent.

The shortest working setup

npm install -g @pmndre/pine
pine init
pine

You get the main agent, main, with web search and a browser, in the terminal UI (or the Pine app: references/desktop.md). Then connect a model: pine login <provider> or pine model add (references/operations.md, "Choosing a model").

For Telegram, ask the main agent to "watch Telegram", give the bot's token, write to the bot and type the six-digit code it sends into pine (references/source-types.md, "telegram"). For a second agent, ask the main agent to create one (references/agents.md, "Creating an agent").

Vocabulary

TermMeaning
eventA record in the log: topic, payload, source, trust, cause
topicA slash-separated name, matched with + (one level) and # (the rest)
sourceReports events from outside; runs while something is subscribed, or always with "start": "always"
subscriptionA conversation listening to a source
routeA rule in pine.json that reacts to topics
scheduleSomething done at set times, every so often, or once
taskOne piece of work for one agent
sessionA conversation with its history; new is one-off
sub-agentA copy of an agent that does one task in an empty conversation
boardThe shared tasks and notes of one job
goal, swarm/goal: called again until a judge says it is met. /swarm: the agent leads sub-agents on a board
ownerYou, through a channel that authenticated you. Everything else is untrusted
taintedA session that has read outside content
approvalYour yes or no to one tool call
modeHow much an agent does without asking: safe, auto, manual, bypass, with plan on top
extensionA pi plug-in, usable in pine sessions

Similar Skills

reverse-engineer-anything

MOmorluto/rea485k7,690 new stars in the last 7 days

reverse-engineer-anything

MOmorluto/rea485k7,690 new stars in the last 7 days

test-driven-development

OBobra/superpowers331k5,030 new stars in the last 7 days

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

ai-regression-testing

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

Featured

accessibility

Audit accessibility on Web, iOS, and Android to meet WCAG 2.2, with keyboard navigation and screen-reader support.

AFaffaan-m/ECC314k3,503 new stars in the last 7 days