What is OpenHusky?
OpenHusky is a durable, embeddable Agent Runtime foundation for Java 21+.
Rather than locking teams into a single vertical agent or a heavyweight web framework, OpenHusky provides the modular runtime primitives needed to build any production AI agent—customer support, e-commerce copilots, coding assistants, operations triage, data analysis, or internal workflow automation—directly inside your existing JVM services.
Core Philosophy: Pure Brain, Pluggable Hand
Most agent frameworks tightly couple LLM orchestration, prompt conventions, persistence, and shell/file execution into one monolith. OpenHusky separates them cleanly and enforces module boundaries with ArchUnit:
- Brain (
openhusky-core): A pure Java 21 virtual-thread microkernel responsible for the execution loop (AgentLoop), dual-queue live steering (steer/followUp), typed interceptors, fail-closedPermissionPolicy& HITL approval gating, cut-point-safe context compaction, typed structured outputs, and boundedSubagentTooldelegation. It has zero hardcoded I/O or domain assumptions. - Foundation (
openhusky-ai,openhusky-session,openhusky-session-sqlite): A unified 4-protocol streaming LLM gateway paired with an append-only tree-structuredSessionStoreSPI (In-Memory, JSONL, SQLite WAL + FTS5, or your own database). - Pluggable Hand & Protocols: Attach only what your agent requires:
openhusky-sandboxfor isolated file & shell primitives (L0 In-Memory → L3 Docker)openhusky-mcpfor external MCP (2025-11-25) servers over Stdio & Streamable HTTPopenhusky-skillsfor progressiveagentskills.ioSKILL.mdandAGENTS.mdloadingopenhusky-aguifor AG-UI v1.0 SSE streaming, RFC 6902 state deltas, and HITL over HTTPopenhusky-otelv0.2 / main for OpenTelemetry GenAI semantic-convention tracing
The Three-Track Runtime
openhusky-core structures every agent session around three orthogonal tracks:
- Control Track (
AgentSession): Single-active-run lease per session, cooperativeAbortSignalcancellation, mid-runsteer(...), queuedfollowUp(...), livesetModel(...)/setReasoningEffort(...), andcompactNow(). - Extension Track (
LlmInterceptor,StepInterceptor,ToolInterceptor): Synchronous waterfall interception chains around every LLM call, reasoning step, and tool execution—powering retries, cost tracking, doom-loop detection, output offloading, and audit logging. - Event & Persistence Track (
AgentEvent+SessionStore): A unifiedsealed interfaceof runtime events broadcast to callers and runtime-leveleventListeners v0.2 / main, persisted to an append-only event-sourced session tree supportingforkandrewind.
Why Standard-Library-First?
OpenHusky builds directly on JDK 21 primitives—Virtual Threads, java.net.http.HttpClient, jdk.httpserver, and sealed records/interfaces—with minimal third-party dependencies (Jackson for JSON, optional sqlite-jdbc, optional OpenTelemetry API). You can embed it inside Spring Boot, Quarkus, Micronaut, Ktor, Vert.x, or a bare main() method without dependency conflicts.
Release Lineup (0.1.0 & v0.2 / main)
Maven Central vs. main
Artifacts for 0.1.0 (openhusky-ai, openhusky-session, openhusky-session-sqlite, openhusky-core, openhusky-mcp, openhusky-agui, openhusky-skills, openhusky-sandbox, openhusky-harness) are published on Maven Central under dev.openhusky.
Features marked with v0.2 / main—including openhusky-otel, promptStructured(...), SessionAccessPolicy, AgUiHttpPrincipalResolver, and AgentRuntime.Builder.eventListener(...)—are available on main and scheduled for the upcoming 0.2.0 release.
Next Steps
- Getting Started — Add
openhusky-coreand run your first@Toolagent in 5 minutes. - Model Gateway (
openhusky-ai) — Configure OpenAI, Anthropic, Gemini, DeepSeek, Qwen, or LiteLLM with automatic fallback. - Module Matrix — Inspect all 11 modules and their coordinates.