Back to Kun Chen

L8 Principal Building a Full Stack App From Scratch

Kun ChenJuly 27, 20261h 40m
Topics74
Project Introduction and Setup0:00Tool Environment Setup0:30First Mate Calm Mode3:30Edd's Wallet Project Requirements5:32Market Research and Technical Planning8:00Parallel Agent Execution11:32Fast Mode Activation13:31Agent Observability14:31Market Research Results15:30Technical Research Findings18:31Backend Architecture Concerns19:31Lavish Planning Tool20:31Parallel Work Streams23:32Educational Features from Market Research26:01Agent Management Interface29:00Agent Search Pane29:26Lavish Artifact and Backend Review30:00Cost Analysis and Self-Hosting Concerns30:31Feedback on Cost Assumptions31:32Architecture Diagram and Authority Boundary32:33Audit Events and Scope Decisions33:30Authentication and Identity Management34:30Parent-Child Authentication Flow35:30Interactive Lavish Features37:00First Mate and Crewmate Workflow37:31Real Prototype Request39:01Revised Backend Recommendations40:30Backend Decision and Confidence42:00Interactive Wireframes42:30Prototype Controls and Features43:00Family Creation and Device Pairing43:31Parent Mode and PIN Access44:30UX Feedback Points45:33Currency and Activity Display Issues46:00PRD Documentation Request47:31Context Window Management48:00PI OpenAI Server Compaction Plugin49:00GitHub Repository Setup49:31No Mistakes Tool Philosophy51:30Repository Naming Correction53:00Repository Contents and Purpose55:00Design System Creation56:00Design Requirements57:00Sonnet Model Selection58:30Parallel Development Strategy59:30Atomic Vault for Secrets Management1:00:01API Token Usage1:01:31Autonomic Vault for Secret Management1:02:10Parallel Agent Work Streams1:03:31Frontend Design Process1:05:31App Icon Design1:09:33Apple Developer Setup1:10:06VPS Provisioning1:11:00Design Iterations and Export1:12:01Context Window Management1:16:01Backend Repository Setup1:17:30Apple App Registration1:18:31End-to-End Testing Strategy1:20:00Environment Strategy1:22:30Implementation Tracks1:23:30Domain and DNS Setup1:24:01Backend Deployment Complete1:27:00Frontend-Backend Integration Issue1:29:00Simulator Testing1:30:02Parallel Agent Dispatch1:31:31Backend Architecture Review1:33:00Backend Architecture Review1:34:09Infrastructure and Routing1:35:02API Endpoints1:36:01Authentication and Authorization Flow1:36:32Database Schema1:37:00End-to-End Testing1:38:02Data Persistence and Cloud Storage1:39:01Production Deployment and Project Completion1:39:31
In a Nutshell

L8 principal Kun built a complete iOS allowance-tracking app called "Edie's Wallet" from scratch in one session using GPT-5.6 Luna agents orchestrated through Herder and First Mate. He deployed a $5.50/month VPS backend with PostgreSQL and Fastify, implemented Apple Sign-In, and produced a working SwiftUI app that syncs parent-controlled balances to a child read-only view. The workflow relied on parallel agent streams, Lavish interactive planning artifacts, Autonomic Vault for secret authorization, and server-side context compaction to maintain continuity across a 272k-token window.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

Kun, an L8 principal engineer who worked at Meta, Microsoft, and Atlassian, begins building a real project from scratch using his agentic engineering workflow. The project stems from a previous video that received 600,000 views, with viewers requesting a demonstration of building an actual application.

Starting from an empty terminal, Kun launches Herder as his replacement for T-Max to manage agent sessions. He then sets up First Mate, an open source project he created, which allows the captain to communicate with only one agent (the first mate) while the first mate handles all task juggling, reducing cognitive load and context switching.

First Mate is launched using the PI agent harness with the Luna model (GPT 5.6 Luna on X high reasoning level) instead of the default GPT 5.6. The ground rule is established that every task and crew mate will be dispatched to PI agents running this specific model configuration.

Kun activates calm mode in First Mate, which hides all tool calls, scripts, and technical noise, displaying only prompts and responses. This approach works well with modern models where steering is rarely needed, unlike older less intelligent models where observing tool calls was necessary to catch mistakes.

The project is named Edd's Wallet - an app for children to manage allowances. Current methods involve writing in notebooks or relying on memory, which becomes difficult with multiple rules for allowances and spending. The app serves as a balance tracker while teaching basic financial concepts like balance, loans, credit card mechanics, payments, and interest on savings.

Sign in to read the full notes

Get access to AI-generated notes, topic timestamps, and more.