โมเดลทีม AI · Multi-Agent Mental Model
เข้าใจโมเดลจิตของทีม AI: Codex คือ stateless (ทำแล้วทิ้ง) ส่วน Oracle คือ stateful (มี memory+soul ผูก project) · Understanding the AI team mental model: Codex is stateless (fire-and-forget), Oracle is stateful (memory+soul bound to a project).
Stateless vs Stateful
Codex = stateless: ทำงานแล้วทิ้ง เหมาะกับงาน ad-hoc และ research ไม่จำ context ข้าม session
Oracle = stateful: มี memory + soul ผูกกับ project มีความต่อเนื่อง เรียนรู้จากงานก่อนหน้า
Codex is stateless: fire-and-forget, suited for ad-hoc tasks and research with no cross-session memory. Oracle is stateful: memory and soul bound to a project, with continuity and learning from prior work.
Flow จริง: Discord → Cross Code → Crew Master → ทีม Codex
การไหลของงานจริงในระบบ: Discord → Cross Code (Oracle กลาง ทำหน้าที่ proxy) → Crew Master (orchestrator จัดการทีม) → ทีม Codex ย่อย (แต่ละตัวรับผิดชอบ slice เช่น ถิง/ที/ESP firmware) → ผลลัพธ์กลับ Discord
Real-world flow: Discord → Cross Code (central Oracle acting as proxy) → Crew Master (orchestrator managing the team) → Codex sub-teams (each handling a slice like thing/tee/ESP firmware) → results back to Discord.
กฎ: ห้าม Codex คุยข้ามกันตรง
กฎเข้มงวด: Codex ห้ามคุยข้ามกันโดยตรง ต้องผ่าน Cross Code เสมอ เพื่อป้องกัน context leak และ state corruption Crew Master ทำหน้าที่ "ส่องจอ" อ่าน memory เพื่อ verify และ sync state ข้ามตัว
Strict rule: Codex agents must never talk to each other directly — always route through Cross Code. This prevents context leaks and state corruption. Crew Master "watches screens" and reads memory to verify and sync state across agents.
Consensus และ Async
Consensus pattern: ถ้ามี 10 ตัว ผิด 1 → แก้ตัวนั้น ที่เหลือไม่กระทบ คุยจน converge
Async pattern: งานสำรวจ spawn หลายตัวพร้อมกัน กลับมาดูทีหลังได้ งาน critical ต้องเขียน scope/IO ชัดเจน ทำเป็น Epic ปล่อยให้กระจายงานเอง
Consensus: if 10 agents and 1 is wrong, fix that one — the rest are unaffected; discuss until convergence. Async: survey tasks spawn multiple agents in parallel and check later. Critical work needs clear scope/IO, structured as Epics that distribute themselves.