Skip to content

Umbrella Ticket: Improve Code Completion #201

@JonasHelming

Description

@JonasHelming

PO: @haydar-metin @planger

Below you can find several suggestions for improvements. Please create a dedicated subticket when working on them.

Description

The current implementation of the code completion agent sends either the full file or a fixed number of surrounding lines to the LLM without any preprocessing or contextual enhancements.
By incorporating additional information and smarter prompt engineering, the completion results can become more accurate.

  • Complexity:
    • Easy: 2h
    • Medium: 4h
    • High: 4+

It is important to strike a balance between speed and quality, especially for code completion, where response time is crucial. We should aim to send as little as possible while maximizing the impact of the information, since more input tokens increase processing time.

LLM Models

Prompt Engineering (Medium)
Improve the prompt format with model-appropriate patterns and inline examples if beneficial.
Depending on the selected model, adjust prompting strategy accordingly:

Context Enhancements

Include the following information when constructing the prompt:

IDE

Code

User Specific Snippets


  • Look at other OS tools such as continue.dev to get the latest state-of-the-art
  • Repair "immediate inline completion" (currently triggers to eager and often)

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions