← all documents · raw markdown · 22 KB

KAI — AI WORKING MEMORY (read this FIRST, in full, every session)

> This is the compact memory for AI assistants (Claude/Cowork). It is short ON PURPOSE so it

> survives a context-window compaction. The DEEP archive is The KAI Codex.md (multi-MB — GREP it,

> never read it whole, never recursive-grep the tree). Flow each session: (1) read THIS file fully,

> (2) grep -a the Codex for the feature you're touching, (3) confirm against the real file.

>

> KEEP THIS FILE CURRENT. When you finish a piece of work: add one line to "Recent work",

> update "Open issues", and (for code) bump the Codex + Cargo.toml. This file is only useful if the

> last AI updated it.

---

Who / what / constraints

fleet. Be conservative with GPU/CPU; prefer CPU/light options; account for other processes.

the fleet, sign in to the dashboard, hear audio, use a GPU, drive two devices, reach [internal service]/LAN.

→ Ship changes guarded behind a flag or with a fallback, and have the owner verify.

(cloudflared). Origin binds [internal service]. Real auth + 2FA + role gate + in-house guard modules exist.

How to find things (memory-first)

1. Read this file. 2. grep -ain "<feature>" "The KAI Codex.md". 3. Open the file the Codex names.

Feature → file map (where things ACTUALLY live)

| Feature | File |
|---|---|
| Finance page — bills, statements, cash forecast, month nav (_calFin*), Teller bank sync | oracle-os/shell/desktop.js |
| Oracle OS desktop + apps (Notes, Contacts, Calendar, Files, Finance); calendar/finance sync store _cal via [internal endpoint] | oracle-os/shell/desktop.js (served at /oracle-os/) |
| Dashboard core UI, account state sync (_syncKeys, [internal endpoint]), radio, Stripe billing | oracle-core.js, oracle.html |
| Server: /api/*, static-file allowlist, /ws/games, auth/role gate | [internal module] |
| Website voice pipeline (STT→LLM→TTS, logs [GroqVoice/Leo]); local-TTS hook at LOCAL_TTS_URL | [internal module] |
| Leo Discord bot (persona, voice turn, ack filler) | [internal module] |
| Local voice: Chatterbox server (:5111, cloned voice) / Kokoro read-aloud (:8123) | [internal module], [internal module] |
| Arcade games (pool = oracle-games-pool.js) | oracle-games-*.js |
| Browser KAIVERSE 3D | kaiverse.js, kaiverse-graphics.js |
| Fleet launch / supervisor | Start-KAI.ps1, ecosystem-manager.mjs |
| Secrets + tuning env | [internal module] (NEVER print secret values) |

Open issues / TODO (newest first)

KAI brain / BitNet — VERIFIED runtime state (2026-09-07, supersedes Codex §14.44 history)

Recent work (newest first — one line each; older detail is in the Codex)

Hard gotchas (these have burned us)