# microsoft/copilot-for-eclipse architecture

> Architecture diagram of the GitHub repository microsoft/copilot-for-eclipse, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/copilot-for-eclipse
- Repository: https://github.com/microsoft/copilot-for-eclipse

## Overview

GitHub Copilot for Eclipse is an Eclipse IDE assistant. Users sign in, receive inline completion or next-edit suggestions, and use Ask/Agent chat for project-aware tasks; the core language-server connection mediates Copilot requests, while chat also supports customization, MCP tools, and review of proposed file changes. Conversation state can be persisted locally. The README establishes capabilities beyond the sampled implementation; those are represented as documented subsystems without asserting unsampled call paths. Edges below are limited to relationships visible in excerpts or explicitly documented.

Main entry points: [`com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java`](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java) (Language server), [`com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java`](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java) (Chat experience), [`com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat`](https://github.com/microsoft/copilot-for-eclipse/tree/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat) (Agent capabilities), [`com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java`](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lifecycle["Plugin and identity"]
  node_core["Core plugin<br/>[CopilotCore.java]"]
  node_auth["Authentication"]
end

subgraph group_editing["Editor assistance"]
  node_completion["Code completions"]
  node_nes["Next edit suggestions"]
end

subgraph group_chat["Chat and agents"]
  node_chatui["Chat experience<br/>[ChatView.java]"]
  node_agent["Agent capabilities<br/>[chat]"]
  node_custommodes["Custom agents"]
  node_customfiles["Customization files"]
  node_filetools["File change review"]
  node_context["Context window"]
  node_references["File references"]
end

subgraph group_integration["Language server and tools"]
  node_mcpinstall["MCP setup"]
  node_terminal["Terminal tools"]
  node_language["Language server"]
end

subgraph group_state["Preferences and persistence"]
  node_preferences["Server settings"]
  node_conversations[("Conversation persistence")]
end

node_developer(("Eclipse user"))
node_copilot{{"Copilot service"}}

node_developer -->|"signs in"| node_auth
node_auth -->|"requests auth"| node_language
node_developer -.->|"edits code"| node_completion
node_developer -.->|"edits code"| node_nes
node_developer -.->|"asks Copilot"| node_chatui
node_completion -.->|"requests suggestions"| node_language
node_nes -.->|"requests edits"| node_language
node_chatui -.->|"supports chat"| node_agent
node_agent -.->|"sends requests"| node_language
node_custommodes -->|"loads modes"| node_language
node_customfiles -->|"lists files"| node_language
node_developer -->|"drops files"| node_references
node_references -->|"adds references"| node_chatui
node_developer -.->|"reviews changes"| node_filetools
node_chatui -.->|"reviews proposals"| node_filetools
node_developer -.->|"configures MCP"| node_mcpinstall
node_mcpinstall -->|"updates config"| node_preferences
node_agent -.->|"uses tools"| node_terminal
node_language -.->|"exchanges protocol"| node_copilot
node_preferences -.->|"syncs settings"| node_language
node_chatui -.->|"persists turns"| node_conversations
node_language -.->|"provides usage"| node_context

click node_core "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/CopilotCore.java"
click node_auth "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java"
click node_completion "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java"
click node_nes "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/nes/NextEditSuggestionProvider.java"
click node_chatui "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java"
click node_agent "https://github.com/microsoft/copilot-for-eclipse/tree/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat"
click node_custommodes "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java"
click node_customfiles "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java"
click node_filetools "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java"
click node_mcpinstall "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java"
click node_terminal "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.terminal.api/src/com/microsoft/copilot/eclipse/terminal/api/TerminalServiceManager.java"
click node_language "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java"
click node_preferences "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java"
click node_conversations "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/persistence/ConversationPersistenceService.java"
click node_context "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/contextwindow/ContextWindowService.java"
click node_references "https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core,node_auth,node_developer toneBlue
class node_completion,node_nes toneAmber
class node_chatui,node_agent,node_custommodes,node_customfiles,node_filetools,node_context,node_references toneMint
class node_mcpinstall,node_terminal,node_language toneRose
class node_preferences,node_conversations,node_copilot toneIndigo
```

## Components

### Plugin and identity

- [Core plugin](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/CopilotCore.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/CopilotCore.java`
- [Authentication](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java`

### Editor assistance

- [Code completions](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java`
- [Next edit suggestions](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/nes/NextEditSuggestionProvider.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/nes/NextEditSuggestionProvider.java`

### Chat and agents

- [Chat experience](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java`
- [Agent capabilities](https://github.com/microsoft/copilot-for-eclipse/tree/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat`
- [Custom agents](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java`
- [Customization files](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java`
- [File change review](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java`
- [Context window](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/contextwindow/ContextWindowService.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/contextwindow/ContextWindowService.java`
- [File references](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java`

### Language server and tools

- [MCP setup](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java`
- [Terminal tools](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.terminal.api/src/com/microsoft/copilot/eclipse/terminal/api/TerminalServiceManager.java): `com.microsoft.copilot.eclipse.terminal.api/src/com/microsoft/copilot/eclipse/terminal/api/TerminalServiceManager.java`
- [Language server](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java`

### Preferences and persistence

- [Server settings](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java): `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java`
- [Conversation persistence](https://github.com/microsoft/copilot-for-eclipse/blob/main/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/persistence/ConversationPersistenceService.java): `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/persistence/ConversationPersistenceService.java`

### Other components

- **Eclipse user**
- **Copilot service**

## Connections

- Eclipse user → Authentication: signs in (evidence: `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java`)
- Authentication → Language server: requests auth (evidence: `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java`)
- Eclipse user → Code completions: edits code (evidence: `README.md`)
- Eclipse user → Next edit suggestions: edits code (evidence: `README.md`)
- Eclipse user → Chat experience: asks Copilot (evidence: `README.md`)
- Code completions → Language server: requests suggestions
- Next edit suggestions → Language server: requests edits
- Chat experience → Agent capabilities: supports chat (evidence: `README.md`)
- Agent capabilities → Language server: sends requests (evidence: `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java`)
- Custom agents → Language server: loads modes (evidence: `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java`)
- Customization files → Language server: lists files (evidence: `com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java`)
- Eclipse user → File references: drops files (evidence: `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java`)
- File references → Chat experience: adds references (evidence: `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java`)
- Eclipse user → File change review: reviews changes (evidence: `README.md`)
- Chat experience → File change review: reviews proposals (evidence: `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java`)
- Eclipse user → MCP setup: configures MCP (evidence: `README.md`)
- MCP setup → Server settings: updates config (evidence: `com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java`)
- Agent capabilities → Terminal tools: uses tools
- Language server → Copilot service: exchanges protocol
- Server settings → Language server: syncs settings
- Chat experience → Conversation persistence: persists turns
- Language server → Context window: provides usage
