☕
shinae.workCoffee Super-Agent OS

An agent OS for aeroponic coffee — and the carbon numbers behind it. 雾化咖啡的智能体操作系统,以及它背后的碳数字。

One sentence in, a Router decides whether it is work, a Worker runs it in its own directory with a bounded tool set, and the result returns to where it came from — the panel, or a Feishu chat. Every number lands in an append-only hash chain you can recompute. 一句话进来,Router 判断是不是该干的活,Worker 在自己的目录里带受限工具执行,结果回到它来的地方; 每个数字都落进可重算的追加式哈希链。

ROUTER / WORKER

Two layers, one writer. Only the Router creates Tickets; a Worker may only report.

双层架构,单一写者:只有 Router 能建工单,Worker 只能报告。

HASH-CHAINED LEDGER

Each run appends rows linked by SHA-256. A recompute is a new revision, never an edit.

每次核算追加一串 SHA-256 链行;重算是新版本,永不改写旧行。

FEISHU LOOP

Commands and questions in a chat open Tickets; cards and files come back to the same chat.

群里下指令 → 建单 → 卡片与附件回到同一条会话。

Run it

git clone https://github.com/erikcywong/shinae.work
cd shinae.work
python app/server.py            # zero dependencies, SQLite state
python app/server.py --live     # workers planned by a model

The panel asks for a local access token on first run (printed at startup, stored in var/auth.env). python tests/smoke.py node tests/ui_smoke.mjs

This page is static. GitHub Pages cannot run the Python kernel, so the interactive OS runs on your machine (or a small server); this site is the project page and documentation.
本页是静态站点:GitHub Pages 不跑 Python,内核在你自己的机器或服务器上运行。

Second vertical: warehouse

The same kernel now runs coffee lots: green leaves FIFO, roasted leaves FEFO, expired and quarantined lots can never be picked, and a quantity only changes after plan → critic → dry-run → a second person → execute → verify. It works with Feishu rather than replacing it: cards and commands live in the chat, the rules and the hash chain live in the kernel. See the snapshot and the Feishu collaboration model → 同一个内核跑咖啡仓存:绿咖啡 FIFO、熟豆 FEFO,过期/隔离批次不出库;改数量必须过计划 → Critic → dry-run → 第二个人 → 执行 → 核验。 它与飞书是协作而非替代:卡片与指令在群里,规则与哈希链在内核里。

Third vertical: fog cultivation

The same kernel now runs phenology: stages form a DAG (canopy shaping runs in parallel with root renewal, so float actually exists), the critical path is recomputed from remaining durations, and the three irreversible acts — advance a stage, change a recipe, harvest — each pass a deterministic critic (bounds, step limit, sample freshness, minimum days, evidence window) and a second signature. A harvest files a warehouse inbound draft; it does not merge the two approvals. See the snapshot and the gate log → 第三个垂直域跑物候:阶段构成 DAG(树冠整形与根系更新并行,浮动才真实存在),关键路径按剩余工期重算; 三个不可逆动作——推进阶段、改配方、采收——都要过确定性 Critic(边界、单步上限、样本新鲜度、最短天数、证据窗口)与第二个签名。 采收只生成仓存入库草稿,两个审批不合并。

What it is not