Observed since 21 Oct, 08:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xkahi/pi-arsenal
pi arsenal of useful tools
A multi-tool Pi extension with opt-in, configurable tools.
Add @0xkahi/pi-arsenal to your Pi package dependencies and ensure it is listed in your Pi configuration so the extension loads at session start.
pi install npm:@0xkahi/pi-arsenal
pi-arsenal reads layered JSON configuration from the following locations:
<agent-dir>/extensions/pi-arsenal/config.json.<project-root>/.pi/extensions/pi-arsenal/config.json, applied only when the project is trusted.Feature objects are shallow-merged, so a project override only replaces the fields it specifies.
The generated schema at assets/config.schema.json documents all supported configuration fields and can be referenced from your configuration file:
{
"$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json"
}
p2p_council — Peer-to-Peer Agent CommunicationConnect multiple Pi agent sessions into a local council for real-time collaboration over WebSocket.
{
"$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json",
"p2p_council": {
"enabled": true,
"layout": "inline"
}
}
enabled (boolean, default false) — whether p2p_council tools and the /p2p-council command are active.layout ("inline" | "overlay", default "inline") — modal presentation style.Create <cwd>/.arsenal/p2p-role.yml to set your agent's name and description:
name: backend-agent
description: Handles API and database work
Falls back to basename(cwd) when absent.
| Command | Description |
|---|---|
/p2p-council | Open the council modal to browse, create, join, or disconnect from councils |
The extension also listens for a pi.vimKeys.event:pi-arsenal.p2p_council event, which external vim-key integrations can emit for quick access.
| Tool | Description |
|---|---|
p2p_ls | List all connected council members with status, description, and cwd |
p2p_send(to, message, triggerTurn?) | Fire-and-forget message to another agent. triggerTurn: true queues delivery until idle; false (default) delivers as a steer |
p2p_ask(to, prompt) | Synchronous RPC — sends a prompt to a remote agent and waits for its assistant reply |
Tools are only available when enabled: true and connected to a council. Connection is managed through the TUI modal.
⚠️ Security note: The council WebSocket server binds to
127.0.0.1with no authentication. Any local process can connect, peek, or send messages.
📖 Full p2p_council documentation → — architecture, protocol, message delivery, host promotion, session lifecycle, and more.
tmux_popup toolOpen an existing file in a non-blocking tmux popup editor.
$TMUX must be set).tmux executable must be available on $PATH.{
"$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json",
"tmux_popup": {
"enabled": true,
"width": 50,
"height": 50,
"fileCommand": "nvim"
}
}
enabled (boolean, default false) — whether the tool is registered and visible to the model.width (number, 10–100, default 50) — popup width as a percentage.height (number, 10–100, default 50) — popup height as a percentage.fileCommand (string, default nvim) — command prefix used to open the file. May include arguments, e.g. "code --wait".The tool accepts a single filePath argument:
@ is stripped (@/path/to/file → /path/to/file).~/...) are expanded.~other-user paths are rejected.The fileCommand prefix is loaded from your trusted global or trusted project configuration and is executed as a shell command prefix. Only enable tmux_popup with commands you trust.
The tool spawns tmux display-popup -E as a detached process and returns as soon as tmux starts. It does not wait for the editor to exit, so the popup remains open while the agent continues.
multiverse — user-defined subagentsRegister your own subagent definitions alongside the bundled explorer, fixer, and visualizer. A user-defined agent is a subagent definition markdown file that you own; once discovered, it is offered to the parent and spawned exactly like a bundled one.
This section documents only how definitions are discovered and configured. Other Multiverse features (presets, concurrency, personas, the spawn tool, child sessions) are out of scope here.
Definitions are discovered from two conventional directories in addition to the bundled ones:
<agent-dir>/extensions/pi-arsenal/agents/<cwd>/.pi/extensions/pi-arsenal/agents/Each directory is scanned for .md files sorted alphabetically. Neither directory needs to exist: an absent directory is simply empty and produces no warning. The project directory is read only when the project is trusted; the global directory is always read.
A user agent file uses the same format as the bundled definitions: YAML frontmatter followed by a non-empty prompt body.
---
name: reviewer
tools:
- read
- grep
- bash
skills: []
color: "#7FDB9E"
metadata:
- "Lane: Review a change for correctness and style"
- "**Delegate when:** A change is ready for a focused second pass"
- "**Don't delegate when:** You need the change written, not reviewed"
---
You are Reviewer - a focused code review specialist.
**Role**: Inspect a change and report concrete, actionable findings.
Guidelines:
- Read the relevant files before commenting.
- Prefer specific issues over general advice.
- Return findings with file paths and line numbers.
name (string, required) — the registered agent name. The name always comes from the frontmatter; the filename is decorative and is neither parsed nor required to match. Must be non-empty and must not collide with a bundled agent.tools (array of strings) — the tool subset this agent may use. May include codemode, which loads into the child only for agents that declare it, independent of the user's codemode settings. Scripts can only call that agent's other declared tools.skills (array of strings) — skills granted to the agent.metadata (non-empty array of strings, required) — parent-facing routing guidance describing when to delegate.color (#RRGGBB, optional) — display color.Definitions register in a fixed order: bundled first, then project, then global, with files alphabetical within each directory. The first claim on a name wins, so:
explorer, fixer, or visualizer. Pick a different name.A losing file is skipped and the conflict is reported, naming the winning agent and the skipped file.
The project directory is read only when project trust is active. In an untrusted project, only bundled and global definitions register.
User agent settings use the same name-keyed subagents map as bundled agents. There is no per-definition configuration; a user agent's model is set with subagents["<name>"].model:
{
"$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json",
"multiverse": {
"enabled": true,
"subagents": {
"reviewer": {
"enabled": true,
"model": { "provider": "anthropic", "modelId": "claude-sonnet-4", "reasoning": "high" }
}
}
}
}
A registered user agent is governed by subagents["<name>"].enabled, so you can turn it off without deleting its file. Omitted model fields fall back to the active preset and then to the parent session's model, exactly as for a bundled agent.
An unreadable directory is reported once. An unreadable file, an invalid definition, or a name conflict skips only that file with a warning. Multiverse stays enabled and every other agent remains available. Problems are reported once when the extension activates.
Definitions load once per activation. Adding or editing a user agent's markdown takes effect only after a reload or reopen; there is no hot-reload.
📖 Full Multiverse documentation → — configuration reference, model presets, durable children, the spawn tool, the
/multiversecommand, and V1 limitations.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
zodEnvironment{
"local_name": "zod",
"alias": false,
"peer_metadata": null
} | ^4.4.3 | runtime |
typeboxEnvironment{
"local_name": "typebox",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
@0xkahi/cli-dyeEnvironment{
"local_name": "@0xkahi/cli-dye",
"alias": false,
"peer_metadata": null
} | ^1.1.0 | runtime |
bun-typesEnvironment{
"local_name": "bun-types",
"alias": false,
"peer_metadata": null
} | latest | development |
@types/bunEnvironment{
"local_name": "@types/bun",
"alias": false,
"peer_metadata": null
} | latest | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^24.0.0 | development |
@biomejs/biomeEnvironment{
"local_name": "@biomejs/biome",
"alias": false,
"peer_metadata": null
} | ^2.4.15 | development |
@changesets/cliEnvironment{
"local_name": "@changesets/cli",
"alias": false,
"peer_metadata": null
} | ^2.31.0 | development |
@earendil-works/pi-aiEnvironment{
"local_name": "@earendil-works/pi-ai",
"alias": false,
"peer_metadata": null
} | ^0.80.3 | development |
@earendil-works/pi-tuiEnvironment{
"local_name": "@earendil-works/pi-tui",
"alias": false,
"peer_metadata": null
} | ^0.80.3 | development |
@earendil-works/pi-coding-agentEnvironment{
"local_name": "@earendil-works/pi-coding-agent",
"alias": false,
"peer_metadata": null
} | ^0.80.3 | development |
@earendil-works/pi-aiEnvironment{
"local_name": "@earendil-works/pi-ai",
"alias": false,
"peer_metadata": null
} | * | peer |
@earendil-works/pi-tuiEnvironment{
"local_name": "@earendil-works/pi-tui",
"alias": false,
"peer_metadata": null
} | * | peer |
@earendil-works/pi-coding-agentEnvironment{
"local_name": "@earendil-works/pi-coding-agent",
"alias": false,
"peer_metadata": null
} | * | peer |
Source distribution
{
"shasum": "dd148945fc83203cd4dfc74197685077e99fe46b",
"tarball": "https://registry.npmjs.org/@0xkahi/pi-arsenal/-/pi-arsenal-0.0.1.tgz",
"fileCount": 16,
"integrity": "sha512-GT6sYUqyRn0ZklhBSnQIajV6qF0PKuB72RNm1E0fu0+7eZv1++HjSUUWStGxhcZtNCM7/+rYlIx2f/jQrzqt/g==",
"signatures": [
{
"sig": "MEUCIEVRY1btEbivRdVXFa+ZoloVILfIl5fSHcN2AvhZefDFAiEAtVYXmBSaM4+sZ9gpI+N9+Wnm2/buxp8p6mJ55zvEg2s=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 20320
}Observed since 21 Oct, 08:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5c2f13ec2217aaa9151afefd9a4adc201dbdb00a062622f4b016175a2c7ed812