agent-shell (Emacs)
Connects to PiG over ACP through pig-acp. Ran on PiG 0.7.0 with a scripted model.
What works and what you need
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-agentTest 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.
- Run M-x agent-shell-pi-start-agent and accept the default
- 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.
Sources and project
agent-shell (Emacs) documentation
- raw.githubusercontent.com/xenodium/agent-shell/main/README.org
- raw.githubusercontent.com/xenodium/agent-shell/main/agent-shell-pi.el
The name and logo belong to agent-shell (Emacs)’s owners. PiG is independent of agent-shell (Emacs); no endorsement is implied.
