Spring AI Agentic Patterns (Part 3): Why Your AI Agent Forgets Tasks (And How to Fix It)

Engineering | Christian Tzolov | January 20, 2026 | ...

Have you ever asked an AI agent to perform a complex multi-step task, only to find it skipped a critical step halfway through? You're not alone.

Research shows that LLMs struggle with "lost in the middle" failures—forgetting tasks buried in long contexts. When your agent juggles file edits, test execution, and documentation updates, important steps can silently disappear. One solution, inspired by Claude Code, is to make planning explicit and observable with the help of a dedicated TodoWrite tool. The result: agents that never skip steps and workflows you can observe in real-time.

This is Part 3 of our Spring AI Agentic Patterns series. We've covered Agent Skills for modular capabilities and AskUserQuestionTool for interactive workflows. Now we explore how TodoWriteTool

This Week in Spring - January 20th, 2026

Engineering | Josh Long | January 20, 2026 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's already the 20th of January and we are off on yet another rip roarin' adventure as we look at the week that has been... this week in Spring!

Spring AI Agentic Patterns (Part 2): AskUserQuestionTool - Agents That Clarify Before Acting

Engineering | Christian Tzolov | January 16, 2026 | ...

Traditional AI interactions follow a common pattern: you provide a prompt, the AI makes assumptions, and produces a response. When those assumptions don't match your needs, you're left iterating through corrections. Each assumption creates rework—wasting time and context.

What if your AI agent could ask you clarifying questions before providing answers?

The AskUserQuestionTool addresses this. It allows the AI agent to ask clarifying questions before answering, gathers requirements interactively, and creates a specification aligned with your actual needs from the start.

Spring AI's…

This Week in Spring - January 13th, 2026

Engineering | Josh Long | January 13, 2026 | ...

Hi, Spring fans, and welcome to another installment of This Week in Spring! It's the 13th of January, 2026, and it's been quite the week indeed! Let's dive right into it!

Spring AI Agentic Patterns (Part 1): Agent Skills - Modular, Reusable Capabilities

Engineering | Christian Tzolov | January 13, 2026 | ...

Agent Skills are modular folders of instructions, scripts, and resources that AI agents can discover and load on demand. Instead of hardcoding knowledge into prompts or creating specialized tools for every task, skills provide a flexible way to extend agent capabilities.

Spring AI's implementation brings Agent Skills to the Java ecosystem, ensuring LLM portability—define your skills once and use them with OpenAI, Anthropic, Google Gemini, or any other supported model.

This is the first post in our Spring AI Agentic Patterns series. This series explores the spring-ai-agent-utils toolkit—an extensive set of agentic patterns for Spring AI, inspired by Claude Code. We'll cover Agent Skills (this post), followed by Task Management, AskUserQuestion for interactive…

This Week in Spring - January 6th, 2026

Engineering | Josh Long | January 06, 2026 | ...

Hi, Spring fans, to the first installment of This Week in Spring in the new year and, roughly, the fifteenth anniversary edition of this series! I've been writing these blogs since the first week of January of 2011, and I am proud to say that I haven't (so far) missed a single week! I've always published it on Tuesday (with some fuzziness around whose Tuesday, as I tend to bounce around the globe a fair bit). I want to thank, as I always do, Spring cofounder Keith Donald for this wonderful and simple idea. He dropped it in my lap and said to give it a shot, and I've never looked back. He's no…

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all