Skip to content

Instantly share code, notes, and snippets.

@liranhason
liranhason / agent-capsule.md
Last active July 27, 2026 00:58
Agent Capsule - A pattern for building production AI agents as document folders powered by coding-agent as runtimes

Agent Capsule

A pattern for building production AI agents as documents, not agent code.

This document presents the core concept, offering a concise and accessible overview to guide implementation.

The Core Idea

Most production agents are built with an Agent SDK (OpenAI, LangChain, LangGraph, etc.). You write code for tool dispatch, memory, sub-agents, session state, and so on. Every new capability requires a code change and a deployment.