ModelRefs / AI Pair Programmer — Architecture Blueprint

AI Pair Programmer — Architecture Blueprint

Production architecture blueprint for AI Pair Programmer: components, deployment, cost and latency, failure modes, evaluation and governance.

Overview

This is the implementation view of AI Pair Programmer: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.

5 components to assemble, 5 documented failure modes, medium implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.

Implementation complexity
medium
Components
5
Failure modes
5
Evaluation readiness
documented
Sources
2read 2026-11-20

What this workflow takes in and produces

Takes in

  • open files and project context
  • repository conventions and patterns
  • tests and diagnostics
  • developer prompts

Produces

  • code suggestions
  • explanations
  • convention-aware edits
  • references to internal patterns

Applied to

  • in-editor code completion and chat
  • project-aware suggestions that follow local conventions
  • explaining and navigating unfamiliar code

Components you need to assemble

A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.

  • editor or IDE integration
  • project context indexing
  • convention and pattern retrieval
  • telemetry on acceptance and time
  • organisation data and licensing controls

Implementation complexity: medium. This describes the integration and evaluation effort, not the difficulty of any single component.

Deployment patterns

Deployment options recorded for this workflow: managed-api, hybrid.

Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.

Cost and latency

  • Seat or token cost is small next to developer time, so measure net time per task including review and correction.
  • Completion latency affects usefulness more than throughput.

How this workflow fails

Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.

  • plausible but wrong code accepted
  • suggestions that ignore project conventions
  • time lost reviewing and correcting suggestions
  • confidential code sent to a provider
  • reduced understanding of generated code

Risk areas the evidence covers

  • task time
  • code correctness
  • convention adherence
  • review and correction time
  • data exposure

Proving it works before you ship

Evaluation readiness: Documented — Task time, defect, acceptance and developer-experience measures are defined; the study results below conflict, so a pilot on your own tasks is required.

Worked evaluation case: With-and-without pilot on real tasks

Assign real tasks from the team's backlog at random to be done with or without the assistant and record time, defects and reviewer effort.

What to measure

  • task completion time
  • defects found in review and later
  • suggestion acceptance and rework
  • convention adherence
  • developer-reported experience

Governance and data handling

  • Decide which repositories and files the assistant may read and which provider may receive them, and apply licensing and attribution policy to suggestions.
  • Developers remain responsible for code they accept; keep normal review and testing.

Implementation notes

  • Run a time-boxed pilot on your own tasks with and without the assistant, and measure total time including review and correction.
  • Capture project conventions in context files and measure whether suggestions follow them.

What this blueprint does not establish

  • The 2023 experiment measured one greenfield task and says nothing about work in large existing codebases or code quality.
  • The 2025 trial had 16 participants, the authors say experimental effects cannot be ruled out, and it used early-2025 tools.
  • No team, codebase, task mix, tool or acceptance threshold is registered for a target deployment.
  • No measured task time, defect rate or developer experience for the target team with a current assistant is attached.

Source coverage: Documented — A 2023 controlled experiment supports that developers with Copilot finished one JavaScript HTTP-server task 55.8 percent faster. A 2025 randomised trial of 16 experienced open-source developers on 246 tasks in their own mature repositories found AI tools increased completion time by 19 percent, while developers expected a speed-up. The two differ in task, participants and tools, so neither settles the effect for your team.

Sources read on 2026-11-20. The tools studied have changed since both studies, so treat them as bounds on what is possible, not forecasts.

Sources

Candidate models and benchmarks

Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the AI Pair Programmer workflow reference. This blueprint covers implementation; that page covers selection.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to AI Pair Programmer — Architecture Blueprint.