Release Notes¶
This page tracks per-version changes for AgentScope Java 2.0. For the overall migration guide from 1.x, see the V1 Migration Guide.
2.0.0 (GA)¶
Released: 2026-07-10
AgentScope Java 2.0.0 is now Generally Available. This is the first production-ready release of the 2.0 line, marking a milestone in AgentScope Java’s evolution from “transparent development” to “system engineering.”
Quick links: Quickstart | V1 Migration Guide | Going to Production
2.0 Core Design Overview¶
AgentScope Java 2.0 is a systematic upgrade centered on one goal: enabling agents to reliably complete tasks. Here is an overview of its core design:
Dual-Layer Agent Architecture
ReActAgent: A stateless reasoning core providing the “reason → tool call → respond” ReAct loop. In 2.0, agent instances are fully stateless — all per-call mutable state is propagated via Reactor Context, allowing a single instance to safely serve multiple
(userId, sessionId)combinations concurrentlyHarnessAgent: Extends ReActAgent through Middleware and Toolkit channels, adding workspace, memory, sandbox, subagents, skills, and plan mode as engineering infrastructure — the core reasoning loop is preserved, only augmented
Message & Event Stream
A unified ContentBlock message model (TextBlock / DataBlock / ToolUseBlock / ToolResultBlock / HintBlock, etc.) paired with streamEvents() emitting 28 typed AgentEvent types, making agent execution observable, interactive, and interruptible. Front-end UIs can follow text deltas, tool calls, user confirmations, and other lifecycle events in real time
Permission System
A new PermissionEngine establishes a three-state decision mechanism for tool calls: allow / require user approval / deny. Decisions are based on static rules, tool type, and input content analysis. Sensitive operations automatically enter a HITL approval flow
Middleware Extension Mechanism
A five-stage onion + pipeline hybrid model (onAgent / onReasoning / onActing / onModelCall / onSystemPrompt), providing flexible extension points for logging, tracing, security checks, business policies, and context injection while keeping the core framework stable
Context Engineering
Structured compaction preserves task objectives, current state, key findings, and next steps. Oversized tool results are automatically offloaded to disk with only placeholders in the context. File tools enforce a “read before edit” policy with built-in caching to reduce redundant IO
Workspace Abstraction
Decouples “what the agent does” from “where it executes.” Local filesystem, Docker, Kubernetes, and E2B cloud sandbox backends are unified behind a single interface. A built-in warm-up pool supports parallel RL rollout scenarios
Model Fault Tolerance
A unified Credential + ModelRegistry abstraction covering Qwen / OpenAI / Anthropic / Gemini / DeepSeek / Ollama. Configurable max retries and fallback model — automatic failover when the primary model is unavailable
Enterprise Distributed Deployment
One-line DistributedBackend configuration (Redis / OSS / MySQL / PostgreSQL / COS). AgentStateStore auto-partitions by (userId, sessionId). Cross-replica session recovery, sandbox state snapshots, and subagent cross-replica routing
Protocol Interoperability
Built-in A2A (Agent-to-Agent) and MCP (Model Context Protocol) support, plus AG-UI protocol adaptation, covering standardized inter-agent communication and front-end rendering needs
Multi-Agent Orchestration
Declarative subagent specs (YAML / Markdown), runtime agent_spawn / agent_send with synchronous blocking and background delegation modes. Subagent event streams can be forwarded to the parent’s streamEvents() in real time
Skill System
Four-layer skill composition (Classpath / FileSystem / Nacos / Marketplace) + SkillFilter fine-grained filtering + self-learning closed loop (propose → curate → promote)
Changes Since RC5¶
The following are incremental changes between 2.0.0-RC5 (2026-07-07) and the GA release.
Added¶
Fire
AllToolsDeniedEventhook when HITL denies all tool calls, enabling application-level handling of full-denial scenarios (#2083)Add guardrails for
wait_async_resultsto prevent repeated long blocking waits (#2093)Add
PostgresDistributedStorefor PostgreSQL-backed distributed HarnessAgent state (#2054)Add builder customizers for OpenAI, DashScope, and Anthropic models in Spring Boot starters (#2045)
Fixed¶
Core / Agent
Make
seedSystemMsgreactive to avoidblock()on NIO threads (#2086)Include ASKING ToolUseBlocks in PERMISSION_ASKING result message (#2082)
Activate SkillToolGroup via
activateOnSkillfield (#2057)Save agent state on user interrupt to prevent session loss (#1970)
Model Providers
Anthropic: split parallel tool calls into alternating messages to comply with API requirements (#2090)
OpenAI: make
nativeStructuredOutputconfigurable (#2069)
Harness / Tools / Sandbox
External tool execution now correctly produces a suspended result (#2071)
Allow SkillLoadTool in Plan Mode by promoting
isReadOnlyto the AgentTool interface (#2067)Interrupt orphan subagents when AgentSpawnTool parent subscription cancels (#2064)
Remove unnecessary ReActAgent type restriction in MemoryFlushMiddleware (#2078)
Resolve leading
/paths relative to workspace in ROOTED mode (#2049)Pre-stage marketplace skills before workspace projection (#2059)
Treat null exit code as success in Kubernetes
hydrateWithArchive(#1915)Use updated WorkspaceSpec when resuming from persisted state (#1928)
Support nested JSON and banner prefix in AgentRun MCP response (#1930)
Use resolved workingDir for Docker workspaceRoot (#2033)
Channel
Include PeerKind in OutboundAddress to fix group message routing (#2060)
A2A
Merge streaming text chunks to avoid fragmentation (#2058)
2.0.0-RC5¶
Released: 2026-07-07
Breaking Changes¶
Added¶
Unified
DataBlocksupport in all provider message converters (OpenAI, DashScope, Gemini, Anthropic), covering single-agent, multi-agent, and tool-result paths (#1933)Native structured output handling with tools — models that support structured output can enforce JSON schema constraints alongside tool calls (#1904)
Native structured output support for DashScope models (#1935)
httpRequestCustomizersupport inMcpClientBuilderfor dynamic token injection (e.g. OAuth refresh) (#1992)Align
AguiEventwith the AG-UI protocol spec — add missing event types (#1862)Optional skill allowlist filter for subagents (#1873)
knownSkillNamessupport inNacosSkillRepository(#1853)CosAgentStateStore,CosBaseStoreandCosDistributedStorefor Tencent Cloud COS-backed state persistence (#1857)Expose cached prompt tokens in
ChatUsage(#1868)
Fixed¶
Core / Agent
Persist agent state on user interrupt recovery (#2008)
Wire fallback model into
ReActAgent(#1851)Fix
ReActAgentstream event block end ordering (#1829)Update
ToolResultBlockstate before adding to agent context (#1886)Reuse classpath skill JAR file systems to avoid resource leaks (#1981)
Resolve
serializeOnKeygate leak inFlux.createcallbacks (#1796)
Model Providers
Map
thinkingBudgetto OpenAI-compatible API request (#2028)Fix Anthropic stream thinking event handling (#1943)
Preserve
executionConfiginOllamaOptionsfromOptions/toBuilder(#2011)Degrade forced tool choice in DashScope thinking mode (#1882)
Harness / Sandbox
Restore remote snapshot state deserialization — re-inject
RemoteSnapshotClientafter Jackson round-trip (#2013)Fix THROTTLED memory save mode losing state when recreating instances per request (#1788)
Propagate
userIdthrough wakeup dispatch (#2001)Run message bus heartbeat on
boundedElasticinstead ofparallelscheduler (#1974)Avoid duplicating
GracefulShutdownMiddlewareinfromAgent(#1952)Escape spaces in skill paths returned by
ShellPathPolicy(#2031)Fallback to simple key-value extraction when YAML parsing fails (#2027)
Report sandbox file sizes in
ls(#1838)Normalize Windows
list_filespaths (#1892)Normalize
\r\nto\nfor file content inLocalFilesystem.edit()(#2020)Treat
"."as root equivalent inCompositeFilesystem(#1830)Validate
working_directoryto prevent namespace escape (#1834)Fall back to
LocalFilesystemSpecwhen no distributedAgentStateStoreis configured (#1841)Fix WebSocket race in Kubernetes
hydrateWithArchivecausingexit=null(#1903)Tolerate wrapped sandbox base64 downloads (#1866)
Remove
AgentRunsandbox API version prefix (#1891)Add connect JSON codec support for E2B sandbox (#1844)
Tracing / Observability
Fix orphan spans in
OtelTracingMiddlewareby reading parent OTel Context from ReactorContextView(#1940)Fix child spans not seeing correct parent spans in
OtelTracingMiddleware(#1909)Propagate Reactor context to chunk event hooks (#1923)
Subagent
Propagate parent
RuntimeContextto child agents (#1833)Propagate parent middleware to subagents (#1843)
A2A
Handle streaming backpressure (#1734)
Preserve AgentScope message roles across A2A conversion (#1995)
AG-UI
Propagate run input and frontend tools (#1895)
Other
Documentation¶
Clarify stream event
blockIdsemantics (#2016)Improve model provider documentation (#1986)
Remove invalid
ChatResponse.isLastreferences (#1921)Fix multi-replica Redis example — declare jedis dependency and add
stateStore(#1869)Fix
MemoryCompactionExampleto show memory files and fire compaction (#1978)
2.0.0-RC4¶
Released: 2026-06-18
Added¶
Agent harness now supports async tool execution and notifications, including message bus, async tool registry, and scheduled wakeup dispatching (#1802)
String/Message convenience overloads for agent calls; all formatters now support
HintBlock(#1802)Persistent spawn registry in tool context state enables subagent cross-replica routing and session recovery (#1817)
DynamicSkillMiddlewareimplementsToolkitAwareto receive the resolved toolkit dynamically (#1828)Kubernetes sandbox now supports injecting environment variables into pods (#1789)
Fixed¶
Fixed SIGKILL race condition in Kubernetes file uploads by using two-phase archive strategy (#1826)
Fixed resource leak where timed-out sub-agents were not interrupted on retry (#1784)
Fixed typed attributes being lost when copying
RuntimeContext(#1813)Fixed
JdbcStoretable initialization failure under MySQL utf8mb4 charset (#1781)Made session JSONL offload idempotent to prevent duplicate writes (#1774)
Fixed OpenTelemetry context propagation in
TelemetryTracer(#1799)Fixed NPE in
OllamaChatModelwhen options are null during tool choice retrieval (#1803)Added missing Jackson annotations to
LocalSandboxSnapshotfor proper serialization (#1825)Fixed sandbox glob not supporting
**/recursive patterns (#1684)Fixed
SkillFiltermatching using composite ID instead of skill name (#1771)Allow custom default vision model in
MultiModalTool(#1701)
Documentation¶
2.0.0-RC3¶
Released: 2026-06-11
Added¶
AgentResultEvent— new event type emitted when an agent finishes processing, immediately beforeAgentEndEvent, carrying the finalMsgresult. Consumers ofstreamEvents()can obtain the result directly from the event stream without separately subscribing to theMono<Msg>return valueCustomEvent— generic extensible event for middleware to push application-level notifications (state changes, team updates, etc.) to front-end subscribers without adding per-use-caseAgentEventTypeentries. Built-in well-known names:state_updated,team_updatedHintBlockEvent— one-shot hint block event for delivering complete content such as team messages, background tool results, and user interruptions, as opposed to streamed text/thinking blocksWorkspacePathNormalizer— file path normalization utility that converts absolute paths to workspace-relative form. Registers prefixes based on the active filesystem mode (local / sandbox) to prevent cross-mode prefix collisionstoolCallNameon tool events —ToolCallDeltaEvent,ToolCallEndEvent,ToolResultDataDeltaEvent,ToolResultEndEvent, andToolResultTextDeltaEventnow carry atoolCallNamefield, so consumers no longer need to cache the name mapping from the start event
Changed¶
Unified
call()/streamEvents()core — introduced an internalbuildAgentStreammethod as the shared implementation for bothcall()andstreamEvents(), ensuring theonAgentmiddleware chain fires consistently on all invocation paths.call()now extracts the result fromAgentResultEventin the event stream; the legacy standaloneagentImpllogic has been removedSession state always reloaded from store in distributed deployments — when an
AgentStateStoreis configured,activateSlotForContextnow reloads the agent state and permission engine from the store at the start of every call, preventing stale local cache reads when the same sessionId drifts across machinesToolResultEvictionMiddlewaretiming fix — moved fromonActing(where state had not yet been written, making eviction a no-op) toonReasoning, ensuring tool results are persisted before eviction runsSimplified
LocalFilesystempath resolution — refactored path resolution logic to reduce redundant code
Fixed¶
Fixed
RuntimeContextnot settinguserIdin tests, causing inaccurate user isolation
2.0.0-RC2¶
Released: 2026-06-09
Added¶
projectWritablemode (LocalFilesystemSpec) — when enabled, the agent’s file writes are routed by path: workspace metadata (MEMORY.md,agents/,skills/, etc.) goes to workspace; everything else (code, configs) lands in the project directory. Designed for code-generation agents. See Filesystem · Project-writable modeRuntime permission mode switching — new
HarnessAgent.setPermissionMode()/getPermissionMode()for dynamically adjusting the permission mode per session at runtimeSubagent event stream forwarding —
streamEvents()now forwards child agent intermediate events (TextBlockDelta,ToolCallStart, etc.) in real time, each carrying asourcepath identifying the originating agentAgentEvent.sourcefield — allAgentEventinstances now carry asourcefield to distinguish main agent events (source = null) from sub agent events (source = "main/researcher"path format) within the same event stream, enabling consumer-side demuxing without extra stateCustom prompt and model for Compaction / Memory —
CompactionConfigandMemoryConfiggain.model()and.prompt()builder methods, allowing a dedicated lightweight model and custom prompt for context compaction and memory extraction instead of the agent’s primary modelQwen 3.7 model support —
ModelRegistrynow resolvesdashscope:qwen3.7-plusand other Qwen 3.7 series modelsDirect subagent messaging —
agent_sendlets callers send messages directly to a declared subagent and receive its response without going through the parent agent’s reasoning loopChannel module — new
agentscope-extensions-channelmodule family for IM platform integration (DingTalk, Feishu/Lark, WeCom, GitHub, GitLab), with a built-in ChatUI for an out-of-the-box conversational interfaceDistributedBackendunified interface — newDistributedBackendabstraction that consolidates all distributed storage components (AgentStateStore,BaseStore,SandboxSnapshotSpec) into a single configuration point. Built-in implementations includeRedisDistributedBackend,OssDistributedBackend, andMysqlDistributedBackend. One call toHarnessAgent.builder().distributedBackend(backend)wires up the entire distributed backend — no more separate stateStore, baseStore, and snapshotSpec configuration
Changed¶
Agent fully stateless —
ReActAgentno longer holds any mutable per-session state; all mutable state is encapsulated in an internalCallExecutionand propagated via Reactor Context. A single agent instance can safely serve multiple(userId, sessionId)combinations concurrentlySession interface replaced by
AgentStateStore— removedSessionManager,StatePersistence, and related legacy interfaces; unified onAgentStateStore(built-in:InMemoryAgentStateStore,JsonFileAgentStateStore,RedisAgentStateStore,MysqlAgentStateStore), auto-partitioned by(userId, sessionId)BaseStoreinterface package renamed —BaseStoreand related interfaces moved to a new package; code using the old import path needs updatingExtension module coordinates consolidated — several extension Maven coordinates have been reorganized by capability. For example,
agentscope-extensions-session-redisis nowagentscope-extensions-redis(bundlingRedisAgentStateStore,RedisStore,RedisSnapshotSpec, etc.). Update<artifactId>in your pom if you were using the old coordinatesSandbox implementations extracted from harness core — Docker, Kubernetes, E2B, Daytona, AgentRun sandbox backends have been moved out of
agentscope-harnessinto standalone extension modules (agentscope-extensions-sandbox-*). The harness core retains only the abstract interfaces (SandboxFilesystemSpec, etc.) and no longer transitively pulls in any concrete sandbox dependency. Add the corresponding extension explicitly if you need sandbox support, e.g.agentscope-extensions-sandbox-dockerfor DockerPlan Mode improvements — improved plan file persistence and recovery, smoother
plan_enter/plan_write/plan_exittool-chain interaction, more robust HITL approval flowSkill self-evolution enhancements — refined the propose (
ProposeSkillTool) → curate (SkillCurator) → promote (SkillPromoter) closed loop, improved skill matching accuracy and cross-session reuseDashScopeHttpClientrequest timeout and retry policy adjustmentsModelRegistrymodel resolution logic improvementsAgentStateserialization format updates
Fixed¶
Fixed
PermissionContextStatelosing state during cross-session restorationFixed
agentscope-allmissing 4 sandbox extension modules (sandbox-kubernetes,sandbox-agentrun,sandbox-daytona,sandbox-e2b)
2.0.0-RC1¶
Released: 2025-05-28
First 2.0 Release Candidate. Contains the full architectural upgrade from 1.x:
Harness engineering (workspace, memory, skills, subagents, Plan Mode, context compaction)
Enterprise-grade distributed deployment (multi-tenant isolation, sandbox execution, permission system, session recovery)
Core framework redesign (event stream, message model, Middleware, HITL)
For the complete 1.x → 2.0 change list, see the V1 Migration Guide.