ConnectOnionConnectOnion
DocsUseful Plugins

Useful Plugins

Built-in

Pre-built plugins from connectonion.useful_plugins

What is a Plugin?

A plugin is a reusable list of event handlers. Use plugins=[...] to add pre-packaged functionality to any agent.

main.py
1from connectonion import Agent 2from connectonion.useful_plugins import re_act, image_result_formatter 3 4# Combine multiple plugins 5agent = Agent( 6 "assistant", 7 tools=[search, screenshot], 8 plugins=[re_act, image_result_formatter] 9)

Learn how to build custom plugins in the Plugin System documentation.

Combining Plugins

Plugins can be combined for powerful agent behaviors:

main.py
1from connectonion import Agent 2from connectonion.useful_plugins import ( 3 re_act, # Planning + Reflection 4 image_result_formatter, # Vision support 5 shell_approval # Safety for shell commands 6) 7 8agent = Agent( 9 "devops_assistant", 10 tools=[run_command, screenshot, analyze], 11 plugins=[re_act, image_result_formatter, shell_approval] 12) 13 14# Now the agent will: 15# 1. Plan before acting (re_act) 16# 2. Format images for vision models (image_result_formatter) 17# 3. Ask for approval before shell commands (shell_approval) 18# 4. Reflect after tool execution (re_act)

Customizing Plugins

Need to modify a built-in plugin? Copy it to your project:

code
1# Copy a plugin to your project 2co copy re_act 3 4# Copy multiple plugins 5co copy re_act shell_approval eval
Python REPL
Interactive
✓ Copied: ./plugins/re_act.py
✓ Copied: ./plugins/shell_approval.py
✓ Copied: ./plugins/eval.py

Then import from your local copy and customize:

main.py
1# Before (from package) 2from connectonion.useful_plugins import re_act 3 4# After (from your copy) 5from plugins.re_act import re_act # Customize freely!

See co copy for full details.

Build Your Own Plugin

Learn how to create custom plugins using the event system

Plugin System Docs