Skip to main content
ACP Java SDK 0.82.0 (2026-11-28) lets an application drive its own @AcpAgent in the same JVM, with configuration only, in Spring Boot, Micronaut and Quarkus. Breaking changes are marked Breaking; pre-1.0, they come without compatibility shims. The source of every statement here is the v0.82.0 changelog.

An agent in process, with configuration only

Set one property and the integration serves the @AcpAgent bean on one side of an InMemoryTransportPair and gives the application its AcpSyncClient and AcpAsyncClient on the other, with the client properties, initialized once the agent has started and closed when the application stops. The application writes no transport, pair, client or lifecycle code. Inject the client and open sessions; the application’s handler beans receive the agent’s updates and answer its permission requests:
Setting a client transport property as well fails the startup. Each framework page has the full section: Spring Boot, Micronaut, Quarkus. What comes with it:
  • Client handler beans. AcpSessionUpdateHandler (every bean receives every session update) and AcpPermissionHandler (at most one; it answers session/request_permission), in com.agentclientprotocol.sdk.integration. Every client the three integrations build picks them up, on every transport, and they may block.
  • @AcpAgent alone makes a class a bean in Spring Boot and Micronaut, as it already did in Quarkus. Spring Boot scans the application’s packages (those of its @SpringBootApplication). Micronaut needs the new acp-micronaut-processor on the annotation processor path, beside micronaut-inject-java, and @Import(packages = "...") for an agent compiled elsewhere. acp-annotations keeps no framework dependency.
  • The integrations close an AutoCloseable agent bean once the agent has stopped.
  • AcpClient.AsyncSpec.defaultRequestPermissionHandler, a permission handler that applies when the application registers none, for frameworks, like defaultSessionUpdateHandler.
  • A supported in-process transport in acp-core, com.agentclientprotocol.sdk.agent.transport.InMemoryTransportPair: build the agent on agentTransport() and the client on clientTransport(). create() takes the JSON mapper from the classpath once for the pair; create(AcpJsonMapper) takes one you configure. Either side’s close now ends the connection for both, and connect() and start() complete at once. See Testing.

Breaking changes, and what to do

Also changed, without an upgrade step:
  • Either side’s close ends the in-process connection for both. AcpSyncAgent.run() returns once the client closes, the client fails its requests still waiting for the agent at once instead of at their timeout, and a request the agent sent the client and that is still unanswered fails with -32603, as on stdio. A send after the end fails with AcpConnectionException (it was a RuntimeException).
  • A handler failure on one message no longer stops delivery of the next on the client side of the in-process transports, and transport errors are logged at WARN unless an exception handler is set.
  • SLF4J 2.0.20 and JSpecify 1.0.1, the versions Spring Boot 4.1.2 manages (were 2.0.18 and 1.0.0).
  • Fixed: Spring Boot logs “Discovered @AcpAgent bean” once.

Known issues

  • Spring WebFlux on Jetty: Jetty’s connection idle timeout still closes an ACP WebSocket after 30 seconds without traffic. Set server.jetty.connection-idle-timeout (for example 30m), or use Reactor Netty, the default for WebFlux.
  • Micronaut still serves ACP over HTTP on the SDK’s listener, on its own port, so Micronaut’s own security does not apply to it. The in-process mode is unaffected. A Netty host is planned for a later release.
  • The outbound queues of the stdio transports and the WebSocket client are still unbounded. Bounded outbound queues are planned for a later release.
For the previous release, see What’s New 0.81.0; for the next, What’s New 0.83.0.