Download Latest Version v2.0.0-RC1 source code.tar.gz (21.6 MB)
Email in envelope

Get an email when there's a new version of AgentScope Java

Home / v2.0.0-RC1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-06-02 4.8 kB
v2.0.0-RC1 source code.tar.gz 2026-06-02 21.6 MB
v2.0.0-RC1 source code.zip 2026-06-02 24.8 MB
Totals: 3 Items   46.3 MB 0

AgentScope Java 2.0.0-RC1

AgentScope Java steps up from a "build an agent" toolkit toward a complete platform for running agents in production.

2.0 aims to preserve compatibility with 1.x where possible so that most users can upgrade smoothly โ€” see the Migration Guide below.

Full docs: docs/v2/en, docs/v2/zh ยท Full changelog: change-log.md (java.agentscope.io)

Highlights

๐Ÿงฐ Harness engineering โ€” the harness scaffolding for long-running tasks, layered on top of the ReAct core:

  • Self-evolving Markdown skill repository under workspace/skills/, shared across sessions
  • Layered memory: in-context conversation / MEMORY.md / append-only fact log, with auto-compaction
  • Sub-agents declared in Markdown, spawned sync or in background; completions pushed back via system-reminder
  • Plan Mode + persistent workspace/plans/ to decouple intent from action
  • Workspace as the single on-disk source of persona, knowledge, skills, sub-agent specs

๐Ÿข Enterprise-grade distributed deployment โ€” stateless horizontal scaling out of the box:

  • session / user / agent / org multi-tenant isolation via AbstractFilesystem
  • Sandbox execution (local / Docker / remote AgentRun) with snapshot & resume
  • Three-state PermissionEngine (allow / approve / deny) with HITL as a first-class concern
  • Session abstraction (InMemory / JsonSession / MySQL / Redis) for zero-downtime rolling deploys

โš™๏ธ Foundation framework upgrade โ€” leaner, more orthogonal core:

  • agent.streamEvents() โ†’ Flux<AgentEvent> covering 28 typed events (model calls, deltas, tool execution, HITL)
  • Unified ContentBlock message model with role-strict construction
  • Five-stage Middleware (onAgent / onReasoning / onActing / onModelCall / onSystemPrompt) replaces v1 hooks
  • ModelRegistry resolves "provider:model" strings; Builder gains .maxRetries(int) / .fallbackModel(...) for auto-retry

Quick start

:::xml
<dependency>
  <groupId>io.agentscope</groupId>
  <artifactId>agentscope-harness</artifactId>
  <version>2.0.0-RC1</version>
</dependency>

:::java
var agent = HarnessAgent.builder()
    .name("coder")
    .model("qwen-max")
    .workspace(Paths.get(".agentscope/workspace"))
    .filesystem(new DockerFilesystemSpec().isolationScope(IsolationScope.USER))
    .build();

agent.call(msg, RuntimeContext.builder().sessionId("demo").userId("alice").build()).block();

Migration Guide

Required โ€” compile errors or runtime exceptions if you don't migrate

  • ReActAgent.Builder.memory(...) / .statePersistence(...) removed โ†’ .session(...).sessionKey(...); Session auto save/load on every call()
  • io.agentscope.core.session.SessionManager removed โ†’ configure Session + SessionKey on the builder
  • io.agentscope.core.pipeline.* (Pipeline, SequentialPipeline, FanoutPipeline, MsgHub) removed โ†’ middleware + sub-agents + event stream
  • io.agentscope.core.model.tts.* (14 files) removed โ†’ integrate upstream TTS SDK directly
  • state package restructure: AgentMetaState โ†’ AgentState; StateModule / StatePersistence removed; ToolkitState moved to session.legacy
  • Msg content is now validated against role at construction (USER allows only Text/Data/Image/Audio/Video; SYSTEM only Text) โ†’ prefer UserMessage / AssistantMessage / SystemMessage / ToolResultMessage
  • SkillBox โ†’ AgentSkillRepository via Builder.skillRepository(...)
  • Entire io.agentscope.core.hook package โ†’ Middleware (old hooks bridged via LegacyHookDispatcher)
  • Memory and all implementations โ†’ AgentState.getContext() + Session
  • All Flux<Event> stream(...) overloads โ†’ streamEvents() returning Flux<AgentEvent> (aligns with Python 2.0's reply_stream())
  • RAG (Knowledge / KnowledgeRetrievalTools / RAGMode) and long-term memory modules deprecated โ€” being rewritten on the v2 architecture; don't depend on them in new code
  • tool.coding.* / tool.file.* deprecated (no workspace/permission isolation) โ†’ use the agentscope-harness equivalents
Source: README.md, updated 2026-06-02