-
-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy patharchitecture.html
More file actions
461 lines (431 loc) · 22.2 KB
/
Copy patharchitecture.html
File metadata and controls
461 lines (431 loc) · 22.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Row-Bot - Architecture</title>
<meta name="description" content="Explore Row-Bot's local-first architecture diagrams for the core agent, context assembly, knowledge graph, workflows, channels, Designer Studio, Developer Studio, skills, safety, and self-evolution systems.">
<link rel="canonical" href="https://row-bot.ai/architecture.html">
<meta property="og:type" content="website">
<meta property="og:url" content="https://row-bot.ai/architecture.html">
<meta property="og:title" content="Row-Bot Architecture">
<meta property="og:description" content="Visual architecture diagrams for Row-Bot's local-first personal AI assistant.">
<meta property="og:image" content="https://row-bot.ai/Core_Agent_Arch.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Row-Bot Architecture">
<meta name="twitter:description" content="Visual architecture diagrams for Row-Bot's local-first personal AI assistant.">
<meta name="twitter:image" content="https://row-bot.ai/Core_Agent_Arch.png">
<link rel="icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0b0d10;
--bg-alt: #101318;
--surface: #151920;
--surface-raised: #1c2129;
--border: #232a35;
--border-hover: #3a4556;
--text: #e2e6ed;
--text-dim: #9aa3b4;
--text-faint: #636d7e;
--accent: #4F78A4;
--accent-hover: #6C93BC;
--rose: #d87682;
--sans: 'Inter', system-ui, sans-serif;
--serif: 'Instrument Serif', Georgia, serif;
--mono: 'JetBrains Mono', 'SF Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--sans);
background: var(--bg);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
inset: 0;
z-index: -1;
background-image:
linear-gradient(rgba(79,120,164,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(79,120,164,0.02) 1px, transparent 1px);
background-size: 64px 64px;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%); }
nav {
position: fixed;
top: 0;
width: 100%;
height: 56px;
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(11, 13, 16, 0.88);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
z-index: 100;
}
.nav-wordmark {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-family: var(--serif);
font-size: 1.4rem;
color: var(--accent);
text-decoration: none;
}
.nav-glyph {
width: 28px;
height: 28px;
object-fit: contain;
flex: 0 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
color: var(--text-dim);
text-decoration: none;
font-size: 0.86rem;
padding: 0.35rem 0.75rem;
border-radius: 6px;
transition: color 0.2s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links .nav-dl {
color: var(--bg);
background: var(--accent);
font-weight: 600;
margin-left: 0.35rem;
}
.nav-links .nav-dl:hover { background: var(--accent-hover); }
.hero {
position: relative;
max-width: 960px;
margin: 0 auto;
padding: 9rem 2rem 5rem;
}
.hero-glyph {
position: absolute;
top: 6rem;
right: -1rem;
width: min(18rem, 40vw);
height: auto;
opacity: 0.09;
pointer-events: none;
user-select: none;
}
.hero > *:not(.hero-glyph) { position: relative; z-index: 1; }
.eyebrow {
font-family: var(--mono);
font-size: 0.78rem;
color: var(--accent);
letter-spacing: 0.12em;
text-transform: uppercase;
margin-bottom: 1.2rem;
}
h1 {
font-family: var(--serif);
font-size: clamp(3rem, 7vw, 5.6rem);
font-weight: 400;
line-height: 1;
color: var(--text);
margin-bottom: 1.4rem;
}
h1 em { color: var(--accent); font-style: italic; }
.hero-copy {
max-width: 700px;
color: var(--text-dim);
font-size: 1.08rem;
line-height: 1.75;
margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.75rem 1.45rem;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { color: var(--text-dim); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); }
.overview { padding: 4.5rem 0; }
.overview-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.overview-item {
padding: 1.2rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
}
.overview-item span {
display: block;
font-family: var(--mono);
color: var(--accent);
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 0.55rem;
}
.overview-item p { color: var(--text-dim); font-size: 0.9rem; }
.diagrams { padding: 5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 {
font-family: var(--serif);
font-size: 2.6rem;
font-weight: 400;
line-height: 1.15;
margin-bottom: 0.7rem;
}
.section-head p { color: var(--text-dim); max-width: 680px; }
.diagram-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.35rem;
}
.diagram-card {
display: block;
color: inherit;
text-decoration: none;
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
background: var(--surface);
transition: transform 0.2s, border-color 0.2s;
}
.diagram-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.diagram-card img {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
background: var(--bg-alt);
}
.diagram-caption { padding: 1rem 1.1rem 1.15rem; }
.diagram-caption span {
display: block;
font-family: var(--mono);
font-size: 0.68rem;
color: var(--accent);
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 0.35rem;
}
.diagram-caption h3 { font-size: 1.03rem; font-weight: 600; margin-bottom: 0.35rem; }
.diagram-caption p { color: var(--text-dim); font-size: 0.88rem; }
.cta { padding: 5rem 0; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; margin-bottom: 0.7rem; }
.cta p { color: var(--text-dim); margin-bottom: 1.75rem; }
footer {
padding: 2rem;
text-align: center;
font-family: var(--mono);
font-size: 0.75rem;
color: var(--text-faint);
border-top: 1px solid var(--border);
}
footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: var(--text-dim); }
.lightbox {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 2rem;
background: rgba(5, 7, 9, 0.92);
z-index: 300;
}
.lightbox:target { display: flex; }
.lightbox-figure {
width: min(92vw, 980px);
max-height: 92vh;
}
.lightbox img {
display: block;
width: 100%;
max-height: 82vh;
object-fit: contain;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
}
.lightbox figcaption {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: center;
color: var(--text-dim);
font-size: 0.9rem;
margin-top: 0.85rem;
}
.lightbox-close {
color: var(--bg);
background: var(--accent);
border-radius: 6px;
padding: 0.45rem 0.8rem;
text-decoration: none;
font-weight: 600;
}
@media (max-width: 860px) {
nav { padding: 0 1rem; }
.nav-links a:not(.nav-dl) { display: none; }
.overview-grid { grid-template-columns: repeat(2, 1fr); }
.diagram-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
.container, .container--narrow, .hero { padding-left: 1.1rem; padding-right: 1.1rem; }
.hero { padding-top: 7.5rem; }
.overview-grid { grid-template-columns: 1fr; }
.hero-actions { flex-direction: column; align-items: stretch; }
.btn { justify-content: center; }
.nav-links .nav-dl { padding: 0.35rem 0.55rem; margin-left: 0.1rem; }
}
</style>
</head>
<body>
<nav>
<a href="index.html" class="nav-wordmark"><img src="row_bot_glyph_256.png" alt="" class="nav-glyph"> Row-Bot</a>
<div class="nav-links">
<a href="index.html#features">Features</a>
<a href="index.html#tools">Tools</a>
<a href="index.html#privacy">Privacy</a>
<a href="index.html#comparison">Compare</a>
<a href="https://github.com/siddsachar/row-bot" target="_blank">GitHub</a>
<a href="index.html#install" class="nav-dl">Install</a>
</div>
</nav>
<main>
<section class="hero">
<img class="hero-glyph" src="row_bot_glyph_256.png" alt="">
<p class="eyebrow">Architecture</p>
<h1>How Row-Bot stays <em>local-first.</em></h1>
<p class="hero-copy">
These diagrams map the main systems behind Row-Bot: the agent orchestrator, context assembly,
memory graph, workflows, channels, Designer Studio, safety boundaries, and self-management loops.
The same principle runs through each layer: keep durable user data local, make external services opt-in,
and give the user clear control over actions.
</p>
<div class="hero-actions">
<a href="#diagrams" class="btn btn--primary">Explore diagrams</a>
<a href="ARCHITECTURE.md" class="btn btn--ghost">Read technical reference</a>
</div>
</section>
<div class="section-divider"></div>
<section class="overview">
<div class="container">
<div class="overview-grid">
<div class="overview-item">
<span>Local state</span>
<p>Conversations, memory, media, tasks, wiki vaults, and project assets live on the user's machine.</p>
</div>
<div class="overview-item">
<span>Opt-in models</span>
<p>Local runtimes and self-hosted endpoints stay distinct from hosted provider APIs, Ollama Cloud, and ChatGPT / Codex.</p>
</div>
<div class="overview-item">
<span>Trust boundaries</span>
<p>Tool results, web pages, channel attachments, and remote MCP servers are treated as untrusted context.</p>
</div>
<div class="overview-item">
<span>User control</span>
<p>Destructive tools, settings changes, workflow actions, and external delivery paths pass through guardrails.</p>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<section class="diagrams" id="diagrams">
<div class="container">
<div class="section-head">
<h2>Subsystem Maps</h2>
<p>Open any diagram for a larger view. The gallery starts with the full core-agent map, then moves through the specialized subsystems that make Row-Bot useful day to day.</p>
</div>
<div class="diagram-grid">
<a class="diagram-card" href="#core-agent">
<img src="Core_Agent_Arch.png" alt="Row-Bot core agent architecture diagram">
<div class="diagram-caption"><span>01</span><h3>Core Agent</h3><p>Interfaces, model routing, context, memory, tool calls, workflows, storage, and control planes.</p></div>
</a>
<a class="diagram-card" href="#context">
<img src="Context_Arch.png" alt="Row-Bot context architecture diagram">
<div class="diagram-caption"><span>02</span><h3>Context Assembly</h3><p>How current turns, history, skills, memories, documents, and tool results become model-ready context.</p></div>
</a>
<a class="diagram-card" href="#knowledge-graph">
<img src="Knowledge_Graph_Arch.png" alt="Row-Bot knowledge graph architecture diagram">
<div class="diagram-caption"><span>03</span><h3>Knowledge Graph</h3><p>Capture, extraction, graph storage, semantic retrieval, wiki export, and Dream Cycle refinement.</p></div>
</a>
<a class="diagram-card" href="#workflows">
<img src="Workflows_Arch.png" alt="Row-Bot background workflow architecture diagram">
<div class="diagram-caption"><span>04</span><h3>Background Workflows</h3><p>Natural-language workflow creation, scheduling, execution, approvals, delivery, and recurring loops.</p></div>
</a>
<a class="diagram-card" href="#channels">
<img src="Multi_Channel_Arch.png" alt="Row-Bot multi-channel architecture diagram">
<div class="diagram-caption"><span>05</span><h3>Multi-Channel Runtime</h3><p>Messaging entry points, adapters, normalization, identity mapping, attachment handling, and delivery.</p></div>
</a>
<a class="diagram-card" href="#designer">
<img src="Designer_Studio_Arch.png" alt="Row-Bot Designer Studio architecture diagram">
<div class="diagram-caption"><span>06</span><h3>Designer Studio</h3><p>Project modes, page generation, media, targeted edits, preview sandboxing, export, and publish paths.</p></div>
</a>
<a class="diagram-card" href="#developer">
<img src="Developer_Studio_Arch.png" alt="Row-Bot Developer Studio architecture diagram">
<div class="diagram-caption"><span>07</span><h3>Developer Studio</h3><p>Workspace linking, repo context, approval modes, Git operations, Docker Sandbox, tests, and PR prep.</p></div>
</a>
<a class="diagram-card" href="#skills">
<img src="Skills_System_Arch.png" alt="Row-Bot skills system architecture diagram">
<div class="diagram-caption"><span>08</span><h3>Skills System</h3><p>Smart Skills activation, Skills Hub imports, bundled guides, slash commands, and skill-scoped prompts.</p></div>
</a>
<a class="diagram-card" href="#safety">
<img src="Safety_Privacy_Arch.png" alt="Row-Bot safety privacy and control architecture diagram">
<div class="diagram-caption"><span>09</span><h3>Safety, Privacy & Control</h3><p>Local-first boundaries, approvals, prompt-injection defense, tool permissions, credentials, and updates.</p></div>
</a>
<a class="diagram-card" href="#self-evolution">
<img src="Self_Evolution_Arch.png" alt="Row-Bot self-evolution architecture diagram">
<div class="diagram-caption"><span>10</span><h3>Self-Evolution</h3><p>Status introspection, diagnostics, capability registry, insights, skill guidance, and controlled self-management.</p></div>
</a>
</div>
</div>
</section>
<div class="section-divider"></div>
<section class="cta">
<div class="container--narrow">
<h2>Want the implementation detail?</h2>
<p>The written architecture reference covers modules, storage layout, provider routing, update flow, packaging, and system boundaries.</p>
<div class="hero-actions" style="justify-content:center">
<a href="ARCHITECTURE.md" class="btn btn--primary">Open architecture reference</a>
<a href="index.html" class="btn btn--ghost">Back to landing page</a>
</div>
</div>
</section>
</main>
<footer>
<p>Row-Bot · Architecture · <a href="index.html">Home</a> · <a href="https://github.com/siddsachar/row-bot" target="_blank">GitHub</a></p>
</footer>
<a class="lightbox" id="core-agent" href="#diagrams"><figure class="lightbox-figure"><img src="Core_Agent_Arch.png" alt="Row-Bot core agent architecture diagram"><figcaption><span>Core Agent Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="context" href="#diagrams"><figure class="lightbox-figure"><img src="Context_Arch.png" alt="Row-Bot context architecture diagram"><figcaption><span>Context Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="knowledge-graph" href="#diagrams"><figure class="lightbox-figure"><img src="Knowledge_Graph_Arch.png" alt="Row-Bot knowledge graph architecture diagram"><figcaption><span>Knowledge Graph Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="workflows" href="#diagrams"><figure class="lightbox-figure"><img src="Workflows_Arch.png" alt="Row-Bot background workflow architecture diagram"><figcaption><span>Background Workflow Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="channels" href="#diagrams"><figure class="lightbox-figure"><img src="Multi_Channel_Arch.png" alt="Row-Bot multi-channel architecture diagram"><figcaption><span>Multi-Channel Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="designer" href="#diagrams"><figure class="lightbox-figure"><img src="Designer_Studio_Arch.png" alt="Row-Bot Designer Studio architecture diagram"><figcaption><span>Designer Studio Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="developer" href="#diagrams"><figure class="lightbox-figure"><img src="Developer_Studio_Arch.png" alt="Row-Bot Developer Studio architecture diagram"><figcaption><span>Developer Studio Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="skills" href="#diagrams"><figure class="lightbox-figure"><img src="Skills_System_Arch.png" alt="Row-Bot skills system architecture diagram"><figcaption><span>Skills System Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="safety" href="#diagrams"><figure class="lightbox-figure"><img src="Safety_Privacy_Arch.png" alt="Row-Bot safety privacy and control architecture diagram"><figcaption><span>Safety, Privacy & Control Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
<a class="lightbox" id="self-evolution" href="#diagrams"><figure class="lightbox-figure"><img src="Self_Evolution_Arch.png" alt="Row-Bot self-evolution architecture diagram"><figcaption><span>Self-Evolution Architecture</span><span class="lightbox-close">Close</span></figcaption></figure></a>
</body>
</html>