TOS Stack — Every Tool, Every Layer
_This is part of the Building TrendAI OS series. New here? Start with the Introduction Series: [LINK]_
我今天早上坐下来数了数。
六个层。十项原则。八项规程。五个业务领域。二十多个熟悉的工具——每一个都是你已经在使用或至少听说过的。
总计:116 个组件已投入生产。29 个已规划并排队。8 个仍处于概念阶段。
我一月份绘制的五年路线图显示,我们将在 2030 年达到这个阶段。
现在是 2026 年 5 月。
一个技术栈,两种视角
TOS 不仅仅是一堆工具的堆砌。它是一个真正的技术栈,有两种观察方式。
第一种视角是垂直技术栈——从底层到顶层,六个清晰的层。底部是 Substrate,顶部是 BUD Dashboard。这是 AI Operating System 下方的 OS。
第二种视角是水平叠加——五个业务(TrendAI、HappyHome、MaxLearn、TrendMedia,以及我的个人 utilities)位于核心技术栈之上,实际创造价值。
只有当第一种视角稳固时,你才能充分感受到第二种视角。我已同时构建两者十五周了。
Layer 0 — Substrate
大多数独立创始人会跳过的“不性感”的基础。
三台 OCI ARM 机器(s05、s06、s07)通过 Tailscale 网格连接。OCI Vault 作为 30 多个 secrets 的单一事实来源。Cloudflare Pages 提供十三个生产站点。Cloudflare Access 保护 operator 工具。PostgreSQL 安全地位于网格之后。一切都在特意精简的主机上通过 Docker 运行。
两项原则管理这一层:Thin-host——机器只做五件事,别无其他。Web design defaults——每个站点从第一天起就配备 back-to-top、自定义 favicon 和 theme switcher。
这是承重层。跳过它,上面的一切都只是“表演”。
Horizontal brand-icon grid, six tiles in a row with thin teal border and white label below each. Use Simple Icons (CC0) for: Oracle (OCI Vault + ARM compute), Tailscale (mesh network), Cloudflare (Pages + Access + D1), GitHub (multi-account), PostgreSQL (postgres-tos on s06), Docker (thin-host runtime). Section header above the row: “Layer 0 — Substrate”. Caption underneath: “The OS underneath the AI OS.”
Layer 1 — Reasoning Kernel
“大脑”。一个经过深思熟虑的多提供商设置,没有 lock-in。
Claude(Opus 4.7 用于解决难题,Sonnet 4.6 用于日常工作,Haiku 用于廉价任务)。Gemini 2.5 Flash 作为高容量主力。OpenAI 用于特定任务。此外,s07 上通过 Ollama 运行两个本地模型。
每个任务在运行时选择其模型。目前还没有花哨的 router——只是诚实、务实的选择。能力优先。成本优化其次。
Brand-icon grid, second floor — four tiles in a row with thin violet border. Simple Icons for: Anthropic (Claude), Google Gemini, OpenAI, Ollama (local model serving). Section header: “Layer 1 — Reasoning Kernel”. Caption: “Multi-provider by design. Per-call routing. No vendor lock-in.”
Layer 2 — Memory & Data
agent 记住我们是谁的地方。
两个 Supabase 项目。三个自托管的 PostgreSQL 数据库。Pinecone 用于 vectors。一个在 tube.trendai.au 上干净的 Astro reader,使 Knowledge Engine 真正可用。
以及最被低估的部分:一个包含纯 markdown 文件的文件夹——resources.md、secrets-index.md、server-map.md。Git 跟踪。人类可读。agent 可读。仍然是整个技术栈中最强大的记忆系统。
Brand-icon grid, third floor — five tiles in a row with thin blue border. Simple Icons for: Supabase (×2 — show one tile with “×2” badge for TOS + Articles), PostgreSQL (self-hosted), Pinecone (vectors), Astro (Knowledge Engine reader), Markdown (the registries — use the markdown stack-of-lines logo). Section header: “Layer 2 — Memory & Data”. Caption: “Three managed databases. Three self-hosted. And a folder of markdown that runs the whole thing.”
Layer 3 — Orchestration
“神经系统”。
四个 n8n 实例(scheduler、automation、sandbox、dev)。共享加密密钥。可恢复的 workflow。表单输入将所有内容安全地放入 Postgres,然后才由其他任何东西处理。
这里诞生了关键原则:No Google Sheets in production 和 Resumable pipelines——每一次失败都必须可恢复。
Brand-icon grid, fourth floor — five tiles in a row with thin emerald border. Simple Icons for: n8n (show one big tile with “×4” badge to indicate four instances), PostgreSQL (postgres-tos backend), HubSpot (CRM destination), Brevo (transactional email), Webhooks (a generic webhook/relay glyph as the entry point). Section header: “Layer 3 — Orchestration”. Caption: “Four n8n instances. One encryption key. Every workflow resumable.”
Layer 4 — Agents
“团队”。
目前主要的 operator 是 Claude Code——深度驻留在 tos-docs、registries 和 doctrines 中。重新介绍的成本已消除。指令保持简短,因为 agent 已经了解业务。
对我来说,hands-free 意味着什么。不是语音模式。不是靠在椅子上。而是Repeat-free。
s07 上是内容团队:FastAPI、ComfyUI + Flux、Kokoro TTS、Podcastfy、PaddleOCR,以及通过 OpenClaw 连接 Trinity、Neo、Jobs 和 Woz 的 Discord channels。
下一步是自主任务执行。
Brand-icon grid, fifth floor — five tiles in a row with thin amber border. Simple Icons for: Anthropic/Claude (operator agent), Discord (persona channels), FastAPI (s07 runtime), Python (adapters + glue), Mermaid (diagram rendering). Add a small caption-row underneath naming the non-iconic components: “+ ComfyUI · Flux · Kokoro TTS · Podcastfy · PaddleOCR · openclaw”. Section header: “Layer 4 — Agents”. Caption: “Operator-driven today. Resident, not amnesic. Autonomy is the next layer.”
Layer 5 — BUD Dashboard
“驾驶舱”。我在这里观察而不是埋头苦干。
bud.trendai.au——一个干净的 Next.js 应用,部署在 Cloudflare Pages 上,由 Cloudflare Access 保护。它显示 resources、agile projects、regression status、media library 和 ops summaries。当我不在办公桌旁时,我会在手机上打开它,立即查看进展。
这是创始人进行指导,而非操作的地方。
Brand-icon grid, top floor — four tiles in a row with thin gold border. Simple Icons for: Next.js (BUD frontend), Cloudflare Pages (hosting), Cloudflare (Access gate), TypeScript (codebase). Underneath the row, a thin badge strip showing the eight modules as small text pills: /resources · /agile-projects · /regression · /remote · /ops · /media · /monitoring (planned) · /backup (planned). Section header: “Layer 5 — BUD Dashboard”. Caption: “Where the founder watches, not operates.”
The Overlay
十项约束性doctrines。八项有文档记录的 SOPs。八项对话disciplines(“EOD”、“Start Sprint 17”等)。
以及潜在的超能力:Phase 4 Fusion Growth——当天实现从想法到生产。上周五在 `taikim-finance` 上得到了验证:从想法到上线一个由 D1 支持的个人费用 tracker,只用了三个小时,它取代了我多年来使用的四千行 spreadsheet。现在它正在冷却,成为我们默认的工作方式。
Wide concentric-rings diagram. Centre: a small isometric stack-of-six-floors silhouette labelled “TOS core (6 layers)”. First ring around it labelled “cross-cutting overlay” with four sector icons: a gavel for “Doctrines × 10”, a checklist for “SOPs × 8”, a keyboard glyph for “Disciplines × 8”, and a spark/lightning for “Phase 4 latent”. Second outer ring labelled “venture surfaces” with five logos around the perimeter: TrendAI, HappyHome, MaxLearn, TrendMedia, Tai-personal — pull each from `bau/brand-templates//logos/`. Dark navy background. Caption: “The 5+1 stack at the centre. Doctrines and SOPs keep it alive in contact with reality. Venture surfaces are what customers actually see.”
The Honest Count
116 个已构建。29 个已规划。8 个概念。
三周前,这个比例是颠倒的。现在我们交付的速度比规划的速度更快。过去几个 sprints 的 doctrines 和 substrate 工作改变了一切。
这里没有华丽的 demo。
OS 本身就是 demo。
如果你正在构建自己的技术栈,请做这个练习:逐层写下每个组件。诚实地计数。然后问问自己——什么才是真正稳固的,什么仍然只是希望?
数字会告诉你真相。
Feature Image: A wide editorial illustration in modern flat style with cinematic depth. Centre composition: an isometric six-floor stack rising from a dark navy ground, each floor a different vibrant glow — teal (Substrate), violet (Reasoning Kernel), deep blue (Memory & Data), emerald (Orchestration), amber (Agents), gold (BUD Dashboard). On each floor, tiny glowing brand-icon silhouettes hint at the tools living there. Around the stack, a translucent ring labelled with five small venture banners: TrendAI, HappyHome, MaxLearn, TrendMedia, Tai-personal. A subtle overlay number floats above the whole structure: “116 built · 29 planned”. Mood: confident, builder’s-pride, optimistic. No readable text inside the layers, just hints. 16:9 aspect.