Skip to main content
AgentForge v1.0 · Java Agent Framework

Intelligence that goes beyond answers
and takes real action.

From unified LLM abstractions to ReAct / Harness Runtime and HITL approval and recovery, AgentForge gives Java developers a transparent, controllable, and extensible foundation for intelligent agents.

Java 8+ nativeOpenAI + Anthropic providersHITL + Harness readyMIT open source
agent-run.traceLIVE
RUN / AF-104232ms
USER

Inspect the project and propose the next implementation plan.

  1. 01
    THINK

    Identify the goal and current context

    done
  2. 02
    TOOL

    repository.inspect()

    done
  3. 03
    ACT

    Generate an executable task plan

    running
HOW IT WORKS

A clear path from intent to action

Every layer has a clear boundary. Every step can be observed, replaced and extended.

INPUTGoalNatural-language intent
→
REASONThinkContext and planning
→
EXECUTEToolInvoke real capabilities
→
OUTPUTActionComplete the task loop
BUILDING BLOCKS

Built for agent engineering

Eight core capabilities cover model access, tool calling, HITL approval, Harness runtime and a ready-to-use workbench.

ARCHITECTURE

A bottom-up Agent stack

Compose upward from protocol contracts; every layer can be replaced independently.

01
Model Protocol

ChatRequest / ChatResponse / Message / streaming callbacks

Vendor protocols stay inside Providers
02
Tool & Function Call

Local / HTTP / MCP unified ToolSpecification and executors

Model decisions become real actions
03
ReAct Agent

Think → Act → memory write-back, sync, streaming, cancel and retry

One kernel, two drivers
04
Middleware & Trace

Composable cross-cutting logic across loop, model, tool and stop stages

Observable, governable, extensible
05
Harness & Service

Initial local Harness runtime, HITL approval and recovery, and a ready-to-use Agent workbench

From framework to production
MODULES

Bring only what you need

Manage versions with one BOM and compose from model contracts to the Agent runtime.

CONTRACTagentforge-model-api

Provider-neutral model contracts and unified req/vo

COREagentforge-model-core

Default parameter merge, JDK HTTP transport and Tool engine

PROVIDERagentforge-model-openai

OpenAI / OpenAI-compatible Provider

PROVIDERagentforge-model-anthropic

Anthropic Messages Provider

FACTORYagentforge-model-registry

Out-of-the-box ChatModel factory assembled from config

RUNTIMEagentforge-agent-core

ReAct Agent, Middleware, Memory and Tool extensions

<dependency>
    <groupId>cloud.changlu.agentforge</groupId>
    <artifactId>agentforge-agent-core</artifactId>
    <version>1.0.2-SNAPSHOT</version>
</dependency>
QUICK START

Your first Agent in a few dozen lines

Inject models, memory and tools, then run synchronously or with streaming. The same ReActAgent instance switches freely between both modes.

FirstAgent.javaJAVA
ReActAgent agent = ReActAgent.builder()
        .chatModel(chatModel)
        .streamingChatModel(streamingChatModel)
        .chatMemoryProvider(new MessageWindowChatMemoryProvider(50))
        .toolService(toolService)
        .middleware(new LoggingIAgentMiddleware())
        .build();

ChatResult result = agent.run(AgentRequest.builder()
        .memoryId("user-1")
        .question("北京今天天气怎么样?")
        .build());
SERVICE WORKBENCH

Skip the frontend work and start the workbench

AgentForge Service provides model configuration, Agent debugging, version publishing, session replay and tracing. One Docker command gives you the full loop.

READY TO FORGE?

Start with your first agent.

Read the quick start↗