ptrnsai

About ptrns.ai

ptrns.ai is a visual catalog of design patterns and anti-patterns for building AI agents. It draws inspiration from the classic software design patterns literature and adapts it for the emerging world of agentic AI systems.

Every pattern includes the problem it solves, the solution approach, an interactive diagram, implementation steps, pros and cons, real-world examples, code snippets, and references to the original research.

Anti-patterns document the common failure modes and mistakes in AI agent systems — from context rot and hallucination cascades to god prompts and infinite loops. Understanding what to avoid is just as important as knowing what to build.

Patterns are sourced from published research by Anthropic, Google, OpenAI, Princeton, Stanford, and the broader AI engineering community.

Built with Next.js, TypeScript, and Tailwind CSS.