mngr-pi-coding
Plugin that registers the pi-coding agent type for mngr.
Pi is a minimal terminal coding harness (published on npm as @earendil-works/pi-coding-agent). This plugin runs it as a fully-featured mngr agent: lifecycle-aware (RUNNING vs WAITING), transcript-capturing, and resumable across restarts.
Usage
mngr create my-agent pi-coding
Pass arguments to the pi command with -- (e.g. to pick a provider/model):
mngr create my-agent pi-coding -- --provider anthropic --model claude-haiku-4-5
Pi needs a provider credential. The simplest path is to set an API key in your
environment and pass it through, e.g. mngr create my-agent pi-coding --pass-env ANTHROPIC_API_KEY,
or run pi once and use /login to populate ~/.pi/agent/auth.json (which the
plugin shares into each agent).
Tool permissions. pi runs tools -- including shell commands -- without a confirmation gate: it has no built-in approval prompts, and mngr adds none. To restrict an agent, use pi's own
--tools <allowlist>viacli_args, or run untrusted work in a sandbox.
What you get
- Per-agent isolation. Each agent gets its own pi config dir, so settings,
sessions, and state never collide. Your
~/.pi/agent/auth and settings are shared in, so a/loginor token refresh in any agent propagates to the rest. - RUNNING vs WAITING.
mngr listshows whether the agent is mid-turn or idle. - Transcripts.
mngr transcript my-agentrenders the conversation. - Resume.
mngr stopthenmngr startcontinues the same pi session with full context.
Configuration
Define a custom variant in your mngr config (mngr config edit):
[agent_types.my_pi]
parent_type = "pi-coding"
cli_args = "--provider anthropic --model claude-haiku-4-5"
Then create agents with your custom type:
mngr create my-agent my_pi
Tunables on the pi-coding agent type:
| Setting | Default | Description |
|---|---|---|
command |
pi |
Command to run the pi coding agent. |
sync_home_settings |
true |
Share settings.json and resource dirs from ~/.pi/agent/ into the per-agent config dir. |
share_home_npm_dir |
false |
Symlink the per-agent pi npm dir to the shared ~/.pi/agent/npm instead of copying it (local hosts only). The default copy gives every agent a UNIQUE npm path, which is a cache miss for pi's jiti transpile cache (keyed by absolute path) -- so a fresh agent re-transpiles all extension TypeScript from scratch (~16-24s for a couple of extensions). Sharing the one stable path lets that cache hit across agents, cutting extension-heavy startup from ~30s to ~10s. SAFE ONLY when every package pinned in settings.json is already installed in ~/.pi/agent/npm (e.g. baked into the image): if pi has to install a missing package it writes into node_modules, and a shared dir would race across concurrent agent startups and mutate the user's home npm. The copy default exists precisely to avoid that race, so leave this off unless the extension set is fully pre-seeded. Ignored on remote hosts, which have no shared home npm. |
sync_auth |
true |
Share ~/.pi/agent/auth.json into the per-agent config dir. |
check_installation |
true |
Verify pi is installed (and install on remote hosts when allowed). If False, assumes it is already present. |
version |
unset | Pin the pi CLI version to install (e.g., '1.2.3'). When set, installation runs npm install -g @earendil-works/pi-coding-agent@<version> and provisioning verifies the installed pi matches (see version_mismatch), whether or not check_installation is set. When None (the default), installs the latest version. |
version_mismatch |
ERROR |
What provisioning does when the installed pi does not report the pinned version. ERROR (default): fail the create. WARN: log a warning and continue on the installed binary. |
update_policy |
unset | How to handle pi's startup version check. NEVER sets PI_SKIP_VERSION_CHECK=1 in the agent environment so pi does not phone home to compare against the latest release; AUTO leaves the check enabled. ASK has no interactive flow for pi and behaves like AUTO. When unset (the default), resolves to NEVER (check disabled) -- set AUTO to leave pi's startup version check enabled. (pi only notifies about updates -- it never self-replaces -- so this governs the startup check, not a background update.) |
auto_allow_permissions |
true |
pi runs every tool without an approval prompt, so it always operates unattended; setting this to False is an error because pi cannot enforce a deny. |
resume_session |
true |
Resume this agent's pi session on start, so stop/start keeps context. Safe on first start (pi starts fresh when there is no recorded session yet). |
emit_common_transcript |
true |
Emit the transcript mngr transcript reads. The raw pi transcript is always captured; this gates only the common-envelope conversion. |
emit_raw_transcript |
true |
Capture the raw pi message stream. |
auto_dismiss_dialogs_at_startup |
false |
Trust the workspace without prompting, suppressing pi's 'Trust project folder?' dialog. When set, mngr launches pi with --approve so pi auto-trusts the project folder for the run. Also implied by mngr create --yes. When False and the source repo is not already trusted, mngr prompts interactively and refuses to run non-interactively. |
preserve_on_destroy |
true |
When destroying this agent, first copy its transcripts and resumable session store to <local_host_dir>/preserved/ so they survive. Set to False to discard them. |
output_style |
None |
Name of an output style (from .agents/output-styles/) whose body is written verbatim to APPEND_SYSTEM.md in the per-agent pi config dir, so pi appends it to its system prompt every turn. pi has no native output-style setting, so the style reaches it as appended instructions -- the pi analogue of codex's developer_instructions. |
append_system_prompt |
() |
Extra system-prompt blocks appended (before the output-style body) to APPEND_SYSTEM.md. Write append_system_prompt__extend = [...] in a template so stacked roles each contribute a block. |
See the mngr agent types documentation for more details.
Metadata
Release files for imbue-mngr-pi-coding 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imbue_mngr_pi_coding-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for imbue_mngr_pi_coding-0.2.1-py3-none-any.whl |
Release files / imbue_mngr_pi_coding-0.2.1-py3-none-any.whl
| Download URL | imbue_mngr_pi_coding-0.2.1-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ceaf2e22772345665db48c0e56e2d2bcbceb6bbcd9ac0c3f3d40bb211e5b316
|
|
BLAKE2b-256 checksum How to use checksums |
cc12c1ef8d8e20fa52153c8df679d759036d128eed99c7bd157c29ac27da71aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for imbue-mngr-pi-coding 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for imbue_mngr_pi_coding-0.2.1-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.