Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interfaces

This section specifies the four interface layers through which external agents, tools, and users interact with Cobre beyond the traditional MPI batch execution path. Each interface layer is implemented as a separate crate with its own responsibility boundary, but all share the same event types defined in cobre-core and operate in single-process mode (no MPI).

InterfaceCratePurpose
Structured Outputcobre-cliJSON and JSON-lines output protocol for CLI responses and progress streaming
MCP Servercobre-mcpModel Context Protocol server exposing Cobre operations as tools, resources, and prompts
Python Bindingscobre-pythonPyO3-based Python module for programmatic access to validation, training, simulation, and results
Terminal UIcobre-tuiInteractive terminal dashboard for real-time training monitoring and convergence visualization

All four interfaces consume the shared event stream architecture defined in the Training Loop and Convergence Monitoring specs. The structured output spec (CLI JSON protocol) serves as the foundational schema layer – the MCP server, Python bindings, and TUI all reuse its error schema and event type definitions.