Skip to content
mentoor

Topic 1 of 6 · 5 min read

Take-home assignments with AI allowed

Goal: Plan a take-home submission that uses a coding agent within the stated rules and documents decisions, tests and agent-written parts.

A take-home with AI allowed is graded on your judgement, so make that judgement visible: follow the stated rules, and document what you decided, what you tested and what the agent wrote. The code alone no longer proves skill, because a reviewer knows an agent can produce it in minutes.

Check yourself · 1 of 3

A take-home brief says nothing about AI tools. What is the best first step?

Choose one answer

Why it matters

Companies that allow AI on take-homes are checking whether you can direct a tool and catch its mistakes. A clean repo with no explanation looks the same whether you thought hard or pasted the first answer. A short written trail separates the two.

How to do it

  1. Read the rules twice. Look for the allowed tools, the time limit, and whether AI use must be disclosed. If the brief is silent, ask the recruiter by email and keep the reply.
  2. Plan before you prompt. Spend the first part of your time writing the scope, the data model and the cases you will cover. Give the agent that plan, not the raw brief.
  3. Work in small commits. One commit per step, with messages that say why. Reviewers read history to see how you worked.
  4. Write the tests yourself, or review them line by line. Tests that an agent wrote to match its own code prove little. Add at least the edge cases you chose.
  5. Add a NOTES.md. Cover decisions and trade-offs, what you left out and why, how to run it, and a plain statement of what the agent wrote and what you changed.

Before and after

Weak submission note:

Built with Claude Code. All tests pass. Run `npm start`.

Stronger note:

## Decisions
- SQLite instead of Postgres: no setup for the reviewer; the repository layer hides it.
- Duplicate webhook events are ignored by event id (see `test/webhook.test.ts`).

## AI use
Claude Code drafted the route handlers and the first test pass. I rewrote the
retry logic (it retried on 400 errors) and added the duplicate-event tests.

## Not done
No auth. I would add it next, with per-key rate limits.

What goes wrong

  • Ignoring a rule. Using a tool the brief bans, or hiding use the brief says to disclose, can end the process even if the code is good.
  • Over-building. An agent will happily add a plugin system to a two-hour task. Cut scope to what the brief asks.
  • Unexplained code. If you cannot explain a function in the follow-up call, the reviewer will assume you did not write or read it.
  • Hiding the gaps. Naming what is missing reads as judgement. Leaving it out reads as not noticing.

Examples

A notes file that works

Sections: how to run, decisions with one-line reasons, AI use (tool, what it drafted, what you changed), known gaps and next steps. Keep it under one page.

Catching a bug in agent code

Agent retry loop retried on any non-200. You noticed a 400 would retry three times, fixed it to retry only 429 and 5xx, and added a test. Mention this in the notes; it is concrete proof of review.

Key points

  • Read the stated AI rules first, and ask in writing when the brief is silent.
  • Plan the scope yourself before you prompt, so the agent builds your design.
  • Small commits with reasons show how you worked, not just the end state.
  • Tests you wrote or reviewed line by line prove more than tests the agent wrote to fit its own code.
  • A notes file that separates agent-written from your own changes is part of the deliverable.
  • Name what you left out; it shows you saw the gap.

Common mistakes

  • Starting to prompt before reading the brief and rules closely.
  • Submitting agent-written tests as proof the code works.
  • Leaving the AI use undisclosed when the brief asks for disclosure.
  • Building extra features instead of finishing the asked scope cleanly.

Check yourself · 2 of 3

Which note in a submission best shows your own judgement?

Choose one answer

Check yourself · 3 of 3

You have limited time and the brief asks for three endpoints. The agent offers to add caching, auth and a plugin system. What do you do?

Choose one answer

Practice items, not counted towards your mastery.

Start here