-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodek.html
More file actions
525 lines (484 loc) · 17.6 KB
/
odek.html
File metadata and controls
525 lines (484 loc) · 17.6 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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Primary Meta Tags -->
<title>odek: The Autonomous Agent Runtime — 21no.de</title>
<meta name="description" content="odek is a Go autonomous agent runtime. ~8 MB static, 5 dependencies, one ReAct loop. Three-tier persistent memory, two-way MCP, Docker sandbox, sub-agent delegation, Web UI. No framework layer." />
<meta name="keywords" content="odek, autonomous agent, Go agent runtime, ReAct loop, MCP agent, AI agent, tool-using agent, agent framework, Go AI, 21no.de" />
<meta name="author" content="21no.de" />
<meta name="theme-color" content="#0a0a0b" />
<!-- Open Graph -->
<meta property="og:type" content="article" />
<meta property="og:url" content="https://odek.21no.de" />
<meta property="og:title" content="odek: The Autonomous Agent Runtime — 21no.de" />
<meta property="og:description" content="odek is a Go autonomous agent runtime. ~8 MB static, 5 dependencies, one ReAct loop. Three-tier persistent memory, two-way MCP, Docker sandbox, sub-agent delegation, Web UI. No framework layer." />
<meta property="og:image" content="https://21no.de/logo-v2.png" />
<meta property="og:site_name" content="21no.de" />
<meta property="og:locale" content="en_US" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="odek: The Autonomous Agent Runtime — 21no.de" />
<meta name="twitter:description" content="odek is a Go autonomous agent runtime. ~8 MB static, 5 dependencies, one ReAct loop. Three-tier persistent memory, two-way MCP, Docker sandbox, sub-agent delegation, Web UI. No framework layer." />
<meta name="twitter:image" content="https://21no.de/logo-v2.png" />
<!-- Canonical -->
<link rel="canonical" href="https://odek.21no.de" />
<!-- JSON-LD Structured Data (Article) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "odek: The Autonomous Agent Runtime",
"description": "odek is a Go autonomous agent runtime. ~8 MB static, 5 dependencies, one ReAct loop. Three-tier persistent memory, two-way MCP, Docker sandbox, sub-agent delegation, Web UI. No framework layer.",
"author": {
"@type": "Organization",
"name": "21no.de",
"url": "https://21no.de"
},
"publisher": {
"@type": "Organization",
"name": "21no.de",
"logo": {
"@type": "ImageObject",
"url": "https://21no.de/logo-v2.png"
}
},
"url": "https://odek.21no.de",
"image": "https://21no.de/logo-v2.png",
"datePublished": "2026-05-19",
"dateModified": "2026-05-20",
"keywords": "autonomous agent, Go agent runtime, ReAct loop, MCP agent, AI agent, 21no.de",
"about": {
"@type": "SoftwareSourceCode",
"name": "odek",
"description": "A minimal Go autonomous agent runtime with one ReAct loop, 5 dependencies, three-tier memory, two-way MCP, Docker sandbox, sub-agent delegation, and Web UI.",
"programmingLanguage": "Go",
"runtimePlatform": "Linux, macOS"
}
}
</script>
<!-- Shared Assets -->
<link rel="stylesheet" href="https://assets.21no.de/fonts/fonts.css" />
<link rel="stylesheet" href="https://assets.21no.de/css/tokens.css" />
<link rel="stylesheet" href="https://assets.21no.de/css/base.css" />
<link rel="stylesheet" href="https://assets.21no.de/css/nav.css" />
<link rel="stylesheet" href="https://assets.21no.de/css/footer.css" />
<!-- Syntax highlighting -->
<link rel="stylesheet" href="/static/highlight/github-dark.min.css" />
<style>
:root {
--bg-primary: #0a0a0b;
--bg-card: #16161a;
--bg-code: #0d0d10;
--border-subtle: rgba(255,255,255,0.06);
--border-card: rgba(255,255,255,0.08);
--text-primary: #ededef;
--text-secondary: #9b9ba3;
--text-tertiary: #6b6b75;
--accent: #38bdf8;
--accent-glow: rgba(56,189,248,0.12);
--accent-subtle: rgba(56,189,248,0.08);
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'Monaspace Neon', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
--max-width: 1100px;
--content-width: 740px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-sans);
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
/* Loading & Error */
#loading, #error {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
gap: 16px;
text-align: center;
color: var(--text-secondary);
}
#error h2 { color: var(--text-primary); margin-bottom: 8px; }
#error a { color: var(--accent); text-decoration: none; }
.spinner {
width: 32px; height: 32px;
border: 3px solid var(--border-subtle);
border-top: 3px solid var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Book container */
.book-container {
max-width: var(--content-width);
margin: 0 auto;
padding: 40px 24px 80px;
}
.book-header {
margin-bottom: 48px;
padding-bottom: 32px;
border-bottom: 1px solid var(--border-subtle);
}
.section-label {
display: inline-block;
font-size: 12px;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 12px;
}
.book-header h1 {
font-size: 36px;
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.02em;
margin-bottom: 12px;
color: var(--text-primary);
}
.book-header .subtitle {
font-size: 18px;
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 16px;
}
.book-header .meta {
display: flex;
gap: 12px;
align-items: center;
font-size: 13px;
color: var(--text-tertiary);
}
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
background: var(--accent-subtle);
color: var(--accent);
font-size: 12px;
font-weight: 500;
}
.dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--accent);
}
/* Book content — typography */
.book-content h2 {
font-size: 24px;
font-weight: 700;
margin: 48px 0 16px;
letter-spacing: -0.01em;
color: var(--text-primary);
padding-bottom: 8px;
border-bottom: 1px solid var(--border-subtle);
}
.book-content h3 {
font-size: 19px;
font-weight: 600;
margin: 32px 0 12px;
color: var(--text-primary);
}
.book-content h4 {
font-size: 16px;
font-weight: 600;
margin: 24px 0 8px;
color: var(--text-primary);
}
.book-content p {
margin-bottom: 16px;
color: var(--text-secondary);
font-size: 16px;
}
.book-content p strong { color: var(--text-primary); }
.book-content a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1px;
}
.book-content a:hover { text-decoration-thickness: 2px; }
/* Code */
.book-content code {
font-family: var(--font-mono);
font-size: 13.5px;
background: var(--bg-code);
padding: 2px 6px;
border-radius: 4px;
color: var(--accent);
}
.book-content pre {
background: var(--bg-code);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 20px;
margin: 20px 0;
overflow-x: auto;
position: relative;
}
.book-content pre code {
background: none;
padding: 0;
color: var(--text-primary);
font-size: 13.5px;
line-height: 1.6;
}
/* Lists */
.book-content ul, .book-content ol {
margin: 12px 0 20px;
padding-left: 24px;
color: var(--text-secondary);
}
.book-content li {
margin-bottom: 6px;
font-size: 16px;
}
/* Blockquotes */
.book-content blockquote {
border-left: 3px solid var(--accent);
margin: 20px 0;
padding: 12px 20px;
background: var(--bg-card);
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
color: var(--text-secondary);
}
.book-content blockquote p:last-child { margin-bottom: 0; }
/* Tables */
.book-content table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 14px;
}
.book-content th, .book-content td {
padding: 10px 14px;
text-align: left;
border-bottom: 1px solid var(--border-subtle);
}
.book-content th {
background: var(--bg-card);
color: var(--text-primary);
font-weight: 600;
white-space: nowrap;
}
.book-content td { color: var(--text-secondary); }
/* Horizontal rule */
.book-content hr {
border: none;
border-top: 1px solid var(--border-subtle);
margin: 48px 0;
}
/* Mermaid diagram container */
.book-content .mermaid {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 24px;
margin: 20px 0;
overflow-x: auto;
text-align: center;
}
/* Footer */
.book-footer {
margin-top: 64px;
padding-top: 32px;
border-top: 1px solid var(--border-subtle);
text-align: center;
}
.social-links {
display: flex;
justify-content: center;
gap: 24px;
margin-bottom: 16px;
}
.social-links a {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-tertiary);
text-decoration: none;
font-size: 14px;
transition: color 0.15s;
}
.social-links a:hover { color: var(--text-primary); }
.book-footer p {
color: var(--text-tertiary);
font-size: 13px;
}
.book-footer a { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
.book-container { padding: 24px 16px 60px; }
.book-header h1 { font-size: 26px; }
.book-content h2 { font-size: 20px; }
.book-content p { font-size: 15px; }
.book-content pre { padding: 14px; }
}
</style>
</head>
<body>
<!-- Nav -->
<nav class="nav">
<div class="nav-inner">
<a href="/" class="nav-logo">
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="34" height="34" rx="8" fill="#38bdf8"/>
<text x="17" y="23" text-anchor="middle" fill="#0a0a0b" font-family="system-ui" font-weight="800" font-size="18">21</text>
</svg>
21no.de
</a>
<div class="nav-links">
<a href="/">Home</a>
<a href="/#projects">Projects</a>
<a href="/#blog">Blog</a>
<a href="https://github.com/BackendStack21" target="_blank" rel="noopener">GitHub</a>
</div>
</div>
</nav>
<!-- Loading State -->
<div id="loading">
<div class="spinner"></div>
<p>Loading publication...</p>
</div>
<!-- Error State -->
<div id="error" style="display:none">
<h2>Could not load publication</h2>
<p id="errorMessage">The publication file could not be found or loaded.</p>
<p style="margin-top:16px"><a href="/">← Back to 21no.de</a></p>
</div>
<!-- Content -->
<main id="content" class="book-container" style="display:none">
<div id="bookHeader" class="book-header" style="display:none"></div>
<div id="bookContent" class="book-content"></div>
<div id="bookFooter" class="book-footer" style="display:none">
<div class="social-links">
<a href="https://github.com/BackendStack21" target="_blank" rel="noopener">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
GitHub
</a>
<a href="https://x.com/21node" target="_blank" rel="noopener">X / Twitter</a>
</div>
<p>© 2026 <a href="https://21no.de">21no.de</a> — Open-source research lab</p>
</div>
</main>
<!-- Libraries -->
<script src="/static/marked.min.js"></script>
<script src="/static/highlight/highlight.min.js"></script>
<script src="/static/mermaid.min.js"></script>
<script>
(function() {
const loading = document.getElementById('loading');
const error = document.getElementById('error');
const errorMsg = document.getElementById('errorMessage');
const content = document.getElementById('content');
const bookContent = document.getElementById('bookContent');
const bookHeader = document.getElementById('bookHeader');
const bookFooter = document.getElementById('bookFooter');
const file = 'publications/odek-zero-dep-agent.md';
const label = 'Technical Essay';
async function init() {
try {
mermaid.initialize({
theme: 'dark',
themeVariables: {
background: '#16161a',
primaryColor: '#38bdf8',
primaryTextColor: '#ededef',
primaryBorderColor: '#38bdf8',
lineColor: '#38bdf8',
secondaryColor: '#1e293b',
tertiaryColor: '#0f172a',
fontSize: '14px'
}
});
const res = await fetch(file);
if (!res.ok) throw new Error(`HTTP ${res.status}: ${res.statusText}`);
const md = await res.text();
const titleMatch = md.match(/^# (.+)$/m);
const subtitleMatch = md.match(/^## (.+)$/m);
const title = titleMatch ? titleMatch[1] : 'Untitled';
const subtitle = subtitleMatch ? subtitleMatch[1] : '';
const words = md.split(/\s+/).length;
const renderer = new marked.Renderer();
renderer.heading = function({ text, depth }) {
const id = text.toLowerCase()
.replace(/[^a-z0-9\s-]/g, '')
.replace(/\s+/g, '-')
.replace(/-+/g, '-')
.replace(/(^-|-$)/g, '');
return `<h${depth} id="${id}">${text}</h${depth}>`;
};
renderer.code = function({ text, lang }) {
if (lang === 'mermaid') {
return `<pre class="mermaid">${text}</pre>`;
}
const langClass = lang ? ` class="language-${lang}"` : '';
const escaped = text
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
return `<pre><code${langClass}>${escaped}</code></pre>`;
};
marked.setOptions({ breaks: true, gfm: true, renderer: renderer });
const html = marked.parse(md);
bookContent.innerHTML = html;
document.querySelectorAll('.book-content pre code[class*="language-"]').forEach(block => {
hljs.highlightElement(block);
});
if (document.querySelector('.mermaid')) {
mermaid.run({ nodes: document.querySelectorAll('.mermaid') });
}
bookHeader.style.display = 'block';
bookHeader.innerHTML = `
<div class="section-label">${label}</div>
<h1>${title}</h1>
${subtitle ? `<p class="subtitle">${subtitle}</p>` : ''}
<div class="meta">
<span class="badge"><span class="dot"></span> ${title}</span>
<span>~${(words / 1000).toFixed(0)}K words</span>
</div>
`;
content.style.display = 'block';
bookFooter.style.display = 'block';
loading.style.display = 'none';
document.querySelectorAll('.book-content table').forEach(t => {
const wrapper = document.createElement('div');
wrapper.style.overflowX = 'auto';
t.parentNode.insertBefore(wrapper, t);
wrapper.appendChild(t);
});
document.querySelectorAll('.book-content a[href^="#"]').forEach(a => {
a.addEventListener('click', function(e) {
e.preventDefault();
const id = this.getAttribute('href').replace('#', '');
const el = document.getElementById(id);
if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });
});
});
} catch (err) {
loading.style.display = 'none';
error.style.display = 'block';
errorMsg.textContent = err.message || 'Unknown error loading the publication.';
console.error('odek viewer error:', err);
}
}
init();
})();
</script>
<!-- Service Worker -->
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js').catch(function() {});
}
</script>
</body>
</html>