Fleetyard Sign in

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

Next episode · 4 of 15What wakes Firstmate upThe watcher filters the noise and wakes Firstmate only when it needs to think. 0:51.

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

  1. 0:47 Episode 1 Meet the crew You talk to one agent; it runs a crew of agents for you.
  2. 0:59 Episode 2 How a session starts One start-up script takes charge, checks its tools and reads the fleet back in.
  3. 0:48 Episode 3 Standing watch for free A tiny script with no AI in it keeps watch, so waiting costs nothing.
  4. 0:51 Episode 4 What wakes Firstmate up The watcher filters the noise and wakes Firstmate only when it needs to think.
  5. 0:38 Episode 5 Handling a wake-up, safely Read everything, handle it, then tick it off, so nothing is ever lost.
  6. 0:43 Episode 6 From your request to a task Firstmate sizes up what you asked for and writes the worker a complete brief.
  7. 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.
  8. 0:40 Episode 8 How workers report in One line per update, and only the lines that matter wake Firstmate.
  9. 0:45 Episode 9 Stuck workers and steering Spotting a worker that has gone quiet, and sending it messages it must acknowledge.
  10. 0:42 Episode 10 Decisions: who answers what Questions stay open until answered, and only the real ones come to you.
  11. 0:42 Episode 11 The no-mistakes pipeline Every change is checked on your machine before it reaches a pull request.
  12. 0:52 Episode 12 Review gates and fix rounds The pipeline stops at a gate, fixes what it finds, and sends real questions up.
  13. 0:43 Episode 13 Green checks, pull request ready Test, document, lint, push, open the PR and get CI green.
  14. 0:45 Episode 14 Landing the change Who may merge, what is checked first, and how you hear it landed.
  15. 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.