Loading video player…

Scale Your AI Agent Workflow: Skills, MCP and Headless Runs (Overview)

You already know how to work with a terminal agent one task at a time: you hand it a small task, it does the work, and you review the result before you keep it. That loop holds up well for a single change. As a project grows, though, some jobs come back every day in the same shape, some need a tool your agent doesn’t have, and some could run side by side or with nobody watching.

This course is about four moves that answer those needs:

  • Skills: A repeated job packaged as a folder of instructions your agent can load when a task needs it.
  • MCP: The Model Context Protocol, an open standard for giving your agent a tool it doesn’t have.
  • Parallel sessions: Two agent sessions working on two issues side by side, each on its own branch.
  • Headless runs: A script that runs your agent with nobody watching and hands back a pull request for you to review.

You’ll meet each one properly in its own lesson. This is the last course in the Coding With AI Agents learning path, and it stands on its own if you’re starting here.

The Festival’s Lost-Property Desk

You’ll practice every move on one small project, the lost-property desk of a folk festival. Volunteers log items found around the site, and visitors search for theirs. In the video, you saw its search page after two agent sessions had fixed two of its issues side by side. A search for “Fiddle” with a capital F now finds both fiddle items, and each result says where it was found.

The project is a small Node.js web app with tests, an instruction file, and four open issues. It’s in this course’s download. The first lesson, Package a Repeated Job as a Skill, walks you through unzipping it and running npm install, npm test, and npm start before anything else.

It’s a reference version, built with an agent in a real session. When your agent changes it, your code will differ from the code in the lessons, and that’s normal.

What You’ll Learn

By the end of this course, you’ll be able to:

  • Package a repeated job as a skill, starting with the festival’s daily changelog entry
  • Connect a tool through MCP, giving your agent a browser to check the festival’s search page
  • Run agents in parallel, with two issues in two worktrees, merged one at a time
  • Run an agent without a person, where a script turns a third issue into a pull request that you review
  • Take a project of your own from idea to working, tested code with everything the path taught, then explain and defend it as a whole to Code Mentor, RealJS’s AI mentor

The last of these is the course’s project. You’ll leave the festival behind and start from a blank folder, with an idea you choose yourself.

Before You Start

You need JavaScript basics and to know how to run npm commands, such as npm test, in a terminal. You also need:

  • One terminal agent, Claude Code or Codex, on a paid plan or API key. The lessons were checked with Claude Code 2.1 and Codex 0.167 in December 2026. Running two sessions at once uses more of your plan or API budget. So can a headless run, since nobody’s there to stop it early. Keep an eye on your usage in those lessons.
  • Node 26 and Git on your own machine, with a Unix-style shell for the commands: macOS or Linux as they are, or WSL 2 on Windows
  • A GitHub account, if you want one, for the pull request steps. The lesson Set Up an Unattended Run installs the GitHub CLI, gh, to go with it. Without an account, those steps stop at a local branch that you review.

The lessons recap the habits they build on, in a line or two where they use them:

  • Permissions: Your allow, ask, and deny rules decide which of the agent’s tool calls run, and a mode where the agent asks first keeps you in the loop. The first lesson sets one up.
  • Fresh sessions: The agent works only from what’s in its session, so each job starts in a new one.
  • The instruction file: Its rules load in every session. They guide the agent but don’t enforce anything.
  • Small tasks: Each task has a goal, limits, and a done-when you can check.
  • Reviewing a change: You read git status and the diff, then keep, trim, or discard what the agent did.
  • The project map: docs/map.md says what each part does and why, and you keep it up to date as the project changes.

How the Course Works

The course mixes text lessons, videos, and coding exercises, and it ends with a quiz. You do the real work on your own machine, with your own agent. Its output will differ from what the lessons show, so the lessons tell you what to look for rather than what to expect word for word. Code Mentor helps you judge what your agent did. You paste in what your agent produced, and it reviews that against the lesson’s principle.

Start with the first lesson, Package a Repeated Job as a Skill. It begins by setting up the festival’s app on your machine.

Download

Course Slides (.pdf)

312.0 KB
Download

Sample Code (.zip)

38.4 KB

Become a Member to join the conversation.