Agentic AI Patterns
Study bounded agent loops, tool permissions, state and review as application patterns rather than claims of autonomy.
An agent, in HAC's teaching definition, is an application organized around a repeated cycle: a model or decision procedure selects a next step, an allowed action is carried out, and the result informs whether to continue.[1] This is an operational definition, not a universal one.
The Loop as a Pattern
A tool-using loop can be described as prepare context, choose a step, execute a permitted action, observe the result, then continue or stop. It is a possible teaching workflow, not a required architecture. Systems may use one model call, fixed code, approval gates, or a step limit.[1]
Proposal Is Not Execution
A model can suggest a query or action; application code validates the proposal and calls an available tool under configured permissions. A malformed request can be rejected, a tool disallowed, or confirmation required. Model instructions alone are not an enforcement boundary.[2]
State and Boundaries
Short-lived state tracks work within a task; persistent memory retains information beyond a run by an explicit store-and-retrieve decision. Earlier conversation text in context is not necessarily durable memory. Each retained item needs scope, lifetime, and a way for a person to correct or remove it.[1]
Security and Review
OWASP describes direct injection through user input and indirect injection through external material such as websites or files. Its guidance includes least-privilege access, separating external content, and human approval for high-risk actions; these measures reduce exposure but are not a complete solution.[3] Calling a workflow an "agent" is not a security assessment.
Patterns in Practice
Bounded loops are useful when intermediate observations and conditional actions justify their cost. The least complex design that meets measured requirements is preferred. Step limits, timeouts, error handling, and review remain application responsibilities.[1]
References
- Hidden AI Concepts. "AI Agents Explained." Article.
- Hidden AI Concepts. "Understanding AI Systems." Article.
- OWASP GenAI Security Project. "LLM01: Prompt Injection." OWASP Top 10 for LLM Applications (accessed 2026-10-18).
Continue exploring
Explore the broader topics connected to this article.
Recommended reading
Continue with these related articles.
Related content
Continue exploring related ideas and concepts.
ai agents
AI Agents Explained
Understand how AI agents combine models, tools, context, and actions to accomplish tasks.
Published Aug 31, 2026 · 8 min read
Read articleai fundamentals
Understanding AI Systems
A concept-first guide to the models, data, and choices that shape an AI system.
Published Aug 31, 2026 · 24 min read
Read article
Continue reading
Continue exploring Hidden AI Concepts.
AI Applications
Generative AI Systems
Understand generative models as components inside systems that combine context, retrieval, tools and checks around generated output.
Published Nov 24, 2026 · 10 min read
Continue to articleRecent editorial content
Discover more of the latest editorial content.