autowork is currently implemented as a runtime capability layer inside AutoAgent, not as a standalone UI page.
That means:
- There is no separate
Autoworktab or route in the React renderer today. autoworkis enabled by prompt assembly, artifact bridging, and internal IPC/MCP handlers.- The visible UI surfaces for it are mainly the chat area, the
Artifactspanel, and opened artifact windows.
autowork is effectively on by default in the current desktop runtime.
Every main agent run uses the assembled Autowork prompt:
- src/main.ts
- src/autowork/desktop-replica.ts
The runtime prompt is built from bundled upstream prompt assets:
- src/autowork/assets/upstream/desktop-system-prompts-extracted.md
- src/autowork/assets/upstream/claude-desktop-artifacts-mechanism.md
- src/autowork/assets/upstream/claude-desktop-ui-generation.md
- src/autowork/assets/upstream/claude-code-internal-mcp-servers.md
Artifact-side askClaude calls also go through the Autowork prompt assembler:
- src/main.ts
Opened artifact pages receive the Autowork bridge:
- src/artifact-preload.ts
Artifacts rendered inside chat iframes also proxy Autowork bridge calls back to the host:
- src/renderer/message-content.tsx
- src/renderer/message-content.tsx
The current right-side control panel only has these tabs:
SkillsAgentMCPWorkspaceArtifacts
See:
- src/renderer/app.tsx
So autowork is not missing because it failed to load. It is missing because no dedicated page or tab has been built for it yet.
- Claude Desktop style system prompt assembly is implemented via prompt assets plus section parsing.
Imagineguidance, palette rules, UI component rules, elicitation rules, SVG/chart/art guidance, and artifacts guidance are included in the assembled prompt.- A source index is bundled into the assembled prompt for traceability.
Key files:
- src/autowork/prompt-assets.ts
- src/autowork/markdown-sections.ts
- src/autowork/desktop-replica.ts
- Detects fenced
artifact-htmlandartifactblocks from assistant responses. - Falls back to ingesting local
.htmlfile paths from assistant output when the model fails to emit an artifact block. - Persists artifacts as local HTML files with embedded
cowork-artifact-meta. - Maintains a manifest and artifact version snapshots.
- Supports import and export as zip archives.
Key files:
- src/main.ts
- src/main.ts
- src/main.ts
- src/main.ts
- Chat messages can render artifact previews inline through iframes.
- Artifact windows open in dedicated Electron BrowserWindows.
- The
Artifactsside panel lists persisted artifacts and allowsOpen,Versions,Export, andImport.
Key files:
- src/renderer/message-content.tsx
- src/renderer/app.tsx
- src/main.ts
Artifact code can call:
window.autowork.callMcpTool(name, args)window.autowork.askClaude(prompt, data)window.autowork.sample(prompt, data)window.autowork.runScheduledTask(taskId)window.autowork.navigateHost(direction)window.autowork.openExternalUrl(url)
These are exposed in:
- src/artifact-preload.ts
They are also proxied into inline artifact previews from:
- src/renderer/message-content.tsx
Autowork now includes a built-in visualize compatibility layer with:
visualize/read_mevisualize/show_widget
Behavior:
read_mereturns Imagine guidance assembled from bundled prompt assets.show_widgetturns HTML or SVG widget code into a persisted artifact and refreshes the host UI.
Key files:
- src/autowork/visualize.ts
- src/main.ts
- External MCP servers can be configured from the
MCPtab. autowork:call-mcp-tooltries internal Autowork tools first, then falls back to enabled external MCP servers.
Key files:
- src/renderer/app.tsx
- src/main.ts
- Skills can be scanned and toggled from the
Skillspanel. - Enabled skill names are appended as hidden runtime directives in
appendSystemPrompt. - Workspace Git status is visible in the
Workspacepanel.
Key files:
- src/renderer/app.tsx
- src/main.ts
- Main chat thread
Artifactspanel- Opened artifact window
- Inline artifact preview inside chat
MCPpanel for external server configuration
- Dedicated
Autoworkcontrol panel tab - Dedicated
Imagineplayground page - Dedicated
Visualizetool inspector page - Manual
read_me/show_widgettest console in UI
- Start the desktop app with the current build.
- Use the normal chat input.
- Ask for an artifact or interactive HTML result.
- If the model emits an
artifact-htmlblock, it will be persisted and shown inArtifacts. - If the model only emits a local
.htmlfile path, the app will try to ingest that file into the artifact system automatically.
Inside an artifact you can call:
await window.autowork.callMcpTool('visualize/read_me', {
modules: ['diagram', 'chart'],
platform: 'desktop'
});await window.autowork.callMcpTool('visualize/show_widget', {
loading_messages: ['Rendering widget'],
title: 'demo_widget',
widget_code: '<div>Hello</div>'
});If you want to verify Autowork is active:
- Confirm the app is built from the latest code.
- Restart the desktop app.
- Trigger a normal agent run.
- Check that
runAgent()is passingcomposeAutoworkSystemPrompt(...). - Create or open an artifact and verify
window.autoworkexists inside the artifact context.
opencc does not currently provide a local visualize MCP implementation in this repository.
What exists in opencc today:
cowork-related plugin directory support- bridge and session references
- no
visualize,show_widget, orread_metool implementation
So the current visualize support is implemented in AutoAgent itself, not inherited from opencc.
- No dedicated
Autoworkpage or tab in the renderer - No UI control to inspect the final assembled system prompt
- No UI for invoking internal
visualizetools manually runScheduledTaskis still a stub- No true Cowork VM sandbox model
- No feature-flag gate mirroring Claude Desktop's exact
sessionType === "cowork"behavior - No artifact deletion, rollback UI, or thumbnail generation yet
- Add a dedicated
Autoworktab in the right panel. - Add a read-only prompt inspector showing the final assembled system prompt.
- Add a
Visualizeplayground for testingread_meandshow_widgetdirectly. - Add artifact deletion and rollback actions to the
Artifactspanel. - Add a small runtime badge showing whether Autowork prompt injection is active for the current session.