Skip to content
Govern

How to Govern AutoGen Agents

AutoGen enables multi-agent conversations that execute code and call APIs. Cordum ensures every action passes through policy checks before execution.

The problem with ungoverned AutoGen agents

  • Agents negotiate in free-form conversation. The code executor runs whatever they agree on.
  • Group chat managers route messages but do not enforce access control between agents.
  • Code execution is powerful and dangerous without governance. An agent can run arbitrary Python.
  • Audit trails are conversation logs, not structured policy decisions.

How Cordum governs AutoGen

1

Route AutoGen tasks through Cordum

Submit conversations as Cordum jobs. Safety Kernel evaluates requested actions before dispatch.

const job = {
  type: "autogen.group_chat.run",
  payload: {
    group: "code-review-team",
    agents: ["analyst", "reviewer", "executor"],
    capabilities: ["code-exec", "file-read", "file-write"],
  },
};
await cordumClient.jobs.submit(job);
2

Gate code execution with policies

Define policies that check what capabilities are requested before agents run.

3

Constrain agent scope

ALLOW_WITH_CONSTRAINTS for sandboxed execution with limited network and output size.

4

Structured audit for conversations

Every policy decision logged with requesting agent, action, matching rule, and outcome.

AutoGen native vs Cordum governance

AreaAutoGen NativeWith Cordum
Pre-execution safetyCode executor runs without policy gateSafety Kernel evaluates before execution
Agent-level permissionsNo enforcementPer-agent policy rules by role and capability
Code execution constraintsDocker container isolation onlyPolicy-defined scope limits + container isolation
Approval workflowshuman_input_mode for manual interventionDeclarative approvals tied to policy rules
Audit trailConversation logsStructured decision log with policy evidence

FAQ

Does Cordum work with AutoGen code executor?

Yes. Cordum governs the job. The executor runs normally inside the worker.

Can I still use human_input_mode?

Yes. Cordum approval workflows complement AutoGen human input modes.

Related guides

Ready to govern your AutoGen agents?

Start with the open-source Cordum platform. Add policies, approvals, and audit trails in minutes.