# XWUISuperAgentWorkspace

Coding-agent workspace: chat, plan, diff review, terminal, browser and file-tree. Hosts existing thread/diff/terminal widgets rather than reimplementing them.

This is the operator IDE SuperAgentStudio is not: Studio builds agents, this workspace runs one. XWUIAgentThread / XWUIDiffApplyReview are A2 POWER widgets and are hosted when present.

The constructor is `new XWUISuperAgentWorkspace(container, data, config)`. Navigation is the inherited SuperApp shell (`menuTree()` / `pages()` / `XWUISuperApp.merge()`). Every leaf composes an existing XWUI widget — a Super module that reimplements a grid or editor internally is a defect.

Autonomy defaults to `suggest` (GUIDE_16). The settings leaf shows the current mode. Model-proposed mutations go through `createXWUISuperAgentWorkspaceLogic().propose()` / `applyProposal()` / `rejectProposal()` so an agent can drive the shell without the GUI. The pinned model is `qwen2.5:7b-instruct` unless `config.pinnedModel` overrides it.

## Basic Usage

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Standalone Agent Workspace shell on the KPI dashboard.
```

## Arabic (RTL)

```example
file: examples/RtlArabic.ts
html: examples/RtlArabic.html
title: Arabic (RTL)
description: Deep-link under locale ar.
```

## Showcase

```example
file: examples/Showcase.ts
html: examples/Showcase.html
title: Showcase
description: Dashboard, collapsed deep-link, and RTL.
```

## Host extra page

```example
file: examples/WithExtraPage.ts
html: examples/WithExtraPage.html
title: Host extra page
description: extraTree / extraPages host leaf.
```

## Merged shell

```example
file: examples/MergedShell.ts
html: examples/MergedShell.html
title: Merged shell
description: XWUISuperApp.merge with XWUISuperAI.
```

```api
```
