Repository navigation
Agent Plugin Skills cannot enforce parent tool restrictions during setup #138
Description
Summary
Agent Plugin Skills currently cannot enforce a tool restriction on the parent MiniMax Code session while performing plugin-guided setup. This prevents certifying autonomous, native-only setup flows for security-sensitive plugins.
Environment
- MiniMax Code: 3.0.68.134
- Plugin type: Agent Plugin, imported from a public Git repository
- Setup initiated from a selected Plugin Skill in a disposable MiniMax profile
Reproduction
- Create or import an Agent Plugin with a Skill that guides a setup operation through MiniMax-native mechanisms (for example,
mavis agentprofile/configuration operations). - In the Skill prompt, explicitly provide all required input (including the temporary profile root) and explicitly prohibit Terminal, shell commands, HTTP requests, direct store edits, and direct agent workflow/system-prompt/project-file changes.
- Start the Skill from the MiniMax Code desktop UI.
- The Skill can invoke its MCP helper, but the parent session still has Terminal available and may invoke it (observed: a directory listing command) to inspect the plugin or profile before continuing.
Actual behavior
The parent agent's available tools are not constrained by the selected Skill's instructions. Prompt-level restrictions are advisory only: Terminal remains exposed and can be used during setup.
Custom Agent agent.md tool selectors can restrict child roles, but they do not restrict the parent session executing the Plugin Skill. Therefore they cannot provide an end-to-end guarantee for a native-only, shell-free setup flow.
Expected behavior
Please provide one of these host-enforced mechanisms:
- A declarative allowlist/denylist for tools available to the parent session while a Plugin Skill is running (for example, excluding Terminal and shell); or
- A non-prompt native setup API/surface for Agent Plugins to create/update supported agent configuration safely, without asking the parent model to perform file or shell operations.
The restriction must be enforced by the host, visible to the user, and testable by plugin authors.
Impact
Without a host-enforced boundary, a plugin cannot truthfully certify autonomous setup as native-only or shell-free. For production distribution, the only safe outcomes are a supervised manual setup contract or a fail-closed block. This affects plugins that need to install or configure multi-agent roles while preserving least privilege.
Could you confirm whether a parent-session tool policy already exists (and how Plugin Skills declare it), or whether this capability/API is planned?
Activity
hetaoBackend commentedon Sep 21, 2026
Good problem statement. Today skills are advisory prompts — they cannot enforce tool restrictions on the parent session, so a "native-only, no-shell" setup flow can't be certified, only requested.
Making tool restrictions enforceable during a plugin-guided flow is effectively a scoped permission-manifest feature (declare allowed tools for a phase, runtime enforces). That's a meaningful security enhancement and is recorded; it ties into ongoing permission-model work.
hetaoBackend commentedon Oct 19, 2026
Closing as part of a backlog cleanup: this issue was filed more than a month ago against an older release, and the codebase has changed substantially since then. If it still reproduces on the latest version, please open a new issue with the current version and reproduction steps. Thank you for the report!
批量清理积压:该 issue 创建已超过一个月,针对的是较旧版本,代码已有较大变化。如果在最新版本上仍能复现,欢迎附上当前版本号和复现步骤重新提交 issue。感谢反馈!