@agimon-ai/po-domain
Domain selection, resource staging, and MCP scoping for Po sessions.
Package details
Install @agimon-ai/po-domain from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@agimon-ai/po-domain- Package
@agimon-ai/po-domain- Version
0.0.0-alpha.232- Published
- Dec 6, 2026
- Downloads
- 32.4K/mo · 7,611/wk
- Author
- agiflow-ai
- License
- MIT
- Types
- extension, skill
- Size
- 992.2 KB
- Dependencies
- 9 dependencies · 2 peers
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@agimon-ai/po-domain
Domains select composable plugin content for a Po session: skills, agents, and MCP configuration. They are separate from the runtime layers selected by a preset.
The distribution loads this package as fixed host infrastructure. It reads .po/domains.yaml; do not add the package to a layer.
# .po/domains.yaml
plugins:
entries:
development: plugins/development
domains:
development:
description: Application code and review guidance.
plugins: [development]
aliases:
coding: [development]
Select domains
/domains shows or changes the selection. Domains compose: the model receives the union of their admitted content. Selecting a content plugin does not install the runtime capabilities its instructions mention.
Applying a selection prepares trusted plugin sources, discovered skills and agents, and the session's MCP projection. Config publishes that projection for MCP to consume; Domain does not operate the live MCP runtime directly.
MCP filtering applies only when every selected domain declares an mcp allowlist. Mixing an opted-in domain with one that omits it leaves the selection unfiltered. An empty server list is not a deny-all rule. Treat these filters as composition choices, not an execution sandbox.
Code mode (plugins namespace)
Sessions expose the plugins code-mode namespace (guided by codemode-how-to-plugins) to search and toggle plugins for the current session without editing domains.yaml:
plugins.search({ query? }): searches catalog entries by name, description, and skill names, reporting each plugin's skills, MCP servers, hook count, domains, and active state.plugins.enable({ name }): asks the person for approval (main agent only) and turns the plugin's skills and MCP servers on for the current session.plugins.disable({ name }): turns off a plugin that the current session enabled.
Authoring guidance
With Help active, help-how-to-domain explains plugin catalogs, aliases, defaults, shared skills, and MCP scopes. Start with the domain guide, published through llms.txt.
Verify
Run pnpm test from this package. Expect the domain apply tests to refresh generated paths and
the live-session projection together, without replacing the active generation during staging.
License
MIT. See LICENSE.