Architecture

How to manage AI agents across frameworks

Run and govern agents across LangGraph, OpenAI Agents SDK, CrewAI, n8n, and Claude Code with one control layer.

Updated Nov 25, 2026

As organizations adopt more than one agent framework, the hard problem shifts from building an agent to operating many of them together.

Key takeaways

  • Most companies end up running 2-4 agent frameworks - one control layer is cheaper than rebuilding approvals four times.
  • Policy lives in one place. Agents and frameworks change; the rules about who approves what should not.
  • Coding agents and chat apps connect over MCP. Agents in your own code call the same Actions with the SDK.
  • Reviewers see the same approval card in Slack, Teams or email, whichever agent asked.
  • One audit trail across frameworks is what enterprise teams will ask about first.

Why multi-framework is normal

One team may use LangGraph for durable agent flows, another may use n8n for operational automation, and another may use Claude Code for supervised engineering tasks. Asking everyone to consolidate on one framework is rarely productive - each framework has a local optimum for a specific kind of work.

The real challenge is not framework choice. It is creating consistent control, ownership, and auditability across all of them.

Shared control layer requirements

  • One Action model - the same Action and the same policy, whichever agent calls it
  • Consistent approval semantics - approve, reject, timeout, escalate
  • Routing to the accountable owner that ignores framework origin
  • Unified audit trail - one place to answer "who approved X"
  • Framework-agnostic policy, set once by an admin

Two ways in, one policy

Coding agents and chat apps connect over MCP. On a computer, a person runs "contro1 connect claude-code" (or codex, cursor) and approves at the link it prints. In Claude.ai, ChatGPT or Grok, they paste the Contro1 MCP address into the app's connector settings. Either way, the agent is registered with that person as its owner.

Agents in your own code (LangGraph, OpenAI Agents SDK, CrewAI, n8n, Mastra) take the second path. An admin creates the agent and an Agent Credential, and the code calls an Action with the SDK. Policy and approvals live in Contro1 either way. The reviewer does not know or care which framework the run came from.

Connect an agent · Agents in your own code

The same Action from your own code

From code, the call is one Action. If policy says a person must approve it, Contro1 holds it, asks the owner, and runs it with the application account it holds after a yes. The agent never holds the app credential, and there is no callback endpoint to build.

send.py
from centcom import CentcomClient, needs_human_resolution
import os, uuid

client = CentcomClient(api_key=os.environ["CONTRO1_AGENT_CREDENTIAL"])

result = client.actions.invoke(
    action_id="gmail.message.send",
    input={"to": "customer@example.com", "subject": "Your refund", "body": "..."},
    authority_mode="agent_principal",
    account_mode="shared",
    idempotency_key=str(uuid.uuid4()),
)

settled = client.actions.wait_for_invocation(result["invocation"]["invocation_id"])
if needs_human_resolution(settled):
    escalate_to_a_person(settled)  # Do not retry.
elif settled["state"] == "executed":
    sent = client.actions.get_result(settled["invocation_id"])
send.ts
import { CentcomClient, ActionsApi, needsHumanResolution } from "@contro1/sdk";

const actions = new ActionsApi(new CentcomClient({ apiKey: process.env.CONTRO1_AGENT_CREDENTIAL! }));

const { invocation } = await actions.invoke({
  action_id: "gmail.message.send",
  input: { to: "customer@example.com", subject: "Your refund", body: "..." },
  authority_mode: "agent_principal",
  account_mode: "shared",
  idempotency_key: crypto.randomUUID(),
});

const settled = await actions.waitForInvocation(invocation.invocation_id);
if (needsHumanResolution(settled)) {
  // Do not retry. Hand it to a person.
} else if (settled.state === "executed") {
  const sent = await actions.getResult(settled.invocation_id);
}

Action Gateway reference

Department examples

  • Marketing agents approving budget changes above a threshold.
  • HR agents routing compensation changes to the accountable manager.
  • Finance agents flagging invoice and transfer mismatches before write-back.
  • CS agents gating refunds and account closures by tier and amount.

Framework notes

Each framework has its own page with notes on where the Action call fits in that framework. Your policy - which Actions an agent may use, which risk levels wait for a person, who reviews - is set once in Contro1, not per framework.

LangGraph docs · OpenAI Agents docs · CrewAI docs · n8n docs · Claude Code docs

The enterprise question

The first enterprise question is "if a customer calls and asks who approved action X at time Y, can you answer?" With one control layer across frameworks the answer is yes, with one query. Without it, the answer depends on which team owned the agent that did the action - and the audit trails are in five different formats.

Frequently asked questions

Can one company really run many agent frameworks at once?

Yes. That is increasingly common because different teams optimize for different tools, runtimes, and ownership models.

Should I consolidate on one framework?

Usually not. The cost of forcing every team onto one framework is higher than the cost of adding a shared control layer on top of several.

Does Contro1 lock me into a framework?

No. Actions and policy live in Contro1, not in the framework. A workflow can move between frameworks without changing its approval policy.

What about frameworks you do not support?

Any MCP client connects directly to Contro1. Agents in your own code use the SDK with an Agent Credential, whatever framework they run on.

How is the audit trail unified?

Every Action from every agent is recorded in the same Contro1 Activity Logs: who asked, who approved, what ran, and the result. One search answers "who approved action X" regardless of which framework raised it.

Related resources

Connect an agent to Contro1

Choose a Contro1 connection path: five agent setup guides for production agents, Claude Code, Codex, Cursor and personal agents, plus web sign-in for Grok, ChatGPT and Claude.ai. Follow exact steps and verify access.

Contro1 Action Gateway

Choose the applications your organization approves, decide who may do what, and connect one MCP. Every person and agent gets exactly their access, and every action is recorded on their name.