Spring AI Agent Utils: Claude Code style tools, skills and memory as Spring AI components
A Spring AI library that brings Claude Code-inspired tools and agent skills to your AI applications.
At a glance
- What is it?
- Spring AI Agent Utils reimplements Claude Code's file, shell, search, web, skill, task and memory tools for Java applications built on Spring AI. It is a pre-1.0 library with a BOM, a sandboxing option for shell commands and separate modules for subagents.
- Who is it for?
- Spring AI Agent Utils suits Java teams on Spring AI that want a coding-agent toolbox with file editing, shell access, skills and persistent memory without writing each tool themselves. It is risky for anyone who exposes the shell and file tools to untrusted input, and it is a pre-1.0 library whose API can change between minor versions.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Java, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- spring-ai-community/spring-ai-agent-utils691 ★ · +68
| Repository | 2026-09-11 | 2026-11-22 |
|---|---|---|
| spring-ai-community/spring-ai-agent-utils | 623 | 691 |
68 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Claude Code's tools rebuilt for the Spring AI ecosystem
The library describes itself as a Spring AI library that brings Claude Code-inspired tools and agent skills to AI applications. It reimplements core Claude Code capabilities as Spring AI tools, covering file operations, shell execution, web access, task management and extensible skills. The README states that the project demonstrates how to reverse-engineer and reimplement those features for Java developers.
Two consequences follow. The tool names and behaviours track another product, so they are a reimplementation and not the original, and they can differ in detail. The Java badge points at JDK 17, so that is the baseline for the build. The documentation links to Spring AI reference pages marked 2.0-SNAPSHOT, which suggests it moves with the Spring AI line, and you should check the compatible Spring AI version before upgrading.
File, shell and search tools give an agent real access to your machine
The core tools are FileSystemTools to read, write and edit files, ShellTools to run shell commands with timeout control, background process management and regex output filtering, GrepTool as a pure Java grep with regex, glob filtering and several output modes, and GlobTool for matching files by name patterns. An AgentEnvironment utility adds runtime environment information and git repository status to system prompts.
These tools act on the host. An agent with ShellTools can run any command the process may run, and with FileSystemTools it can overwrite files. The repository includes a Docker CLI execution backend, in the exec-backends directory, which runs agent shell commands inside a sandbox container. Use it when the model's output or its prompts come from sources you do not control.
Web tools depend on a summarising model and a search provider
SmartWebFetchTool is described as AI-powered web content summarization with caching, so it calls a model to condense pages, and each fetch costs tokens unless the cache answers. BraveWebSearchTool offers web search with domain filtering and is tied to the Brave search service.
Together they give an application access to real-world information. Because fetched pages can contain instructions aimed at the model, these tools widen the surface for prompt injection, particularly when combined with shell and file tools in the same agent. Decide which tools each agent really needs, and leave the shell tool off for agents that read arbitrary web content.
Skills are Markdown files that pair with the file and shell tools
SkillsTool extends an agent with reusable, composable knowledge modules defined in Markdown with YAML front-matter. A skill by itself is text. The README explains that it pairs naturally with FileSystemTools and ShellTools to execute domain-specific workflows, so the skill describes the procedure and the other tools carry it out.
That is a practical limit. Enabling skills without the file and shell tools gives the model instructions it cannot act on, and enabling them together gives it both knowledge and reach. A skills demo in the examples directory shows a focused setup, and a larger code agent demo shows a full-featured coding assistant. The AskUserQuestionTool adds clarifying questions with multiple-choice options during execution.
Long-term memory is files in a sandboxed directory, plus a required system prompt
AutoMemoryTools provides persistent, file-based memory that survives across conversations. Agents store typed memory files of four kinds, user, feedback, project and reference, in a sandboxed directory and navigate them through a MEMORY.md index. It requires a companion system prompt, bundled in the jar at classpath:/prompt/AUTO_MEMORY_TOOLS_SYSTEM_PROMPT.md, to instruct the model how to use it.
Forgetting the prompt means the model gets tools it has not been told to use. AutoMemoryToolsAdvisor removes that step: it is a ChatClient advisor that wires the tools and the prompt into the request pipeline, deduplicates callbacks and supports an optional memoryConsolidationTrigger that prompts the model to summarise and clean up memories on a schedule.
Subagents, cancellation and tool-call listeners live in separate modules
TaskTools gives an extensible sub-agent system for delegating complex tasks to specialised agents, with multi-model routing and pluggable backends. The project structure splits this across modules: a common module holds the shared subagent interfaces and records, including SubagentDefinition, SubagentResolver, SubagentExecutor and SubagentType, the core library holds the Claude subagents, and an A2A module implements remote agent orchestration.
For control, InterruptAdvisor offers cooperative cancellation, so a stop button, a deadline or a budget guard ends the tool-calling loop before its next model request. Cooperative means a tool already running is not killed mid-call. ToolCallListener observes every tool invocation for audit logs, progress streaming or metrics, and lets you choose whether a tool failure is reported to the model or rethrown.
The BOM pins every module, and the library is still below 1.0
The recommended setup imports the bill of materials, then declares the core library without a version:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springaicommunity</groupId>
<artifactId>spring-ai-agent-utils-bom</artifactId>
<version>0.13.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springaicommunity</groupId>
<artifactId>spring-ai-agent-utils</artifactId>
</dependency>
</dependencies>Version 0.13.0 was released on 2026-10-03, preceded by 0.12.0 on 2026-08-30 and 0.11.0 on 2026-08-26, and the last push was the same day as 0.13.0. A rapid 0.x cadence means breaking changes are possible, so pin the BOM and read each release. The license is Apache-2.0.
Editorial conclusion
Spring AI Agent Utils suits Java teams on Spring AI that want a coding-agent toolbox with file editing, shell access, skills and persistent memory without writing each tool themselves. It is risky for anyone who exposes the shell and file tools to untrusted input, and it is a pre-1.0 library whose API can change between minor versions. Pin the version through the BOM, and run shell commands in the Docker backend whenever the agent is not fully trusted.
Frequently asked questions
What is Spring AI Agent Utils?
It is a Spring AI library that reimplements Claude Code-inspired tools, such as file, shell, search and web tools, plus agent skills, memory and subagents, for Java applications.
How do I add Spring AI Agent Utils to a Maven project?
Import spring-ai-agent-utils-bom version 0.13.0 in dependencyManagement, then add the org.springaicommunity spring-ai-agent-utils dependency without a version. You can also declare the core library directly with version 0.13.0.
Can Spring AI Agent Utils run shell commands in a sandbox?
Yes. A Docker ExecBackend module in the exec-backends directory runs agent shell commands inside a sandbox container instead of on the host.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/spring-ai-community-spring-ai-agent-utils)Star history chart for your README
[](https://hysenlabs.com/projects/spring-ai-community-spring-ai-agent-utils)Was this useful?