aide.sh exec
Execute a skill on a running agent instance.
Usage
aide.sh exec [FLAGS] <INSTANCE> [SKILL] [ARGS...]
When called without a skill, lists all available skills for the instance (equivalent to --help).
Options
| Flag | Description |
|---|---|
-i, --interactive | Interactive mode (allocate pseudo-TTY) |
-t, --tty | Allocate pseudo-TTY |
Examples
aide.sh exec jenny.ydwu # list available skills
aide.sh exec jenny.ydwu cool courses # run the "cool" skill with arg "courses"
aide.sh exec jenny.ydwu email check # check email
aide.sh exec -it jenny.ydwu cool scan # interactive mode
Skill resolution
- Looks up the instance under
~/.aide/instances/<instance>/. - Loads
Agentfile.tomlfrom the instance directory. - Finds the skill definition and locates the script at
skills/<skill>.sh. - Executes the script via
bash, passing remaining arguments.
Environment scoping
Secrets from the vault (~/.aide/vault.age) are injected with a tiered scoping model:
- Per-skill env -- If the skill declares its own
envlist in the Agentfile, only those variables are injected. - Per-agent env -- Otherwise, variables from the
[env]section (required+optional) are injected. - No Agentfile -- Legacy mode: all vault variables are injected.
Smart error messages
If you pass a registry-style image reference (e.g. ydwu/school-assistant) instead of an instance name, the command suggests running aide.sh pull and aide.sh run first.
Help output
Running aide.sh exec <instance> with no skill prints:
- Instance name, agent type, and version
- Each skill with its usage string and description
- Per-skill env var requirements
- A hint about semantic mode (
aide.sh exec -p <instance> "<query>")