Skip to content

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-closed PermissionPolicy & HITL approval gating, cut-point-safe context compaction, typed structured outputs, and bounded SubagentTool delegation. 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-structured SessionStore SPI (In-Memory, JSONL, SQLite WAL + FTS5, or your own database).
  • Pluggable Hand & Protocols: Attach only what your agent requires:
    • openhusky-sandbox for isolated file & shell primitives (L0 In-Memory → L3 Docker)
    • openhusky-mcp for external MCP (2025-11-25) servers over Stdio & Streamable HTTP
    • openhusky-skills for progressive agentskills.io SKILL.md and AGENTS.md loading
    • openhusky-agui for AG-UI v1.0 SSE streaming, RFC 6902 state deltas, and HITL over HTTP
    • openhusky-otel v0.2.0 for OpenTelemetry GenAI semantic-convention tracing

The Three-Track Runtime ​

openhusky-core structures every agent session around three orthogonal tracks:

  1. Control Track (AgentSession): Single-active-run lease per session, cooperative AbortSignal cancellation, mid-run steer(...), queued followUp(...), live setModel(...) / setReasoningEffort(...), and compactNow().
  2. 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.
  3. Event & Persistence Track (AgentEvent + SessionStore): A unified sealed interface of runtime events broadcast to callers and runtime-level eventListeners v0.2.0, persisted to an append-only event-sourced session tree supporting fork and rewind.

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.2.0) ​

Maven Central (dev.openhusky:0.2.0)

All 10 runtime & application artifacts (openhusky-ai, openhusky-session, openhusky-session-sqlite, openhusky-core, openhusky-otel, openhusky-mcp, openhusky-agui, openhusky-skills, openhusky-sandbox, openhusky-harness) plus openhusky-parent are published on Maven Central at version 0.2.0.

Badges marked v0.2.0 highlight new capabilities introduced in 0.2.0, including openhusky-otel, typed promptStructured(...), SessionAccessPolicy, AgUiHttpPrincipalResolver, and AgentRuntime.Builder.eventListener(...).

Next Steps ​

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