Pure Microkernel & Parallel @Tool
Pure JDK 21 virtual-thread AgentLoop with zero Spring or Reactor lock-in. Declarative @Tool scanning runs PARALLEL_SAFE lookups concurrently while serializing state-mutating calls.
Pure Java 21 virtual-thread microkernel, streaming multi-provider LLM gateway, append-only tree sessions, steerable loop, fail-closed HITL permissions, and open protocol adapters (MCP, Skills, AG-UI).
<dependency>
<groupId>dev.openhusky</groupId>
<artifactId>openhusky-core</artifactId>
<version>0.1.0</version>
</dependency>No framework inheritance or proxy magic. Pure JDK 21 builders, records, and virtual threads.
public class OrderTools {
class=class="tok-str">"tok-ann">@Tool(name = class="tok-str">"lookup_order", description = class="tok-str">"Query order status",
mode = ToolExecutionMode.PARALLEL_SAFE, readOnly = true)
public ToolResult lookupOrder(
ToolContext ctx,
class=class="tok-str">"tok-ann">@ToolParam(name = class="tok-str">"orderId") String orderId) {
ctx.emitProgress(class="tok-str">"Checking warehouse ledger for " + orderId);
return ToolResult.ok(class="tok-str">"{\"orderId\":\"" + orderId + class="tok-str">"\",\"status\":\"SHIPPED\"}");
}
}
try (SqliteSessionStore store = SqliteSessionStore.open(Path.of(class="tok-str">"sessions.db"));
AgentRuntime runtime = AgentRuntime.builder()
.llmClient(LlmClient.of(Providers.openai(System.getenv(class="tok-str">"OPENAI_API_KEY")))
.withInterceptor(RetryInterceptor.defaults()))
.model(ModelCatalog.defaults().require(class="tok-str">"gpt-4.1"))
.sessionStore(store)
.toolsFrom(new OrderTools())
.permissionPolicy(PermissionPolicy.failClosed()
.allow(class="tok-str">"lookup_order")
.requireApproval(class="tok-str">"refund_order")
.build())
.approvalHandler((req, signal) -> ApprovalDecision.approveOnce())
.build()) {
AgentSession session = runtime.openSession(class="tok-str">"order-1042", Principal.of(class="tok-str">"buyer-42"));
RunResult result = session.prompt(class="tok-str">"Check order #1042 and summarize delivery ETA.");
System.out.println(result.finalText());
}Every layer below the reference apps is independently consumable from Maven Central. Click any module to inspect its coordinates and APIs.
Hosted on a pure JDK 21 virtual-thread server. Runs deterministically offline with zero API key, or switch to live LLM execution via in-browser BYOK.
10-SKU storefront synced in real time via AG-UI STATE_DELTA patches, parallel catalog/review/stock lookups, mid-run steering, HITL checkout, and typed ProductComparison matrices.



Switch live between NimbusCloud B2B and TrailPeak Retail tenants with strict 401/403 isolation, progressive Skills SOPs, supervisor HITL queue, cross-session memory, and OTel waterfalls.