
Stop acting as a manual copy-paste courier between your editor and a browser chatbox. In Lesson 1.1 of Advanced Vibe Coding, we map the complete four-layer Software Factory architecture and watch three isolated git worktree branches verify and serve a live full-stack application (ShipPulse) simultaneously inside tmux.
What you'll learn
.agents/ files (AGENTS.md, hooks.json, SKILL.md, mcp_config.json) keep your workflow portable across Google Antigravity CLI, Claude Code, and Codextmux + git worktree isolation, Context & Control, self-healing Ralph Wiggum verification loops, and a modern starter cloud production stack (GitHub Actions, Supabase, Vercel, Cloudflare)Key terms
Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Pick your terminal engine once and keep your engineering habits portable across tools. In Lesson 1.2 of Advanced Vibe Coding, we compare late-2026 terminal coding agents by architecture and cost, trace how Google's native Go-based Antigravity CLI (agy) replaced legacy TypeScript Gemini CLI, inspect official headless automation flags (-p, --output-format, --json-schema), walk through a real open-standard .agents/ workspace on disk, and compare individual entry tiers and Pro plans across providers.
What you'll learn
agy) sharing one unified execution harness across CLI, desktop app, and IDE-p mode, --output-format (text, json, stream-json), --json-schema, and settings.json allow/deny rules turn a terminal agent into a scriptable Unix pipeAGENTS.md, .agents/skills/review-pr/SKILL.md, .agents/hooks.json, .agents/mcp_config.json) keep your workflow portable across agy, Claude Code, and Codex CLIKey terms
AGENTS.md, SKILL.md with YAML frontmatter, JSON hooks, MCP configs) readable across multiple terminal agents.tmux, and git worktree so switching terminal binaries takes minutes instead of a rebuild.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Install Google Antigravity CLI (agy) on a clean Linux terminal and master the entire interactive workflow from first launch to reversible recovery. In Lesson 1.3 of Advanced Vibe Coding, we install the standalone Go binary, sign in with Google OAuth (zero API keys to manage), drive @ file targeting, ! zero-token inline shell commands, /plan blueprints, and /config sandboxing, then prove /rewind, /fork, --sandbox --continue, and /resume live on a real Node repository.
What you'll learn
agy turn connects @ file context, /plan review, --sandbox boundaries, and /rewind rollbackagy cleanly via the official installer script and authenticating with Google OAuth! git status and ! npm test without burning tokens or leaving your session/plan blueprints, /config OS-level sandboxing, /rewind atomic code+chat rollback, /fork conversation branching, and /resume thread switchingKey terms
/plan) where the agent inspects your codebase and writes a file-by-file blueprint before changing a single line on disk.bubblewrap namespaces on Linux, Seatbelt on macOS) fencing agent commands inside your project workspace./rewind) that reverts modified files on disk and clears dead-end turns from conversation history together.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Exit the interactive TUI and turn your terminal coding agent into a composable Unix command. In Lesson 1.4 of Advanced Vibe Coding, we wire Google Antigravity CLI (agy -p) into standard Unix pipes, extract clean structured telemetry with --output-format json and jq, stream live NDJSON events with --output-format stream-json, compare --mode plan vs. --mode accept-edits, and build a reusable 18-line scripts/diff-check.sh commit gate returning real Unix exit codes (0 / 1).
What you'll learn
-p) turns an agent into a scriptable Unix processgit diff --cached straight into agy -p via stdin--output-format json cleanly with jq (with stderr diagnostic isolation) and monitor live --output-format stream-json NDJSON events--mode plan (read-only) vs. --mode accept-edits (autonomous writes)scripts/diff-check.sh commit gate that catches hardcoded secrets and missing tests before git commitKey terms
-p): Non-interactive single-run execution that writes clean output to stdout, keeps diagnostics on stderr, and returns to your shell with a Unix exit code.stream-json): Newline-delimited JSON events (init, step_update, result) emitted one self-contained JSON object per line in real time for outer loop monitors.--mode): Explicit execution policy declared upfront for unattended runs: --mode plan (strict read-only analysis) vs. --mode accept-edits (autonomous file edits).Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Close your entire terminal window mid-task—and come back to find all three panes, your live test logs, and your finished terminal agent output waiting intact. In Lesson 2.1 of Advanced Vibe Coding, we visualize the four-tier tmux hierarchy from background server daemon down to split panes, then prove disconnect survival live with real headless agy -p --mode plan execution.
What you'll learn
tmux server daemon, named sessions, full-screen windows, and split panes fit together as a Terminal Multiplexertmux (apt / brew) and launch explicitly named sessions (tmux new -s factory)Ctrl-b Prefix key to split panes (%, "), navigate with arrow keys, toggle full-screen Pane Zoom (z), and organize named windows (c, ,, 0, 1)SIGHUP)—and how detaching (Ctrl-b d), closing the terminal window completely, and re-attaching (tmux ls, tmux attach -t factory) keeps background agents and watchers running uninterruptedKey terms
Ctrl-b by default) telling tmux the very next keypress controls the workspace instead of typing into the active shell.tmux window so multiple agents, commands, and test suites stay visible side by side.Ctrl-b d) while background jobs run uninterrupted, then reconnecting (tmux attach -t <name>) from any terminal window with live or completed output intact.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Default tmux fights your workflow when supervising multiple terminal agents at once. In Lesson 2.2 of Advanced Vibe Coding, we expose every stock tmux pain point live inside /workspace/lab-cli, organize a clean 41-line ~/.tmux.conf into four structural pillars, and verify instant Ctrl-b r live reloads, directory-preserving | and - splits, labeled top pane headers (1: API Agent, 2: UI Agent, 3: Test Runner), Vim h/j/k/l home-row navigation, and 50,000-line mouse scrollback over real agent output.
What you'll learn
tmux slows down parallel agent work (history-limit 2000, %/" splits resetting to $HOME, 0-based indexing, unlabeled pane borders, mouse off, and bright default status bars)~/.tmux.conf across four pillars: Ergonomics & Splits, Scrollback & Mouse, Visual Pane Identity, and Zero-Friction Reloadescape-time 10, base-index 1, renumber-windows on, #{pane_current_path} split bindings, and Vim h/j/k/l focus keep your hands on home row while keeping Ctrl-b portable across serversCtrl-b r, pin custom role headers with tmux select-pane -T, and scroll deep agy -p output smoothly in copy modeKey terms
history-limit 50000).pane-border-status top + tmux select-pane -T) so parallel agents stay identifiable at a glance..tmux.conf rules inside a live tmux session (Ctrl-b r) without stopping running agents.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Two separate feature folders checked out from one repository—and a commit inside your API workspace appears immediately in main with zero collisions and zero index.lock errors. In Lesson 2.3 of Advanced Vibe Coding, we compare shared working tree collisions against isolated git worktree checkouts, visualize the shared .git object store fan-out, and prove workspace isolation, .env port hygiene, cross-branch commit visibility, and clean teardown live in the terminal.
What you'll learn
index.lock, overwritten files, tangled diffs) and how git worktree eliminates lock contention.git object store powers sibling checkouts (../wt-api on feat/api, ../wt-ui on feat/ui) in milliseconds via a one-line .git gitdir: pointer file and dedicated .git/worktrees/<name> metadatagit -C, handle untracked .env files (distinct PORT per worktree) and dependencies (npm ci --prefer-offline / pnpm), inspect shared commits via git log --all --oneline --graph and git diff main..feat/api, and clean up with git worktree remove and git worktree prune -vKey terms
.git/objects database in the main repository that every linked worktree reads and writes directly, enabling millisecond creation and instant cross-branch commit visibility.index per worktree so concurrent terminal agents edit, stage, and run tests simultaneously without index.lock contention.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Three labeled panes inside one terminal window—API Agent on feat/api, UI Agent on feat/ui, and Test Agent on feat/tests—executing concurrently with green tests and three clean commits ready to merge. In Lesson 2.4 of Advanced Vibe Coding, we isolate three sibling Git worktrees by strict file-ownership boundaries, launch a labeled 3-pane Matrix tmux HUD, dispatch scoped headless agy -p '<prompt>' --mode accept-edits briefs concurrently, and zoom each pane with Ctrl-b z to audit diffs, run npm test, and commit every branch cleanly with zero collisions.
What you'll learn
../wt-api → src/api.js, ../wt-ui → src/ui.js, ../wt-tests → test/app.test.js) so concurrent agents never overwrite edits or trigger index.lock errorstmux command center (Ctrl-b |, Ctrl-b -, tmux select-pane -T, Vim Ctrl-b h/j/k/l navigation) and why Parallel cognition turns ~12 minutes of serial waiting into ~4 minutes of concurrent flowagy -p '<prompt>' --mode accept-edits executionCtrl-b z, verify strict branch isolation with git status -s and git diff --stat, confirm all tests pass (5/5 on feat/tests), and inspect the clean 3-branch commit graph with git log --all --oneline --graphKey terms
npm test).Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Stop wiring multi-agent panes by hand every morning. In Lesson 2.5 of Advanced Vibe Coding (14:51), we turn tmux into programmable shell infrastructure: master literal tmux send-keys -l -- plus C-m without key-name traps, scrape live worker scrollback straight into Unix pipes and agy -p with tmux capture-pane -p -S -30, and author two production Bash scripts—an idempotent 44-line scripts/launch-fleet.sh using immutable pane IDs and a 22-line scripts/fleet-status.sh monitor that reports 3/3 ready, 0 failed programmatically.
What you'll learn
tmux send-keys silently breaks on words like Space and Enter—and how the two-call -l -- + C-m pattern injects literal prompts safely into any target panetmux capture-pane -p -t <pane> -S -30 streams live pane output to stdout for grep, awk, and agy -p summarization without human eyeballs-P -F '#{pane_id}' handles that never break across 0-based or 1-based tmux configsprintf 'FLEET_%s\n' avoids false-early marker matches on the command line, how tmux has-session makes launch-fleet.sh safely idempotent, and how fleet-status.sh parses exact completion markers and pass counts liveKey terms
tmux send-keys: Programmatically injects keystrokes or shell commands straight into any named tmux pane without switching focus.tmux capture-pane: Dumps a pane's visible buffer and scrollback straight to stdout so scripts can parse live agent output.tmux panes, and dispatches initial tasks in one command.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Parallel agents give you velocity—clean branch merging keeps main alive. In Lesson 2.6 of Advanced Vibe Coding, we build a dedicated Integrator agent lane on main to complete the Fan-out / fan-in cycle across three isolated worker branches (feat/api, feat/ui, feat/tests), run read-only agy -p --mode plan reviews over triple-dot diffs (main...branch), merge sequentially with --no-ff, resolve a real package.json merge conflict safely under git diff --check and npm test (5/5 green), and tear down every worktree and merged branch cleanly.
What you'll learn
main so trunk never suffers race conditions or blind mergesgit diff main...<branch>) stay accurate after main advances, and why pre-merge reviews belong in read-only agy -p --mode plangit merge --no-ff preserves clean worker boundaries in git log --graph and makes emergency rollbacks effortlesspackage.json conflict (UU) without blindly dropping scripts via --ours/--theirs, verifying zero stray markers with git diff --check and passing npm test (5/5)git worktree remove, git worktree prune -v, and safe lowercase git branch -d) leaves a single spotless main checkoutKey terms
main.main that audits worker diffs, gates sequential merges, resolves conflicts under tests, and protects trunk health.main passes every check.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Bigger context windows still break down under noise—smaller high-signal context wins. In Lesson 3.1 of Advanced Vibe Coding, we map all four layers inside a coding agent's context window, reproduce Context rot live on /workspace/lab-context where a bloated 1,092-line session burns 47,771 input tokens and introduces a silent billing bug even while stale tests stay green, then discard the polluted session and ship the exact same VIP25 feature on turn one with 13,403 input tokens (3.56x / 71.9% fewer) and all 7/7 tests green.
What you'll learn
agy -p --mode accept-edits --output-format json and jq (47,771 vs. 13,403 input tokens — 3.56x reduction; 51,313 vs. 17,024 total tokens — 3.01x reduction)git checkout -- . + a fresh window pinning only 2 files and a 4-line spec) beats arguing with a polluted threadKey terms
Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Bloated root rule files silently poison every agent turn—and past 24,000 bytes, truncation quietly chops off your most important invariants. In Lesson 3.2 of Advanced Vibe Coding, we map Hierarchical discovery and hard Context budget ceilings (24 KB per file, 20,000 tokens aggregate), audit an over-budget 276-line (26,840-byte) legacy root AGENTS.md, shrink project memory by 93.4% into 47 crisp lines (1,762 bytes) across root, backend/AGENTS.md, and frontend/AGENTS.md, and prove automatic local enforcement live with bare-bones agy -p prompts.
What you'll learn
24,000 bytes per file line-truncated; 20,000 tokens aggregate demoted to file-path pointers) make 500-line root dumps dangerousAGENTS.md (inferable style trivia, stale README prose, copy-pasted file trees) and what to keep in ~23 lines (verified commands, non-inferable invariants, scope pointers, Definition of Done)backend/AGENTS.md (12 lines: structured { ok, data, error } JSON envelopes) and frontend/AGENTS.md (12 lines: data-testid, semantic HTML with aria-label, sp- classes, zero inline styles) and verify automatic enforcement with bare-bones agy -p "<prompt>" --mode accept-edits runsKey terms
24,000 bytes per file (line-truncated past the cap) and 20,000 tokens aggregate before overflow demotes to file-path pointers.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Even when a monolithic AGENTS.md stays safely under the 24,000-byte truncation ceiling, embedding full SQL schemas, HTTP contracts, and testing guides upfront drains working focus on every single turn. In Lesson 3.3 of Advanced Vibe Coding (13:51), we apply Progressive disclosure—refactoring a 249-line (10,283-byte) root spec dump into an 18-line (765-byte, -92.6%) Context index pointing to three focused docs/ files (schema.md, api-contracts.md, testing.md), then proving Just-in-time retrieval live with two agy -p "<prompt>" --mode plan --output-format stream-json runs filtered through jq.
What you'll learn
AGENTS.md files silently burn ~40% of working attention with zero warnings when database DDL, HTTP API contracts, and test recipes collidedocs/schema.md, docs/api-contracts.md, docs/testing.md) sitting at 0 tokens on disk until matchedTask Area | Pointer | Load Only When)agy -p "<prompt>" --mode plan --output-format stream-json | tee ... | jq—confirming an API planning task reads strictly docs/api-contracts.md and a test planning task reads strictly docs/testing.mdKey terms
Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Long AI coding threads silently lose focus as diffs, test logs, and dead-end retries pile up—and repeating /compact four times only replaces crisp requirements with lossy summaries. In Lesson 3.4 of Advanced Vibe Coding (14:21), we map the five-stage Session Lifecycle Decision Flow and run every control live inside /workspace/lab-context with Google Antigravity CLI (agy): branching a competing proportional-split design via Speculative fork (/fork + /resume), erasing a broken zero-floor edit and its failed test turn together with /rewind, compressing verbose edge-case analysis mid-task via focused Compaction (/compact), and proving Externalized state by writing a 15-line HANDOFF.md, exiting cleanly, and finishing Milestone 2 on turn one in a fresh zero-rot window (14 passing tests, 0 failures, src/format.js untouched).
What you'll learn
/fork + /resume, /rewind, /compact, or Disk Handoff (HANDOFF.md + /exit)/fork) to test and reject a flawed design (catching a 1-cent Math.floor rounding remainder), clean disk edits with ! git checkout, and jump back to an untouched main thread via /resume/rewind beats follow-up correction prompts after a broken edit—restoring modified files on disk (! git diff empty) and stripping the failed turn from chat history together—plus how to reclaim mid-task headroom with focused /compactSPEC.md, PROGRESS.md, and HANDOFF.md so a brand-new agy session opens at 0% context rot, pins @HANDOFF.md @SPEC.md, and ships a verified milestone cleanly on turn oneKey terms
/fork into an independent thread so experimental designs never pollute the main thread's attention./compact <focus note> while preserving active constraints.SPEC.md, PROGRESS.md, HANDOFF.md) rather than fragile chat memory.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Running a 40-file grep sweep or security review inside your main agent conversation drags tens of thousands of raw tokens straight into the Dumb Zone before you write a single line of code. In Lesson 3.5 of Advanced Vibe Coding, we apply Context isolation by authoring two custom workspace subagents in .agents/agents/<name>/agent.md (codebase-researcher on flash and security-auditor on pro), lock both down with strict built-in Tool allowlists (view_file, grep_search, find_by_name, list_dir) and commandExecutionPolicy: "off", run them concurrently via /agents, prove zero workspace mutations even under direct write prompts, inspect quarantined child traces in Subagent Detail View, and patch three real security flaws (new Function, unbounded new RegExp, unescaped HTML XSS) cleanly from the main thread to 16 green tests.
What you'll learn
.agents/agents/<name>/agent.md files with explicit model tiers (pro for deep audits, flash for fast codebase mapping), strict built-in Tool allowlists, and commandExecutionPolicy: "off" for true Read-only subagents/agents, run codebase-researcher and security-auditor in parallel, and confirm zero disk edits (! git status -s && git diff empty)new Function injection, unbounded new RegExp, HTML XSS) verified by 16 passing testsKey terms
tools: list in agent.md naming the exact built-in tools a subagent may invoke (omitting write and shell tools locks mutations off).tools: allowlist with commandExecutionPolicy: "off" so it cannot modify files or execute shell commands.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
How do terminal coding agents support dozens of specialized workflows without burning your context window at startup? In Lesson 4.1 of Advanced Vibe Coding, we dissect the open SKILL.md Agent Skill standard from the inside out: tracing three-stage progressive loading (~50 tokens of YAML frontmatter at startup → trigger match → full body, scripts/, and references/ loaded only on demand), measuring an exact 36.4× dormant payload (31 frontmatter words vs. 1,129 total bundle words) inside .agents/skills/release-audit/, proving Loading precedence (Workspace .agents/ → .agents/skills.json → Global ~/.gemini/config/) live with agy -p, and verifying pure plain-text portability across Antigravity CLI, Claude Code, and Codex.
What you'll learn
SKILL.md) use three-stage progressive loading (Metadata Index → Trigger Match → Full Body & Helpers) to keep idle startup context near ~50 tokens per skill.agents/skills/<name>/ bundle anatomy (SKILL.md, scripts/, references/, examples/) and how YAML frontmatter stays minimal while heavy policies stay dormant until invokedWorkspace .agents/ overrides .agents/skills.json and global ~/.gemini/config/skills/), proved live via GLOBAL_DEFAULT vs. WORKSPACE_OVERRIDE./ links, executable helper scripts (scripts/check-version.sh), and plain Markdown keep one skill bundle portable across terminal coding agentsStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
A vague skill description like "helps with git and PRs" misfires on routine commands and stays silent when you actually need a review. In Lesson 4.2 of Advanced Vibe Coding, we master Trigger engineering—writing crisp third-person "what + when" YAML frontmatter (33 words)—author a real production pr-readiness skill in .agents/skills/pr-readiness/SKILL.md, run it explicitly from live autocomplete as a Custom slash command (/pr-readiness) to catch a stray console.log and TODO hiding behind 5 green tests (VERDICT: BLOCKED), fix both issues, prove cold natural-language Skill activation (VERDICT: READY), and confirm zero misfire on an unrelated git prompt.
What you'll learn
33 startup words into a sharp router21-line .agents/skills/pr-readiness/SKILL.md enforcing 4 deterministic PR checks and a structured VERDICT: READY / VERDICT: BLOCKED output contractSKILL.md file supports dual Skill activation: explicit invocation via /pr-readiness Custom slash command autocomplete and automatic invocation from natural phrasing ("Is this branch ready to open a PR?")mainStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Prose instructions alone make a fragile gatekeeper—models can misread a regex, skip a flag, or politely wave past a dirty working tree. In Lesson 4.3 of Advanced Vibe Coding, we upgrade pr-readiness into a split-responsibility Agent Skill: moving exact mechanical verification into an executable Deterministic helper script (scripts/verify_env.sh with real exit codes 0/1), isolating review judgment in on-demand references/checklist.md, enforcing a hard Validation gate that catches an untracked .env and hardcoded secret hiding behind 7 green tests, and sharing team skills across repositories with zero copy-paste via skills.json inheritance (entries, inherits, and exclude).
What you'll learn
scripts/ (exact facts + exit codes) and references/ (human-style review rubric) eliminates hallucinated checks without inflating startup frontmatterscripts/verify_env.sh Deterministic helper script and wire a hard Validation gate in SKILL.md that forbids VERDICT: READY whenever exit code is non-zero7 passing unit tests plus a hidden secret literal and untracked .env, proving VERDICT: BLOCKED flips cleanly to VERDICT: READY once resolved.agents/skills.json (entries, absolute inherits, and exclude filters) with zero duplicated foldersStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Giant single prompts drift across files and skip verification—yet not every multi-step task needs full parallel orchestration. In Lesson 4.4 of Advanced Vibe Coding, we build both patterns cleanly inside /workspace/lab-skills: first authoring a four-stage gated skill (.agents/skills/feature-flow/SKILL.md: SPEC -> PLAN GATE -> BUILD -> VERIFY GATE, 31 frontmatter words) that pauses mechanically before touching disk and ships formatReleaseDate (src/release-date.js + test/release-date.test.js) to FLOW_STATUS: VERIFIED across 9 green tests, then mapping deprecated legacy .agents/workflows/*.md files to modern skills (/migrate-workflows), and finally writing and running a 21-line Python Dynamic workflow (scripts/audit-workflow.py via /run-workflow) using phase(), agent(), and parallel() for structured Fan-out aggregation across all 4 src/ modules.
What you'll learn
SPEC -> PLAN GATE -> BUILD -> VERIFY GATE) inside a chained SKILL.md stop unapproved file edits and enforce npm test + git diff --stat before completion/feature-flow end-to-end live—pausing mechanically at Stage 2 (PLAN GATE) with zero disk mutations, granting explicit approval, and verifying FLOW_STATUS: VERIFIED across 9/9 passing testsSKILL.md (and how /migrate-workflows converts deprecated legacy .agents/workflows/*.md files cleanly) versus a Python Dynamic workflow (/run-workflow)ast.PyCF_ALLOW_TOP_LEVEL_AWAIT), and execute a 21-line scripts/audit-workflow.py with phase(), agent(), parallel(), model="flash", and strict JSON schemas for isolated Fan-out aggregationStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
A skill that passed once on a happy prompt can fail silently the moment it hits an empty diff, a missing file, or a failing test suite. In Lesson 4.5 of Advanced Vibe Coding (Section 4 Finale), we treat Agent Skills like production code: building a reproducible headless Skill eval runner (scripts/eval-pr-skill.sh around agy -p --mode plan --output-format json + jq) across three isolated .tmpl fixtures (happy, failing-tests, empty-diff), catching a live empty-diff miss on Run 1 (EVAL_SCORE: 2/3, EXIT=1), auditing .usage token overhead, adding a 3-line Deterministic fallback (DIFF guard) in scripts/verify_env.sh plus Instruction tightening in SKILL.md (with zero startup token bloat at 33 frontmatter words), and proving 3/3 deterministic passes across repeated runs before committing cleanly on main.
What you'll learn
scripts/eval-pr-skill.sh + isolated .tmpl fixture builder) that exercises happy paths, failing tests, and empty-diff edge cases without dirtying main--output-format json traces with jq to audit exact failure verdicts alongside .usage token overhead and static SKILL.md startup metadatascripts/verify_env.sh (FAIL | DIFF) and applying crisp Instruction tightening in SKILL.mdEVAL_SCORE: 3/3 (EXIT=0) runs with steady token budgets before committing clean to mainStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Prompt rules inside AGENTS.md are polite advice—under long context, a model can still drift or skip checks. In Lesson 5.1 of Advanced Vibe Coding (14:41), we map all six deterministic Lifecycle hooks in .agents/hooks.json (SessionStart, PreInvocation, PreToolUse, PostToolUse, PostInvocation, and Stop), distinguish flat handler arrays from grouped Regex matcher blocks ((view|read|list|find|grep)_.*|run_command with timeout: 5), build a crisp 20-line Python tracer (scripts/hook-logger.py) honoring the strict camelCase Stdin/stdout JSON contract, run a live agy -p --mode plan prompt inside a fresh /workspace/lab-hooks repository, and inspect real paired PreToolUse/PostToolUse (toolCallId + stepIdx) and Stop (NO_TOOL_CALL) events with jq.
What you'll learn
SessionStart, PreInvocation, PreToolUse, PostToolUse, PostInvocation, Stop) intercept fixed points of every agent turn outside the LLM.agents/hooks.json commands enforce deterministic code every single time.agents/hooks.json cleanly using flat arrays for session, invocation, and stop events and grouped Regex matchers targeting lowercased tool names on PreToolUse and PostToolUsescripts/hook-logger.py following the camelCase Stdin/stdout JSON contract (logging to /tmp/hook-trace.jsonl, returning {"decision":"allow"} for PreToolUse or {} otherwise on stdout, exit 0) and audit live agy traces with jqStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Prompt warnings ask an agent to be careful; a PreToolUse gate stops dangerous tool calls in code before they ever touch disk. In Lesson 5.2 of Advanced Vibe Coding, we map all four deterministic PreToolUse outcomes (allow, deny, force_ask, and shallow-merge overwrite), add a toggleable "safety-gate" entry to .agents/hooks.json, author a clean 21-line Python guard (scripts/pretool-guard.py) that enforces Hard deny on destructive shell commands (rm -rf, git push --force) and dual-vector .env secret access (blocking both file-read tools and shell cat .env), rewrites bare git status into git status --short --branch via Argument overwrite, and verifies every path live in agy plus dual-log jq forensics proving denied calls never reach PostToolUse.
What you'll learn
PreToolUse gate inspects toolCall.args JSON before execution and branches into allow, deny, force_ask, or overwrite.agents/hooks.json ("safety-gate" alongside "lifecycle-tracer") with scoped regex matchers and a tight timeout: 5scripts/pretool-guard.py enforcing Hard deny across both shell commands (rm -rf, force-push) and dual-vector .env secret reads while returning structured feedback so the agent recovers cleanlyoverwrite shallow-merges rewritten top-level keys into toolCall.args before runtime (git status -> git status --short --branch returning ## main) and how dual-log jq audits confirm zero bypassStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Waiting until the end of a coding session to run lint and typecheck turns one tiny typo into a twelve-file avalanche. In Lesson 5.3 of Advanced Vibe Coding, we build a sub-1.5-second Micro-feedback loop in .agents/hooks.json pairing PostToolUse (a Deterministic formatter, debug linter, and direct ./node_modules/.bin/tsc --noEmit invocation inside a strict 5-second Hook timeout) with a single-shot PostInvocation feedback relay (injectSteps + terminationBehavior: "force_continue"), benchmark direct tsc vs. npm run typecheck, and watch agy -p --mode accept-edits catch a live TS2322 string-return mismatch on edit #1 and self-correct cleanly before file #2 is ever touched.
What you'll learn
< 1.5 s measured) by calling local ./node_modules/.bin/tsc --noEmit directly, filtering to .js/.ts/.jsx/.tsx edits, and capping subprocess runtime inside a 5-second Hook timeoutPostToolUse Deterministic formatter + checker (stdout: {}) with a PostInvocation relay (injectSteps + force_continue) inside one clean scripts/posttool-quality.py scriptTS2322 self-correction in agy (applyCoupon fixed to pass 5, fail 0, zero tsc errors) and confirm latency directly in the jq event timelineStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
A confident agent reply can still hide a failing test suite—and a naive Stop hook without a retry cap can burn your quota in an infinite loop. In Lesson 5.4 of Advanced Vibe Coding, we master both ends of the session lifecycle: writing a 19-line SessionStart hook (scripts/session-context.py) that injects live git branch, dirty files, and open TODO.md checkboxes via injectSteps for zero-tool-call turn-1 awareness, separating SessionStart from per-turn PreInvocation hooks, and authoring a 21-line Stop gate (scripts/stop-test-gate.py) that enforces npm test via Stop hook continuation ({"decision": "continue", "reason": "..."}) safely bounded by the continuationActive guard and a hard 2-retry cap—then watching agy self-heal a Math.floor vs. Math.round calcTax logic bug live to 6 green tests.
What you'll learn
injectSteps (SessionStart) delivers live git branch, dirty status, and TODO.md tasks before turn 1 so the agent never wastes opening calls probing repo state—and when to use PreInvocation insteadStop hook continuation intercepts NO_TOOL_CALL completions, runs npm test under an inner timeout, and sends failing output back to the agent with {"decision": "continue", "reason": "..."}NO_TOOL_CALL exits (USER_CANCELED, ERROR, MAX_INVOCATIONS) and pairing the continuationActive guard with a per-conversation 2-retry ceiling prevents infinite loopsStop safety branches locally (skip, retry 1, retry 2, cap_reached) and verify live self-healing on a logic bug that passed strict TypeScript checksStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Copying eight config and hook files into five different repositories guarantees silent drift the very first week. In Lesson 5.5 of Advanced Vibe Coding (Section 5 Finale), we package all the rules, skills, and five Python lifecycle hooks built across Sections 3–5 into one drop-in .agents/plugins/dev-guardrails/ bundle anchored by a Plugin manifest (plugin.json), enforce the critical native layout rules (rules/AGENTS.md, skills/guard-check/SKILL.md, and root-only hooks.json with relative ./scripts/ paths), pass agy plugin validate, prove zero-copy sharing (.agents/plugins.json) and instant live toggling (config.json enabled vs. disabled), and separate continuous background watchers into a managed Sidecar daemon (sidecar.json + watch.py).
What you'll learn
plugin.json) bundles rules/AGENTS.md, on-demand skills/, root-level hooks.json (never nested!), and optional mcp_config.json into one portable folder<plugin>_<server> for MCP and <plugin>/<sidecar> for daemons) prevents cross-plugin collisions across multi-repo setupsagy plugin validate, share them cleanly via .agents/plugins.json (entries, inherits, exclude), and toggle the entire guardrail stack on or off in one line of config.json with zero deleted filessidecars/test-watcher/sidecar.json with restart_policy: "on-failure" and watch.py --once)Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Noisy MCP servers can burn 15,000+ context tokens before turn one even starts—yet Model Context Protocol (MCP) is remarkably simple once you see the raw JSON-RPC 2.0 wire protocol. In Lesson 6.1 of Advanced Vibe Coding, we contrast local Stdio transport child processes against remote Streamable HTTP endpoints (/mcp over HTTPS + OAuth), build and wire-test a 42-line zero-dependency Node.js JSON-RPC 2.0 Stdio server, register both transports in .agents/mcp_config.json, verify live tool discovery inside agy, and protect your Tool budget by trimming unused schemas with disabledTools and keeping stateless workflows on zero-overhead native CLIs.
What you'll learn
stdin/stdout, zero open ports) versus remote Streamable HTTP (/mcp over HTTPS + OAuth, replacing legacy SSE)initialize, tools/list, tools/call) and verify its exact newline-delimited responses directly from the terminal.agents/mcp_config.json and prove live tool discovery and execution in agydisabledTools filters—and a clear decision rule for choosing stateful MCP servers over zero-startup-token native CLIsStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Pasting database passwords into local config files or loading a 60-tool GitHub MCP server on turn one wastes context and widens blast radius unnecessarily. In Lesson 6.2 of Advanced Vibe Coding, we build a production-grade CLI + MCP hybrid: locking Remote OAuth MCP to Project-scoped access on Supabase (project_ref, read_only=true, and scoped features=), authenticating via browser OAuth 2.1 with zero passwords on disk, inspecting live cloud Postgres tables and Security Advisors inside agy, and turning a real advisor finding into GitHub Issue #1, an autonomous fix branch, and live Pull Request #2 through zero-startup-token gh CLI.
What you'll learn
project_ref, read_only=true, and scoped features= so agents can inspect live schemas and advisors without risking destructive writesgh CLI at zero startup context tokens instead of paying thousands of tokens upfront for a bloated 60-tool GitHub MCP servershippulse-dev project clean and secret-freeStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Unit tests can pass 100% green while a real button throws an uncaught TypeError in the browser. In Lesson 6.3 of Advanced Vibe Coding, we give terminal coding agents real eyes using Headless browser verification: wiring lightweight zero-download playwright-core directly to system Chrome in a 25-line script combining a Console/network error gate (console.error, pageerror, and HTTP 4xx/5xx) with a Rendered DOM assertion (clicking live controls and verifying 42 -> 43), feeding structured browser error JSON straight back to agy -p so it self-heals the UI automatically, capturing a verified screenshot, and packaging the gate into a reusable .agents/skills/verify-ui/SKILL.md.
What you'll learn
playwright-core to system Chrome in 25 lines—enforcing a strict Console/network error gate on every console.error, pageerror, and HTTP 4xx/5xx responseTypeError that unit tests miss and feeds the structured browser trace into agy -p to self-heal the UI until the DOM flips 42 -> 43 cleanlyverify-board.png) and package the browser gate into a portable .agents/skills/verify-ui/SKILL.md reusable across any web repoStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Cramming an entire multi-story sprint into a single chat window causes context tokens to climb every turn until quality degrades. In Lesson 7.1 of Advanced Vibe Coding, we introduce Loop Engineering—visualizing the exact boundary between an Inner loop (keeping one agent alive via a Stop hook for 2–3 tight retries) and an Outer loop (Ralph Wiggum pattern) (spawning stateless agy -p processes at 0% context per story). We scaffold /workspace/lab-loops with durable disk truth (PRD.json, PROGRESS.md, and atomic Git commits), measure rising in_tok and cache_read inside a --continue session, and prove live via jq that Fresh-context iteration runs stay flat across stories.
What you'll learn
--continue pushes in_tok and cache_read sharply upward turn after turn—and how to measure that exact curve live from CLI JSON telemetry with jqPRD.json, PROGRESS.md, and atomic Git commits) so every Fresh-context iteration starts cold and still picks up seamlesslyagy -p iterations back-to-back from disk state alone, verify flat token telemetry across all four rows, and pick the right loop architecture for any engineering taskStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
An autonomous coding loop that only asks the model whether its code "looks good" ships subtle bugs and leftover debug logs straight to main. In Lesson 7.2 of Advanced Vibe Coding, we engineer Verification backpressure—ordering TypeScript checking, zero-dependency static lint, unit tests, and an integration smoke check into a sub-2-second Unified verify gate (npm run verify) built for Fail-fast feedback. We deliberately trigger a Stage 2 console.log block and a Stage 3 priority-tie bug, pipe the exact GATE_FAIL output directly into agy -p, and watch deterministic backpressure force a clean self-heal without touching a single test.
What you'll learn
tsconfig.json, zero-dependency scripts/lint-check.mjs, scripts/smoke.mjs, and scripts/verify.sh into a single Unified verify gate (npm run verify) emitting crisp GATE_FAIL / VERIFY_PASS markersconsole.log slop instantly and Stage 3 pinpoints a priority-tie defectGATE_FAIL failure output directly into agy -p so the agent fixes the root cause cleanly while locking PRD.json onto the verify contract for outer loopsStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Babysitting a coding agent one prompt at a time does not scale past a single feature. In Lesson 7.3 of Advanced Vibe Coding, we build a complete 55-line ralph.sh outer loop around agy -p --output-format stream-json: reading ordered stories from a PRD.json backlog with jq, assembling stateless prompts from PROMPT.md, enforcing our sub-2-second npm run verify gate so failed edits never touch Git history, creating one Atomic iteration commit strictly on exit code 0, and running live across three fresh agy -p sessions until every story passes and our deterministic Completion promise (RALPH_COMPLETE) fires.
What you'll learn
ralph.sh outer-loop state machine coordinates bash ownership of Git and verification while delegating strictly one fresh story per agy -p invocationPROMPT.md so jq selects the next pending story, injects prior failure context if needed, and streams live NDJSON telemetry via --output-format stream-jsonlast-error.log for the next clean retry, and commits an Atomic iteration commit only when npm run verify returns 0./ralph.sh ship three pending stories autonomously across three fresh conversation IDs until all 12 tests turn green, 5/5 stories flip true, and the deterministic Completion promise (RALPH_COMPLETE) exits cleanlyStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
An unbounded autonomous coding loop that gets stuck on a single error can burn your entire daily quota overnight or tamper with its own test harness. In Lesson 7.4 of Advanced Vibe Coding, we harden ralph.sh with three deterministic safety tripwires: hard --max-iters cost ceilings, Blast-radius containment (refusing main, rejecting edits to protected scripts or .env files, and running --sandbox isolation), and timing-normalized Stuck-state detection that hashes Git diffs plus stripped error tails into a 12-character SHA-256 fingerprint so our Circuit breaker halts repeating failures cleanly at 2/2 while recording every run in logs/ralph-summary.jsonl.
What you'll learn
ralph.sh (--max-iters ceilings, branch & protected-path guards, and failure-hash breakers) so unattended runs cannot spiral out of controlmain, rejects unauthorized edits to verification scripts or .env files, and pairs OS-level --sandbox execution with live probe verification2/2)logs/ralph-summary.jsonl records and return cleanly to a spotless main branchStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Running a single Ralph loop sequentially leaves most of your machine idle while features queue behind one another. In Lesson 7.5 of Advanced Vibe Coding, we build a Parallel Ralph fleet combining sibling git worktree checkouts, symlinked node_modules, and a four-pane tmux grid. By isolating each branch's state in a gitignored Worktree-scoped backlog (.ralph/), launching three concurrent ralph.sh workers alongside a polling Live fleet dashboard (scripts/fleet-board.sh), watching six stories hit 3/3 READY simultaneously, and landing three conflict-free --no-ff merges onto main, we close Section 7 with 24/24 green tests and spotless worktree teardown.
What you'll learn
git worktree checkouts, symlinked node_modules, and an idempotent 54-line fleet-ralph.sh launcher across a 4-pane tmux workspacePRD.json causes guaranteed merge conflicts — and how a gitignored Worktree-scoped backlog inside .ralph/ guarantees parallel branches touch strictly disjoint src/ and test/ modulesscripts/fleet-board.sh) tracking per-worktree story completion, commit counts, and JSONL summary logs live until all three lanes hit 3/3 READYmain via git merge --no-ff with zero conflicts, verify all 24/24 tests (VERIFY_PASS), and prune temporary worktrees cleanlyStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Real full-stack software runs reliably in production on starter cloud tiers when you engineer around every starter-tier boundary from day one instead of discovering hard quotas after launch. In Lesson 8.1 of Advanced Vibe Coding, we map verified limits across GitHub, Supabase, Vercel, and Cloudflare inside /workspace/lab-deploy, separate Preview vs. Production environment configurations, codify two-project Supabase reuse (shippulse-dev) and commercial ToS routing (Vercel Hobby vs. Cloudflare Workers/Pages starter tiers) into executable tests, handle 7-day idle database pauses gracefully via a 503 Cold wake /api/health contract, and audit the entire architecture read-only with agy --mode plan.
What you'll learn
stack-limits.json contract before deploying line oneshippulse-dev) plus commercial licensing rules (Vercel Hobby vs. Cloudflare Workers/Pages starter tiers) in executable policy tests/api/health endpoint returning structured 503 recovery responses while preserving all rowsagy -p --mode plan architecture audit against /workspace/lab-deploy, confirm zero secrets on disk, and lock a clean 6-test scaffold on mainStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Clicking tables and columns in a web dashboard creates invisible schema drift between your database and your TypeScript codebase. In Lesson 8.2 of Advanced Vibe Coding, we replace Dashboard ClickOps with a Linked cloud workflow pointing /workspace/lab-deploy straight at shippulse-dev with zero local database overhead: having Antigravity CLI author an idempotent Versioned migration (public.feedback_items linked to auth.users), pushing it live via supabase db push --remote, running End-to-end type generation into database.types.ts so tsc --noEmit catches mistyped column drift (TS2353) before deploy, and verifying a live JWT Auth sign-up, sign-out, sign-in, and typed row round-trip from the terminal.
What you'll learn
supabase link) connects your repository directly to cloud Postgres (shippulse-dev) from the terminal with zero local database overhead and zero exposed credentialsagy author a repeatable, idempotent Versioned migration for public.feedback_items referencing auth.users and apply it cleanly with supabase db push --remotedatabase.types.ts so tsc --noEmit catches column-name drift (vote_count TS2353) at compile time before code ever deployszero_secrets_in_gitStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Frontend route checks never protect a Supabase table once anyone hits the REST API directly with the public anon key. In Lesson 8.3 of Advanced Vibe Coding, we prove a live cross-user data leak against shippulse-dev, catch rls_disabled_in_public via Supabase Security Advisor over read-only MCP, push versioned Row Level Security (RLS) policies wrapping auth.uid() in (select auth.uid()) scoped strictly to authenticated for initPlan speed, verify Alice-versus-Bob cross-user isolation with zero advisor errors, and lock a 20-line secret-scan.mjs gate (SECRET_SCAN_OK) catching leaked sbp_* tokens alongside 15/15 passing tests.
What you'll learn
anon key—proving live how Bob can read Alice's unprotected rows until Row Level Security (RLS) is enabled inside Postgresauth.uid() in (select auth.uid()) scoped to authenticated for both strict ownership enforcement and initPlan query performancesecret-scan.mjs gate blocking leaked sbp_* or service keys before any commit shipsStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Shipping straight to production without isolated preview verification or instant rollback turns small config mistakes into outages. In Lesson 8.4 of Advanced Vibe Coding, we deploy /workspace/lab-deploy cleanly to both Vercel and Cloudflare straight from the terminal: applying strict Environment variable scoping over stdin (preview vs. production), smoke-testing a live Preview deployment (curl 200/503 + runtime logs), promoting cleanly with vercel --prod, proving instant vercel rollback, running a read-only agy -p config and ignore-rule audit, and launching a commercial standalone Wrangler edge deploy on Cloudflare *.workers.dev backed by 21/21 automated tests.
What you'll learn
preview and production secrets cleanly over stdin so staging credentials never bleed into live production or shell historyHTTP 200 and 503 cold-wake checks plus runtime logs), promote cleanly with vercel --prod, and prove instant rollback with vercel rollbackagy -p pre-deploy audit across vercel.json, wrangler.toml, and ignore files to catch leaked configs or misconfigured routes before shipping--dry-run -> live *.workers.dev smoke test) while locking both hosts into 21/21 passing tests and SECRET_SCAN_OKStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Local tests prove code works on your laptop, not on a clean cloud runner—and without branch protection, broken commits still slip onto main. In Lesson 8.5 of Advanced Vibe Coding, we wire least-privilege Continuous Integration (CI) in .github/workflows/ci.yml with agy -p, lock main behind a live Required status check (enforce_admins: true) via gh api, deliberately open a broken PR #1 to watch GitHub Actions block the merge live, pipe gh run view --log-failed straight back into agy -p for scoped self-healing, verify local npm run verify:ci parity, and squash-merge green into a Zero-touch production deploy pipeline closing Section 8 with 25/25 passing tests.
What you'll learn
.github/workflows/ci.yml) with agy -p running clean npm ci, typecheck, secret-scan, and unit tests with concurrency cancellationmain behind a live Required status check (enforce_admins: true) directly from the terminal using gh api so red pull requests cannot be merged even by repo adminsgh run view --log-failed straight into agy -p, confirming local parity via npm run verify:ci, and pushing a clean fix commit#1 into a Zero-touch production deploy (needs: verify opt-in main-only deploy job) while keeping deployment secrets strictly opt-in and main spotlessStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Single-chat vibe coding collapses the moment an app requires real authentication, Row Level Security, parallel feature development, and CI/CD. In Lesson 9.1 of Advanced Vibe Coding, we architect the complete five-stage Software Factory pipeline from one product prompt to live production inside /workspace/software-factory: defining our Spec-to-PRD compiler contract (SHIPPULSE-PROMPT.md, BLUEPRINT.md, and contracts/factory-contract.json), splitting ShipPulse cleanly across three disjoint worktree lanes (feat/db-api, feat/ui-board, feat/auth-e2e), proving a 20-line validator catches nested prefix collisions and misplaced root hooks before printing BLUEPRINT_OK, and confirming every End-to-end release gate with a live read-only agy dry-check.
What you'll learn
feat/db-api, feat/ui-board, and feat/auth-e2e) with zero overlapping file prefixescontracts/factory-contract.json) with a 20-line prefix-overlap and root-hooks.json validator that fails loudly on nested path collisions before passing all 10 BLUEPRINT_OK gatesagy --mode plan dry-check auditing every End-to-end release gate with zero disk writes before locking the clean 5-file blueprint onto mainStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
A blueprint on paper never ships code until it becomes a portable, validated module you can drop into any new repository. In Lesson 9.2 of Advanced Vibe Coding, we assemble our Portable factory plugin inside /workspace/software-factory: bundling plugin.json, project rules, four Chained factory skills (spec, build, audit, ship), four root hooks.json guards, and read-only Supabase MCP alongside scripts/validate-factory.mjs and factory.sh. We prove PreToolUse blocks .env reads and destructive commands live, pass non-mutating Dry-run validation (FACTORY_PLUGIN_OK and FACTORY_DRY_RUN_OK), confirm live agy plugin discovery, and lock 19 spotless files onto main.
What you'll learn
plugin.json), project rules, root hooks.json, and read-only Supabase MCP into one Portable factory plugin under .agents/plugins/SKILL.md stages for spec, build, audit, and ship) loaded progressively so each pipeline phase stays focused and deterministicscripts/validate-factory.mjs and ./factory.sh --dry-run deliver Dry-run validation—checking contracts, schemas, hook paths, secret leaks, and CLI readiness with zero disk writesPreToolUse blocking on .env and destructive shell commands live, confirm agy discovers the plugin cleanly, and commit all 19 tracked files on mainStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Now our portable software-factory plugin meets a brand-new repository from scratch. In Lesson 9.3 of Advanced Vibe Coding (Capstone Part 1), we execute a live Single-prompt bootstrap inside /workspace/shippulse: dropping in our validated plugin, running Stage 1 /factory-spec to compile one product paragraph into SPEC.md, shared types.ts, a three-table Row Level Security SQL migration, and six disjoint lane stories, launching ./factory.sh to drive three parallel Ralph Wiggum loops across a four-pane tmux grid (wt-db-api, wt-ui-board, wt-auth-e2e) until 3/3 READY, completing an Autonomous worktree merge via --no-ff at zero conflicts, and proving Full-stack verification (VERIFY_PASS across TypeScript, lint, 11 unit tests, and headless Playwright E2E with zero console errors).
What you'll learn
software-factory plugin into a clean repo and compiles one product paragraph via /factory-spec into SPEC.md, shared types.ts, a 3-table RLS migration, and 6 disjoint stories./factory.sh launches three concurrent Ralph Wiggum loops (wt-db-api, wt-ui-board, wt-auth-e2e) inside a four-pane tmux grid alongside the live status HUD until every lane hits READYmain via git merge --no-ff with zero manual conflict resolution and clean worktree teardownVERIFY_PASS) validates strict TypeScript, static lint, 11 unit tests, and live headless Playwright clicks on the rendered ShipPulse board with zero console or server errorsStudent Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
Verified local code is only half the release — real production bugs hide in missing Row Level Security policies, clean-room CI drift, unverified environment variables, and failed cloud writes. In Lesson 9.4 of Advanced Vibe Coding (Course Finale), we complete Stages 4 and 5 of our repeatable terminal Software Factory on ShipPulse: pushing per-operation (select auth.uid()) initPlan RLS migrations to live cloud Postgres (supabase db push --remote --yes), proving cross-user isolation with scripts/rls-smoke.mjs (CROSS_USER_RLS_PASS), auditing Security Advisors and secrets read-only via /factory-audit, shipping through a green GitHub Actions pull request (gh pr checks --watch), piping Vercel production environment variables over stdin before vercel --prod --yes, verifying live reload persistence in headless Chrome (scripts/prod-smoke.mjs), and locking all 9 sections into a portable 16-line PLAYBOOK.md.
What you'll learn
shippulse-dev) using explicit per-operation (select auth.uid()) initPlan policies and verifies public reads, owner mutations, and admin gates against synthetic RFC 2606 users (alice@example.com and bob@example.com) using only the public anon key/factory-audit read-only (agy -p "/factory-audit ..." --mode plan --output-format json) with Supabase Remote MCP Security Advisors and scripts/secret-scan.mjs (SECRET_SCAN_OK), while keeping Vercel API endpoints strictly JWT-forwarding with zero server-side admin bypass keys.github/workflows/ci.yml gate (npm ci, npm run verify, secret scan, and plugin validation), watch checks pass via gh pr checks --watch, squash-merge to main, sync Vercel env vars safely over stdin (printf ... | vercel env add ... --environment production --force --yes), and deploy with vercel --prod --yesscripts/prod-smoke.mjs with playwright-core and headless Chrome) proves real sign-in, feature submission, upvote 0->1, and full-page reload persistence against live cloud Postgres with zero console or HTTP errors — before capturing all 9 sections in a portable 16-line PLAYBOOK.md for your Repeatable Software FactoryKey terms
alice@example.com vs. bob@example.com) and only the public anon key.Student Kit Included: Download the attached ZIP archive in Resources for all starter templates, exact configuration files, scripts, and reproduction steps.
This course contains the use of artificial intelligence.
Stop acting like a copy-paste courier between your editor and a browser chat window.
Most developers still use AI one prompt at a time inside a single chat thread—babysitting broken diffs, fighting context rot after ten turns, and ending up with local prototypes that never make it to real production.
Advanced Vibe Coding upgrades how you build software from the ground up. Across 42 focused, zero-fluff lessons in 9 structured sections, you will move from running a single terminal agent to commanding parallel multi-agent fleets wrapped in deterministic verification gates—and shipping a real, secured full-stack application to live cloud production on a modern starter cloud stack.
How Every Lesson Is Taught
Clear Visual Mental Models First: Before typing a single command for any new concept, you see a clean, animated visual model explaining exactly how the system works under the hood—so every flag, config file, and architecture choice clicks immediately.
Live Terminal, Editor & Browser Execution Throughout: Every install, workflow, hook, database migration, security audit, and production deployment runs live on screen. When checks fail, you watch real errors get caught by deterministic gates and fixed in place.
Portable Open Standards: Every core engineering pattern—tmux, git worktree, AGENTS rules file, the open SKILL definition Agent Skills standard, lifecycle hooks, MCP, Ralph Wiggum outer loops, and CI/CD—transfers cleanly across Google Antigravity CLI (agy), Claude Code, Codex CLI, and OpenCode. All live builds run on Google Antigravity CLI using its individual starter tier so you can follow every step with a standard personal account.
Tested Starter Kits for Every Lesson: Clone the companion GitHub repository to get every config file, shell script, skill, hook, verification suite, and checkpoint ready to run on your own machine.
What You Will Master Across 9 Sections
Terminal Agent Foundations: Shift from browser chatboxes to terminal-native execution harnesses, master interactive agy workflows (/plan, /rewind, /fork, --sandbox), and turn an agent into a composable Unix pipe with headless -p automation and stream-json.
Tmux Command Center & Parallel Agent Fleets: Build a minimalist operator tmux config, isolate concurrent agents onto separate git worktree branches with zero index collisions, script multi-pane fleet launchers with send-keys and capture-pane, and merge parallel branches cleanly with an integrator workflow.
Context Engineering: Diagnose context rot and attention dilution, trim bloated instruction files into lean hierarchical AGENTS rules, structure just-in-time progressive disclosure docs, master /compact / /fork / /rewind / disk handoffs, and isolate heavy research inside read-only custom subagents.
Agent Skills, Custom Commands & Dynamic Workflows: Author portable SKILL definition modules, wire custom /skill slash commands, move brittle steps into deterministic scripts/ with .agents/skills registry inheritance, orchestrate multi-stage workflows, and harden skills with headless evaluations.
Lifecycle Hooks, Guardrails, Plugins & Sidecars: Intercept every point of the agent loop in hooks config—hard-blocking destructive commands and secret leaks with PreToolUse (deny and overwrite), auto-formatting and type-checking edits with PostToolUse, steering completion safely with Stop hooks and continuationActive guards, and bundling everything into a shareable plugin manifest package.
MCP & Live Infrastructure Tooling: Compare Stdio vs. Streamable HTTP MCP transports without bloating your tool budget, connect directly to cloud Postgres via Supabase Remote MCP paired with GitHub CLI (gh), and give headless terminal agents real eyes using Playwright browser verification.
Loop Engineering: Separate inner Stop-hook loops from fresh-context outer Ralph Wiggum loops, build a fast unified verification backpressure sieve (tsc, lint, unit tests, Playwright), write a crystal-clear bash ralph loop script around agy -p, protect unattended runs with stuck-diff circuit breakers and sandboxing, and launch parallel Ralph fleets across tmux.
Shipping to Real Production (Supabase, Vercel & Cloudflare): Architect full-stack production deployments with honest limits across GitHub Actions, Supabase (versioned SQL migrations, generated TypeScript types, Auth, and strict Postgres Row Level Security audited via Security Advisors), Vercel Hobby (preview and production CLI deploys), and Cloudflare Workers/Pages (wrangler).
Capstone — Your Reusable Software Factory: Assemble every piece from Sections 1–8 into a portable software-factory plugin and factory orchestrator script, then run it live from an empty directory with a single product prompt to build, audit, verify, and deploy ShipPulse—a real full-stack SaaS Changelog & Feature Voting application live in production.
Walk Away With Reusable Production Assets
By the final lesson, you will not just understand modern AI-assisted software engineering—you will own a battle-tested tmux config, reusable safety and quality hooks, portable Agent Skills, a hardened ralph fleet runner, a 9-section field playbook, and your own drop-in Software Factory ready for your next project.
Enroll now and start commanding your terminal Software Factory.