Skip to content

[ENHANCEMENT] Support inline code completion (FIM) #12261

@tongkangyu

Description

@tongkangyu

Problem (one or two sentences)

Users must install additional plugins (e.g., Continue) just for real-time inline code completions, breaking a unified AI coding experience inside Roo Code.

Context (who is affected and when)

Roo Code excels at chat-based coding assistance, but when users need fast, predictive inline completions while typing, they must switch to another tool. This affects all developers who want a single-tool workflow, especially those with limited resources or who use affordable FIM-capable models like DeepSeek.

Desired behavior (conceptual, not technical)

Roo Code should optionally offer ghost-text-style inline completions as the user types, similar to GitHub Copilot. The user simply presses Tab to accept a suggestion, without opening a chat panel or installing another plugin. The completion model can be configured separately from the chat model.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

Introduce a lightweight completion provider that calls a FIM-compatible API (e.g., /v1/completions with <> / <<>> tokens). Re-use any existing editor hooks for inline suggestions, or adapt patterns from open-source plugins like Continue.

Trade-offs / risks (optional)

Need to handle cases where the FIM model returns low-quality suggestions without distracting the user.

Could overlap with the chat panel's "generate code" features, but the two serve different interaction modes (passive vs. active).

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions