Build a Claude Code Verification Harness

Oct 8, Reserve a seat
Ahmed Aleryani

Ahmed Aleryani

Author

Co-founder & CTO, Faltara · Marketing AI at Wise

I build complex agentic systems for a living. Co-founder and CTO at Faltara, marketing AI and automation specialist at Wise, and a software engineer at my core. I ship AI that earns its complexity in production, not in demos.

Background

I build complex agentic systems for a living. Co-founder and CTO at Faltara, marketing AI and automation specialist at Wise, and a software engineer at my core. I ship AI that earns its complexity in production, not in demos.

My focus on learnwithparam is the part of agent engineering nobody likes to teach: auth, rate limits, observability, resilience, the dozen little decisions that turn a prototype into a service you can leave running unattended. If a topic makes a staff engineer nod knowingly, it probably belongs in my track.

I cover the patterns I actually use at work: tool design, session and tenant models, circuit breakers and fallbacks, Langfuse and Prometheus for tracing, and the deployment layer that keeps long-running agents alive. The goal is production-grade, not tutorial-grade.

What I cover

Specialty: Complex agentic systems.

  • Production FastAPI + Uvicorn for long-running agent calls
  • Multi-tenant user and session models for AI agents
  • JWT auth, rate limiting, and input sanitization for agent APIs
  • Tool design: bash, edit, search, and custom tools the model can trust
  • Resilience: retries with Tenacity, fallback chains, circuit breakers
  • Observability: Langfuse tracing and Prometheus metrics for agents
  • Persistent memory and context window management at scale
  • Stateful agents with LangGraph and checkpointed graphs

Recent articles by Ahmed

AI Engineering in Practice8 min read

Retry patterns for LLM API errors in production

How to build retry logic that handles rate limits, timeouts, and transient failures without burning money. The backoff rules and the 3 errors you must not retry.

AI Engineering in Practice7 min read

FastAPI CORS for production agentic APIs

How to configure CORS for a production agentic API without wildcard origins. The allowlist, the credentials flag, and the preflight that breaks SSE.

AI Engineering in Practice9 min read

Postgres state persistence for agentic systems

How to persist agent state in Postgres so conversations survive restarts. The schema, the session writer, and the idempotency rule that prevents loss.

AI Engineering in Practice11 min read

Input sanitization for agentic APIs

How to sanitize agent API inputs beyond frontend validation. Prompt injection defense, payload limits, and the 4 layers every agent service needs.

AI Engineering in Practice10 min read

Langfuse integration for agentic AI tracing

How to wire Langfuse into an agentic AI service for full observability. The trace hierarchy, the decorator pattern, and what to log per span.