Ir para o conteúdo

Autocompletar e assistente de código

Continuar, explicar e revisar código no editor

entradaTextoCódigoCódigo

O texto completo é apresentado em inglês; o título e o resumo estão traduzidos.

O que esta capacidade significa

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.

Como é feita tecnicamente

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.

Produtos representativos

4

Microsoft

GitHub Copilot

Completa e reescreve código no editor conforme o contexto

2Capac.
Ferramenta Gratuito com plano pago
TextoCódigoCódigo
2021

Anysphere (Cursor)

Cursor

Um editor de código de desktop que usa o repositório inteiro como contexto

3Capac.
Aplicativo Gratuito com plano pago
TextoCódigoCódigo
2023

Anthropic

Claude Code

Um agente de código que executa tarefas de várias etapas no terminal

3Capac.
Ferramenta Fechado
TextoCódigoCódigo
2025

Cognition (Devin)

Devin

Um agente de código autônomo com shell, editor e navegador próprios

4Capac.
Aplicativo Fechado
TextoCódigoCódigo
2024

Organizações 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

Como avaliar se funciona bem

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

Limites e dificuldades

  • 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

Conceitos por trás

PLN e grandes modelos de linguagem

Arquitetura TransformerIntermediário

Substituir o revezamento palavra a palavra por uma sala onde todos falam ao mesmo tempo, deixando dependências distantes a um salto

4Vínculos
Figuras 2 · Dados 2

Engenharia, segurança e ética de IA

Geração aumentada por recuperaçãoIniciante

Em vez de espremer o conhecimento nos parâmetros, deixá-lo fora e consultá-lo sob demanda — como um exame com livro aberto

4Vínculos
Figuras 2 · Dados 1