---
title: "How We Built the Brain Behind Our Self-Healing System: Context Retrieval at Org Scale"
url: https://daily.dev/posts/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale-fjfsbvo2t
source_url: https://www.wix.engineering/post/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale
type: article
source: "Wix Engineering"
published: 2026-07-02T07:03:34.758Z
updated: 2026-07-02T07:03:59.754Z
tags: ["ai-agents", "mcp"]
reading_time: 10
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How We Built the Brain Behind Our Self-Healing System: Context Retrieval at Org Scale

**[Wix Engineering](https://daily.dev/sources/wix_eng)** · 10 min read · 0 upvotes · 0 comments

## Summary

Wix Engineering shares how they built a context retrieval system called Wix Octocode Research to power their autonomous bug-fixing orchestrator. The system goes beyond simple GitHub search by using a three-layer architecture: a Planner that unpacks bug reports and queries memory, a Researcher that orchestrates specialized sub-agents (database, logs, code) each with focused toolsets, and a Memory Layer that embeds completed research cycles for future use. Key design decisions include requiring agents to state reasons before tool calls, parallel branch exploration, semantic fallback hints, and uniform tool protocols. They forked Google's ADK to add true concurrency for TypeScript. Ongoing challenges include isolating relevant database records and logs at scale, and capturing organizational knowledge that lives in Slack threads. They're developing Context Driven Development (CDD) to let teams explicitly declare their domain context as a first-class part of the development lifecycle.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.wix.engineering/post/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale>

## Similar posts on daily.dev

- [From Weeks to Hours: Inside Wix’s Autonomous Bug-Fixing System](https://daily.dev/posts/from-weeks-to-hours-inside-wix-s-autonomous-bug-fixing-system-fekzry59w) · Wix Engineering · 2 upvotes · 0 comments
- [The Context Tax of Agentic Development](https://daily.dev/posts/the-context-tax-of-agentic-development-spfv0nbhr) · Expedia Group Tech · 0 upvotes · 0 comments
- [Comprehension at AI Speed: Building a Context Store for Evolutionary Architecture](https://daily.dev/posts/comprehension-at-ai-speed-building-a-context-store-for-evolutionary-architecture-3i4qzofpi) · InfoQ · 0 upvotes · 0 comments
- [From chaos to context: Building an AI dev workflow](https://daily.dev/posts/from-chaos-to-context-building-an-ai-dev-workflow-csabhxd1r) · GitLab · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp)

[View this post on daily.dev](https://daily.dev/posts/how-we-built-the-brain-behind-our-self-healing-system-context-retrieval-at-org-scale-fjfsbvo2t)
