whatisgithub

What is spring-ai-agentx?

bigchuidw3/spring-ai-agentx — explained in plain English

Analysis updated 2026-05-18

37JavaAudience · developerComplexity · 4/5Setup · moderate

In one sentence

A Java framework built on Spring AI for creating AI agents, providing tool calling, layered memory, and human-in-the-loop control without a graph-based design.

Mindmap

mindmap
  root((AgentX))
    What it does
      Builds AI agents in Java
      Runs on Spring AI and Reactor
    Features
      Layered memory
      Human in the loop
      Skills system
      Context compression
    Tech stack
      Java
      Spring AI
      Spring Boot
      Reactor
    Use cases
      Build a Java agent like Claude Code
      Add tool calling to a Spring app
    Audience
      Java developers
      Backend engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a Java-based AI agent similar in spirit to Claude Code.

USE CASE 2

Add tool calling and multi-step reasoning to an existing Spring Boot application.

USE CASE 3

Give an agent layered memory across a short session, a user profile, and long-term retrieval.

USE CASE 4

Add a human approval step before an agent executes a sensitive tool action.

What is it built with?

JavaSpring AISpring BootReactor

How does it compare?

bigchuidw3/spring-ai-agentxlywnl/ai-app-generationbell11213442/ruby-client
Stars373432
LanguageJavaJavaJava
Setup difficultymoderatehardmoderate
Complexity4/55/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires JDK 21+ and building from source with Maven since the library is not yet published to a public package repository.

So what is it?

Spring AI AgentX is a Java framework for building AI agents, built on top of Spring AI and the Reactor library. It provides the components needed to run an agent that can reason through a task, call tools, manage memory across a conversation, and pause to ask a human for input. The design follows the ReAct pattern, where the agent alternates between reasoning about what to do next and acting on that reasoning by calling a tool or producing a response. The core execution engine is reactive rather than graph-based. Instead of defining nodes and edges the way some other agent frameworks do, AgentX drives the agent's multi-turn reasoning loop as a Reactor stream. This makes the agent's output work naturally with asynchronous web frameworks like Spring WebFlux, and allows streaming responses token by token as they are produced. Memory is organized in three layers: short-term memory for the current conversation, a user profile for preferences that persist across sessions, and long-term memory backed by retrieval-augmented search. A separate skills system loads additional instructions or capabilities on demand rather than including everything in the system prompt upfront. Tool dispatch supports both function calling and the MCP protocol. The Human-in-the-Loop mechanism lets the agent pause at a defined point and wait for a user's answer before continuing. The framework supports several AI model providers including Qwen, DeepSeek, GLM, and MiniMax, with built-in handling for the differences in how each model returns its chain-of-thought output. A custom model adapter for DeepSeek V4 addresses an incompatibility with Spring AI's standard interface for that model's reasoning output format. The framework requires JDK 21 or later, Spring Boot 3.5.x, and Spring AI 1.1.0.

Copy-paste prompts

Prompt 1
Show me how to build a minimal ReactAgent using bigchuidw3/spring-ai-agentx and a Qwen or DeepSeek model.
Prompt 2
Explain how the Human-in-the-Loop pause and resume mechanism works in this framework.
Prompt 3
Walk me through configuring the layered memory system with short-term, profile, and long-term memory.
Prompt 4
Help me build spring-ai-agentx from source and add it as a dependency in my Maven project.

Frequently asked questions

What is spring-ai-agentx?

A Java framework built on Spring AI for creating AI agents, providing tool calling, layered memory, and human-in-the-loop control without a graph-based design.

What language is spring-ai-agentx written in?

Mainly Java. The stack also includes Java, Spring AI, Spring Boot.

How hard is spring-ai-agentx to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is spring-ai-agentx for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.