# How Wix Built Context Retrieval for Cross-Service Code Research

DevFeed: [How Wix Built Context Retrieval for Cross-Service Code Research](<https://devfeed.tech/articles/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale-22637.md>)

Original publisher: [Read original article](<https://www.wix.engineering/post/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale>)

Author: Wix Engineering

Published: 2026-07-02T06:58:25Z

Content type: article

Language: en

Sources: [Wix Engineering](<https://devfeed.tech/sources/wix-engineering.md>)

Topics: [MCP](<https://devfeed.tech/topics/mcp.md>), [MCP Server](<https://devfeed.tech/topics/mcp-server.md>), [Code](<https://devfeed.tech/topics/code.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [bug](<https://devfeed.tech/tags/bug.md>), [code](<https://devfeed.tech/tags/code.md>), [github](<https://devfeed.tech/tags/github.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [scale](<https://devfeed.tech/tags/scale.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

## AI overview

Wix describes building OctoCode, an MCP server over GitHub tooling, and Wix Octocode Research to help agents investigate code across repositories, packages, and services. The system was designed to gather context before fixes and to require agents to state their research goal before using tools.

## Source excerpt

Ask a naive agent to find a bug in a codebase with thousands of repositories, and it will find the first textual match and stop. It won't ask why. It won't check whether what it found is actually relevant. It won't explore related services. It'll just return something and call it done. We, at Wix, discovered this the hard way. And it's what pushed us to build something more deliberate: a research engine that doesn't just search, but reasons about what it's looking for and why. The Problem:...