Build a React workspace for a coding agent. Show what the agent ran, open the files it changed, and review its patch. You supply the sandbox data and decide who can access it.
Explore the Storybook · Integration guide · npm package
In a React app, install the package.
npm install @tangle-network/sandbox-uiThis component shows a one-line fix. Pass the original and updated file contents to display your own patch.
import { DiffView } from "@tangle-network/sandbox-ui/workbench/diff";
import "@tangle-network/sandbox-ui/styles";
export default function ReviewChange() {
return (
<DiffView
filename="greet.ts"
baseline={'export const greet = (name: string) => "Hello, name";\n'}
current={'export const greet = (name: string) => `Hello, ${name}`;\n'}
/>
);
}| What you want to show | Where to start |
|---|---|
| A conversation alongside files, a diff, and a terminal | SandboxWorkbench |
| A live run with a trace and the selected agent's output | LiveRun |
| An app running inside a sandbox | EmbeddedAppView |
| A saved run or research report | AgentRecord and ResearchReport |
| A dashboard with workspace and account navigation | Sidebar components |
Import the subpath for the feature you use. The integration guide covers optional dependencies, CSS imports, fonts, and theming. For the composed agent shell, composer, and pickers, see component ownership.
git clone https://github.com/tangle-network/sandbox-ui.git
cd sandbox-ui
pnpm install --frozen-lockfile
pnpm storybookOpen http://localhost:6006. Each story shows a component with sample data. The visual test guide covers running the browser suite and reviewing snapshot changes.
