A Software Development Methodology for the Agentic Era
한국어 | English
"Software engineering principles were designed for human cognitive limits. AI agents have different limits."
AIDE is not just another methodology written about AI agents. It was created by AI agents.
Three AI models — GPT, Claude, and Gemini — independently conducted deep research into the challenges of AI-driven software development. Their findings were synthesized into two competing visions:
- Team Alpha (Integrationists): Argued that existing software engineering principles remain sound and need only incremental adaptation for agent workflows.
- Team Beta (Radicals): Argued that AI agents require a fundamentally new development paradigm built from first principles.
A CTO-role agent mediated the debate, stress-tested both positions, and forged the final consensus that became AIDE.
This methodology was researched by AI agents, debated by AI agents, and authored by AI agents.
Fifty years of software engineering have been optimized for human cognitive limits. Patterns like MVC, layered architecture, and deep inheritance hierarchies exist because human working memory holds only 7±2 items at a time. We split code into small files, create abstractions to hide details, and build tall directory trees — all to manage complexity within the bounds of human attention.
AI agents are now the primary producers of code. They read, write, refactor, and debug software at scale. But their cognitive constraints are fundamentally different: large context windows instead of small working memories, probabilistic pattern matching instead of causal reasoning, token costs instead of monthly salaries.
AIDE is an evolution, not a replacement, of software engineering. It preserves the core values — correctness, maintainability, testability — while realigning structural decisions for how AI agents actually process information. Where traditional engineering asks "Can a human hold this in their head?", AIDE asks "Can an agent resolve this within a single context window?"
| Dimension | Human Developer | AI Agent |
|---|---|---|
| Memory | Very small working memory (7±2 items) | Large context window, but suffers from Lost-in-the-Middle |
| Repetitive Tasks | Fatigue and error-prone | No fatigue, parallelizable |
| Reasoning | Deep logical and causal reasoning | Probabilistic pattern matching; multi-hop reasoning degrades |
| Vulnerabilities | Complexity overload, boredom | Hallucination, attention diffusion |
| Cost Model | Salary (monthly fixed cost) | Token cost (per call, variable) |
| # | Principle | Description |
|---|---|---|
| 1 | Context Budget Principle | The context budget is a first-class design constraint |
| 2 | Locality of Behavior | Locality of behavior takes priority over abstraction |
| 3 | Functional Core, Structural Shell | Pure function core + structural shell |
| 4 | Knowledge DRY, Code WET-tolerant | Knowledge is DRY; code trades off with locality |
| 5 | Test as Specification | Tests are a specification language |
| 6 | Progressive Disclosure | Progressive disclosure of information |
| 7 | Deterministic Guardrails | Deterministic guardrails for probabilistic generation |
| 8 | Observability as Structure | Observability is part of the structure |
| 9 | Security by Structure | Structural security verification |
| 10 | Meta-Code as First-Class | Meta-code as a first-class citizen |
| Traditional Layered Architecture | AIDE Feature-Based Architecture |
|---|---|
|
|
An agent modifying
user-authneeds only 1 folder. Traditional approach: 8+ files across 6+ directories.
- Define feature boundaries by domain — each feature maps to one bounded context
- Create feature directories with
types.ts,logic.ts,handler.ts,store.ts - Write
AGENTS.mdfor each feature with domain context, invariants, and edge cases - Implement business logic as pure functions in
logic.ts - Add deterministic guardrails — schema validation, type checks, contract tests
- Identify the highest-churn feature — the module changed most frequently
- Create a feature directory and move all related code into it
- Consolidate types into
types.tsand addAGENTS.mdwith domain context - Refactor business logic into pure functions, isolating side effects to
handler.tsandstore.ts - Repeat for the next highest-churn feature
A shopping cart feature in TypeScript, structured the AIDE way:
// features/cart/types.ts
type CartItem = Readonly<{
productId: string;
quantity: number;
unitPrice: number;
}>;
type Cart = Readonly<{
items: CartItem[];
appliedCoupon?: string;
}>;
// features/cart/logic.ts — Pure functions, no side effects
const addItem = (cart: Cart, item: CartItem): Cart => ({
...cart,
items: [...cart.items.filter(i => i.productId !== item.productId), item],
});
const calculateTotal = (cart: Cart): number =>
cart.items.reduce((sum, item) => sum + item.quantity * item.unitPrice, 0);
// features/cart/handler.ts — Side-effect boundary
const handleAddToCart = async (req: Request): Promise<Response> => {
const cart = await loadCart(req.userId);
const updated = addItem(cart, req.body);
await saveCart(updated);
return { status: 200, body: { total: calculateTotal(updated) } };
};AIDE v2.0 introduces autonomous self-evolution — the methodology updates itself as AI agent capabilities change, with zero human management required.
| Layer | What | How |
|---|---|---|
| Immutable Axioms | 5 axioms no agent can change | Reversibility, Adversarial Separation, Empiricism, No Single Authority, Self-Observability |
| Adaptive Principles | 10 principles with self-calibrating formulas | Numeric guidelines auto-adjust based on agent benchmarks |
| Evolution Engine | Monthly autonomous pipeline | Sense → 3-Agent Deliberation → Empirical Validation → Auto-Apply |
| Execution | Development pipeline | Multi-Agent Review replaces Human Review |
Monthly (or on model release):
1. SENSE — Collect SWE-bench, RULER, HumanEval, pricing data
2. DELIBERATE — Claude proposes → GPT challenges → Gemini synthesizes
3. VALIDATE — Apply to sandbox project, compare metrics before/after
4. APPLY — Auto-commit if metrics improve, auto-rollback if they don't
See RFC-0002 for the full design.
- Full Methodology (English)
- Full Methodology (Korean)
- Immutable Axioms
- Adaptive Principles Metadata
- Evolution Engine
- RFC-0002: Autonomous Self-Evolving Methodology
- Research Background
We follow an Agent-Autonomous Contribution Model:
- Typo fixes — Direct PR is fine
- Methodology evolution — Handled automatically by the Evolution Engine
- Structural improvements — Must be authored or reviewed using an AI agent
See CONTRIBUTING.md for full details.
This work is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
This methodology was made possible by the collaborative research and debate of three AI models and two agent teams:
- GPT, Claude, and Gemini — Independent deep research on AI-driven software development
- Team Alpha (Integrationists) — Advocated evolutionary adaptation of existing principles
- Team Beta (Radicals) — Championed a first-principles rethinking of development methodology