Orchestration Layer Scope Define

2026-10-13 · 约 7 分钟 · Jakob He

Key points:
1. Orchestration must be decoupled from vendor harnesses. It should not depend on any single vendor; it takes the best of each, manages its own context, and lets knowledge compound across vendors.
2. Orchestration must handle context accumulation and handoff well — that is what lets agents compound.
3. Orchestration must be customizable. Teams are at different stages with different needs and different processes; a solution that works for one team will not fit every team.
4. Customization, approach 1: Orchestration adds an abstraction layer with before/during/after interfaces for each workflow node. Onboarding teams customize their own flows and approval gates; the layer ships only basic workflow templates.
5. Customization, approach 2: expose the Orchestration layer's task state and debug ports, so teams can build their own notifications, dashboards and human-in-the-loop steps. The Orchestration layer provides only the most basic UI.
6. By design, everything in the Orchestration layer is managed as files — specs, code, configuration and so on.
7. A Builder orchestrates agents locally to handle personal tasks, and ultimately delivers workflow and agent definitions (files) that are published to the cloud to handle team tasks.
8. At cloud runtime, credentials can be injected as environment variables.

First, where does the Orchestration layer sit? Once we install Claude Code or Codex on a personal computer, we start unlocking what AI can do — but these are point capabilities, and every interaction is driven by one person's feedback. Inside a company, a lot of intellectual work can be abstracted: the basic judgment on a task, effort estimation, technical design, even the task itself are repeated pieces of cognitive work. Model capability turns each of these into a node in an agent workflow. Given a process that delivers reliably and a steady stream of demand, the Orchestration layer can be triggered continuously and deliver continuously.

So one level above the vendor harness, you can have the PC, which unlocks personal productivity — or you can have a system that orchestrates multiple agents. That second thing is the Orchestration layer this article is about.

If AI agents put a lever under the software industry, then I believe an Agent Orchestration layer that actually works and delivers reliably is a second lever placed on top of the AI lever.

Discussion: why won't the big vendors touch this layer?

Orchestration is hard to generalize:

  • Company A is in logistics and has two warehouses. Company B is also in logistics and has ten. Because of the difference in volume, their workflows may be completely different.
  • Company A builds macOS apps; Company B builds back-office B2B systems. Their testing, acceptance, development and release processes are bound to be completely different. Companies have far too many things that need customizing, especially workflows.

Will model capability eventually swallow Orchestration? To answer that, we should first ask what Orchestration's scope should include, and why this layer is needed at all.

Scope

Decoupling from vendor harnesses

Whenever I'm asked why we should or shouldn't use Claude Code, I have a hundred answers.

  • Reasons to use it
    • xx has the best model
    • xx has the best harness framework
    • xx supports plugins
  • Reasons not to
    • Geopolitics
    • Price
    • Not smart enough
    • Not fast enough

Each model vendor has its own strengths: coding, writing, task decomposition, planning, price, API speed. Add the time dimension and the best choice on each dimension keeps changing, which leaves consumers — those of us who use AI — badly torn: subscribe to Claude Code today, ChatGPT tomorrow. Rather than agonize over a multiple-choice question, take them all. That gives us the first requirement: decouple from vendor harnesses. The Orchestration layer must be able to run its tasks on any vendor's models and harnesses.

It looks like a layer with little technical substance, yet it resolves a lot of our hesitation and lets us start on agent orchestration without worrying about which platform we depend on. Should I tune a heavily customized pi agent, or build my own? Use Claude Code or Codex directly? What if Claude Code bans me tomorrow? What happens to all the context I've built up in Claude Code? Most of these dilemmas come from being forcibly locked into a big vendor's harness.

Once that coupling is broken, many questions and development directions become clear — for example: context and memory must be my own assets.

That leads to the second, and most important, requirement: context management.

Context management

Inside any one vendor's solution, we can default to its own context management — Claude Code's memory, for instance. It is mature, proven by countless users and effective, but it is not very transparent and does not really work in the individual's favor, because that important context lives somewhere hidden.

Once we decide to decouple from the harness and make the most of the context we generate every day so that it compounds for us, we need our own context management. At the very least, we need to be able to pull those local memories out, so that when I switch from Claude Code to Codex they still work.

This is a forced tug-of-war. From a model vendor's point of view, memory — or session context — is extremely valuable training data, and also the most effective data for locking users in.

Personally, every chat history of mine contains knowledge, opinions and every side of who I am. It must be my own asset; it must never become leverage a vendor holds over me.

This tug-of-war will keep happening. For an individual, the safest position is to own your context.

The same goes for team management: if you want your agents to keep delivering stable output, context and knowledge management is unavoidable.

Put simply, this layer is:

  • Context handoff
  • Context accumulation

Customizable workflows

Why customize? Because different teams are at different stages and have different processes; only customization can close the gaps between teams. The reasoning mirrors why big vendors won't touch this layer.

Since the idea of agents took off, three breakout products have all been validated by the market on the strength of plugin ecosystems and highly customizable features you can get through simple vibe coding:

  • Obsidian
  • PI agent
  • DeepSeek harness

The platform provides only the most basic capabilities, and coding fills every kind of custom need.

Once the actions that run before, during and after each workflow node are abstracted into interfaces, each team can customize its own flow, its own approval gates, its own dashboards, notifications and so on.

Abstracting workflow nodes

Here we need to clearly separate vendor harnesses from our own custom harness.

  • Vendor harness: Claude Code, Codex, opencode, pi agent. These come with built-in, general-purpose task modules such as deep research, coding, ReAct, planning + act.
  • Workflow harness: custom approval gates, human in the loop, and so on.

Once we step outside a single vendor's harness, the question shifts from how to get the most out of each tool (using each vendor's strengths to serve me) to how to hand off context well and gate the transitions between steps. The implementation can look like hooks: each node has its own conditions and its own feedback mechanism — some need code, like a health check; some need a human approval.

Open read access to state (logs, state machine, debug ports)

By exposing the Orchestration layer's logs and runtime state, users can build their own UI and interactions.

How the Orchestration Layer works

I call the role that tunes and publishes the Orchestration layer the AI Builder — L5 in my article AI-Driven Development Workflow & Role Define.

A Builder orchestrates agents locally to handle personal tasks, and ultimately delivers workflow and agent definitions (files) that are published to the cloud to handle team tasks.

The Builder's role

Using the interfaces, framework docs, skills and so on provided by the Orchestration layer, the Builder defines how agents are orchestrated. The Orchestration layer itself provides only the solution, a base framework, documentation, templates and setup guidelines.

Builders build an Orchestration layer fitted to their own team's situation.

What the Builder delivers

The only deliverable of Orchestration is files — text, code, logs and other text-based files. The advantages:

  1. Trackable and manageable through GitHub
  2. Copyable and portable
  3. Human-readable
  4. Agent-readable

To make this possible, the Orchestration layer has no database and no complex middleware — at most a few simple library dependencies, and even those are configured through config files or a dependency manager.

Each team's Builder can run the Orchestration layer locally as a personal agent orchestration tool for their own tasks. Once it reaches the right state, they publish it to the cloud for the whole team to use on team-wide tasks.

What other roles do

Once a team's Orchestration layer is published, the other roles on the team work with the workflow nodes, for example:

  1. Review
  2. Approve
  3. Add context
  4. E2E testing
  5. And so on

Others

For agents to deliver stable results across the whole workflow, the biggest bottleneck right now is E2E testing, because testing needs a lot of groundwork in data and environments, and agents need to be able to log in and use Computer Use, Browser Use and the like.

  • File system (workflows + agents)
  • Runtime (sandbox + credentials)