Development version. For the released SDK, use the 2.0 documentation.
AGENTSCOPE DEV JAVA
Build agents that work.
Embed them in your application.
Build your own Agent application with the Harness SDK. Combine context, workspaces, tools, and persistent sessions, and manage your application’s deployment.
Source on GitHubBuild an Agent for your application
Compose Harness SDK capabilities in application code and customize how your Agent works.
AgentScope Harness
For teams embedding Agents in Java or Spring Boot and customizing runtime behavior. HarnessAgent provides reasoning and tool loops, workspaces, context, skills, and sessions. Compose these capabilities in code and own your application’s deployment and operations.
Context & workspaces
Build context at each reasoning step, compact long task histories, and load memory, skills, and working files as needed.
Tools, sandboxes & collaboration
Connect Java tools and MCP, choose an execution environment, and delegate independent work to subagents.
Events, interaction & recovery
Record messages and tool activity, handle user input and approvals, and continue work with persistent sessions and checkpoints.
Start where your application needs you
Embed an Agent in your Java application.
The Harness example shares a Builder and creates an instance per request.
Before you start
How do HarnessAgent and ReActAgent relate?
ReActAgent provides reasoning, tools, messages, permissions, and middleware. HarnessAgent uses the same ReAct loop and adds workspaces, memory, skills, subagents, and session management. Start with HarnessAgent, or use ReActAgent directly to assemble your own runtime.
How can interrupted work continue?
Native Thread journals retain messages, tool facts, and checkpoints. Use Durable for background task queues, interactions, and recovery. Checkpoints do not undo external side effects.
What runtime do I need?
The Java Harness requires JDK 17 or later and credentials for your chosen model. Tools can run locally or in a configured sandbox.
Bring your next Agent into your business
Develop your application with the Harness SDK and customize its context, tools, and execution environment.