Zum Inhalt springen

Codevervollständigung und Programmierassistent

Code im Editor ergänzen, erklären und ändern

Code & SoftwareAnfänger#34
EingabeTextCodeCode

Der vollständige Artikel liegt auf Englisch vor; Titel und Zusammenfassung sind lokalisiert.

Was diese Fähigkeit bedeutet

Takes the code context around the cursor plus an intent — complete a line, change a function, explain the logic — and outputs an edit that can be adopted directly. Its constraint is consistency with the existing repository rather than producing an isolated snippet. Unlike code generation it makes local changes inside existing files and conventions, and therefore leans more on context.

Wie sie technisch umgesetzt wird

A common approach concatenates the current file, nearby symbols and retrieved related snippets into the prompt so the model completes or rewrites within full context; repository-level assistants use code retrieval to surface relevant definitions and call sites. Edit requests are often framed as generating a patch that is then applied, which makes review and rollback easy. The system is tightly coupled to the IDE and needs low-latency inference with incremental context updates.

Repräsentative Produkte

4

Microsoft

GitHub Copilot

Ergänzt und überarbeitet Code im Editor aus dem Kontext

2Fähigk.
Werkzeug Freemium
TextCodeCode
2021

Anysphere (Cursor)

Cursor

Ein Desktop-Code-Editor, der das ganze Repository als Kontext nutzt

3Fähigk.
App Freemium
TextCodeCode
2023

Anthropic

Claude Code

Ein Coding-Agent, der mehrstufige Aufgaben im Terminal erledigt

3Fähigk.
Werkzeug Geschlossen
TextCodeCode
2025

Cognition (Devin)

Devin

Ein autonomer Coding-Agent mit eigener Shell, Editor und Browser

4Fähigk.
App Geschlossen
TextCodeCode
2024

Beteiligte Organisationen

Typische Verwendungen

  • Line-by-line completion while coding
  • Bug fixes and refactoring suggestions
  • Explaining code and onboarding into an unfamiliar repo
  • Writing tests and doc strings

Wie sie bewertet wird

Suggestion acceptance rate
Share of suggestions developers keep, closest to real experience
pass@k
One-shot success on tasks with tests
Test pass rate for a single edit
Whether the repository tests still pass after one edit

Grenzen und schwierige Punkte

  • It edits the wrong variable or misses call sites, producing code that clashes with the surrounding semantics
  • Repository understanding is capped by the context window, so distant constraints are missed in large projects
  • It can emit outdated or insecure patterns that the author must review

Konzepte dahinter

NLP und große Sprachmodelle

Transformer-ArchitekturFortgeschritten

Statt Wort-für-Wort-Stafette ein Raum, in dem alle zugleich sprechen — und weite Abhängigkeiten sind nur einen Schritt entfernt

4Bezug
Abbildungen 2 · Daten 2

KI-Engineering, Sicherheit und Ethik

Retrieval-Augmented GenerationAnfänger

Wissen nicht in die Parameter stopfen, sondern draußen halten und bei Bedarf nachschlagen – wie eine Open-Book-Prüfung

4Bezug
Abbildungen 2 · Daten 1

NLP und große Sprachmodelle

Prompt-Engineering und AlignmentExperte

Ein Modell hilfreich, ehrlich und harmlos zu machen ist schwieriger, als es einfach größer zu machen

4Bezug
Abbildungen 1 · Daten 1