| Name | Modified | Size | Downloads / 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/orgmulti-tenant isolation viaAbstractFilesystem- Sandbox execution (local / Docker / remote AgentRun) with snapshot & resume
- Three-state
PermissionEngine(allow / approve / deny) with HITL as a first-class concern Sessionabstraction (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
ContentBlockmessage model with role-strict construction - Five-stage
Middleware(onAgent/onReasoning/onActing/onModelCall/onSystemPrompt) replaces v1 hooks ModelRegistryresolves"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(...);Sessionauto save/load on everycall()io.agentscope.core.session.SessionManagerremoved โ configureSession+SessionKeyon the builderio.agentscope.core.pipeline.*(Pipeline,SequentialPipeline,FanoutPipeline,MsgHub) removed โ middleware + sub-agents + event streamio.agentscope.core.model.tts.*(14 files) removed โ integrate upstream TTS SDK directlystatepackage restructure:AgentMetaStateโAgentState;StateModule/StatePersistenceremoved;ToolkitStatemoved tosession.legacyMsgcontent is now validated againstroleat construction (USERallows only Text/Data/Image/Audio/Video;SYSTEMonly Text) โ preferUserMessage/AssistantMessage/SystemMessage/ToolResultMessage
Recommended โ @Deprecated(forRemoval = true), removed in the next minor
SkillBoxโAgentSkillRepositoryviaBuilder.skillRepository(...)- Entire
io.agentscope.core.hookpackage โMiddleware(old hooks bridged viaLegacyHookDispatcher) Memoryand all implementations โAgentState.getContext()+Session- All
Flux<Event> stream(...)overloads โstreamEvents()returningFlux<AgentEvent>(aligns with Python 2.0'sreply_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 theagentscope-harnessequivalents
Links
- Quickstart ยท Harness ยท Full Changelog
- Issues ยท Discussions