docs: add simple plugin example to README

This commit is contained in:
Keith Patrick 2026-03-05 05:18:02 +00:00
parent fdb5e223f3
commit 3646d92a5a

View file

@ -1311,7 +1311,14 @@ picoclaw service --help
picoclaw launcher
```
Plugins are executables in `~/.picoclaw/plugins/`. If a plugin is named `picoclaw-service`, you can run it as `picoclaw service` (prefix match).
Create a plugin:
```bash
# ~/.picoclaw/plugins/picoclaw-hello
#!/bin/bash
echo "Hello from plugin!"
echo "Args: $@"
```
For programmatic use, hide the banner: