Skip to content

chimera.plugins

chimera.plugins is the extension surface: package tools, agent presets, strategies, MCP servers, and hooks as a plugin and load them into any Chimera-based project.

For the tutorial walk-through, see Build a Plugin.

from chimera.plugins import (
BasePlugin,
ComponentRegistry,
Hook,
MCPServerConfig,
PluginManager,
PluginExtensionRegistry,
DirectoryPluginLoader,
PluginInfo,
Marketplace,
MarketplaceRegistry,
)
SymbolModulePurpose
BasePluginchimera.plugins.baseABC. Set name, version, description. Override the register_* hooks you need.
ComponentRegistrychimera.plugins.basePer-plugin registry the activate() flow registers into.
Hookchimera.plugins.baseShell-hook config (command, event_type, timeout).
MCPServerConfigchimera.plugins.baseOne MCP server entry (command, args, env).
PluginManagerchimera.plugins.managerLoads plugins, aggregates tools / agents / strategies.
PluginExtensionRegistrychimera.plugins.registryClass-level registry for advanced extensions (agents, strategies, constraints, middleware, skills, MCP servers, hooks).
DirectoryPluginLoaderchimera.plugins.dir_loaderLoads directory-based plugins (plugin.json + agents/*.md + .mcp.json + hooks/).
PluginInfochimera.plugins.marketplaceMarketplace metadata: name, version, description, author, tags.
MarketplaceRegistry / Marketplacechimera.plugins.marketplaceSearch, install, uninstall plugins from a registry index.

BasePlugin.activate(registry) calls these in order — override only the ones you need:

register_tools, register_loops, register_providers, register_agents, register_strategies, register_constraints, register_middleware, register_skills, register_mcp_servers, register_hooks.