Repository navigation
Permissions
Federico Conticello edited this page Mar 24, 2026
·
1 revision
Plugins must declare which commands they need in plugin.toml:
[permissions]
execute = ["ruff", "pyright"]- Plugin calls
api:run_command("ruff", ...) - FerrisPad checks if
ruffis in the plugin'sexecutelist - If not approved yet, a dialog asks the user: "Allow {plugin} to run ruff?"
- User chooses Allow or Deny
- The decision is stored in settings and remembered
Each plugin has its own permission set. Plugin A being allowed to run ruff does not grant Plugin B the same permission.
Filesystem access is implicitly granted within the project root — no additional approval needed. There is no way for a plugin to access files outside the project root.
The project root is determined by walking up from the current file's directory, looking for these markers (in order):
.gitCargo.tomlpackage.jsonpyproject.tomlsetup.py.ferrispad
If no marker is found, the file's parent directory is used.
- Access files outside the project root
- Run commands not in their
executelist - Use
os,io,debug, orrequireLua modules - Load external Lua files
- Execute shell pipelines or use shell metacharacters in arguments
- Run for more than 1M instructions per hook call
- Use more than 16 MB of memory