@capotej/pi-mise
Automatically activates mise when a mise.toml or .mise.toml file is found in the project
Package details
Install @capotej/pi-mise from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@capotej/pi-mise- Package
@capotej/pi-mise- Version
1.0.5- Published
- Jun 7, 2026
- Downloads
- not available
- Author
- capotej
- License
- MIT
- Types
- extension, skill
- Size
- 10.6 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.js"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@capotej/pi-mise
Auto-activates mise for pi coding sessions.
When this pi package is installed and a mise.toml, .mise.toml, or .tool-versions file is detected in the project root, it automatically:
- Trusts the mise configuration (idempotent, safe)
- Prepends
eval "$(mise activate bash)"to everybashtool call, ensuring all commands run with the correct tool versions - Contributes the
miseskill for edge cases (manual install, trust, tasks)
Installation
pi install @capotej/pi-mise
How It Works
- On session start, the extension checks if
miseis available inPATH - It scans the project root for mise config files (
mise.toml,.mise.toml,.tool-versions) - If a config is found, it runs
mise trust <config>so mise won't prompt for trust - Every subsequent
bashtool call is automatically prefixed witheval "$(mise activate bash)", so the LLM's commands run with mise-managed tools onPATH - A notification is shown when mise is activated (or if mise is missing)
If no mise config file is found, the extension does nothing — zero overhead.
Requirements
misemust be installed and available inPATH- A mise config file (
mise.toml,.mise.toml, or.tool-versions) in the project root
The mise Skill
This package also contributes a mise skill that teaches the LLM how to:
- Use
mise execfor one-off commands - Run mise tasks with
mise run - Install tools with
mise install - Handle trust, activation, and common pitfalls
Note: When the pi-mise extension is active, mise activation is already prepended to every bash command. The skill instructs the LLM not to manually add
eval "$(mise activate bash)"— it's handled automatically.
Development
# Install dependencies
pnpm install
# Build
pnpm build
# Lint
pnpm lint
# Format
pnpm format
License
MIT © Julio Capote