Saltar al contenido

Autocompletado y asistente de código

Continuar, explicar y revisar código en el editor

Código y softwarePrincipiante#34
entradaTextoCódigoCódigo

El texto completo se presenta en inglés; el título y el resumen están traducidos.

Qué significa esta capacidad

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.

Cómo se consigue técnicamente

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.

Productos representativos

4

Microsoft

GitHub Copilot

Completa y reescribe código en el editor según el contexto

2Capac.
Herramienta Freemium
TextoCódigoCódigo
2021

Anysphere (Cursor)

Cursor

Un editor de código de escritorio que usa todo el repositorio como contexto

3Capac.
Aplicación Freemium
TextoCódigoCódigo
2023

Anthropic

Claude Code

Un agente de código que resuelve tareas de varios pasos desde la terminal

3Capac.
Herramienta Cerrado
TextoCódigoCódigo
2025

Cognition (Devin)

Devin

Un agente de código autónomo con su propio shell, editor y navegador

4Capac.
Aplicación Cerrado
TextoCódigoCódigo
2024

Organizaciones relacionadas

Usos típicos

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

Cómo se evalúa

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

Límites y dificultades

  • 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

Conceptos detrás

PLN y grandes modelos de lenguaje

Arquitectura TransformerIntermedio

Sustituir el relé palabra a palabra por una sala donde todos hablan a la vez, para que las dependencias lejanas estén a un salto

4Vínculos
Figuras 2 · Datos 2

Ingeniería, seguridad y ética de la IA

Generación aumentada por recuperaciónPrincipiante

En lugar de meter el conocimiento en los parámetros, dejarlo fuera y consultarlo cuando haga falta: como un examen a libro abierto

4Vínculos
Figuras 2 · Datos 1