Skip to content

About

React component library for AI agent interfaces — chat, terminal, file browser, tool calls, dashboards

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,001 Commits

Folders and files

Repository files navigation

Sandbox UI

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

Show a file change

In a React app, install the package.

npm install @tangle-network/sandbox-ui

This 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'}
    />
  );
}

A diff for greet.ts shows the literal name removed and the function argument inserted.

Build a workspace

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.

Run the examples locally

git clone https://github.com/tangle-network/sandbox-ui.git
cd sandbox-ui
pnpm install --frozen-lockfile
pnpm storybook

Open http://localhost:6006. Each story shows a component with sample data. The visual test guide covers running the browser suite and reviewing snapshot changes.

MIT license

About

React component library for AI agent interfaces — chat, terminal, file browser, tool calls, dashboards

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages