S
Saurav Danej
90-Day AI/ML LinkedIn Content System
← All days
77
Day 77 of 90Agents

Agent failure modes + week 11 wrap

POST 1 of 5 MorningAgentsChecklist

5 agent failure modes I've shipped (and learned)

Real agent bugs I've hit:

1. Tool spinning — calls search() 50 times. Cap turns.
2. Hallucinated tool — invents a tool name not in the schema. Strict response_format + reject unknown.
3. Lost-in-context — gives up halfway. Add periodic 'restate goal' nudges.
4. Confidence collapse — claims success without verifying. Force a check-tool at end.
5. Cost runaway — quietly burns $50 per query. Set a hard cost cap per session.

Each has a fix. None require a smarter model. They require better engineering.
#Agents#LLM#AI#LangGraph#100DaysOfCode#Engineering
POST 2 of 5 MiddayAgentsDeep dive

Eval agents on completion + cost + safety

Three eval axes for any agent:

1. Completion — did it solve the user's task? (LLM-as-judge or held-out tests)
2. Cost — total tokens / time / tool calls
3. Safety — any banned actions, unsafe outputs, leaked secrets

A 'great' agent that costs $5/query is not great. A cheap agent that fails 30% of tasks is not cheap. Track all three; reject changes that regress any.

langsmith / langfuse make this easy. Add it to CI for any agentic feature.
#Agents#LLM#AI#LangGraph#100DaysOfCode#Evaluation
POST 3 of 5 AfternoonAgentsCode

Hard cost + step caps

Always cap. Cost cap kills runaway loops. Step cap kills infinite ReAct dances. Combine them; hit either; force final answer.
#Agents#LLM#AI#LangGraph#100DaysOfCode#Agents
POST 4 of 5 EveningAgentsTip

Ship a kill-switch endpoint

Agents in production sometimes go wrong en masse. A bad system prompt deploy. A regressing model. A novel adversarial input.

Ship a kill-switch from day one:
- Feature flag to disable all agentic flows
- Force fallback to non-agentic path (vanilla RAG, FAQ, human escalation)
- One-click toggle

When things go wrong at 2am, you flip the switch and debug calmly.
#Agents#LLM#AI#LangGraph#100DaysOfCode#MLOps
POST 5 of 5 NightCareerRecap

Week 11 done — agents, with intent

Week 11 done. 77 days, 385 posts in.

This week:
- LLM agents defined honestly
- Tool design that scales
- Plan-then-execute
- Multi-agent (used carefully)
- LangGraph as default
- Memory: working, short, long
- Failure modes + caps

Next week: automation. Python scripts that schedule themselves and free your time.
#Agents#LLM#AI#LangGraph#100DaysOfCode#90DaysOfAI