---
title: "onescope cookbook"
url: https://recursiveai.org/onescope/cookbook/
description: "8 OneScope recipes, each with complete code."
version: "1.0.0"
---

# onescope cookbook

## Inspect simulations

- [Debug running game physics live in C#](https://recursiveai.org/onescope/cookbook/attach-to-a-running-game/index.md): Attach OneScope to an instrumented OnePhysics game, inspect its live replay, and seek through the received steps without pausing the host.
- [Visualize a navmesh and crowds in C#](https://recursiveai.org/onescope/cookbook/visualize-navmesh-and-crowds/index.md): Record a OnePath crowd in C#, open its navigation mesh in OneScope, and inspect character paths, targets, and intermediate replay steps.
- [Let an AI assistant inspect a simulation](https://recursiveai.org/onescope/cookbook/let-an-ai-agent-inspect-a-simulation/index.md): Expose OneScope simulation inspection through the Model Context Protocol: open a live shell, connect a stdio client, and seek and inspect recorded state.
- [Write a custom replay viewer module in C#](https://recursiveai.org/onescope/cookbook/write-a-onescope-module/index.md): Implement the OneScope SDK interfaces for a custom deterministic simulation, load the module assembly, and inspect a runnable counter replay.

## Replays and debugging

- [View a physics replay in C#](https://recursiveai.org/onescope/cookbook/view-physics-replay/index.md): Open a OnePhysics replay with OneScope, scrub its timeline and inspect body properties. Includes a recorded sample and a runnable .NET 10 example.
- [Render replay frames to PNG headless](https://recursiveai.org/onescope/cookbook/render-replay-frames-headless/index.md): Render a OnePhysics simulation replay to PNG without a window using OneScope. Capture one step or a numbered sequence with a frame manifest.
- [Debug a determinism desync in C#](https://recursiveai.org/onescope/cookbook/debug-determinism-desync/index.md): Find the first divergent simulation step and differing entity field with OneScope. Run a controlled replay comparison and inspect shared entities.
- [Fork and change a simulation replay](https://recursiveai.org/onescope/cookbook/fork-and-poke-a-replay/index.md): Fork a OnePhysics replay, apply an impulse, compare it with the original and save the branch. Includes a runnable OneScope example for .NET 10.
