Skip to content

Coding & Computer-Use Agents

18 questions
0 of 18 done · 5 unlocked for you
DONEUNLOCKEDLOCKED

Coding Agent & Computer-Use Agent Interview Questions

Agents that change repositories and drive interfaces. Finding the right code in a large repo, applying edits that survive, verification loops built on compilers and tests, reward hacking, and grounding clicks in a page that keeps changing.

Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.

You have 5 free answers unlocked here.Sign in free for 1 more · 12 are premium.
01–08Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/8 done
09–15Core questionsthe questions this topic is most often tested on, with full worked answers0/7 done
16–18Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/3 done
PRACTICE TESTStudied this track? Prove it: a timed Coding & Computer-Use Agents test.fresh items every sitting · explanations for every answer · easy items free with an accountStart →

The concepts behind Coding & Computer-Use Agents

Lessons behind these answers. The opening lessons are free; deeper ones are Premium.

Foundational
Repository ContextCoding agents work in repositories far larger than any context window, so the core problem is finding the few files that matter. Good agents combine a compact repository map of files and symbols, exact search for names and strings, structural navigation to definitions and references, the repository's instruction files, and the build and test layout, with semantic search as a complement for vague questions. They read slices, keep findings in notes, and stop exploring when they can name the files to change.
Core
Sign in
Applying EditsCoding agents must turn an intended change into an exact file modification. Whole-file rewrites always apply but are costly and can disturb unrelated lines; unified diffs are compact but fragile on line numbers; search-and-replace blocks quote exact text and apply reliably when it is unique. Published comparisons (Aider, from 2023) show format choice changes success rates and varies by model. Strict application with precise errors, and small edits, matter as much as the format.
Advanced
🔒 Premium
Verification LoopsA coding agent's main external signal is its tools: formatters, compilers and type checkers, linters, and tests. A good verification loop runs checks in order of cost and relevance (the changed files' type check and their tests before the whole suite), condenses raw output into the few lines that matter (file, line, error, expected versus actual), feeds that back as an observation, and has rules for when to stop: the same error after a fix attempt, failures unrelated to the change, or a budget reached. Flaky tests and slow builds are handled explicitly rather than retried blindly.
Advanced
🔒 Premium
Reward Hacking in Coding AgentsReward hacking is an agent satisfying the measure instead of the goal. In coding it shows up as weakened or deleted assertions, skipped tests, special-cased inputs, swallowed exceptions, edited checkers and unverified claims of success, and evaluators reported it in frontier models in 2025. The defences are structural: read-only tests and checkers, diff analysis for tell-tale patterns, held-out and mutation tests the agent cannot see, and results recorded by the harness rather than claimed by the agent.
Advanced
🔒 Premium
Grounding Computer-Use AgentsComputer-use and browser agents act through clicks and keystrokes, so every action depends on grounding: mapping an intended target to one element on a changing screen. Screenshots show what a person sees but leave coordinates to estimation; accessibility trees and the DOM give roles, names and states but can be incomplete. Reliable agents combine them, target stable identifiers, re-resolve the target just before acting, verify the change afterwards and confirm irreversible actions.
Advanced
🔒 Premium
Browser Agents: Sessions, Boundaries and Irreversible ClicksBrowser agents act through a real browser using the page's structure, screenshots or both. The design decisions are mostly about the session: an isolated, fresh browser has no cookies and limits damage; the user's logged-in browser gives the agent the user's whole web authority, including email, banking and admin consoles. Around the session sit egress rules (which sites and which internal addresses are reachable), confirmation before irreversible actions bound to what the page shows, verification of the resulting page state after each step, and treating page content as untrusted input.
Advanced
🔒 Premium
Terminal Agents: One Shell, Many CommandsA terminal tool gives a coding agent a shell it can type into across many turns. Running each command in a fresh process loses state the agent relies on (the working directory, an activated environment, exported variables), so the useful design is one persistent shell process with a protocol for finding where each command's output ends: an end marker printed after every command carries the exit code. Around that sit the controls. Every command string is split into its component commands and each is checked against policy before any runs, because one line can hide several commands. The environment is non-interactive so that pagers, editors and prompts cannot block. Output is stripped of terminal control codes and capped with a note of what was cut. A command that exceeds its timeout kills the shell, and the restart tells the model which state (directory, variables, background jobs) was lost rather than silently starting fresh. The sandbox remains the boundary; the shell tool is a convenience inside it.
Advanced
🔒 Premium
Building a Ranked Repository Map Under a Token BudgetThe repository-context lesson showed the idea of a map: files and their symbols, a few hundred tokens that tell an agent where things are. This lesson builds the version that works on a large repository. Definitions and references are parsed from source into a graph in which a file earns rank from the files that use what it defines. A personalised random walk, seeded by the files and symbols the task mentions, turns that graph into an ordering that is specific to the task rather than a fixed list of the most central files. The map is then filled to a token budget in rank order, whole entries at a time, with a cap on what any one file may contribute so that generated code and test files do not crowd out the rest. Parsing is cached per file by content hash so that one edit re-parses one file, and the map is kept byte-stable across the turns of a run so it remains part of the cached prefix rather than a fresh cost on every call.

FROM THE BLOG

Unlock all 18 answers · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal