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, andcheck_inventoryrun concurrently on Virtual Threads withopenhusky:tool_progressupdates. - Live
STATE_DELTAStorefront Sync:highlight_productsandadd_to_cartemitToolResult.okWithState(...)deltas mapped to RFC 6902 JSON Patches under/storefront/*. - Mid-Run Steering & Abort: Redirect the agent via
POST /shop/agui/steeror cancel viaPOST /shop/agui/abort. - Fail-Closed HITL Checkout:
place_orderpauses for user confirmation viaAgUiApprovalBroker(POST /shop/agui/approve). - Typed Comparison Matrix:
POST /shop/api/compareinvokessession.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_ISOLATEDblock missing tokens (401) and cross-tenant session access (403). - Progressive Skills SOPs: Per-tenant
SkillRegistry(InMemorySkillSource) loads refund/SLA playbooks viaload_skillandread_skill_resource. - Cross-Session Memory Sidecar:
CustomerMemorySidecarcombineseventListener,systemPromptSupplier, and@Tool(remember_customer_fact). - Typed Ticket Triage:
POST /support/api/triageinvokessession.promptStructured(..., TicketTriage.class). - Live OTel Waterfall: In-memory
SpanProcessorstreams tenant-filteredinvoke_agent,chat, andexecute_toolspans to the UI.
Run the Showcase Locally
# 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), optionalmcp.json/ OAuth 2.1 MCP bridge - 4-mode
PermissionPolicyswitcher (read-only,approval-required,auto-accept-edits,full-access) - Tree fork, time-travel rewind, FTS5 session search, and live model/reasoning-effort switching
./mvnw -pl openhusky-harness -am test-compile exec:java \
-Dexec.mainClass="dev.openhusky.harness.HarnessMain" \
-Dexec.args="--port 3080 --workspace /tmp/openhusky-harness-ws"