Plugins
Plugins extend elelem with custom functionality. There are four types:
| Type | Purpose | Registry |
|---|---|---|
| Tool | Functions the LLM can call | agent.toolbox.add |
| Command | Slash commands for the user | agent.commands.register |
| Hook | Before/after tool execution | agent.toolbox.before/after |
| Provider | LLM backends | Elelem::Providers.register |
Location
~/.elelem/plugins/- user global (all projects).elelem/plugins/- project local
Basic Structure
# ~/.elelem/plugins/myplugin.rb
Elelem::Plugins.register(:myplugin) do |agent|
# add tools, commands, hooks
end