Architecture
StanleyAI is a modular system where Claude AI acts as the strategic brain, orchestrating specialized components.
🧠
AI Brain
Strategic planning, reasoning, and conversation. The intelligence layer that decides what to do and how.
💻
Agent Runner
Autonomous executor with filesystem, terminal, and tool access. Runs agents independently.
⚡
Skills Library
30+ modular capabilities. Drop-in skills for media, research, dev, business, content, and automation.
🔨
Workflow Engine
Visual automation connecting 500+ apps. Email, calendar, spreadsheets, messaging, and custom workflows.
☁️
Edge Compute
Globally distributed API layer. Databases, object storage, KV cache, and AI inference at the edge.
📲
Mobile Alerts
Receive alerts, send commands, approve actions. Stay connected on the go.
Data Flow
User (natural language)
|
AI Brain ──────────── Skills (30+ capabilities)
|
Agent Runner ──────── Local machine (files, git, terminal)
|
┌───┴───────────────────────────────┐
│ Edge Compute Layer │
├────────────────────────────────────┤
│ API Workers │ Databases │
│ Storage │ KV Cache │
│ AI Inference │ DNS / SSL │
└───┬────────────────────────────────┘
|
┌───┴───────────┐
│ Integrations │
│ Workflow Engine│
│ Mobile Alerts │
│ External APIs │
└────────────────┘
Infrastructure Components
| Layer | Technology | Purpose |
|---|---|---|
| AI Brain | Claude (Anthropic) | Reasoning, planning, conversation |
| Agent Runner | Claude Code CLI | Autonomous code execution |
| Edge APIs | Cloudflare Workers | Globally distributed endpoints |
| Databases | Cloudflare D1 (SQLite) | Persistent state and memory |
| Object Storage | Cloudflare R2 | Files, images, documents |
| Cache | Cloudflare KV | Fast key-value lookups |
| AI Inference | Workers AI | Image generation, embeddings |
| Workflows | N8N | Multi-app automation |
| Alerts | Telegram Bot | Mobile notifications |
Design Principles
- Conversation-first — Everything is accessible through natural language
- Modular — Add or remove components without breaking the system
- Edge-native — Compute close to users, globally
- Resilient — Each component fails independently
- Observable — Daily briefings aggregate status across all systems