Learn Agentic Patterns
CoursesInterviewSchoolVideosAI agent videosAI now
Learn Agentic Patterns

Learn agentic AI, then get interviewed on it. A free course, four job paths, a daily broken agent, and the interview.

learnagenticpatterns.com

Navigation

HomeThe courseThe interviewPatterns (developer track)PM trackBlogCareer GuideAboutSign Up

Connect

Cheat sheet (free PDF)Reskilling guideLinkedIn (Mousa Jawaheri)

© 2026 learnagenticpatterns.com

Privacy PolicyTerms of Service

Based on “Agentic Design Patterns” by Antonio Gullí

> All Patterns

[01]Prompt Chaining[02]Routing[03]Parallelization[04]Reflection[05]Tool Use[06]Planning[07]Multi-Agent Collaboration[08]Memory Management[09]Learning & Adaptation[10]State Management (MCP)[11]Goal Setting & Monitoring[12]Exception Handling & Recovery[13]Human-in-the-Loop[14]Knowledge Retrieval (RAG)[15]Inter-Agent Communication (A2A)[16]Resource-Aware Optimization[17]Reasoning Techniques[18]Guardrails & Safety[19]Evaluation & Monitoring[20]Prioritization[21]Exploration & Discovery[22]Boundary Translation
HomeCurriculumGoal Setting & Monitoring
Pattern [11]

Goal Setting & Monitoring

≈ Health Checks / Watchdogs / APM (Application Performance Monitoring)

[11]

TL;DR

Mechanisms for agents to define high-level objectives, break them into trackable sub-goals, and continuously monitor progress towards completion. The agent checks: "Am I closer to the goal than I was 5 minutes ago?"

SWE: Health Checks / APM
Architecture Flow
agentgate
Goal SetteragentWorker AgentagentProgress MonitoragentPlan Adjustergate

> Agentic Definition

Mechanisms for agents to define high-level objectives, break them into trackable sub-goals, and continuously monitor progress towards completion. The agent checks: "Am I closer to the goal than I was 5 minutes ago?"

Before: Process Monitoring

Process Monitoring
1# Check if process is running
2# if ps aux | grep my_script; then echo "OK"; else restart; fi
3
4import subprocess
5result = subprocess.run(["ps", "aux"], capture_output=True)
6if "my_script" in result.stdout.decode():
7 print("OK")
8else:
9 restart()

After: Goal Monitoring Agent

Goal Monitoring Agent
1# Semantic Health Check
2current_state = agent.get_state()
3goal = "Draft a complete report on Q3 earnings"
4
5# The Monitor is an Agent
6status = critic_agent.evaluate(
7 criteria="Is the report complete and accurate?",
8 context=current_state
9)
10
11if status == "INCOMPLETE":
12 agent.plan.update("Gather more financial data")
13 agent.resume()

Traditional SWE

Health Checks / APM

≈maps to

Agentic Pattern

Goal Setting & Monitoring

≈How They're Similar

Monitoring system health and progress toward a defined state.

≠Key Divergence

Traditional monitoring checks system metrics (CPU usage, latency, error rate). Agentic monitoring checks semantic progress (e.g., "Have we gathered enough research data yet?", "Is the draft complete?"). It requires "Metacognition" — thinking about thinking.

> Production Considerations

01

Essential to prevent agents from getting stuck in infinite loops ("doom loops") or declaring premature success.

02

Monitoring consumes tokens. Balance oversight frequency against cost.

💡

Key Takeaway

Adapt: You need to build "Manager Agents" whose only job is to supervise "Worker Agents." You are automating middle management.

BuildBuild a Self-Monitoring Report Agent. Create a system where an agent works toward a goal (writing a report), monitors its own progress, and adjusts its plan when falling behind.

Frequently Asked Questions

When should I use the Goal Setting & Monitoring pattern?

Mechanisms for agents to define high-level objectives, break them into trackable sub-goals, and continuously monitor progress towards completion. The agent checks: "Am I closer to the goal than I was 5 minutes ago?"

How does Goal Setting & Monitoring relate to Health Checks / Watchdogs / APM (Application Performance Monitoring)?

Monitoring system health and progress toward a defined state. However, there is a key divergence: Traditional monitoring checks system metrics (CPU usage, latency, error rate). Agentic monitoring checks semantic progress (e.g., "Have we gathered enough research data yet?", "Is the draft complete?"). It requires "Metacognition" — thinking about thinking.

What are the production trade-offs of Goal Setting & Monitoring?

Essential to prevent agents from getting stuck in infinite loops ("doom loops") or declaring premature success. Monitoring consumes tokens. Balance oversight frequency against cost.

Next Pattern

[12] · Exception Handling & Recovery