Skip to main content

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 GitHub

Build an Agent for your application

Compose Harness SDK capabilities in application code and customize how your Agent works.

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.

Harness · Java
Battle-tested in Production
Alibaba Groupthe most widely used agent framework in-house (Java & Python), in production across 13+ business units
Open Source Communityadopted by industry leaders across 10+ sectors via open source & Alibaba Cloud
Alibaba Group
FliggyTaobao Instant CommerceWhale EntertainmentAIDCAlibaba HoldingTaotian TradeTaobao App1688Qwen AppAmapAlibaba CloudAnt InternationalAnt Global Payments…
Open Source · Cloud
FinanceTransportation & LogisticsRetailManufacturingEnergyHealthcareEducation & Gov MediaInternetSaaSConsultingand more industry leaders

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.