-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphilosophy.html
More file actions
499 lines (449 loc) · 19.6 KB
/
Copy pathphilosophy.html
File metadata and controls
499 lines (449 loc) · 19.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>connor-stack — Manifesto</title>
<meta name="description" content="How Connor Gallic uses AI. The design philosophy: small, composable scripts, local files, and agent-driven setup prompts.">
<link rel="stylesheet" href="index.css">
<style>
.philosophy-layout {
display: grid;
grid-template-columns: 250px 1fr;
gap: 3rem;
margin-top: 2rem;
margin-bottom: 4rem;
}
@media (max-width: 768px) {
.philosophy-layout {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.sidebar {
display: none;
}
}
/* Sidebar Navigation */
.sidebar {
position: sticky;
top: 2rem;
align-self: start;
}
.sidebar-title {
font-family: var(--font-display);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-bottom: 1rem;
}
.sidebar-menu {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.sidebar-link {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: color var(--transition-speed);
}
.sidebar-link:hover, .sidebar-link.active {
color: var(--accent-cyan);
}
/* Manifesto Content */
.manifesto-body {
display: flex;
flex-direction: column;
gap: 3rem;
}
.section-title {
font-size: 2rem;
font-weight: 800;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--card-border);
padding-bottom: 0.5rem;
}
.manifesto-text {
font-size: 1.05rem;
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.manifesto-text strong {
color: var(--text-primary);
}
/* Interactive Principle Cards */
.principle-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 12px;
padding: 2rem;
margin-bottom: 2rem;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.principle-num {
font-family: var(--font-display);
font-size: 0.85rem;
font-weight: 700;
color: var(--accent-purple);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.25rem;
}
.principle-header {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 1rem;
}
.principle-toggle-row {
display: flex;
background: var(--code-bg);
padding: 0.25rem;
border-radius: 8px;
margin-bottom: 1.25rem;
width: fit-content;
border: 1px solid var(--card-border);
}
.toggle-btn {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 0.4rem 1rem;
font-family: var(--font-display);
font-size: 0.8rem;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
transition: all var(--transition-speed);
}
.toggle-btn.active {
background: var(--background);
color: var(--text-primary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.toggle-content {
display: none;
font-size: 0.95rem;
line-height: 1.6;
}
.toggle-content.active {
display: block;
animation: fadeIn var(--transition-speed) ease-out;
}
.pain-box {
border-left: 3px solid var(--accent-pink);
padding-left: 1.25rem;
color: var(--text-secondary);
}
.fix-box {
border-left: 3px solid var(--accent-cyan);
padding-left: 1.25rem;
color: var(--text-primary);
}
.fix-box code {
background: var(--code-bg);
padding: 0.15rem 0.35rem;
border-radius: 4px;
font-family: monospace;
font-size: 0.85rem;
}
/* Is / Is Not Grid */
.comparison-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-top: 1.5rem;
}
@media (max-width: 600px) {
.comparison-grid {
grid-template-columns: 1fr;
}
}
.comparison-card {
background: var(--code-bg);
border: 1px solid var(--card-border);
border-radius: 8px;
padding: 1.5rem;
}
.comparison-title {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
margin-bottom: 0.75rem;
}
.comparison-card.is .comparison-title { color: var(--accent-cyan); }
.comparison-card.is-not .comparison-title { color: var(--accent-pink); }
.comparison-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--text-secondary);
}
.comparison-list li::before {
content: "• ";
color: var(--text-muted);
margin-right: 0.25rem;
}
</style>
</head>
<body>
<div class="layout-container">
<!-- Navigation bar -->
<header class="nav-header" role="banner">
<a href="index.html" class="brand" id="nav-brand-link">
<span class="brand-accent">connor-stack</span>
</a>
<nav class="nav-actions" role="navigation" aria-label="Main Navigation">
<a href="philosophy.html" class="nav-link active" id="nav-philosophy-link">Manifesto</a>
<a href="tour.html" class="nav-link" id="nav-tour-link">Tour</a>
<a href="cmo-simulator.html" class="nav-link" id="nav-simulator-link">Simulator</a>
<a href="spokes.html" class="nav-link" id="nav-spokes-link">Spokes</a>
<button class="theme-toggle-btn" id="theme-toggle-button" aria-label="Toggle color theme" title="Toggle dark/light mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="theme-icon">
<circle cx="12" cy="12" r="4"></circle>
<path d="M12 2v2"></path>
<path d="M12 20v2"></path>
<path d="M5 5l1.5 1.5"></path>
<path d="M17.5 17.5L19 19"></path>
<path d="M2 12h2"></path>
<path d="M20 12h2"></path>
<path d="M5 19l1.5-1.5"></path>
<path d="M17.5 6.5L19 5"></path>
</svg>
</button>
</nav>
</header>
<!-- Main Content Area -->
<div class="philosophy-layout">
<!-- Sidebar navigation -->
<aside class="sidebar" role="complementary">
<h2 class="sidebar-title">Sections</h2>
<ul class="sidebar-menu">
<li><a href="#manifesto" class="sidebar-link active">The Manifesto</a></li>
<li><a href="#thesis" class="sidebar-link">The Thesis</a></li>
<li><a href="#principles" class="sidebar-link">Principles</a></li>
<li><a href="#scope" class="sidebar-link">What it is / is not</a></li>
</ul>
</aside>
<!-- Main Content -->
<main role="main" class="manifesto-body">
<section id="manifesto" aria-labelledby="heading-manifesto">
<span class="hero-tag">Design Principles</span>
<h1 class="section-title" id="heading-manifesto">How I do AI</h1>
<p class="manifesto-text">
I keep watching smart people build elaborate agent systems that collapse the second they touch real work. A multi-step planner. A vector store. A retrieval-augmented synthesizer. An orchestrator. A memory layer. Eight microservices behind a custom protocol. By month three they're back to pasting things into ChatGPT.
</p>
<p class="manifesto-text">
The bug is not the LLM. The bug is the architecture they wrapped around it.
</p>
<p class="manifesto-text">
This repository is the architecture I actually use. The pieces are boring on purpose. But they work on a Tuesday, they work on a flight, and they work six months from now when I've forgotten everything about how I built them. That is the bar.
</p>
</section>
<section id="thesis" aria-labelledby="heading-thesis">
<h2 class="section-title" id="heading-thesis">The Thesis</h2>
<p class="manifesto-text">
Small, opinionated, composable pieces beat one big agent. Always. Every time.
</p>
<p class="manifesto-text">
To keep operations light, we run three always-on agents (such as the <strong>Beast</strong> agent running on the <strong>Hermes</strong> VPS). These agents do not run monolithic planning loops; they use <strong>OpenClaw</strong> or <strong>Hermes</strong> strictly as a thin harness/message-transport layer. For writing code, modifying files, and refactoring scripts, we pair-program directly with <strong>Codex Gemini</strong>. This separates the always-on monitoring loop from active code authoring.
</p>
<p class="manifesto-text">
A big agent — any single program that tries to plan, retrieve, decide, write, and ship — is a load-bearing wall in a building you are still designing. You cannot move it without bringing the roof down. You cannot see inside it. You cannot reason about why it did what it did three weeks ago.
</p>
<p class="manifesto-text">
A bunch of small scripts that each do one thing, log what they did, and hand off via plain files? You can move those. You can read them. You can rebuild them in an afternoon if you have to.
</p>
</section>
<section id="principles" aria-labelledby="heading-principles">
<h2 class="section-title" id="heading-principles">Principles I actually follow</h2>
<!-- Principle 1 -->
<div class="principle-card">
<span class="principle-num">Principle 1</span>
<h3 class="principle-header">Memory belongs in plain text, not in your context window</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p1-fix">The Fix</button>
<button class="toggle-btn" data-target="p1-pain">The Pain</button>
</div>
<div id="p1-fix" class="toggle-content active fix-box">
Real memory lives in files you can grep. For me, that is <code>events.db</code> (one SQLite events table) and <code>~/.claude/projects/<project>/memory/MEMORY.md</code>. If I delete my context window, the brain loses nothing.
</div>
<div id="p1-pain" class="toggle-content pain-box">
Context windows are not memory. They are a scratchpad. They evaporate when the session ends, get compacted, or lie to you.
</div>
</div>
<!-- Principle 2 -->
<div class="principle-card">
<span class="principle-num">Principle 2</span>
<h3 class="principle-header">One repository per fully-featured thing</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p2-fix">The Fix</button>
<button class="toggle-btn" data-target="p2-pain">The Pain</button>
</div>
<div id="p2-fix" class="toggle-content active fix-box">
Keep tools modular. If a stranger can clone it, run it, and get value in under an hour without the rest of my setup, it earns its own repository. Hub and spokes linked by references.
</div>
<div id="p2-pain" class="toggle-content pain-box">
Monolithic conglomerates get messy fast. When the marketing harness needs to ship, the brain refactor blocks it.
</div>
</div>
<!-- Principle 3 -->
<div class="principle-card">
<span class="principle-num">Principle 3</span>
<h3 class="principle-header">Skills, hooks, and slash commands beat massive system prompts</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p3-fix">The Fix</button>
<button class="toggle-btn" data-target="p3-pain">The Pain</button>
</div>
<div id="p3-fix" class="toggle-content active fix-box">
Claude Code primitives: skills (markdown loaded on demand), hooks (deterministic pre/post commands), and slash commands (named entry points). Modular and debuggable.
</div>
<div id="p3-pain" class="toggle-content pain-box">
Long system prompts are monolithic load-bearing walls. Every new behavior fights every other behavior, making debugging behavior failure impossible.
</div>
</div>
<!-- Principle 4 -->
<div class="principle-card">
<span class="principle-num">Principle 4</span>
<h3 class="principle-header">Your Claude finishes the setup</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p4-fix">The Fix</button>
<button class="toggle-btn" data-target="p4-pain">The Pain</button>
</div>
<div id="p4-fix" class="toggle-content active fix-box">
I ship structured markdown prompts. You paste one into your Claude. Your agent reads the files, asks what you are trying to do, and handles the local environment setup.
</div>
<div id="p4-pain" class="toggle-content pain-box">
Fat installers and automation scripts break across environments in silent, un-reproducible ways.
</div>
</div>
<!-- Principle 5 -->
<div class="principle-card">
<span class="principle-num">Principle 5</span>
<h3 class="principle-header">The brain ingests the world; agents act on what it noticed</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p5-fix">The Fix</button>
<button class="toggle-btn" data-target="p5-pain">The Pain</button>
</div>
<div id="p5-fix" class="toggle-content active fix-box">
Decouple ingest from execution. Build background scoring scripts (like daily paper filters) that drop data into the SQLite database. The runtime agent just reads the filtered records.
</div>
<div id="p5-pain" class="toggle-content pain-box">
Single agents watching everything and deciding on the fly. They starve from lack of feed data or bloat the context window.
</div>
</div>
<!-- Principle 6 -->
<div class="principle-card">
<span class="principle-num">Principle 6</span>
<h3 class="principle-header">Subagents for parallel work, not for linear tasks</h3>
<div class="principle-toggle-row">
<button class="toggle-btn active" data-target="p6-fix">The Fix</button>
<button class="toggle-btn" data-target="p6-pain">The Pain</button>
</div>
<div id="p6-fix" class="toggle-content active fix-box">
Use parallel subagents for isolated jobs (like generating three different layout drafts). If two tasks can run on different days without shared state, they are subagent-ready.
</div>
<div id="p6-pain" class="toggle-content pain-box">
Splitting linear step-by-step logic across subagents. They lose track of each other, forcing you to spend more time stitching than coding.
</div>
</div>
</section>
<section id="scope" aria-labelledby="heading-scope">
<h2 class="section-title" id="heading-scope">What this is, and isn't</h2>
<div class="comparison-grid">
<div class="comparison-card is">
<h3 class="comparison-title">What it is</h3>
<ul class="comparison-list">
<li>A curated portal of proofs of concept</li>
<li>A repository catalog of modular tools</li>
<li>Setup prompts for agent-driven assembly</li>
<li>Chronological architecture guidelines</li>
</ul>
</div>
<div class="comparison-card is-not">
<h3 class="comparison-title">What it is not</h3>
<ul class="comparison-list">
<li>A monolithic application framework</li>
<li>A turnkey package installer</li>
<li>A managed software service</li>
<li>A prescriptive playbook for every environment</li>
</ul>
</div>
</div>
</section>
</main>
</div>
<!-- Footer Area -->
<footer class="footer" role="contentinfo">
<p class="footer-text">Built by Connor Gallic. Code licensed MIT. Personal configurations and proofs of concept for remixing.</p>
<div class="footer-links">
<a href="philosophy.html" class="footer-link">Philosophy</a>
<a href="tour.html" class="footer-link">Architecture Tour</a>
<a href="spokes.html" class="footer-link">Spoke Registry</a>
<a href="https://github.com/cgallic/connor-stack" class="footer-link" target="_blank" rel="noopener">GitHub</a>
</div>
</footer>
</div>
<script>
// Theme control using light-dark() CSS reactivity and color-scheme properties
const themeBtn = document.getElementById('theme-toggle-button');
let currentTheme = localStorage.getItem('theme');
if (!currentTheme) {
currentTheme = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
}
document.documentElement.style.colorScheme = currentTheme;
updateThemeIcon(currentTheme);
themeBtn.addEventListener('click', () => {
const isDark = document.documentElement.style.colorScheme === 'dark';
const nextTheme = isDark ? 'light' : 'dark';
document.documentElement.style.colorScheme = nextTheme;
localStorage.setItem('theme', nextTheme);
updateThemeIcon(nextTheme);
});
function updateThemeIcon(theme) {
const isDark = theme === 'dark';
themeBtn.querySelector('.theme-icon').innerHTML = isDark
? `<circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="M5 5l1.5 1.5"></path><path d="M17.5 17.5L19 19"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="M5 19l1.5-1.5"></path><path d="M17.5 6.5L19 5"></path>`
: `<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>`;
}
// Principle Tabs Toggle
document.querySelectorAll('.principle-card').forEach(card => {
const buttons = card.querySelectorAll('.toggle-btn');
const contents = card.querySelectorAll('.toggle-content');
buttons.forEach(btn => {
btn.addEventListener('click', () => {
buttons.forEach(b => b.classList.remove('active'));
contents.forEach(c => c.classList.remove('active'));
btn.classList.add('active');
const targetId = btn.getAttribute('data-target');
card.querySelector(`#${targetId}`).classList.add('active');
});
});
});
// Sidebar highlight on scroll
const sections = document.querySelectorAll('main section');
const navLinks = document.querySelectorAll('.sidebar-link');
window.addEventListener('scroll', () => {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop;
if (pageYOffset >= sectionTop - 120) {
current = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href').substring(1) === current) {
link.classList.add('active');
}
});
});
</script>
</body>
</html>