Skip to content
atlas

AI coding assistant

Also known as: coding assistant, AI code assistant

A tool built into a programmer's editor that suggests, explains and rewrites code using a large language model.

Draft - this entry has not been reviewed yet.

Formal

Software that sends the code a developer is working on, plus nearby files and a request, as context to a large language model and shows the answer as inline code completion, chat replies or proposed edits that the developer accepts or rejects.

In plain English

Like a helper who has read a great deal looking over your shoulder while you write - quick with ideas and happy to explain, but it has not seen your whole project and is sometimes confidently wrong.

In practice

A newly hired developer in a region's IT department asks the assistant what an old function in the lab system does, gets a short explanation, then has it draft the missing input checks, which she reads and adjusts.

Why it matters

It speeds up routine work, but whatever code and secrets are open in the editor may be sent to an outside provider, and its suggestions can carry the same flaws as the public code it learned from.

Technical deep dive

The category took shape with GitHub Copilot, released as a technical preview in June 2021 on OpenAI's Codex model and made generally available in June 2022. The Codex paper (Chen et al., 2021) also introduced the HumanEval benchmark of 164 hand-written Python problems scored by unit tests with the pass@k metric; the 12-billion-parameter Codex solved 28.8% at pass@1, a figure current models far exceed. Today's assistants combine several interaction modes in one editor extension: inline code completion, a chat panel, inline edits of a selection, multi-file edits, and increasingly an agent mode that blurs into a full coding agent.

Architecturally the interesting part is the context engine, not the model. On each request the client gathers candidate context (the current file around the cursor, other open and recently viewed files, symbols and types from the language server, snippets retrieved from a repository index by embedding or keyword search, and project instruction files), ranks it, and packs it into a token budget. Completion requests need latency in the low hundreds of milliseconds and so use small, fast models with tight budgets; chat and edit requests can afford larger models and longer contexts. Responses pass through post-processing: syntax checks, filters for secrets and offensive content, and optionally a filter that suppresses suggestions matching public code, which vendors offer to reduce licence exposure.

Data governance is the main enterprise concern. Whatever is in the assembled context leaves the workstation, including secrets in open .env files, personal data in test fixtures and proprietary code. Organisations should check the vendor's terms on retention and on training with customer code, configure content exclusions for sensitive paths, and, under GDPR, treat the provider as a processor where personal data may be sent, with a data processing agreement and a lawful basis for any transfer outside the EEA under Chapter V. Self-hosted or local models trade quality for control.

On code quality, the classic measurement is Pearce et al. (2022), who prompted Copilot with 89 security-relevant scenarios and found that about 40% of the 1,689 generated programs contained a CWE-listed weakness. Assistants reproduce patterns common in public code, including insecure ones, and repository content read as context can carry prompt injection that steers chat answers. Vendor productivity metrics such as acceptance rate measure how often suggestions are kept, not whether the resulting code is correct or maintainable, so teams should pair adoption with the same SAST, dependency scanning and review they apply to human-written code.

What to learn first

Everything this builds on, foundations first.

  1. Token
  2. →Context window
  3. →Transformer
  4. →Large language model (LLM)
  5. →AI coding assistant

Relationships

Consists of
Code completion
Don't confuse with
Coding agent

Sources & further reading

Reference works

  • Chen et al. (2021), Evaluating Large Language Models Trained on Code
  • Pearce et al. (2022), Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions (IEEE S&P)

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Mentioned in

Check yourself

Loading…

Atlas is in beta.