agent-shell (Emacs)

Connects to PiG over ACP through pig-acp. Ran on PiG 0.7.0 with a scripted model.

All integrations

What works and what you need

Ran on an earlier releaseWe ran it on 0.7.x and have not rerun it on 0.8.x.

Needs: PiG ACP adapter. pig-acp, PiG’s ACP adapter, which ships as its own archive in every PiG 0.8.0 release. agent-shell (Emacs) ran on PiG 0.7.0 with pig-acp 0.2.1 and a local scripted model, and has not been rerun on 0.8.0.

Uses pig-acp. Complete the one-time pig-acp setup first, then add the configuration below.

Setup

Connection: ACP, through pig-acp.

Configuration: Emacs init file: customize agent-shell-pi-acp-command, then M-x agent-shell-pi-start-agent

Format: Emacs Lisp; agent-shell-pi-acp-command is a list (command and parameters)

(setq agent-shell-pi-acp-command
      '("pig-acp" "--pig" "/path/to/pig"))
;; then: M-x agent-shell-pi-start-agent

Test record

PiG 0.7.0 run

Ran (2026-11-07). GNU Emacs 29.3 + agent-shell 4564c5d + acp.el 2959da5 + shell-maker b28ee61; pig-acp 0.2.1 and pig 0.7.0 (pig --version prints 0.7.0+1.5.0), Linux amd64 in a container, with a local scripted model (no real model, no key).

Not run. Real model. agent-shell labels the agent "Pi" because it ships a Pi agent config that PiG's adapter plugs into.

Notes. Uses agent-shell's built-in Pi agent config (which expects the pi-acp adapter; pig-acp is a port of pi-acp), pointing its command variable at pig-acp. emacs --batch -Q: agent-shell-pi-start-agent, then agent-shell-insert :submit t; shell buffer text read back. Batch run duplicated the echoed prompt in the buffer (UI artefact of batch mode).

How to verify.

  1. Run M-x agent-shell-pi-start-agent and accept the default
  2. Type a prompt after the prompt marker and press RET

Expected: The buffer shows the model fake/fake-model in the header line, the reply and a Read a file entry.

Emacs agent-shell buffer with a PiG conversation
agent-shell in Emacs 29.3: M-x agent-shell-pi-start-agent, a prompt, the reply and the Read a file entry.

Sources and project

agent-shell (Emacs) documentation

The name and logo belong to agent-shell (Emacs)’s owners. PiG is independent of agent-shell (Emacs); no endorsement is implied.