Skip to main content
CogOS is designed to be adapted. Here are all the extension points available:
Extension PointHow
Custom schema structureDefine your own paths in UniversalSchemaDomain
Custom schema templatesCreate .json files in ./templates/ directory
Custom CM behaviorWrite your own system_prompt_builder(state, registry) -> str
Custom chatbot promptPass any template with {recalled_data} placeholder
Custom toolsExtend SCProtocol.tools() with domain-specific operations
Custom persistenceReplace StateManager / SchemaFileManager with your own backend
Any LLM providerSet base_url to any OpenAI-compatible endpoint
Custom input formatsSubclass InputConverter and implement convert()
PluginsRegister via .use(plugin) — add hooks & prompt vars without editing core

Custom Schema Structure

Custom CM Prompt

Override the CM agent’s behavior by providing a custom system_prompt_builder:

Custom Chatbot Prompt

The chatbot prompt template receives {recalled_data} (recalled schema content) and any custom variables injected by plugins:

Custom Input Formats

Subclass InputConverter for custom data formats: