Why Use Local Rollout?
By connecting your GitHub repository to Osmosis, you can:- Version control your evaluation logic alongside your application code
- Collaborate with your team using familiar Git workflows
- Automate deployments through CI/CD pipelines
- Keep repositories private while still syncing with Osmosis
- Manage multiple rubrics and functions in one place
What Can You Sync?
Osmosis automatically discovers and syncs three types of components from your repository:- MCP Tools - Extend AI agent capabilities with custom functions
- Reward Functions - Provide deterministic, numeric scoring for LLM outputs
- Reward Rubrics - Use LLMs to evaluate outputs with natural language criteria
Example Repository
Check out our reference implementation: osmosis-git-sync-example This example demonstrates the complete folder structure and code artifacts that the Osmosis GitHub integration discovers and syncs.Getting Started
Set Up Repository
Create the required directory structure and
pyproject.toml. See Folder Structure for the complete layout and dependency configuration.Add Components
Add your MCP tools, reward functions, and reward rubrics to the corresponding directories:
mcp/tools/—@mcp.tool()decorated functionsreward_fn/—@osmosis_rewarddecorated functionsreward_rubric/—@osmosis_rubricdecorated functions
Connect to Platform
Follow the GitHub Integration guide to install the Osmosis GitHub App and connect your repository. Once connected, Osmosis automatically syncs on every push.
Next Steps
Folder Structure
Required repository layout
GitHub Integration
Connect your repository
Best Practices
Production guidelines