---
title: "Belal Shafiq (@bshafiq) | Hashnode"
description: "I build AgentTrafficCop — the missing infrastructure layer between AI agents. Agents don't fail because the model is dumb. They fail because they get stuck i..."
url: "https://hashnode.com/@bshafiq"
---

@bshafiq

# Belal Shafiq

@bshafiq · Joined October 2026

### [LangGraph Tool Approval Before Execution: Human-in-the-Loop](https://agenttrafficcop.hashnode.dev/langgraph-tool-approval-before-execution-human-in-the-loop?utm_source=hashnode&utm_medium=feed)

Learn to safely resume LangGraph after human review with durable checkpoints, exact-action approval checks, and stale-approval protection.

8 min read · [agenttrafficcop.hashnode.dev](https://agenttrafficcop.hashnode.dev/langgraph-tool-approval-before-execution-human-in-the-loop?utm_source=hashnode&utm_medium=feed)

[17h ago](https://hashnode.com/posts/langgraph-tool-approval-before-execution-human-in-the-loop/6b0e827ba74d3e31da85f51f)

### [How to Detect AI Agent Loops Without Sending Sensitive Payloads](https://agenttrafficcop.hashnode.dev/detect-ai-agent-loops-without-sending-sensitive-payloads?utm_source=hashnode&utm_medium=feed)

Detect repeated AI agent tool calls using local payload hashes. A Python tutorial with working code, privacy trade-offs, and practical limitations.

7 min read · [agenttrafficcop.hashnode.dev](https://agenttrafficcop.hashnode.dev/detect-ai-agent-loops-without-sending-sensitive-payloads?utm_source=hashnode&utm_medium=feed)

[Nov 23](https://hashnode.com/posts/detect-ai-agent-loops-without-sending-sensitive-payloads/6b04633d4bfd9b6b0134f029)

### [LangGraph GraphRecursionError: Why max\_retries Fails (And How It's Draining Your Budget)](https://agenttrafficcop.hashnode.dev/langgraph-graphrecursionerror-why-max-retries-fails-and-how-it-s-draining-your-budget?utm_source=hashnode&utm_medium=feed)

Hitting a GraphRecursionError in LangGraph? Your max\_retries setting won't catch silent 200 OK loops draining your API budget. Here's the fix.

4 min read · [agenttrafficcop.hashnode.dev](https://agenttrafficcop.hashnode.dev/langgraph-graphrecursionerror-why-max-retries-fails-and-how-it-s-draining-your-budget?utm_source=hashnode&utm_medium=feed)

[Nov 17](https://hashnode.com/posts/langgraph-graphrecursionerror-why-max-retries-fails-and-how-it-s-draining-your-budget/6afc3f7145ad13d3aac76764)

### [How a Silent Agent Loop Cost Me $3k in API Bills (And How I Fixed It)](https://agenttrafficcop.hashnode.dev/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it?utm_source=hashnode&utm_medium=feed)

Stop silent agent loops from draining your API budget. Learn how a multi-agent ping-pong loop cost me $3k and how to fix it with runtime middleware.

4 min read · [agenttrafficcop.hashnode.dev](https://agenttrafficcop.hashnode.dev/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it/6af1cbbab9a850fdf0de576f) [Nov 9](https://hashnode.com/posts/how-a-silent-agent-loop-cost-me-3k-in-api-bills-and-how-i-fixed-it/6af1cbbab9a850fdf0de576f)

### [I got tired of watching AI agents burn money, so I built a runtime kill switch.](https://agenttrafficcop.hashnode.dev/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch?utm_source=hashnode&utm_medium=feed)

I got paged at 3am last week by my bank, not by an alert. I looked at my dashboard and two agents had been stuck in a loop for six hours. Agent A asked Agent B a question. Agent B answered. Agent A ha

3 min read · [agenttrafficcop.hashnode.dev](https://agenttrafficcop.hashnode.dev/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch/6ae5ef5bd915bc9f8b44215d) [Oct 31](https://hashnode.com/posts/i-got-tired-of-watching-ai-agents-burn-money-so-i-built-a-runtime-kill-switch/6ae5ef5bd915bc9f8b44215d)
