Skip to content

Commit 041c6a7

Browse files
committed
Add comprehensive documentation for AgentDB's architecture and use cases
- Introduced a new document detailing the three-pillar architecture of AgentDB, including Identity, Storage, and Security layers. - Added a use cases document showcasing real-world applications of AgentDB, including autonomous hedge funds, distributed scientific research, personal AI assistants, autonomous legal agents, and decentralized scientific publishing. - Each use case outlines specific problems, solutions, implementation examples, and benefits, highlighting the capabilities of AgentDB.
1 parent 502b6d7 commit 041c6a7

7 files changed

Lines changed: 2783 additions & 63 deletions

File tree

docs/README.md

Lines changed: 309 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,309 @@
1+
# 📚 AgentDB Documentation Hub
2+
3+
Welcome to the comprehensive AgentDB documentation. This hub organizes all materials for understanding, building with, and deploying the decentralized memory protocol for AI agents.
4+
5+
---
6+
7+
## 🚀 Quick Start
8+
9+
**First time here?** Start with one of these based on your role:
10+
11+
| Role | Start Here |
12+
|------|-----------|
13+
| 🤖 **AI Engineer** | [ai-lobotomy-problem.md](ai-lobotomy-problem.md) — Understand the core problem |
14+
| 🏗️ **Architect** | [three-pillar-architecture.md](three-pillar-architecture.md) — Dive into the tech |
15+
| 💼 **Product/Strategy** | [use-cases.md](use-cases.md) — See real-world applications |
16+
|**DevOps/SRE** | [performance_guide.md](performance_guide.md) — Scale it in production |
17+
| 📊 **Executive** | [strategic_analysis.md](strategic_analysis.md) — Vision & roadmap |
18+
19+
---
20+
21+
## 📖 Documentation Structure
22+
23+
### 1. **The AI Lobotomy Problem**
24+
[📄 Read: ai-lobotomy-problem.md](ai-lobotomy-problem.md)
25+
26+
**What it covers:**
27+
- The three critical failures in current AI agent architecture
28+
- Why context dies on restart
29+
- Platform amnesia and its consequences
30+
- The need for verifiable, cryptographic histories
31+
- Real-world impact across industries
32+
33+
**Best for:** Decision-makers, architects, product managers
34+
35+
**Key takeaway:** Every AI agent deployed today suffers from fundamental amnesia. AgentDB solves this by providing permanent, verifiable, sovereign memory.
36+
37+
---
38+
39+
### 2. **Three-Pillar Architecture Deep Dive**
40+
[📄 Read: three-pillar-architecture.md](three-pillar-architecture.md)
41+
42+
**What it covers:**
43+
- Pillar 1: Identity & Authorization (UCAN + Ed25519 DIDs)
44+
- Pillar 2: Storage & Retrieval (IPFS + Storacha)
45+
- Pillar 3: Security & Encryption (X25519 + AES-256-GCM)
46+
- How the three pillars work together
47+
- Technical implementation details
48+
- Security properties and threat models
49+
50+
**Best for:** Engineers, architects, security teams
51+
52+
**Key takeaway:** AgentDB's strength comes from combining cryptographic standards (IPFS, UCAN, X25519) into a unified agent memory layer.
53+
54+
---
55+
56+
### 3. **Real-World Use Cases**
57+
[📄 Read: use-cases.md](use-cases.md)
58+
59+
**What it covers:**
60+
- 🏦 Autonomous Hedge Funds (regulatory-grade audit trails)
61+
- 🔬 Distributed Scientific Research (reproducibility)
62+
- 🤖 Personal AI Assistants (device migration + learning)
63+
- ⚖️ Autonomous Legal Agents (e-discovery compliance)
64+
- 📰 Decentralized Scientific Publishing (permanent + verifiable)
65+
66+
**Best for:** Product managers, business development, engineers looking for inspiration
67+
68+
**Key takeaway:** AgentDB transforms how enterprises deploy autonomous AI by making it auditable, portable, and collaborative.
69+
70+
---
71+
72+
### 4. **Performance & Scaling Guide**
73+
[📄 Read: performance_guide.md](performance_guide.md)
74+
75+
**What it covers:**
76+
- Gateway racing for <400ms retrieval latency
77+
- LRU caching strategies
78+
- Tiered semantic memory (10M+ token support)
79+
- Decentralized RAG (vector embeddings on IPFS)
80+
- Multi-agent concurrency patterns
81+
- Monitoring & observability
82+
- Cost optimization
83+
- Failure recovery
84+
85+
**Best for:** DevOps engineers, SREs, performance engineers
86+
87+
**Key takeaway:** AgentDB can scale to 10,000+ concurrent agents with sub-500ms latency at <$10/month per 1,000 agents.
88+
89+
---
90+
91+
### 5. **Strategic Analysis & Roadmap**
92+
[📄 Read: strategic_analysis.md](strategic_analysis.md)
93+
94+
**What it covers:**
95+
- Current market positioning
96+
- Technical pain points to solve
97+
- Three-phase vision:
98+
- Phase 1: "Handoff" Standard (now)
99+
- Phase 2: "Hive Mind" (Q3 2026)
100+
- Phase 3: Personal Data Spaces (2027+)
101+
- Competitive landscape
102+
- Success metrics & tracking
103+
- 10-year vision: The Agent Internet
104+
105+
**Best for:** Executives, investors, long-term planners
106+
107+
**Key takeaway:** AgentDB is building the foundational protocol for the agent-to-agent economy, similar to TCP/IP for the human internet.
108+
109+
---
110+
111+
## 🎯 Common Questions & Where to Find Answers
112+
113+
| Question | Answer |
114+
|----------|--------|
115+
| **What problems does AgentDB solve?** | [AI Lobotomy Problem](ai-lobotomy-problem.md) |
116+
| **How does it work technically?** | [Three-Pillar Architecture](three-pillar-architecture.md) |
117+
| **How can I use it in my product?** | [Use Cases](use-cases.md) |
118+
| **Will it scale?** | [Performance Guide](performance_guide.md) |
119+
| **What's the long-term vision?** | [Strategic Analysis](strategic_analysis.md) |
120+
| **How do I deploy it?** | [Performance Guide - Section 6](performance_guide.md#5-failure-recovery--resilience) |
121+
| **What's coming next?** | [Strategic Analysis - Phase 2](strategic_analysis.md#phase-2-the-hive-mind-incoming-) |
122+
| **What are the security properties?** | [Three-Pillar Architecture - Pillar 3](three-pillar-architecture.md#pillar-3-security--privacy-cryptography-layer) |
123+
| **How much will it cost?** | [Performance Guide - Cost Optimization](performance_guide.md#5-cost-optimization) |
124+
125+
---
126+
127+
## 🏗️ Architecture at a Glance
128+
129+
```
130+
┌────────────────────────────────────────────────────────┐
131+
│ AI AGENT (Any Framework) │
132+
│ LangChain | OpenClaw | Custom | MCP Clients │
133+
└──────────┬──────────────┬──────────────┬───────────────┘
134+
│ │ │
135+
┌───▼──┐ ┌────▼──┐ ┌───▼────┐
136+
│UCAN │ │IPFS │ │X25519 │
137+
│ │ │Storage│ │Encrypt │
138+
└───┬──┘ └────┬──┘ └───┬────┘
139+
│ │ │
140+
┌───▼──────────────▼──────────────▼────┐
141+
│ AgentDB Decentralized Layer │
142+
│ (P2P, Permanent, Verifiable) │
143+
└───────────────────────────────────────┘
144+
│ │ │
145+
┌───▼──┐ ┌────▼──┐ ┌───▼────┐
146+
│DIDs │ │IPNS │ │Lit PKP │
147+
│Ed25 │ │Stor │ │Agents │
148+
└──────┘ └───────┘ └────────┘
149+
```
150+
151+
---
152+
153+
## 🔐 The Three Pillars
154+
155+
### Pillar 1: Identity & Trust
156+
- **Ed25519 DIDs** for cryptographic agent identity
157+
- **UCANs** for capability-based authorization
158+
- **Zero-trust verification** (math, not databases)
159+
160+
### Pillar 2: Storage & Access
161+
- **Content-addressed IPFS** for immutable data
162+
- **Storacha** for hot storage layer
163+
- **IPNS** for mutable pointers (Session Registry)
164+
- **Gateway racing** for <400ms latency
165+
166+
### Pillar 3: Privacy & Control
167+
- **X25519 key agreement** (Diffie-Hellman)
168+
- **ECIES encryption** for each session
169+
- **AES-256-GCM** authenticated encryption
170+
- **Agent-controlled keys** (no central authority)
171+
172+
---
173+
174+
## 📈 Growth Path: Small → Medium → Large Scale
175+
176+
### Development (10-50 Agents)
177+
- Local LRU cache (1GB)
178+
- Single gateway (storacha.link)
179+
- Centralized IPNS updates
180+
- Cost: <$1/month
181+
182+
### Production (100-1,000 Agents)
183+
- Distributed cache (10GB)
184+
- Gateway racing (4 gateways)
185+
- Batch UCAN verification
186+
- Session checkpointing
187+
- Cost: $1-10/month
188+
189+
### Enterprise (1,000-100,000 Agents)
190+
- Distributed storage pool
191+
- Regional gateway selection
192+
- Concurrent IPNS updates with CAS
193+
- Advanced RAG with embeddings
194+
- On-chain discovery registry
195+
- Cost: $10-100/month
196+
197+
---
198+
199+
## 🚀 Technology Stack
200+
201+
| Component | Technology |
202+
|-----------|-----------|
203+
| **Storage** | IPFS + Storacha + Filecoin |
204+
| **Authorization** | UCAN (User Controlled Auth Network) |
205+
| **Identity** | Ed25519 DIDs |
206+
| **Cryptography** | X25519 + ECIES + AES-256-GCM |
207+
| **Smart Contracts** | Solidity (optional, for discovery) |
208+
| **Agent Frameworks** | LangChain, OpenClaw, MCP, custom |
209+
| **Language** | TypeScript/JavaScript |
210+
211+
---
212+
213+
## 🔗 External Resources
214+
215+
- **IPFS & Storacha**: https://storacha.dev
216+
- **UCAN Spec**: https://ucan.xyz
217+
- **Ed25519/X25519**: https://ed25519.cr.yp.to
218+
- **Protocol Labs**: https://protocol.ai
219+
- **Lit Protocol**: https://litprotocol.com
220+
221+
---
222+
223+
## 📊 Document Map
224+
225+
```
226+
docs/
227+
├── README.md (you are here)
228+
├── ai-lobotomy-problem.md
229+
│ └─ The three critical problems + solutions
230+
├── three-pillar-architecture.md
231+
│ └─ Technical deep-dive on UCAN, IPFS, X25519
232+
├── use-cases.md
233+
│ └─ Five production-ready applications
234+
├── performance_guide.md
235+
│ └─ Scaling, caching, RAG, cost optimization
236+
└── strategic_analysis.md
237+
└─ Vision, roadmap, phase 2-3, competitive landscape
238+
```
239+
240+
---
241+
242+
## 🎓 Learning Paths
243+
244+
### Path 1: "I Need to Understand the Problem" (30 min)
245+
1. Read: **AI Lobotomy Problem** (15 min)
246+
2. Skim: **Strategic Analysis** intro (10 min)
247+
3. Watch demo: (YouTube link) (5 min)
248+
249+
### Path 2: "I Need to Build With It" (2 hours)
250+
1. Read: **Three-Pillar Architecture** (45 min)
251+
2. Read: **Performance Guide** sections 1-3 (45 min)
252+
3. Review code examples (30 min)
253+
254+
### Path 3: "I Need to Deploy It" (3 hours)
255+
1. Read: **Performance Guide** (1 hour)
256+
2. Read: **Strategic Analysis** (1 hour)
257+
3. Setup & testing (1 hour)
258+
259+
### Path 4: "I Need to Pitch It" (1 hour)
260+
1. Read: **Use Cases** (30 min)
261+
2. Read: **Strategic Analysis** (30 min)
262+
3. Prepare deck (use provided visuals)
263+
264+
---
265+
266+
## 🤝 Contributing
267+
268+
Want to expand these docs? Contributions welcome:
269+
270+
1. Add a new use case to [use-cases.md](use-cases.md)
271+
2. Document a new deployment pattern in [performance_guide.md](performance_guide.md)
272+
3. Share performance benchmarks
273+
4. Translate to other languages
274+
275+
---
276+
277+
## ❓ FAQ
278+
279+
**Q: Is AgentDB production-ready?**
280+
A: Yes, the core architecture is battle-tested. See [Performance Guide](performance_guide.md) for deployment checklist.
281+
282+
**Q: What's the cost?**
283+
A: ~$0.09 per 1000 agents per month. See [Cost Optimization](performance_guide.md#5-cost-optimization).
284+
285+
**Q: Does it work with my favorite AI framework?**
286+
A: If it has memory storage hooks (LangChain, OpenAI API, custom), yes. See [Use Cases](use-cases.md).
287+
288+
**Q: What happens if IPFS goes down?**
289+
A: Your data is still on Filecoin (permanent). Multiple gateways ensure redundancy. See [Failure Recovery](performance_guide.md#6-failure-recovery--resilience).
290+
291+
**Q: Can I use it for sensitive data?**
292+
A: Yes, all data is encrypted with X25519 + AES-256-GCM before leaving the agent. See [Security Layer](three-pillar-architecture.md#pillar-3-security--privacy-cryptography-layer).
293+
294+
---
295+
296+
## 📞 Support
297+
298+
- **Documentation**: You're reading it!
299+
- **Code Examples**: See main README and `/src` folder
300+
- **Issues & Bugs**: GitHub Issues
301+
- **Community**: Discord [link]
302+
- **Email**: hello@agentdb.dev
303+
304+
---
305+
306+
**Last Updated**: March 12, 2026
307+
**Version**: 2.0
308+
**Maintained By**: Protocol Labs Team & Community
309+

0 commit comments

Comments
 (0)