47% OFFYearly Pro
$30/mo$16/mobilled yearlyGet Pro
Topic

Architecture

Explore our latest articles and insights about Architecture.

Explore posts

17 posts in total

AI Engineering in Practice

Service layer for AI agents: decoupling logic from routes

How a service layer in an AI agent codebase decouples business logic from HTTP routes. The pattern, the tests, and the refactor from a fat route.

AI AgentsSystem Design+3
Read post
9 min
AI Engineering in Practice

Modular architectures for agentic AI: 4 layer pattern

How to structure an agentic AI codebase so it survives growth. The 4-layer pattern, the cut lines, and the refactor that keeps a project shippable.

AI AgentsSystem Design+3
Read post
10 min
LLM Engineering

Stateful agents with LangGraph: beyond linear chains

Why linear LangChain chains fall over on real agents and how LangGraph's stateful graphs replace them. The state model, loops, and upgrade path.

AI AgentsLangGraph+3
Read post
11 min
AI Engineering

Context window management for production AI agents

How to manage context windows in production AI agents. The 4 strategies that keep long sessions bounded without losing critical context.

AI AgentsLLM+3
Read post
11 min
AI Engineering

Persistent memory for coding agents: cross-session context

How coding agents remember context across sessions. The memory store, the recall pattern, and the 3 kinds of memory every agent should keep.

AI AgentsAI Engineering+3
Read post
11 min
AI Engineering

Custom tools for coding agents: beyond the built-ins

How to design custom tools for coding agents that are not read, edit, or bash. The naming rules, the schema patterns, and the 3 custom tools that pay off.

AI AgentsAI Engineering+3
Read post
12 min
AI Engineering

ripgrep for coding agents: fast code search at scale

Why ripgrep is the right code search tool for coding agents. The speed, the flags, and the wrapper that turns rg into a safe agent tool.

AI AgentsAI Engineering+3
Read post
10 min
AI Engineering

Edit tool design: how coding agents modify files safely

How to design an edit tool a coding agent can use without wrecking files. The string-match rule, the dry-run pattern, and the 50-line safe edit function.

AI AgentsAI Engineering+3
Read post
11 min
AI Engineering

Designing modular tool integrations for coding agents

How to structure tool integrations so an agent stays clean as it grows. The registry pattern, schema-first design, and the 80-line dispatcher that scales.

AI AgentsAI Engineering+3
Read post
12 min
AI Engineering in Practice

Docker non-root user: securing your agentic AI container

Why every agentic AI container should run as a non-root user. The Dockerfile pattern, the permission gotchas, and the attack it actually prevents.

AI AgentsProduction AI+3
Read post
11 min
AI Engineering in Practice

LangGraph persistence: thread models for production agents

Why production LangGraph agents need a postgres checkpointer and thread model. How persistence survives restarts, and the trap that loses every chat.

LangGraphAI Agents+3
Read post
12 min
AI Engineering

The event loop inside a coding agent: how it thinks

How a coding agent loop actually works. The minimal while loop that turns a chatbot into Claude Code, and the 4 states every agent cycles through.

AI AgentsAI Engineering+3
Read post
12 min

Weekly Bytes of AI

Technical deep-dives for engineers building production AI systems.

Architecture patterns, system design, cost optimization, and real-world case studies. No fluff, just engineering insights.

Unsubscribe anytime. We respect your inbox.