← all articles
Field notes · Agent frameworks

Where agent SDKs break

Fourteen pain points from GitHub issues, security advisories and developer discussions about four popular agent frameworks, each explained in plain language with a diagram of what goes wrong.

Each issue is tagged with the layer where it breaks: SDKStorage serviceModel APIHosted platform
1

Amazon Bedrock AgentCore SDK

aws/bedrock-agentcore-sdk-python

Most AgentCore pain sits in one place: the memory layer that persists conversation turns between stateless requests. When it slips, agents forget, lose work, or silently store nothing.

Intermittent history amnesia

Where it breaksSDKStorage service

What happens

Stateless deployments often create a fresh AgentCoreMemorySessionManager for every request. Because the memory store is eventually consistent, that new manager can read history before the previous turn's write is visible.

Why it hurts

The agent forgets what the user said a moment ago. It happens only sometimes, which makes it hard to reproduce and easy to blame on the model.

Request 1“I'm Ana.”Session manager #1saves the turnMemory storewrite accepted……not yet readableRequest 2“What's my name?”Session manager #2fresh, reloads historyAgent“Sorry, who are you?”reads before the write is visible→ history comes back incomplete
The read from request 2 can beat the write from request 1.

Mitigation idea Keep the last turn or two in the request payload or a short-lived cache as a fallback, and treat a suspiciously short reload as a retry signal.

Large tool outputs crash the entire turn

Where it breaksStorage service limitSDK error handling

What happens

When a tool returns a big payload (a multi-megabyte document, for example), memory persistence hits an undocumented 413 error and aborts the whole execution.

Why it hurts

The failure isn't contained to the oversized step. Every earlier step in the turn is thrown away too, including tool calls that succeeded and may have cost real time or money.

Step 1: Tool A✓ doneStep 2: Tool B✓ doneStep 3: Tool Creturns multi-MB docPersist to memorysave the turn413 errorundocumentedEntire turn abortedTool A and Tool B results are thrown away too
One oversized result takes the earlier, successful steps down with it.

Mitigation idea Offload big tool results to object storage and keep only a reference (ID, size, summary) in the conversation.

End-of-turn state loss on sliding windows

Where it breaksSDK

What happens

v1.23.1 changed the order in which state is flushed at AfterInvocationEvent. With sliding-window conversation managers and interrupt workflows, the final saved SessionAgent state can be lost.

Why it hurts

It's a regression from an upgrade, so pipelines that worked before quietly start resuming from stale state.

ExpectedFrom v1.23.1Agent finishes turnFinal state flushedNext turn resumesfrom final stateAgent finishes turnFlush order changedat AfterInvocationEventFinal SessionAgentstate is lostShows up in sliding-window conversation managers and interrupt workflows.
Same turn, different flush order, different saved state.

Mitigation idea Pin the SDK version and add a test that checks the saved state after an interrupted or windowed turn.

Broken pagination and missing voice transcripts

Where it breaksSDK persistence code

What happens

Three separate persistence gaps: deleting memory records only removes the first 10 items (#727). Sessions made of plain-text events restore an empty history (#743). Bidirectional BidiAgent voice transcripts are never stored (#716).

Why it hurts

Each one fails quietly. Deletes look successful, restores look valid, and voice sessions look complete, so the gaps tend to surface in audits or user complaints rather than in tests.

Delete pagination · #727Delete all recordsPlain-text events · #743Save plain-text eventsRestore sessionhistory = [ ]Voice transcripts · #716BidiAgent voice sessionTranscriptnever storedFirst 10deletedThe restremain
Three ways memory looks fine but isn't.

Mitigation idea Verify after you write: re-list after deletes, assert non-empty history after restores, and check that transcripts exist after voice sessions.

2

Google Agent Development Kit

google/adk-python

ADK's trouble is mostly about composition: tools and agents that work on their own break when you combine them in a hierarchy.

Mixing tool types across sub-agents throws 400 errors

Where it breaksModel API (Gemini)ADK tool merging

What happens

Give one sub-agent VertexAiSearchTool and another a custom Python function under the same root, and the API rejects the call with Multiple tools are supported only when they are all search tools.

Why it hurts

The tools sit on different agents, so most people assume they're isolated from each other. The error only appears at runtime, after the architecture is already built.

Root agentSub-agent AVertexAiSearchToolSub-agent Bcustom Python function400 INVALID_ARGUMENT“Multiple tools are supported onlywhen they are all search tools”
Tools on separate sub-agents still collide in one request.

Mitigation idea Isolate each search tool in its own agent wrapped as an AgentTool, and check the ADK tool limitations page for your version. It says v1.16.0+ includes a built-in workaround for Search.

Built-in tools break inside standard sub-agents

Where it breaksModel APISDK

What happens

Built-in tools such as Google Search can't run normally inside a sub-agent. You have to wrap them in an AgentTool or pass bypass_multi_tools_limit=True.

Why it hurts

The obvious design, a sub-agent that does search, doesn't work. The fixes change how the agent is called, which affects routing and context.

Plain sub-agentRoot agentSub-agent withGoogle Search✗ failsWorkaround 1: AgentToolRoot agentAgentTool(search_agent)called like a tool✓ worksWorkaround 2: bypass flagRoot agentSearch tool withbypass_multi_tools_limit=True✓ works
The obvious design fails, and both workarounds change how the agent is called.

Mitigation idea Use AgentTool wrappers for built-in tools by default, and write down which workaround each agent relies on.

Inconsistent context and multimodal drops

Where it breaksSDK

What happens

AgentTool copies state but drops conversation history (#3878) and turns image outputs into empty strings ({{'result': ''}}). SubAgent keeps image data but takes over control flow (#729).

Why it hurts

Neither option gives you everything, so the choice between them decides what your agent quietly loses.

AgentToolSubAgentSession state → copied ✓Conversation history → dropped ✗Image output → {'result': ''} ✗Control returns to the parent ✓Image output → preserved ✓Control flow → taken over ✗Pick one: keep your images,or keep control of the turn.
Each delegation style loses something different.

Mitigation idea Pass the history you need explicitly, and return images by reference (an artifact or URL) instead of inline output.

Over-abstracted agent class hierarchy

r/LangChain discussion
Where it breaksSDK design

What happens

Developers on r/LangChain say that wiring LlmAgent, Sequential, Parallel and Loop agent classes together takes a lot of boilerplate compared with ordinary control flow in code.

Why it hurts

Simple orchestration logic ends up spread across nested classes, which makes it harder to read, debug and change.

SequentialAgentParallelAgentLlmAgentLlmAgentLoopAgentLlmAgent (refine)Plain control flowresearch, outline = await gather( research(q), outline(q))draft = write(research, outline)for _ in range(3): draft = await refine(draft)return draftvs
The same pipeline as nested agent classes and as a few lines of code.

Mitigation idea Use workflow agents where they help with tracing or deployment. For bespoke logic, plain async code calling agents is often clearer.

3

LangGraph

langchain-ai/langgraph

LangGraph's issues come from state: how it's copied, merged and scoped as graphs grow.

Checkpoint serialization bloats storage by up to 85%

Where it breaksSDKCheckpoint storage

What happens

LangGraph serializes and writes state to several places: the checkpointer, subgraph Send() payloads, stream sinks and stores. In long-running graphs these redundant copies inflate storage and payloads by up to 85%.

Why it hurts

Storage costs and latency grow with graph length, and the duplication can't be seen from your own code.

Graph stateone logical copyCheckpointerSubgraph Send() payloadsStream sinksStoreStorageredundant copiesup to 85% bloat
One state, four serialization surfaces.

Mitigation idea Keep large blobs out of state (store references), set checkpoint TTLs, and measure checkpoint size per step.

Tedious custom reducer boilerplate

Where it breaksSDK

What happens

By default, when parallel nodes write the same state field, the last write wins. Combining nested dictionaries or distinct lists safely means writing a custom merge function each time.

Why it hurts

Data from one branch disappears without an error, and the fix is repetitive code for every field that's at risk.

Node Atags: ["a"]Node Btags: ["b"]Default reducerlast write winsCustom reduceryou write the mergetags = ["b"]A's update losttags = ["a", "b"]both kept…repeated for every nested dict or list field that parallel nodes touch.
Without a reducer, one branch's update disappears.

Mitigation idea Keep a small shared library of reducers (dict-merge, unique-list) and annotate every field that parallel nodes write.

Subgraph state reducer surprises

Where it breaksSDK

What happens

Pushing and popping stack-like state keys inside nested subgraphs can produce state histories that differ from the same operations at the parent level.

Why it hurts

Logic that's correct in the parent graph behaves differently once you move it into a subgraph, which undercuts the point of composing graphs.

Parent graphNested subgraphStack push / popReducerHistory as expectedSame push / popReducerHistory differsfrom the parent
Same updates, different history once nested.

Mitigation idea Test subgraphs on their own and when embedded, and compare their state histories.

4

CrewAI

crewAIInc/crewAI

CrewAI's problems span orchestration (who does the work), runaway loops, and one serious platform security incident.

Manager agents fail to delegate

#4783 · CrewAI Community Forum
Where it breaksSDK orchestration

What happens

In hierarchical crews with dynamically created managers, the manager's coworker lookup sometimes finds only itself. The result is either a No agent found error or a manager that does every subtask alone.

Why it hurts

The specialist agents you designed never run, so output quality drops while the crew still looks like it succeeded.

Manager (dynamic)looks up coworkersResearchernever calledWriternever calledCoworkers found:only itself“No agent found” erroror the manager does every task itself
The specialists sit idle while the manager does everything.

Mitigation idea Log every delegation and assert that each specialist gets at least one task in integration tests.

Infinite tool-call loops burn tokens

Where it breaksSDK orchestration

What happens

Nothing deterministically checks the agent's trajectory. An agent that repeats the exact same (role, tool, arguments) call relies on the LLM to notice it's stuck, or runs until a blunt max_iter cutoff.

Why it hurts

Loops waste tokens, and a max_iter cutoff strict enough to stop them also kills legitimate long workflows.

Agentsearch(query="pricing")same role · tool · argscall #1, #2, #3 … #N, nothing notices the repeatTokens burnedevery iterationmax_iter cutoffalso kills validlong workflowsMissing: a deterministic check for repeated (role, tool, arguments) calls.
The repeated call is never caught. Only the budget ends it.

Mitigation idea Fingerprint each (role, tool, args) call and stop or redirect after N identical repeats, separately from max_iter.

Cloud deployment exception leak (“Uncrew”)

Noma Labs disclosure · CVSS 9.2
Where it breaksHosted platform

What happens

Noma Labs found that bad exception handling during CrewAI deployment provisioning returned an error response whose repo_clone_url field contained an internal GitHub token with admin access.

Why it hurts

Anyone who triggered the error could get admin access to CrewAI's private repositories, which is a supply-chain risk. CrewAI revoked the token and patched the issue within hours of disclosure.

Userstarts deploymentProvisioningfailsException response (JSON)repo_clone_url: https://‹admin GitHub token›@…Admin access to private repos→ supply-chain riskFix: token revoked, exceptionhandling patched within hours
An error path turned into a credential leak.

Mitigation idea Treat error paths as places secrets can leak: scrub credentials from user-facing errors and use short-lived, narrowly scoped tokens.

Common patterns

Issue numbers and descriptions come from the source notes this article is based on. Issues may have been fixed or reworded since they were reported, so check each linked issue for its current status before acting on it. The mitigation ideas are general engineering suggestions, not official guidance from the projects.