Bridging high-speed Model Context Protocol (MCP) software APIs, isolated Docker sandbox runtimes, and token-optimized multimodal vision with strict ground-truth verification.
Experience real-time ReAct computer use execution across the Shell, GUI desktop display, and StoryTold WordCraft MCP server.
NexusCUH delivers hybrid shell, GUI, and MCP orchestration with high reliability.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "wordcraft__new_document",
"arguments": { "title": "Q3 Engineering Architecture Memo" }
}
}
How NexusCUH solves the fatal flaws of naive screenshot-clicking wrappers through hierarchical orchestration.
Standard computer-use agents rely exclusively on screenshots and mouse clicks ($1,600$ visual tokens per step, hallucinated pixel coordinates, high latency). NexusCUH implements a 4-tier cognitive priority hierarchy:
# Cognitive Routing Hierarchy
PRIORITY = {
"mcp": 1, # 100% Deterministic, 0 Visual Tokens
"filesystem": 2, # Atomic I/O, Safe Quoting
"shell": 3, # Batch processing, CLI tools
"computer": 4 # GUI clicks & visual verification
}
Direct native integration with StoryTold desktop applications (WordCraft, DeckCraft, ArtCraft) and arbitrary enterprise software.
# MCP Client Tool Call Protocol
res = await mcp_client.call_tool(
"wordcraft__type_text",
{
"text": "Executive Architecture Summary",
"paragraph_type": "heading1"
}
)
# Returns structured AST state and layout confirmation
Complete containerized isolation preventing any host destruction or credential leaks.
:99 with 1024x768 resolution.# Launch isolated Docker sandbox container
docker run -d \
--name nexus_sandbox_runtime \
-p 5900:5900 -p 6080:6080 \
-v ./workspace:/home/sandboxuser/workspace \
-e DISPLAY=:99 \
nexus-computer-use-sandbox:latest
Exit code zero does NOT mean a task succeeded. NexusCUH evaluates assertions against actual disk and application state.
verifier = MultiModalVerifier([
FileExistsAssertion("reports/summary.json"),
FileJsonAssertion("reports/summary.json", {"total": 412.50}),
MCPStateAssertion("wordcraft", "inspect_document", {}, check_paragraphs)
])
report = await verifier.verify(sandbox, mcp_manager)
Multi-layered defenses against runaway loops, massive token bills, and prompt injections.
rm -rf /, fork bombs, disk formats).# Automatic intervention on cyclic behavior
is_loop, warning = loop_detector.record_step(
tool_name="computer",
tool_args={"action": "left_click", "coordinate": [200, 300]}
)
if is_loop:
# Force agent to pivot strategy
Configure your deployment backend, LLM model, MCP servers, and safety guardrails. Export ready-to-run YAML, Python, or CLI commands.
# Generated Config will appear here
Empirical comparison: Pure Vision-Based GUI vs Hybrid NexusCUH (MCP + Shell + GUI).
| Benchmark Task | Category | Pass Rate | Steps | Tokens | Avg Duration | Verification Method |
|---|---|---|---|---|---|---|
task_01_receipt_processing |
Shell & Filesystem | 100% (PASS) | 2 | 380 | 0.01s | JSON Schema + Row Aggregation |
task_02_wordcraft_mcp_workflow |
MCP Desktop Software | 100% (PASS) | 4 | 720 | 0.04s | WordCraft AST + Parity Sync |
task_03_gui_form_interaction |
Desktop GUI | 100% (PASS) | 3 | 1,850 | 0.22s | Display State + Log Regex |
task_04_error_resilience |
Fault Tolerance | 100% (PASS) | 3 | 610 | 0.03s | File Permissions + Ground Truth |
Install, launch the sandbox, and run your first computer use task in under 60 seconds.
Clone the repository and install dependencies in an isolated virtual environment:
git clone https://github.com/subasah/computer-use-harness.git
cd computer-use-harness
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
Copy the environment template and configure your provider API key:
cp .env.example .env
# Set ANTHROPIC_API_KEY=your_key or use offline mock
Execute any task or run the full evaluation suite with rich telemetry:
# Run evaluation suite
nexus eval --output results.md
# Inspect connected MCP tools
nexus mcp
# Run custom task
nexus run -t "Create memo in WordCraft" -p mock