Enterprise Code Search and Bug Investigation with Multi-Agent AI Systems

wix · Tech · 2026 · source Agentic: yes · promotional bias: med · summary-only (no fetched source) · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise code search and bug investigation

Wix needed to help developers search and understand code across thousands of repositories and services, then investigate bugs using internal technical context across GitLab, databases, logs, documentation, and related systems.

Constraints:

Architecture

Wix built two connected systems: OctoCode, an MCP-based developer code-search tool, and Bilbo, an enterprise multi-agent bug-investigation service. OctoCode helps search repositories, understand dependencies, and navigate codebases; Bilbo orchestrates agents across GitLab, databases, logs, documentation, and internal systems for deep technical investigations.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  octocode["OctoCode"] --> repository-corpus["Repository corpus"]
  repository-corpus --> bilbo["Bilbo"]
  bilbo --> sub-agent-workers["Sub-agent workers"]
  bilbo --> internal-technical-systems["Internal technical systems"]
  internal-technical-systems --> sub-agent-workers
  sub-agent-workers --> context-management["Context management"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
OctoCode MCP-based developer search tool for repositories, dependencies, and codebase navigation. Repository corpus
Repository corpus Thousands of repositories and services that developers need to search and understand. Bilbo
Bilbo Enterprise service that orchestrates multiple agents for bug investigation and deep research. Sub-agent workers, Internal technical systems
Sub-agent workers Specialized agents that investigate parts of the technical stack and summarize findings. Context management
Internal technical systems GitLab, databases, logs, documentation, and other systems used in investigations. Sub-agent workers
Context management Prompting and context controls that manage token limits and response quality. —

Data flow

Developers use OctoCode for repository search and dependency understanding; Bilbo receives a bug or research task, delegates work to multiple agents, integrates with GitLab, databases, logs, docs, and internal systems, and manages context and token limits while returning an investigation.

“OctoCode, is an MCP-based tool with 90,000 downloads and 5,000 weekly active users that helps developers search repositories, understand dependencies”summary, stated
“Bilbo, is an enterprise service that orchestrates multiple AI agents to investigate bugs and perform deep research across the organization's technical stack”summary, stated

Why this architecture

Wix split search and investigation because codebase navigation and bug research have related but different needs: one requires fast developer search, while the other requires multi-agent orchestration across many internal systems.

“Wix developed two interconnected AI systems to address the challenge of searching and understanding code across thousands of repositories and services”summary, stated
“integrating with GitLab, databases, logs, documentation, and other internal systems.”summary, stated

Models used: MCP · LLMs · OctoCode · Bilbo · Sub-agents

Scale

Alternatives considered (roads not taken)

Use a single generic code assistant for both search and bug investigation.

Rejected because: Wix built separate OctoCode and Bilbo systems for developer search and deep multi-agent investigation.

“The second system, Bilbo, is an enterprise service that orchestrates multiple AI agents”summary, stated

Investigate bugs using code search alone.

Rejected because: Bilbo also integrates with logs, databases, documentation, GitLab, and other systems.

“integrating with GitLab, databases, logs, documentation, and other internal systems.”summary, stated

Let one model consume all investigation context directly.

Rejected because: The summary highlights sub-agent architectures and context management to handle token limits.

“sub-agent architectures, and custom tooling protocols to handle the complexity of enterprise-scale code search and investigation while managing token limits”summary, stated

Patterns

multi-agent-orchestration (orchestration)

Bilbo orchestrates multiple agents for bug investigation and deep research.

“Bilbo, is an enterprise service that orchestrates multiple AI agents to investigate bugs and perform deep research”summary, stated

tool-use-orchestration (orchestration)

The systems connect agents to GitLab, databases, logs, documentation, and internal systems.

“integrating with GitLab, databases, logs, documentation, and other internal systems.”summary, stated

context-compaction (context)

The architecture uses prompt engineering and context management to manage token limits during enterprise-scale research.

“sophisticated prompt engineering, context management, sub-agent architectures, and custom tooling protocols”summary, stated

Tradeoffs

Build two systems instead of one.

Chose OctoCode for search and Bilbo for deep investigation. over A single undifferentiated assistant..

Rationale: Search/navigation and bug investigation require different orchestration and integration depth.

“The first system, OctoCode, is an MCP-based tool with 90,000 downloads and 5,000 weekly active users”summary, stated

Use sub-agents for investigations.

Chose Multiple specialized agents. over Single-pass investigation by one model..

Rationale: The summary ties sub-agents to complexity, token-limit management, and response quality.

“sub-agent architectures, and custom tooling protocols to handle the complexity”summary, stated

Gotchas (what bit them)

Enterprise code search spans too many repositories for simple navigation.

Root cause: Large organizations have thousands of repositories and services with dependencies.

Resolution: Provide an MCP-based code-search tool focused on repository search and dependency understanding.

“helps developers search repositories, understand dependencies, and navigate complex codebases.”summary, stated

Bug investigation requires more than source code.

Root cause: The relevant evidence lives in GitLab, logs, databases, docs, and internal systems.

Resolution: Use a service that orchestrates agents across the whole technical stack.

“perform deep research across the organization's technical stack, integrating with GitLab, databases, logs, documentation”summary, stated

Token limits threaten investigation quality.

Root cause: Enterprise-scale code search and investigation produce too much context for a naive prompt.

Resolution: Use sub-agent architectures, custom tools, and context management.

“handle the complexity of enterprise-scale code search and investigation while managing token limits and maintaining response quality.”summary, stated

Evaluation

The summary reports adoption metrics for OctoCode and qualitative system goals for response quality, dependency understanding, and investigation depth.

Metrics: 90,000 downloads · 5,000 weekly active users · Response quality · Token-limit management

“The first system, OctoCode, is an MCP-based tool with 90,000 downloads and 5,000 weekly active users that helps developers search repositories, understand dependencies, and navigate complex codebases.”summary, stated

Outcomes

The case covers thousands of repositories/services, 90,000 downloads, 5,000 weekly active users, and two systems developed over approximately 11 months.

“This case study describes Wix's implementation of production AI systems for enterprise code search and automated bug investigation.”summary, stated