On this page
Put Coworker to work on your stack.
Connect Salesforce, Slack, Jira and run your first agent in minutes.
Enterprise AI
Build vs Buy AI: Should You Build Your Own Context Layer?
Coworker AI on build vs buy AI for the context layer: team sizes, timelines, run costs, Glean contract data and a short checklist to decide.
In the build vs buy AI decision for a context layer, buy unless your scope is narrow or the layer is part of the product you sell. A context layer that reads 10 or more SaaS tools, mirrors each person's permissions and feeds several AI tools needs a platform team that owns it for years: one vendor estimate (Brainfish, June 2026) is 4 to 8 engineers for 12 to 18 months, and Gartner (February 2024) put a single RAG document search use case at about $750,000 to $1 million to build and roll out.
Building is the better call when one agent needs one or two sources, when your data already sits in a warehouse you govern, or when context is your product.
If the term is new, start with what a context layer is and how it differs from a semantic layer. In short, it sits between your company's data and the models and agents that use it, and decides what each request sees, for which user, and whether it is still true. This post covers the decision itself: the people, time and money a build takes, when building is right, and what to ask vendors before you sign.
A disclosure: I work at Coworker, which sells a context layer, so every vendor number here is labeled as one, Coworker's included. I checked every source on October 12, 2026.
Build vs buy AI at a glance: what does each path cost?
| Build in-house | Buy a context layer | |
|---|---|---|
| Time to first users | 12 to 18 months for a multi-source layer (Brainfish, vendor estimate) | 1 to 3 weeks for a standard Glean deployment, 3 to 4+ weeks for large organizations (Glean docs) |
| Team | 4 to 8 engineers to build, then 1 to 2 people on content and 0.5 to 1 on call (Brainfish) | One full-time person to run Glean at a 10,000-employee composite (Forrester, Glean-commissioned) |
| Year-one people cost | About $0.8 million to $1.6 million at median developer pay, up to $3.3 million at ML engineer pay (math below) | The vendor contract plus admin time. Glean buyers reporting to Vendr paid a median of $98,890 a year |
| Connectors | You write and maintain every one | Glean lists more than 250; Coworker has 50+ |
| Permissions | You mirror each app's access model yourself | Inherited from the source tools by the vendor |
| Fit for your exact needs | Total | Limited to what the vendor supports |
The rest of this post explains where each number comes from and when the left column wins.
What does building a context layer actually involve?
Every one of these keeps costing after launch.
Connectors and sync. Auth, pagination, rate limits and change capture for every source. Glean's docs say new Jira, Confluence and Slack content reaches its index within 15 minutes, and Zendesk and Salesforce changes within an hour. Your users will expect the same, including for permission changes.
Permission mirroring. Each app models access its own way. Glean wrote that each data source requires "investigation and reverse engineering." Microsoft engineers building a SharePoint permissions pipeline (April 2026) warned that unexpanded groups cause silent overexposure and that copied permissions go stale.
An index plus a graph. Search finds documents. Agents also need people, projects and decisions linked, and a record of which statement replaced which. Glean says its own context platform, graph included, took six years of investment. Our context graph guide covers that structure.
Evaluation. Before rolling its Genie assistant out to every engineering security and privacy Slack channel, Uber's subject matter experts built a golden set of 100+ test queries and found significant gaps in accuracy (May 2025). Expect to rerun a set like that after every change.
Ownership. APIs change, owners leave, new tools arrive, and someone has to be on call.
How many engineers and how long does a build take?
There is no neutral benchmark. These are the published estimates I could confirm:
| Source (date) | Scope | Team and time | Ongoing |
|---|---|---|---|
| Kapa.ai, vendor (Feb 2026) | Docs Q&A assistant | A basic RAG chatbot "takes a weekend"; getting from 90% to 98%+ accuracy "takes months of dedicated engineering" | Kapa says most internal builds are abandoned or replaced within 6 to 18 months |
| Gartner (Feb 2024) | One RAG document search and summarization use case | About $750,000 to $1 million: developers, data engineers, data scientists, security and product working for six months | About $790 to $1,200 per user per year |
| Brainfish, vendor (Jun 2026) | Multi-source AI knowledge layer | 4 to 8 engineers for 12 to 18 months | 1 to 2 people on content ops, plus 0.5 to 1 on call |
In dollars: the BLS median wage for software developers was $135,980 in May 2025, and wages were 68.5% of employer costs for full-time private industry workers in June 2026. That is about $199,000 a year fully loaded. Levels.fyi shows a median machine learning engineer total compensation of $280,000 in the US; applying the same ratio, which is an approximation for total comp, gives roughly $409,000. A team of 4 to 8 costs about $0.8 million to $1.6 million a year at median developer pay, and up to $3.3 million at ML engineer pay.
A strong team with a narrow target can do well. Uber's Genie, launched in September 2023, had answered more than 70,000 questions across 154 Slack channels by October 2024, with a 48.9% helpfulness rate and an estimated 13,000 engineering hours saved. It answers on-call questions in engineering support channels, which is a much smaller surface than every SaaS tool in a company.
Coworker
Put Coworker to work on your actual stack
Connect Salesforce, Slack, Jira and run your first agent in minutes.
What does a context layer cost to run once it is built?
Storage and embeddings are cheap. OpenAI lists text-embedding-3-small at $0.02 per million tokens, so embedding 10 million 1,000-token documents costs about $200. Pinecone's Standard plan starts at a $50 monthly minimum.
Query-time tokens grow with use, because every retrieved chunk and tool call is paid input. That is where AI cost optimization for an enterprise AI stack usually starts; our AI cost optimization guide covers the other levers. Coworker's own 100-task benchmark, a vendor test, measured 75.5% lower token cost for Claude working through Coworker's MCP with OM2 and Coworker Learning, and no model routing, than for Claude with its native connectors across seven task categories. On retrieval and context-heavy categories the gap was 89.1%. Those are statistically significant benchmarks comparing Coworker MCP vs. Claude native tooling. Whatever you build or buy, measure tokens per task on your own questions.
People stay the largest cost, and buying does not remove them entirely. Forrester's Glean-commissioned study (September 2024) modeled one full-time person to manage Glean at a 10,000-employee composite company, and most interviewees described one person full time or two part time.
One point in favor of building: from May 29, 2025, Slack cut the `conversations.history` and `conversations.replies` rate limits for new installs of commercial apps distributed outside its Marketplace, to one request per minute and 15 objects per request. Internal apps a company builds for itself keep the existing limits.
When does building your own AI context layer make sense?
- One agent needs one or two sources, and permissions are simple.
- Most of your context sits in a warehouse you govern, where a semantic layer may be enough.
- Context is part of what you sell, so the layer is product work.
- A platform team, ideally with ML infrastructure in place, will own connectors, permissions and evals for years.
- Data cannot leave your environment and no vendor's hosting fits. Check first: Glean offers deployment inside your own GCP or AWS account.
A middle path: open source projects such as Onyx (MIT license, 40+ connectors by its own count) give you a starting codebase that you still run yourself.
When does buying a context layer make sense?
- You need many SaaS sources, including chat, email and meeting transcripts.
- Permissions vary by person within the same tool.
- Several AI tools (Claude, ChatGPT, Cursor, your own agents) need the same context.
- You need results this quarter. Glean's docs put a standard deployment at about 1 to 3 weeks, and 3 to 4+ weeks for larger organizations.
The market has moved this way. Menlo Ventures found 76% of enterprise AI use cases were purchased rather than built internally in 2025, up from 53% in 2024. MIT's NANDA study (July 2025) found external partnerships reached deployment about 67% of the time against about 33% for internally built tools, figures its authors describe as self-reported.
Buying has its own costs. Glean is quote-only, and buyers reporting to Vendr paid a median of $98,890 a year, with minimum commitments often starting around 100 to 250 users. Our Glean pricing breakdown covers its total cost of ownership, and the Glean alternatives roundup covers other vendors.
Can you buy the context layer and build your own agents?
Often, yes, and it is the split many teams land on: buy connectors, permissions and the context graph, then build agents in your own stack. Glean, Atlassian and Coworker all expose their context through MCP. Check the billing before you commit. Glean's pricing docs list its client APIs, including its MCP server, as consuming FlexCredits. Atlassian says Rovo MCP usage draws on Rovo credits, with extra usage billing taking effect on December 3, 2026.
Coworker MCP brings 50+ connected apps and Coworker's organizational memory, OM2, into Claude Code, Cursor, ChatGPT and other MCP clients. For Glean's version, see Glean MCP vs Coworker MCP. If you only need an AI memory layer for one agent or one developer, a lighter memory MCP may be enough; our MCP memory server comparison covers those options.
What should you ask Glean, Coworker or any other vendor?
The context layer guide covers the technical questions. Add these on cost and ownership:
- What is the seat minimum, and must every employee be licensed?
- What consumes usage credits (agent runs, deep research, API and MCP calls), and can I see the rate card?
- What annual increase applies at renewal, and will you cap it? Vendr reports 3% to 7% a year as typical for Glean renewals.
- What do implementation, professional services and admin time cost for customers our size?
- How fast do content and permission changes reach answers, per connector, and how do you read Slack?
- Will you run a blind evaluation on our data, with our questions, before we sign?
To be fair to Glean: it has the widest catalog of the vendors here (more than 250 connectors by its own count, against Coworker's 50+), documented 15-minute freshness for its most-used apps, and a customer-hosted deployment option. Coworker's case is a prebuilt organizational memory, OM2, delivered over MCP into the AI tools your team already uses. Test both on your own data. The enterprise AI buyer's checklist has a fuller list of questions.
Build or buy AI? A short checklist
Count how many of these are true for you:
- More than five sources need to be connected.
- Chat, email or meeting transcripts are in scope.
- Access differs by person inside the same source.
- More than one AI tool needs the same context.
- You need it in production within a quarter.
- No team can own connectors, permissions and evals for two or more years.
Three or more point to buying, or to buying the layer and building the agents. One or none points to a scoped build. Either way, test on your own questions first. Coworker's Context Impact Report runs them through your current setup and through Coworker, scores the answers blind, and Coworker covers the token costs.
Book a demo to see Coworker's context layer on your own tools.
Frequently asked questions
Should we build our own AI context layer or just buy Glean?
Buy if you need many SaaS sources, per-user permissions and several AI tools, since a broad build takes a multi-person team a year or more. Build if one agent needs one or two sources, or the layer is part of your product. Test Glean against at least one other vendor on your own data before you sign.
Is it cheaper to build or buy AI?
For a broad context layer, buying is usually cheaper on published numbers. A build team of 4 to 8 engineers costs about $0.8 million to $1.6 million a year at median developer pay, while Glean buyers reporting to Vendr paid a median of $98,890 a year plus about one person to run it. For a narrow use case with one or two sources, a build can cost less.
How long does it take to build a context layer in-house?
Brainfish, a vendor, estimates 4 to 8 engineers for 12 to 18 months for a multi-source layer. Gartner's 2024 estimate for one RAG document search use case assumed a cross-functional team working for six months. A narrow prototype can take days, but Kapa.ai, also a vendor, says reaching high accuracy takes months of dedicated engineering.
How much does it cost to build a context layer?
People dominate. A team of 4 to 8 costs about $0.8 million to $1.6 million a year at median developer pay. Gartner's 2024 estimate for one RAG search use case was $750,000 to $1 million to launch, plus $790 to $1,200 per user per year. Embeddings and vector storage are a small share of the total.
Can we buy a context layer and still build our own agents?
Yes. Glean, Coworker and Atlassian all serve context over MCP, so your own agents can use a bought layer. Ask how that usage is billed, since Glean and Atlassian meter it with credits.
Is a context layer the same as an AI memory layer?
They overlap. A context layer usually means the shared, permission-aware layer that serves company data to every AI tool, while an AI memory layer or memory MCP often means memory for one agent or one user. Coworker's OM2 is an organizational memory that works as a context layer across 50+ connected apps.
Related reading
- What Is a Context Layer? Context Layer vs Semantic Layer
- What Is a Context Graph? How It Differs From a Knowledge Graph
- Glean Pricing: Costs, TCO and Alternatives
- Glean MCP Server vs Coworker MCP
- Best MCP Memory Servers
- AI Cost Optimization
- Coworker Organizational Memory (OM2)
- Benchmarks: OM2 vs Native Connectors
Ready to get started?
Put Coworker to work inside your actual stack
Connect Salesforce, Slack, Jira, whatever you use, and run your first agent in minutes.