Agent Capsule: "Agents as Data" pattern for production AI agents (gist)
The Agent Capsule pattern reimagines AI agent development by defining agents as folders of documents rather than code, enabling faster iteration through prompting instead of coding. It uses a coding agent like claude-code as the runtime engine, with agent behavior controlled by modifiable documents in a structured directory. The architecture separates agent definition from execution, supporting scalable, multi-user deployment with isolated workspaces and shared templates.
- ▪The Agent Capsule pattern defines AI agents as document folders instead of code, using a coding agent as the runtime engine.
- ▪Agents are built and modified through prompting, allowing rapid iteration without traditional code changes and deployments.
- ▪Each user gets an isolated workspace derived from a shared template, maintaining separation of state, preferences, and memory.
- ▪The architecture consists of an agent layer (template, workspace, memory) and an execution layer (orchestration, capsules) for secure, scalable operation.
- ▪Capsules are ephemeral, stateless processes that execute against a workspace, read instructions, perform actions, and update memory before exiting.
Hacker News (Front Page) files mainly under programming. We currently carry 993 of its stories. Top-voted stories on Hacker News.
Story provenance
Source · retrieval · rights · ranking — open for full record
inspect →
Story provenance
Attribution is not the same as permission. This drawer separates discovery metadata, excerpts, WeSearch-generated summaries, reuse status, and whether the publisher receives the visit. Nothing here claims a legal grant the publisher has not made.
Record
| Original publisher | Gist |
| Canonical URL | https://gist.github.com/liranhason/b64c202430dd02f1a9a54f0c3d6ffd16 |
| Publication time | Tue, 28 Apr 2026 12:40:17 +0000 |
| Retrieval time | 2026-04-28T12:49:31.928Z |
| Last seen | 2026-04-28T12:49:31.928Z |
| Headline source | Publisher (no WeSearch rewrite) |
| Excerpt source | publisher body |
| Excerpt method | First ~120 words (~800 chars) of extracted publisher body, fair-use limited. |
| Summary | WeSearch · cerebras-chat (WeSearch summarizer) |
| Summary source text | contentText |
| Citation coverage | Summary is a WeSearch-generated derivative; primary citation is the original publisher URL. |
| Cluster | oaqHYOEyPijg |
| Cluster logic | Grouped by semantic title/content similarity across sources within a rolling window. Same-publisher template collisions are excluded from coverage comparison. |
| Ranking reason | Story pages are not engagement-ranked. Hub feeds use recency, with optional source-diversified chronological ordering (cap consecutive stories per source). No personalized ranking. |
| Publisher visit | Yes — open original |
| Substitutes article? | No — link-out required for full text |
Rights status (four layers)
WeSearch handling by dimension
| Indexing | May the item be indexed (stored, ranked, made findable)? | Allowed |
| Snippet | May a short excerpt of the publisher's text be shown? | Allowed |
| AI summary | May WeSearch generate its own short summary of the article? | Limited |
| Retrieval / RAG | May the content be exposed for third-party retrieval-augmented generation? | Not asserted |
| Model training | May the content be used to train AI models? | Not asserted |
| Commercial reuse | May the content be reused commercially? | Not permitted |
Basis: Derived from the published RSS/Atom feed. Contact: [email protected]. Reviewed: 2026-07-24.
Opening excerpt (first ~120 words) tap to expand
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. The idea here is different: use an existing coding-agent (like claude-code) as agent's runtime engine, and define the agent as a folder of documents. This folder of documents could be also prompted using a coding agent - making the process of agent building, practically prompting.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Gist.