How tabbyml/tabby works
Tabby is a self-hosted AI coding assistant: IDE users request code completions or chat assistance, while the server exposes API capabilities and can use local models. The repository also includes repository/document ingestion and an enterprise web application. The graph preserves those documented product branches, but the excerpts do not expose the complete server, retrieval, indexing, or UI call paths; those relationships are therefore omitted or marked unverified.
Main entry points: InlineCompletionService.kt IntelliJ plugin · server.ts Language server · InlineCompletionService.java Eclipse plugin · serve.rs API serving
Components 19
IDE clients
- Eclipse plugin
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/inlineCompletion/InlineCompletionService.java - IntelliJ plugin
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/completion/InlineCompletionService.kt - Agent connection
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/lsp/ConnectionService.kt - IDE settings
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/settings/SettingsService.kt
Agent runtime
- Language server
clients/tabby-agent/src/server.ts - Completion engine
clients/tabby-agent/src/codeCompletion/index.ts - Chat and inline edit
clients/tabby-agent/src/chat/inlineEdit.ts - Tabby API client
clients/tabby-agent/src/http/tabbyApiClient.ts - Chat panel
clients/tabby-chat-panel/src
Server and AI
- Server CLI
crates/tabby/src/main.rs - API serving
crates/tabby/src/serve.rs - Model inference
crates/tabby-inference/src/lib.rs
Knowledge and UI
- Repository indexing
crates/tabby-index/src - Document crawling
crates/tabby-crawler/src/llms_txt_parser.rs - Ingestion API
ee/tabby-webserver/src/routes/ingestion.rs - Enterprise storage
ee/tabby-db/src/ingestion.rs - Admin and answer UI
ee/tabby-ui/app
Other components
- Developer
- IDE and API consumers
Connections 24
- Developer → Eclipse plugin: uses
README.md - Developer → IntelliJ plugin: uses
README.md - IntelliJ plugin → Agent connection: requests agent
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/lsp/ConnectionService.kt - Agent connection → Language server: starts process
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/lsp/ConnectionService.kt - IntelliJ plugin → Completion engine: requests completion
- Eclipse plugin → Completion engine: requests completion
- Eclipse plugin → Eclipse plugin: renders suggestions
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/inlineCompletion/InlineCompletionService.java - IntelliJ plugin → IntelliJ plugin: renders suggestions
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/completion/InlineCompletionService.kt - IDE settings → Agent connection: configures connection
clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/lsp/ConnectionService.kt - Language server → Tabby API client: initializes client
clients/tabby-agent/src/server.ts - Language server → Completion engine: initializes feature
clients/tabby-agent/src/server.ts - Language server → Chat and inline edit: initializes feature
clients/tabby-agent/src/server.ts - Completion engine → Tabby API client: uses API
- Chat and inline edit → Tabby API client: uses API
- Developer → Chat panel: uses chat
README.md - IDE and API consumers → API serving: calls API
README.md - Server CLI → API serving: dispatches serve
crates/tabby/src/main.rs - Server CLI → Model inference: loads model
- API serving → Model inference: serves inference
- API serving → Repository indexing: uses repository context
- Document crawling → Ingestion API: provides documents
- Ingestion API → Enterprise storage: stores ingestion
- Developer → Admin and answer UI: uses dashboard
- Admin and answer UI → Ingestion API: manages ingestion