What the agent can do

Tools, projects and worktrees, subagents, named agents, codemode, MCP, and more.

The agent has pi's four tools (read, bash, edit, write) plus:

FeatureWhat it does
Projects and worktreesRegister a directory as a project. In a Git repo each conversation works in its own worktree and branch, so your checkout stays untouched
TerminalsOpen shells in the conversation's checkout from the Terminal page of the Web/desktop side panel. A family shares its terminals; they keep running while you are away and replay when you come back, but end when the host stops
Background processesLong-running commands the agent starts, such as a dev server or a log monitor, tracked by the host; see their output or stop them in Tasks in the side panel (on the iPhone, list and stop them in Overview), and a process that exits on its own reports back to the conversation. See Background processes
ForksBranch off from a message into its own conversation, listed after its parent in the sidebar and opened in the main column; both lines keep going
SubagentsHand self-contained tasks to named subagents: wait for the answer, or let them work in the background and report back; the agent can keep messaging them afterwards, and you can watch and stop them in Tasks
Named agentsReusable roles in <data dir>/agents/<name>.md — a subagent call or an @name mention delegates to one, optionally pinning its model and thinking level
Questions, not approvalsTools run without approval prompts; when the direction is unclear, the agent asks 1–4 multiple-choice questions
codemodeThe model writes JavaScript that calls other tools in a QuickJS sandbox; only the script's output enters the context
MCPServers configured in ~/.agents/mcp.json, in the usual mcpServers format
PluginsDirectories in <data dir>/plugins/ that add tools, per-conversation state and, in the web and desktop apps, a side panel and tool cards. See Plugins
ImagesPaste, drop, or pick up to 4 images per message in the Web/desktop composer — resized to JPEG before sending
File attachmentsAttach up to 10 files per message in the Web/desktop composer, each up to 10 MiB. They upload to the host as you attach them; the model gets read-only paths and copies a file into the working directory before changing it
Slash commandsType / at the start of a message to run a command the host declares. The built-in /compact [instructions] summarizes older context; commands run on the host and are not sent to the model
Message times and delivery statesMessage details and actions appear on hover or keyboard focus, and stay visible on touch. Your latest message has a double-check delivered mark; a send in progress shows Sending, an unanswered one Not confirmed, and a refused one Failed with the reason. Unconfirmed and failed sends can be retried, and failed ones edited
AGENTS.md and skillsReads AGENTS.md / CLAUDE.md and skills from ~/.agents and the project, on every request; a $name mention sends that skill's full text with the message

Details and the MCP config reference: Usage (Chinese).