A Minimal-Context Take-Home Test for AI Code Reviewers: When More History Hurts A developer has created a take-home test to evaluate AI code reviewers' ability to ignore stale repository context. The test uses a small Flask app with a misleading comment and runs the same prompt under three context regimes, revealing that excessive history often leads to worse feedback. The exercise aims to separate useful contextual awareness from harmful memory in AI review tools. Recent discussions about AI assistants that trust every archived comment raise a practical question for engineering teams: does an AI code reviewer become more accurate when given the full repository history, or does it just become more confidently wrong? Experience with review bot evaluations suggests that an excessive or stale context often produces worse feedback than a bare diff. The following take-home task offers a repeatable method for separating useful contextual awareness from harmful memory, using only a small Python script and a free model endpoint. Most AI code review tools advertise deep repository awareness, but nobody tests how that awareness degrades when the repository contains outdated TODOs or superseded architecture decisions. A reviewer that naively trusts every comment can reject a perfectly valid fix because a two-year-old note says otherwise. The test below builds a small repository with a deliberately misleading comment, then runs the same prompt under three context regimes. The result shows whether a candidate tool can ignore noise without losing signal. The exercise is designed to be completed in under 90 minutes. Candidates receive a prompt, a sample pull request that fixes a real bug, and a rubric. They must run an AI reviewer against the PR using three context configurations and report scores. No proprietary infrastructure is required; ordinary laptops and free-tier APIs work fine. The repository is a tiny Flask application with a calculate discount function. The PR changes the discount formula from a flat 10% to a tiered system based on order amount. It also adds a unit test and updates the README. Crucially, the code contains a stale comment in app.py : TODO: after the Black Friday sale, remove the flat 10% discount — a comment that was accidentally left from a previous sprint and now contradicts the PR's intent. The same prompt is used in all three runs, asking the reviewer to identify the functional change, check for regressions, and assess test coverage. The exact prompt is shown below. It is deliberately neutral to avoid steering the model toward or away from the stale comment. You are reviewing a pull request. Here is the diff: