Saqqa Academy blog
AI agents & automation
Build AI agents, loops and automations that do real work, step by step and safely.
4 guides
AI agents & automation
What does stop_reason mean in the Claude API? Every value and what to do
A simple guide to Claude's stop_reason field, end_turn, tool_use, max_tokens, pause_turn, refusal and more, with a tested switch statement for your agent.
12-Nov-2026 · 5 min read
AI agents & automation
What is an AI agent loop? Build one in about 40 lines of JavaScript
An AI agent is a model that calls tools in a loop until the job is done. Here is how the loop works, with a small agent you can run today without an API key.
10-Nov-2026 · 4 min read
AI agents & automation
What is MCP (Model Context Protocol)? A simple explanation with examples
MCP is an open standard that lets AI apps like Claude, ChatGPT and VS Code connect to tools and data in one common way. What it is, how it works and when to use it.
10-Nov-2026 · 6 min read