2.0.47

AI coding agent

In your terminal and browser

pig is a PHP port of pi with a self-hosted Web workbench. Bring your own models and tailor your workflow with extensions, skills, and MCP.

curl -fsSL https://pigagent.dev/install.sh | sh
demo-project⌘ Terminal
Add dark modeReview tests

Add a dark-mode toggle and remember the user's choice.

The theme toggle follows the system preference and saves your selection.

  • Added a labeled control in settings.php
  • Added tests in ThemeTest.php
Ask pig a question…
demo-projectmedium ▾
pig web start -dInterface illustration · Sample conversationActual screenshot →
demo-project · pig

Pig · Esc interrupt · / commands

› Add a dark-mode toggle and remember the user's choice.

The theme toggle follows the system preference and saves your selection.

– Added a labeled control in settings.php

– Added tests in ThemeTest.php

~/demo-projectmedium
pigTerminal illustration · Sample conversationActual screenshot →

Work the way you want

Run multiple tasks in the browser

Open separate conversation tabs, switch between projects, and access a terminal without leaving the Web workbench.

Web workbench guide

Pick up or branch a session

Resume a saved conversation or use /tree to branch from an earlier turn without losing the original.

How sessions work

Choose your models

Connect to hosted providers or local models, then switch with /model without starting a new conversation.

Models

Add the tools you need

Install PHP extensions, skills, or prompt templates via Composer or Git. Connect MCP servers with the built-in client.

Packages

Automate beyond the UI

Run one-off prompts from scripts, stream JSON events, or integrate pig through RPC and the PHP SDK.

CLI → RPC → PHP SDK →

Control what the model sees

Set project instructions in AGENTS.md, load skills when needed, and compact long conversations as you work.

Skills → MCP →