Skip to content
AGENT STARTUP

Cognition AI Agent Engineer interview questions

Cognition builds Devin, which it describes as an autonomous AI software engineer that runs in the cloud or on your machine and tests in its own browser, taking tickets, bug reports and migrations, with Devin Review for code review and a Devin CLI.

The Cognition AI Agent Engineer interview process

Limited public data
Limited public data. Cognition's own pages read on 24 November 2026 describe its agent products but not its engineering interview rounds. Ask the recruiter which rounds to expect and which tools each allows.

Sources and review scope

Drawn from the employer's own careers pages and from candidates' public write-ups, each listed under Sources. A product team and a platform team at the same employer can run different loops, and level and location change it again, so treat this as an outline and ask your recruiter for your actual rounds.

Cognition AI Agent Engineer salary

Every number names its source. Where no job listing or aggregator gave a range for this company, the page says that and shows no number.

NO VERIFIED BAND

We do not have a verified compensation band for this role at Cognition recorded in this profile. Check the current posting for the role, level and location before comparing offers. Their careers page is the authority, and postings in some jurisdictions are required to state a range.

Practice questions on the suggested topics

Nothing is tagged to Cognition yet. These are the top-voted questions in the topics its rounds draw on.

16 questions · 8 unlocked for you

Topics to prepare for Cognition

Our suggestion for an agent engineering loop at Cognition, ordered easy to hard. It is not a list Cognition has published; the process section above says what it has.

The concepts Cognition's AI Agent Engineer loop assumes you know

What a Cognition interviewer expects you to reason from without being told: memory traffic, KV sizing, scheduling, parallelism. Foundation concepts are free to read, the advanced ones need Premium.

CODING & COMPUTER USE

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.
CoreSign 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.

AGENT HARNESSES

Foundational
Anatomy of an Agent HarnessAn agent harness is the complete runtime around a model: the loop that calls it, tools for files, shells and search, a permission layer that decides which calls run, an append-only session log from which every model request can be rebuilt, context management that clears and compacts history, subagents for isolated work, skills that package procedures, hooks at fixed events, and a sandbox. Coding agents made harnesses visible, and 2026 brought open harnesses such as DeepSeek Harness and research such as Google's Harness², which improves agents by editing the harness rather than the model.
CoreSign in
DeepSeek Harness and the Everything-Is-a-Plugin DesignDeepSeek Harness, run as dsh, is an MIT-licensed developer preview built on the Cordis plugin framework. Its architecture has no privileged core: the model adapter, tool registry, session log and agent loop are all plugins, grouped into profiles such as web, headless, sdk and acp. A step is one model request plus the tools it calls; a turn is zero or more steps, announced by events from turn start to turn end. The session is an append-only event log, versioned on disk, and every model request must be reconstructable from it.
Advanced🔒 Premium
Improving the Harness, Not the Model: Harness²Harness² (arXiv 2610.14224, October 2026; Google Cloud AI Research with Northwestern University; Apache-2.0 code, not an officially supported Google product) treats an agent's harness as eight editable components while the model stays frozen. For each task it runs the current harness, proposes a general and a domain-specific candidate, runs both, contrasts trajectories and outputs, and composes the supported edits. A library of harnesses and lessons carries improvements forward. With frozen executors it reported gains such as 64.2 to 75.7 on one benchmark, and it lists limits: run-to-run randomness, shared model biases and extra cost.
Advanced🔒 Premium
How a Harness Decides What Runs: Permission Rules, Modes and HooksA harness turns each proposed tool call into allow, ask or deny. Hooks can rule first; rules are then checked deny before ask before allow, so a broad deny beats a narrow allow; a compound shell command runs only if every part is allowed; the mode supplies the default when no rule matches; and with nobody to ask, ask becomes deny. Hooks also rewrite input, add context, check results and can refuse to let a turn end. Rules and hooks are policy and feedback, not a boundary: the same effect has many spellings.

AGENT RUNTIME

Foundational
Isolation BoundariesCode an agent writes is shaped by its inputs, which may be untrusted, so it must run as untrusted code. Containers share the host kernel and rely on namespaces, cgroups and syscall filters; gVisor interposes a user-space kernel; microVMs such as Firecracker give each workload its own kernel behind a hypervisor; WebAssembly exposes only granted capabilities. Choose by threat and workload, and add the same controls to every option: egress rules, a scoped filesystem, resource limits and no credentials inside.
CoreSign in
Credentials Outside the SandboxAgent sandboxes often need to reach authenticated services (a Git host, a package registry, an internal API), but any credential placed inside can be read by the code running there and exfiltrated. The standard answer is a credential broker at the sandbox boundary: the sandbox sends unauthenticated requests through it, the broker checks each request against a narrow policy (which host, which methods, which paths or repositories), attaches a short-lived, least-privilege credential, and logs the call. Network egress is forced through the broker, so there is no other way out.
Advanced🔒 Premium
Agent Economics: Prefill, Caching and RoutingFrom the agent builder's side, a run's cost and latency come from four places: input processing (the whole context is read every turn, so it grows with the square of the turn count), output generation (slower per token but usually far fewer tokens), tool time and output generation (which together usually dominate wall-clock), and orchestration overhead. The levers follow: shrink what is resent (clearing, trimming tool results), cache stable prefixes, route routine steps to smaller or faster models, run independent tool calls in parallel, and cap turns. Measuring per step, from traces, shows which lever matters for a given agent.
Advanced🔒 Premium
Workspaces, Snapshots and Cold StartsStarting an agent session that runs code involves booting an isolated environment, fetching the workspace (a repository, data files), installing dependencies and warming caches, which together can take far longer than the first model call. The runtime hides this with layered images that bake in common toolchains, snapshots that restore a prepared environment instead of rebuilding it, warm pools sized from the arrival rate and preparation time, and persistent workspaces that carry files between sessions while secrets and credentials are excluded and re-issued each time.

AGENT EVALS

Foundational
pass@k and pass^kAgents give different results on the same task from run to run, so a single success rate hides what matters. pass@k, from code-generation benchmarks (Chen et al., 2021), is the probability that at least one of k attempts succeeds, which is the right number when a verifier can pick the good attempt. pass^k, used in agent benchmarks such as τ-bench (Yao et al., 2024), is the probability that all k attempts succeed, which is the right number when every run reaches a user. They move in opposite directions as k grows, and both have unbiased estimators from n runs per task.
Foundational
Outcome and Trajectory GradingOutcome grading checks the world after the run (database rows, files, test results, the message sent) and is robust to the many valid paths an agent can take. Trajectory grading checks the path itself: forbidden actions, required confirmations, order constraints, cost and step counts. Matching a run step by step against a reference trajectory is brittle and penalises valid alternatives, so trajectory checks should be stated as invariants. Code graders handle most of both; model-based graders cover qualities code cannot check, such as whether a reply was clear, and need calibration.
CoreSign in
Calibrating an LLM JudgeModel-based graders scale evaluation to qualities code cannot check, but they have known biases: preferring longer answers, the first option in a pair, and outputs from their own model family (Zheng et al., 2023). Calibrating a judge means building a human-labelled set, measuring the judge's agreement with people beyond chance (for example with Cohen's kappa), looking at which errors it makes (false passes are usually the costly ones), tightening the rubric into specific, checkable criteria, and re-running the calibration when the judge model, rubric or task distribution changes.
Advanced🔒 Premium
Tracing AgentsA trace records an agent run as a tree of spans: the run, each turn, each model call and each tool call, with timings, token counts, cache reads, costs, model and prompt versions, and which part of the system made each decision. Good tracing answers operational questions (where did the latency go, what does a task cost) and debugging questions (why did it do that), and it feeds evaluation: failed production traces become regression cases. Standard conventions such as OpenTelemetry's generative-AI attributes (still evolving in 2026) let traces flow into existing tools, and redaction and sampling keep them safe and affordable.

Where to apply, and official Cognition resources

Straight from Cognition: open roles and the company's own hiring guidance. Prep here, then apply there.

External links to Cognition's own pages. Roles and processes change; always confirm on the official site.

ABOUT THE ROLE
COGNITION INTERVIEW FAQ
Does Cognition publish its interview process?▲

Not on the pages we read on 24 November 2026, which describe its products, roles and values but not its interview rounds. Ask the recruiter which rounds to expect and which tools each allows.

What agent work does Cognition do?▼

Walk into your Cognition AI Agent Engineer interview ready

The question bank covers the loop, tools, context, evaluation, durable execution and the full design round, and every answer draws the line between what the model decides and what the code enforces. Read the free answers first and judge the depth yourself.

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

Or create a free account to unlock more free answers per topic.

Other AI Agent Engineer interviews to prep

Companies whose loops test the same tracks as Cognition's.

Independent and not affiliated with Cognition. All trademarks belong to their owners.