Skip to content

Live Showcase & Coding Harness ​

OpenHusky ships with two first-party reference applications (openhusky-examples and openhusky-harness) that prove the runtime end-to-end across e-commerce, multi-tenant enterprise SaaS, and coding agent workbenches.

Unified Interactive Showcase (https://demo.openhusky.dev) ​

The OpenHusky Unified Showcase (OpenHuskyShowcaseApp) runs on a single pure JDK 21 virtual-thread HttpServer with zero Spring, Netty, or frontend build tooling required.

  • Zero-Key Offline Mode: Starts immediately with deterministic scripted providers so every tool, state patch, HITL flow, and trace works offline with zero API keys.
  • In-Browser BYOK Live LLM: Paste an OpenAI, Anthropic, Gemini, DeepSeek, or LiteLLM key directly in the Showcase settings drawer to switch any conversation to live model execution (headers never persist to disk).

Demo 1: HuskyGear Shop Copilot (/shop/*) ​

An interactive 10-SKU storefront demonstrating consumer-facing agent UX:

  • Parallel Tool Execution: search_catalog, get_product_reviews, and check_inventory run concurrently on Virtual Threads with openhusky:tool_progress updates.
  • Live STATE_DELTA Storefront Sync: highlight_products and add_to_cart emit ToolResult.okWithState(...) deltas mapped to RFC 6902 JSON Patches under /storefront/*.
  • Mid-Run Steering & Abort: Redirect the agent via POST /shop/agui/steer or cancel via POST /shop/agui/abort.
  • Fail-Closed HITL Checkout: place_order pauses for user confirmation via AgUiApprovalBroker (POST /shop/agui/approve).
  • Typed Comparison Matrix: POST /shop/api/compare invokes session.promptStructured(..., ProductComparison.class).

Demo 2: Multi-Tenant Enterprise Support Desk (/support/*) ​

A multi-tenant B2B + Retail support workbench sharing a single InMemorySessionStore:

  • Tenant Switcher: Flip live between NimbusCloud B2B SaaS (Bearer nimbus-cloud:alice) and TrailPeak Outdoor Retail (Bearer trail-peak:bob).
  • Strict 401 / 403 Isolation: AgUiHttpPrincipalResolver + SessionAccessPolicy.TENANT_ISOLATED block missing tokens (401) and cross-tenant session access (403).
  • Progressive Skills SOPs: Per-tenant SkillRegistry (InMemorySkillSource) loads refund/SLA playbooks via load_skill and read_skill_resource.
  • Cross-Session Memory Sidecar: CustomerMemorySidecar combines eventListener, systemPromptSupplier, and @Tool (remember_customer_fact).
  • Typed Ticket Triage: POST /support/api/triage invokes session.promptStructured(..., TicketTriage.class).
  • Live OTel Waterfall: In-memory SpanProcessor streams tenant-filtered invoke_agent, chat, and execute_tool spans to the UI.

Run the Showcase Locally ​

bash
# Offline demo mode (http://localhost:8080)
./mvnw -B -ntp -pl openhusky-examples -am compile exec:java

# Custom port or zero simulated tool delay
./mvnw -B -ntp -pl openhusky-examples -am compile exec:java -Dexec.args="--port=9090 --delay-ms=0"

Setting OPENHUSKY_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, or GEMINI_API_KEY automatically switches the backend default from Offline Demo mode to live LLM execution.


Coding Agent Harness (openhusky-harness) ​

openhusky-harness is a first-party coding workbench pairing a pure JDK 21 HTTP daemon (HarnessMain, SQLite + FTS5, AG-UI v1.0) with a React 19 + TypeScript + Tailwind CSS UI:

  • Sandboxed workspace tools (LocalOsSandbox / LocalHostSandbox + SandboxToolkit)
  • AGENTS.md + .skills/ mounting into the execution plane
  • Read-only SubagentTool (research_subagent), optional mcp.json / OAuth 2.1 MCP bridge
  • 4-mode PermissionPolicy switcher (read-only, approval-required, auto-accept-edits, full-access)
  • Tree fork, time-travel rewind, FTS5 session search, and live model/reasoning-effort switching
bash
./mvnw -pl openhusky-harness -am test-compile exec:java \
  -Dexec.mainClass="dev.openhusky.harness.HarnessMain" \
  -Dexec.args="--port 3080 --workspace /tmp/openhusky-harness-ws"

Released under the MIT License. Built with Java 21 Virtual Threads.