magpie

Picks the model each of your coding agents uses and serves them through one local gateway. A community plugin adds PiG to its Agents page.

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: Community plugin (or PIG_USE_PI_DIRS=1). magpie’s community plugin @magpie-community/agent-pig needs magpie 0.1.3008 or later and covers the default ~/.pig/agent folder only. The plugin is unofficial. It was run on a PiG 0.7.0 build and a magpie build from commit b4a0a2a1abd4 with a stand-in model server behind the gateway, and has not been rerun on PiG 0.8.0.

Setup

Connection: magpie CLI plugin.

  1. Install magpie, then add its PiG plugin.
    $magpie plugin add @magpie-community/agent-pig
  2. Pick a magpie model in the PiG row of the Agents page, or from the command line.
    $magpie pig model magpie/<provider>/<model>
  3. Start PiG. A new session starts on that model, and /model still switches.
    $pig

With PIG_USE_PI_DIRS=1, magpie’s own Pi row edits the shared ~/.pi/agent files that PiG then reads. A built-in PiG row with PiG’s folder variables is not proposed yet.

Test record

PiG 0.7.0 build (CLI, stand-in model server)

Ran. PiG reporting 0.7.0+1.5.0 with magpie built from commit b4a0a2a1abd4 and a stand-in model server behind the gateway. Both magpie’s Pi row with PIG_USE_PI_DIRS=1 and the plugin route wrote the files PiG reads; PiG listed magpie models, answered a prompt, ran a tool call, and sent the chosen thinking level.

Not run. magpie’s desktop app; a real model; PiG 0.8.0.

Sources and project

magpie on GitHub

The name and logo belong to magpie’s owners. PiG is independent of magpie; no endorsement is implied.