Platform-Driven AI Agent Orchestration for Large-Scale Engineering

linkedin · Tech · 2025 · source Agentic: yes · promotional bias: low · source-backed · 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 engineering automation and AI agent platforms

LinkedIn needed to scale AI agents across a massive engineering organization without every team rebuilding fragile orchestration, tool access, context serving, safety, evaluation, and audit infrastructure. The platform had to let humans express intent while agents execute repeatable engineering work safely and consistently.

Constraints:

Architecture

LinkedIn built a shared AI-agent platform with an intent-to-execution pipeline: developers submit structured specs through chat or APIs; an orchestrator provisions sandboxed execution environments with identity and permissions; agents use approved MCP-style tools for code search, dependency analysis, logs, metrics, PR history, ownership, and system architecture; context services scope relevant code, dependencies, tests, ownership, infrastructure, operations, and prior PRs; memory systems pull task-relevant lessons and store validated outcomes; validation runs builds, tests, static analysis, evals, and safety checks; and outputs become reviewable artifacts such as PRs with full traces for human review.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Human_intent_interface["Human intent interface"] --> Structured_spec["Structured spec"]
  Structured_spec --> Orchestrator["Orchestrator"]
  Orchestrator --> Sandbox_execution_environment["Sandbox execution environment"]
  Orchestrator --> Agent_worker["Agent worker"]
  Orchestrator --> Audit_trace["Audit trace"]
  Sandbox_execution_environment --> Agent_worker
  Sandbox_execution_environment --> Validation_layer["Validation layer"]
  Agent_worker --> Approved_tool_layer["Approved tool layer"]
  Agent_worker --> Context_service["Context service"]
  Agent_worker --> Memory_system["Memory system"]
  Agent_worker --> Validation_layer
  Approved_tool_layer --> MCP_servers["MCP servers"]
  Approved_tool_layer --> Audit_trace
  Context_service --> Memory_system
  Validation_layer --> Reviewable_artifact["Reviewable artifact"]
  Reviewable_artifact --> Human_review_gate["Human review gate"]
  Reviewable_artifact --> Audit_trace
  Human_review_gate --> Memory_system
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Human intent interface Receives goals through chat, APIs, online requests, nearline triggers, or batch schedules. Structured spec
Structured spec Defines ordered steps, allowed tools, acceptance criteria, and guardrails for the task. Orchestrator
Orchestrator Provides the execution backbone: runtime, scheduling, sandbox provisioning, retries, backoffs, persisted state, and governance. Sandbox execution environment, Agent worker, Audit trace
Sandbox execution environment Isolated environment with scoped identity and permissions where agents can modify files, run builds, and validate changes. Agent worker, Validation layer
Agent worker Plans and executes engineering tasks such as coding, debugging, incident investigation, testing, and analytics. Approved tool layer, Context service, Memory system, Validation layer
Approved tool layer Exposes code search, dependency analysis, logs, metrics, alerts, incidents, PR history, ownership, and architecture through scoped machine-facing tools. MCP servers, Agent worker, Audit trace
MCP servers Provide model-independent tool declarations and invocation contracts for local and remote LinkedIn-specific context. Approved tool layer
Context service Scopes and serves task-relevant code, dependencies, tests, ownership, infrastructure, operations, PRs, and architecture. Agent worker, Memory system
Memory system Supplies relevant past successes, known failure patterns, common fixes, reviewer feedback, and institutional knowledge. Agent worker, Context service
Validation layer Runs builds, tests, static analysis, evals, safety checks, and regression detection. Agent worker, Reviewable artifact
Reviewable artifact Captures output such as a response, pull request, code change, incident timeline, chart, or validation result. Human review gate, Audit trace
Human review gate Reserves decisions such as merge, deploy, approval, rejection, and ambiguity resolution for humans. Reviewable artifact, Memory system
Audit trace Logs plans, tool calls, outputs, reasoning, code changes, and execution state for review and observability. Reviewable artifact

Data flow

Human intent is converted into a structured spec with steps, tool constraints, acceptance criteria, and guardrails. The orchestrator runs the task asynchronously, provisions a sandbox, persists state, and gives the agent scoped tools and task-specific context. The agent plans, edits, queries tools, validates changes, retries failures through the orchestrator, and emits responses or pull requests. Every plan, tool call, output, reasoning step, and code change is logged so humans can review and approve the result.

4 supporting quotes
“The developer submits a spec, and from there on out, everything happens async.”article, stated
“The orchestrator spins up a sandbox with the agent, with identity and permissions and a consistent execution environment.”article, stated
“All of the state is persisted, and if the job pauses or retries or resumes later, nothing really is lost.”article, stated
“When it creates the PR, the entire trace comes with it, so whoever is reviewing the PR can always check what happened.”article, stated

Why this architecture

LinkedIn chose platform-level foundations because agent workflows repeat the same needs across coding, operations, incidents, testing, and analytics: reliable orchestration, safe tools, scoped context, memory, evaluations, auditability, and human authority. Centralizing those abstractions prevents 100 fragile implementations and lets teams focus on their domain-specific agents.

4 supporting quotes
“Scaling AI in engineering, is it about building one great agent, but it is about avoiding 100 slightly different fragile implementations?”article, stated
“This is why enabling AI cannot be an individual team-by-team effort, it is a platform responsibility.”article, stated
“Teams are no longer trying to build the same plumbing and instead get all of the platform benefits for free.”article, stated
“With good orchestration, the agents are not only more usable, but it also makes them more reliable and helps us make them more governable.”article, stated

Models used: LLMs · commercial cloud-hosted models · custom models · LLM-as-a-Judge · GitHub Copilot · Anthropic Model Context Protocol

Scale

Alternatives considered (roads not taken)

Continue relying on scripts, self-serve UIs, and searchable documentation

Rejected because: Those systems lack cognition, leaving humans to perform repetitive reasoning and hands-on work whenever cognition loops appear.

“Historically, how have we tried to fix it? Pretty conventional ways. We wrote some CLI tools.”article, stated
“The fundamental problem with all of this is that there is absolutely no cognition in any of this.”article, stated

Let every team build its own agent stack

Rejected because: Duplicating orchestration, tools, context, and safety across teams would create expensive repetition and inconsistent outcomes.

“Every team building their own version of orchestration, tools, context, and safety.”article, stated
“When this happens, we just get very expensive repetition.”article, stated

Expose raw APIs and human-oriented tools directly to agents

Rejected because: Raw APIs and dashboards create ambiguity; agents need stable schemas, clear permissions, error codes, and rich context.

“For safety, we don't really want agents to hit APIs directly. It creates room for ambiguity.”article, stated
“Human tools are built around UIs and dashboards. Agent tools have to be built around machines.”article, stated

Give agents all available context at once

Rejected because: The information universe is too large and noisy, so context must be scoped by task and execution step.

“We start with everything that's available, let's say our information universe, code, dependencies, PRs, what have you.”article, stated
“This is far too large and far too noisy to hand over to the agent all at once.”article, stated

Train a custom model first

Rejected because: LinkedIn recommends exhausting commercial models, RAG, cache-augmented generation, and post-training options before taking on the operational overhead of pretraining.

“Everyone is like, I'm going to train my own model. No. Bad idea.”article, stated
“you are signing up for a lot of operational overhead, maintenance overhead, and more importantly, upkeep overhead because the models are evolving so fast.”article, stated

Patterns

tool-use-orchestration (agent-architecture)

LinkedIn routes all agent work through explicitly exposed, permissioned, versioned tools with stable schemas rather than direct API access.

“Agents access external systems exclusively through explicitly provided tools, with every tool call being scoped, permission-checked, and logged for audit.”summary, stated
“Whatever the agents are doing, they're only doing that through the tools. Let's talk about the tooling layer here.”article, stated

durable-execution (orchestration)

The orchestrator persists state, provisions repeatable sandboxes, handles retries/backoffs, and lets jobs pause or resume without losing progress.

“All of the state is persisted, and if the job pauses or retries or resumes later, nothing really is lost.”article, stated
“The orchestrator is responsible for handling retries and backoffs, so the agent can just focus on the task at hand”article, stated

async-message-orchestration (orchestration)

LinkedIn treats online, nearline, and batch invocations differently, with asynchronous execution and targeted human notifications for non-interactive work.

“The developer submits a spec, and from there on out, everything happens async. The orchestrator spins up a sandbox with the agent, with identity and permissions and a consistent execution environment.”article, stated
“you need a way to asynchronously notify a human at the other end without the human literally sitting in front of a UI.”article, stated

context-engineering (context)

The platform scopes, fetches, and serves code, dependencies, PRs, ownership, tests, infra, operations, and architecture context step by step so agents reason from reality.

“Context is not really just one thing. It's multiple signals coming from different sources that together ground the agent.”article, stated
“Orchestration figures out when to fetch info, tools figure out how to fetch info, and all this context controls what the agent knows.”article, stated

agent-memory (memory)

Agents retrieve task-relevant memories before execution and store validated lessons, reviewer feedback, failure patterns, conventions, and best practices after execution.

“Before execution, the agent pulls relevant memories, past successes, known failure patterns, common fixes, reviewer feedback, only what's relevant to the task.”article, stated
“At the bottom is collective memory. This is shared across all agents and all teams. These are patterns, conventions, best practices.”article, stated

eval-driven-development (evaluation)

LinkedIn treats evals as the trust mechanism for agents, using golden tasks, objective signals, subjective judges, regression detection, and traceability.

“Here evals take the place of tests. How do you structure your evals?”article, stated
“You need curated golden datasets which explore all possible permutations and combinations of inputs and outputs.”article, stated

human-in-the-loop-gate (control)

Humans review artifacts, approve or reject merges and deployments, resolve ambiguity, and teach the system, while agents handle continuous execution.

“A common pattern here is that we are aiming to use agents for execution as much as possible and leave the control and judgment for humans.”article, stated
“Should something be merged? Should something be deployed? These are always reserved for humans. Finally, humans teach the system.”article, stated

safety-policy-enforcement (safety)

Sandboxes, explicit permissions, read/write boundaries, privilege escalation, out-of-scope guardrails, and forbidden irreversible actions limit what agents can do.

“Read versus write is always explicit. Privilege escalation is always explicit. At the risk of sounding like a broken record, every tool call is always locked.”article, stated
“What they cannot do is deploy changes to any environment, whether it's staging or production, merge changes to the main branch”article, stated

observability-tracing (operations)

LinkedIn logs every plan, tool call, output, reasoning step, code change, and execution trace so reviewers and platform operators can inspect agent behavior.

“every step, every tool call is always logged for the agent plan, what tools it called, what outputs it saw, what reasoning it did, and what code it changed.”article, stated
“You need the reasoning chain and traces of the agent. You need, of course, all the interactions with the model.”article, stated

multi-agent-orchestration (agent-architecture)

Incident investigation is decomposed across an incident agent, insights agent, coding agent, evaluator agent, and optimizer agent that collaborate behind one user-facing facade.

“We are talking about multi-agent systems, which work in close collaboration with each other. I'm taking an example here.”article, stated
“the incident investigation agent is actually using the insights agent to try and understand what happened. Once it understands what happens, it uses the coding agent”article, stated

Tradeoffs

Centralize agent infrastructure as a platform responsibility.

Chose shared platform abstractions over team-by-team agent stacks.

Rationale: Shared orchestration, tooling, context, safety, and evals reduce repetition and inconsistent outcomes while letting teams focus on domain problems.

“This is the trap we want to avoid. Every team building their own version of orchestration, tools, context, and safety. When this happens, we just get very expensive repetition. This is why enabling AI cannot be an individual team-by-team effort, it is a platform responsibility.”article, stated
“Teams are no longer trying to build the same plumbing and instead get all of the platform benefits for free. They're free to focus on the core problem that they are trying to solve.”article, stated

Use structured specs instead of free-form goals.

Chose ordered steps, tool constraints, acceptance criteria, and guardrails over ambiguous prompts like do the usual thing.

Rationale: Agents lack human intuition, so explicit structure keeps execution deterministic and reviewable.

“agents don't have intuition. From their perspective, what's the usual thing? They don't know what to do unless we say it.”article, stated
“Structure brings clarity. This is how we get our agents to stay on point.”article, stated

Adopt MCP and open standards for tool access.

Chose model-independent MCP tools over coupling tools to proprietary function-calling formats.

Rationale: Model velocity is high, so LinkedIn wanted tools that different models and agents can use without vendor lock-in.

“The first reason it's so powerful is it gives us model independence. Different agents powered by different models can all use the same set of tools without any coupling to proprietary function calling formats or specific APIs.”article, stated
“Different agents powered by different models can all use the same set of tools without any coupling to proprietary function calling formats or specific APIs.”article, stated

Scope context progressively.

Chose task- and step-specific context retrieval over providing every available fact at once.

Rationale: Progressive scoping reduces irrelevant information and gives the agent the facts needed for the current step.

“The first step is scoping. Based on the task, we narrow down this universe, only the repos involved, only the services impacted.”article, stated
“Then we try to get more precise based on the step that the agent is currently on. Let's say during planning, the agent gets access to the dependency graph and ownership information.”article, stated

Give agents autonomy but not final authority.

Chose sandboxed execution with human approval gates over agents merging, deploying, or taking irreversible actions directly.

Rationale: Agents can do meaningful work faster, while humans retain accountability for decisions and authority.

“Within the sandbox, they can read and write files, query dependencies, run builds, validations, push changes to PR branches for reviews”article, stated
“There are explicit pause points, places in the workflow where judgment is required, not because the agent failed, maybe it did, but because authority is needed.”article, stated

Reuse and extend existing systems where possible.

Chose open-source software, open protocols, existing storage/RPC/queueing systems, and Copilot extensions over building everything from scratch.

Rationale: The AI tooling space moves quickly, so LinkedIn favors buying, extending, and adopting standards to keep pace.

“Build smart, which means, resist the temptation to build everything ground-up. Reuse what exists.”article, stated
“Try to also buy or extend. By extend, I meant like how we've extended GitHub Copilot with MCP to fit into our ecosystem, over building.”article, stated

Gotchas (what bit them)

Fragmented agent implementations create duplicated plumbing and inconsistent behavior.

Root cause: Without shared foundations, every team solves orchestration, tools, context, and safety separately.

Resolution: Make AI enablement a platform responsibility with shared orchestration, context engineering, tool calling, evals, and safety abstractions.

“Without shared foundations, every team will solve the same problems again and again, and the results are going to be very inconsistent.”article, stated
“invest in abstractions for orchestration, context engineering and tool calling, as well as evaluations and safety.”article, stated

Ambiguous human intent leads agents to hallucinate, expand scope, or make unsafe changes.

Root cause: Humans rely on assumptions, shortcuts, and intuition that agents do not share.

Resolution: Convert messy goals into structured specs with ordered steps, explicit tool constraints, acceptance criteria, and guardrails.

“Ambiguous intent often leads to hallucinations, unsafe changes, scope creep, and just inconsistent outcomes. For agents to be reliable, intent has to be very explicit.”article, stated
“We have to turn our messy intent into structured specs that can be safely executed. This is not a design doc.”article, stated

Raw or noisy tool responses cause agents to guess.

Root cause: Human-facing tools and dashboards lack stable machine schemas, error codes, and concise context.

Resolution: Expose machine-oriented tools with structured inputs/outputs, versioning, permissions, error codes, and rich context.

“Agents are not great at guessing. We do not want them to guess. We focus on giving them structured inputs and outputs.”article, stated
“If there is noise, the agent will guess. We know when that happens, it just leads to horrible hallucinations.”article, stated

Better models do not fix stale or missing facts.

Root cause: Many failures come from incomplete context rather than reasoning limitations.

Resolution: Invest in code, dependency, tests, ownership, infrastructure, operations, PR, and architecture context services.

“When an agent does not do very well, our first instinct is try a better model. This only takes you so far. An agent does not know what it does not know.”article, stated
“Most failures do not come from a lack of reasoning ability. They come from missing, stale, or just incomplete facts.”article, stated

Dumping all context into the model overloads the agent.

Root cause: The information universe is large and noisy, especially in a multi-repo organization.

Resolution: Scope context to the repos and services involved, then refine it by execution step.

“This is far too large and far too noisy to hand over to the agent all at once. The first step is scoping.”article, stated
“Based on the task, we narrow down this universe, only the repos involved, only the services impacted. This immediately removes a lot of irrelevant information.”article, stated

Agent autonomy without authority boundaries creates safety risk.

Root cause: Agents need enough freedom to do meaningful engineering work, but deployments, main-branch merges, irreversible calls, and unrestricted internet access are too risky.

Resolution: Run agents in sandboxes with explicit pause points and reserve authority decisions for humans.

“We want to give the agent freedom, but put guardrails in place to prevent escalation. Within the sandbox, they can read and write files, query dependencies, run builds, validations, push changes to PR branches for reviews, everything that gives them enough autonomy for meaningful engineering work.”article, stated
“The autonomy lets the agent move fast, but the lack of authority keeps them safe. What do we do about this gap?”article, stated

Evaluation

LinkedIn treats evals as tests for agent trust: curated golden datasets, objective signals where possible, LLM-as-a-Judge for subjective areas, regression detection, visualization tooling, audit traces, reasoning chains, model interactions, environmental awareness, and human-defined policy and scoring.

Metrics: Build pass/fail · Test pass/fail · Static analysis results · Safety checks · Golden task performance · Regression detection · Objective task signals · Subjective LLM-as-a-Judge scores · Tool-call traces · Reasoning and state traces · Environmental awareness for trigger-based agents

4 supporting quotes
“Validation is where trust is really built. It ensures that every step is validated, whether it is through builds, or tests, or static analysis, or other kinds of safety checks like evals.”article, stated
“Trust in any of these systems obviously comes from consistent, repeatable results. How do you establish trust?”article, stated
“If you cannot create objective signals in some areas, you need subjective signals, which is where LLM-as-a-Judge patterns are very useful.”article, stated
“Most importantly, you need regression detection, because as your system evolves, it is very important to catch regressions when they happen and squash them.”article, stated

Outcomes

The case is explicitly platform-scale: 1.3 billion members, 3.2 million peak QPS, 45 trillion Kafka messages daily, more than 10,000 repositories, and over one million PRs per year.

4 supporting quotes
“Background coding agent. This is what Prince was talking about earlier. This is perhaps one of the most sophisticated multi-agentic systems we have in the engineering space at LinkedIn”article, stated
“We have local and remote MCP servers which are able to inject LinkedIn-specific context. For example, here you can see an example of how we make LLM calls in the LinkedIn codebase.”article, stated
“We let the AI figure it out, which is where the UI QA agent comes in, which executes periodic batch runs for us to identify regressions. We describe the test cases using natural language, which is how we describe what should work, things to look out for.”article, stated
“Finally, let's talk about the analytics agent, which is a traditional online chatbot. It is an agent which offers multimodal output.”article, stated