Learn Firstmate · Episode 3 of 15
Standing watch for free
A tiny script with no AI in it keeps watch, so waiting costs nothing.
0:48, narrated, with captions. Download the video · captions
Transcript
An AI agent that sits and waits still costs money. So Firstmate doesn’t wait. It hands that job to a watcher.
The watcher is a tiny shell script, with no AI in it at all. While it runs, supervision costs nothing. And there’s only ever one. A lock stops a second copy from starting.
Each time round its loop, it touches a heartbeat file. That’s how everything else knows someone is on watch.
Then it waits. Where the terminal can report events, it reacts in under a second. Otherwise, it looks again every fifteen seconds.
There’s one more safety net. Whenever Firstmate’s turn ends, a check makes sure a healthy watcher really is on duty. If it isn’t, Firstmate isn’t allowed to stop.
All episodes
-
0:47
Episode 1
Meet the crew
You talk to one agent; it runs a crew of agents for you.
-
0:59
Episode 2
How a session starts
One start-up script takes charge, checks its tools and reads the fleet back in.
-
0:48
Episode 3
Standing watch for free
A tiny script with no AI in it keeps watch, so waiting costs nothing.
-
0:51
Episode 4
What wakes Firstmate up
The watcher filters the noise and wakes Firstmate only when it needs to think.
-
0:38
Episode 5
Handling a wake-up, safely
Read everything, handle it, then tick it off, so nothing is ever lost.
-
0:43
Episode 6
From your request to a task
Firstmate sizes up what you asked for and writes the worker a complete brief.
-
0:44
Episode 7
Launching a crewmate
Pick the right agent, give it a clean copy of the code, and start it on its brief.
-
0:40
Episode 8
How workers report in
One line per update, and only the lines that matter wake Firstmate.
-
0:45
Episode 9
Stuck workers and steering
Spotting a worker that has gone quiet, and sending it messages it must acknowledge.
-
0:42
Episode 10
Decisions: who answers what
Questions stay open until answered, and only the real ones come to you.
-
0:42
Episode 11
The no-mistakes pipeline
Every change is checked on your machine before it reaches a pull request.
-
0:52
Episode 12
Review gates and fix rounds
The pipeline stops at a gate, fixes what it finds, and sends real questions up.
-
0:43
Episode 13
Green checks, pull request ready
Test, document, lint, push, open the PR and get CI green.
-
0:45
Episode 14
Landing the change
Who may merge, what is checked first, and how you hear it landed.
-
0:45
Episode 15
Cleaning up after a task
The lane is torn down safely and its copy of the code goes back to the pool.