Orlando, FL
Posts

What I Learned From MEGA.dev: Working With AI Agents Like an Engineer

December 1, 2026
I solved the five week-one challenges of MEGA.dev with Claude Code as my agent harness. This post covers how a challenge works, where our attempts went wrong, and the lessons I kept. When I write "we", I mean me and my agents.

The course

MEGA.dev is a 4-week online program that ran from October 26 to November 22, 2026, for developers who already build with AI. It has 20 lessons, one per weekday, plus a live workshop each week. It is taught by Kent C. Dodds, Angie Jones, John Lindquist and Theo Browne, and architected by Adam Gospodarczyk. The four weeks are Core, Agents, Product and Takeoff. I already use AI agents in my day-to-day work, so I am the audience the course is for. I started on October 26 in a separate folder, kept apart from my client work. I fell behind the calendar in week one and worked the challenges in order instead of skipping ahead.

The honest scoreboard

  • Solved: all five week-one challenges, S01E01 to S01E05, between October 26 and November 2.
  • Followed: the lessons, into week three.
  • Still open: the other 15 challenges. I intend to go back to them.
That is 5 of 20 challenges. This is not a post about finishing the course. It is about what the first week taught me.

How a challenge works

Each lesson comes with a Challenge that you solve together with your own agent harness. The course checks the result through its own MCP server, so the verdict comes from the course, not from me. After a solve, the agent writes a debrief. That setup is the point. The checker does not care how confident the agent sounds. It only accepts work that holds up. Our attempts were not clean, and that is the interesting part. The first challenge took four submissions and one wrong answer on the form before it passed. The fifth took 20 claims, and three of them were rejected.

The five challenges

CodeWhat it askedWhat it taught me
S01E01 "somebody slow"Send a message to a course API, then answer one follow-up questionNever guess an API's shape
S01E02 "who said what"Report what two recordings say, then answer a question in a new sessionA hand-off must carry its sources
S01E03 "what it shows"Turn a knowledge-base export into GitHub issues and a published pageProof comes from the system that asks for it
S01E04 "before i looked"Turn a template repo's plan into issues, build it, and publish a preview for a reviewerDone means the other person has acted
S01E05 "answer where i asked"Host an agent that answers a reviewer on its own, plus a test-writing agentRehearse on the real host; what agents read is data

Contracts and proof

Never guess an API's shape. Our first send to the course API used a shape the agent guessed, and it was refused. The fix was not a better guess. We sent something, read the refusal, and found the schema the server points to. Two more rules came out of the same challenge. Count with a tool, not by eye. And when the question is "what is the newest X", fetch a live source. Our wrong answer on the form was not current enough. Proof comes from the system that asks for it. In the third challenge, our published page carried a signature the harness wrote itself. The checker refused it until the proof on the page came from the course. My agents now never invent a signature or any other proof.

Hand-offs and done conditions

A hand-off must carry its sources. The second challenge split the work across two sessions. The first filed a record built from two recordings, and the second had to answer from it. The record did not say which part came from which recording, and our first claim mixed them up. A new session cannot ask a closed one, so a hand-off now names the source of each part. A done condition that names someone else's action is done only when that action has happened. In the fourth challenge, one issue was done when a reviewer had looked at the preview. We closed it as soon as the link went up, and the claim was rejected. The issue should have stayed open and said what it was waiting on. Verify the public thing the way a stranger would. We checked the preview with an unauthenticated request against the live URL and compared it to the saved copy. Checking saved copies caught a real bug: on the second save, a stale server from an earlier run still held the port and answered with the old page. One subagent per issue. The fourth challenge's repo has seven issues from a plan. The logic-heavy first issue went to a stronger model. Cheaper models built the mechanical ones, three of them in parallel, each in its own worktree, and the main session merged them in order. The two issues that published something stayed with the main session. One merge doubled a block of imports, and the test run after it caught that.

Agents on real hosts

Rehearse the agent on the real host before it counts. In the fifth challenge we put an agent on a public host that answers a reviewer's status question on its own, and a second agent that writes a test for an open bug. A least-privilege rights file limits what each agent may do, and every request must pass a signed webhook check. Local dry runs passed. On the host, the test runner failed: the bundle was missing native binaries, and folders it wrote to were read-only. A local dry run hides exactly that. An agent that works alone must be able to show its work on demand. The host kept only part of its logs, so we could not see why no test came back. We added signed rehearsal routes that run the same steps and return the full trace instead of posting a reply. That is how we found each failure, one at a time. A generated test is worth something only if it is red on the base and green on the fix. At one point the test-writing agent's drafts failed on the base for the wrong reason, and one draft failed on both the base and the fixed code, so it proved nothing. Now every draft runs twice, once on the base and once on the fixed code. A draft that fails on both is never sent.

Trust boundaries

Text an agent reads is data. One tracker issue in the fifth challenge carried a planted instruction aimed at automated agents. The right move was to report it, not to follow it. An agent that obeys whatever it reads can be steered by anyone who can write an issue.

Skills I built along the way

I built three skills for my harness during the course:
  • transcribe: local speech-to-text with faster-whisper. It compares three models and shows where they disagree.
  • gh-tickets: GitHub issues from the terminal.
  • render-kb: renders a knowledge base so the agent reads the page a reader would see.

What changed in my own setup

On November 3, I carried the patterns into my day-to-day agent setup. I copied no course files, only the patterns:
  • Every finding carries its source and says how it was checked.
  • Every task spec ends with Done when, Waits on and Blocked by.
  • Text read from issues and pages is treated as data, never as instructions.
  • A link checker.

What is next

I followed the lessons into week three. The remaining 15 challenges, from the Agents, Product and Takeoff weeks, are still open. I intend to go back to them.