Overview
What ChatClient did for completion endpoints, AgentClient does for Agent CLIs. Spring AI Agents provides a unified framework for autonomous agents with Goals (clear objectives), Tools (actions agents can take), Context (information for decisions), Judges (automated verification), and Sandboxes (isolated execution). This project brings multiple AI agent platforms to Spring applications as first-class citizens with Spring Boot auto-configuration. Currently supported: Claude Code, Gemini, Amazon Q, Amp, and Codex. Coming soon: Goose, Aider, OpenHands, and GitHub Copilot CLI.
Version: 0.1.0-SNAPSHOT
Maven snapshot artifacts are available from Maven Central Snapshots
Agent SDKs
Spring AI Agents provides Agent SDKs for multiple platforms with Spring Boot auto-configuration:Claude Agent SDK

Gemini Agent SDK

Amazon Q Agent SDK

Amp Agent SDK

Codex Agent SDK

Custom Agent SDK
Bring your own agent
Key Features
Spring Boot Auto-Configuration
Automatic agent discovery and configuration with Spring Boot starters
Secure Sandbox Isolation
Docker container isolation with local fallback for safe agent execution
Unified AgentClient API
Consistent interface across all agent providers
CLI Discovery
Automatic detection of installed CLI tools
Agent Roadmap
✅ Currently Supported
✅ Currently Supported
- Claude Code - Anthropic’s autonomous coding assistant
- Gemini - Google’s AI development platform
- Amazon Q - AWS’s enterprise AI assistant
- Amp - AI agent platform
- Codex - OpenAI’s code generation model
Highlighted Achievement
Code Coverage Agent
An autonomous agent that increased test coverage from 0% to 71.4% on Spring’s gs-rest-service tutorial.Key Finding: Both Claude and Gemini achieved the same coverage percentage, but only Claude followed all Spring WebMVC best practices (@WebMvcTest, jsonPath(), BDD naming).
Model quality matters: Same coverage, different code quality. Claude generated production-ready tests while Gemini used slower patterns (@SpringBootTest).
Learn More: See the Code Coverage Agent Guide for detailed implementation and results.
Quick Start
Try with JBang (Zero Setup)
The fastest way to try Spring AI Agents - no cloning, no building:Maven Dependencies
Basic Usage
Complete Architecture
The complete Spring AI Agents architecture showing all five core concepts working together:
Core Domain Model
In Spring AI Agents, we model agents around these components:Goals 🎯
Clear objectives that guide agent execution
Tools 🔧
Actions the agent can take (call APIs, run commands, read files)
Context 📊
Information the agent needs to make decisions
Judges ⚖️
Verification that the goal was achieved
Agent Advisors
Spring AI Agents implements the same advisor pattern as Spring AI’s ChatClient:- Context Engineering (git cloning, dependency sync)
- Evaluation/Judges (test running, file verification)
- Security (goal validation, operation blocking)
- Observability (metrics, logging, performance)
Resources
Official Documentation
Complete documentation and guides
GitHub Repository
View source code and contribute
Getting Started
Quick start guide
API Reference
API documentation