IBM CUGA: The Agent Framework That Ships Working Code
Most AI agent frameworks are demoware. They show you a slick five-minute video of an agent booking a flight, then you spend three weeks trying to make it handle a real enterprise workflow with authentication, rate limits, retries, and compliance checks. IBM Research released CUGA — Configurable Generalist Agent — as open source a few months back, and it’s one of the few frameworks that ships with actual working examples and a published task completion rate: 62%.
That number sounds low until you understand what they’re measuring. They’re not testing “can the agent call a weather API.” They’re testing end-to-end enterprise tasks — the kind that span multiple systems, require authentication handoffs, and have real failure modes. A 62% completion rate on those tasks is actually competitive. Most frameworks don’t publish their numbers at all, which tells you something.
I spent a weekend with CUGA to understand what makes it different from LangChain, CrewAI, and the dozen other agent frameworks competing for enterprise mindshare. Here’s what I found.
What CUGA Actually Does
CUGA is a generalist agent framework purpose-built for enterprise automation. The core idea: instead of forcing developers to wire together chains, tools, and prompts by hand, CUGA provides a configurable harness where you describe what you want the agent to do in YAML and it figures out how to do it.
The framework ships with 24 working examples covering real enterprise scenarios: IT ticket routing, HR onboarding workflow automation, supply chain order processing, customer support escalation, and financial report generation. Each example includes the YAML configuration, the tool definitions, and the execution trace so you can see exactly what the agent did and why.
Under the hood, CUGA uses a composable architecture. The agent itself can be wrapped and exposed as a tool to other agents, which means you can build multi-agent systems where specialized sub-agents handle different parts of a workflow. A document-processing agent extracts information, passes it to a decision agent that classifies the case, which hands off to an action agent that executes the resolution. Each agent has its own configuration, tools, and reasoning mode.
There’s also a lightweight learning loop built in. When CUGA fails on a task, it records the failure, analyzes the root cause, and adjusts its policy or tool usage patterns for future attempts. This isn’t reinforcement learning — it’s more like a self-debugging system that remembers what went wrong and tries different approaches. The paper calls it “continual policy refinement,” and while it’s not going to turn a 62% completion rate into 95% overnight, it does mean the agent gets better at your specific workflows the more you use it.
The Architecture: Configuration Over Code
The biggest philosophical difference between CUGA and frameworks like LangChain is that CUGA pushes configuration over code. With LangChain, you write Python to define your chain: instantiate a prompt template, wire up a retriever, configure the LLM, set up output parsers. With CUGA, you write a YAML file that describes the agent’s goals, available tools, reasoning preferences, and error handling strategy.
Here’s a simplified version of what a CUGA agent configuration looks like:
agent:
name: order-processing-agent
goal: Process incoming purchase orders and route to correct department
reasoning_mode: planning # vs heuristic
tools:
- order_lookup
- inventory_check
- approval_routing
- email_notification
error_policy:
retry_count: 3
fallback: human_escalation
learning:
enabled: true
feedback_source: task_outcome
The agent reads this configuration, reasons about the workflow, and executes it. You don’t write the orchestration logic — the agent generates it at runtime based on the goal and available tools.
This configuration-over-code approach has a few advantages for enterprise teams. Config files are auditable. You can version-control them and review changes without reading Python. Non-developers (business analysts, operations leads) can understand and modify agent behavior without touching code. And because the agent generates its own execution plan, it can adapt to edge cases that a hardcoded chain would miss.
The tradeoff is flexibility. If you need a hyper-specific workflow with custom logic, you’ll end up fighting the configuration system. CUGA works best when your tasks fall into recognizable patterns — information retrieval, classification, routing, summarization — that the agent can decompose and plan for. For bespoke workflows, you’re better off with a lower-level framework where you control every step.
Two Reasoning Modes: Fast vs. Deep
CUGA gives you two reasoning modes and lets you pick per-task: heuristic mode for speed, planning mode for complexity.
Heuristic mode uses lightweight decision rules. The agent looks at the task, matches it against known patterns from its training, and applies the closest matching strategy. It’s fast — sub-second decision time — and works well for repetitive tasks like routing support tickets to the right queue or classifying documents by type. The downside: it’s brittle. If the task doesn’t match a known pattern, the agent guesses and often guesses wrong.
Planning mode is where CUGA does its most interesting work. The agent breaks the task into subtasks, evaluates dependencies between them, and generates a multi-step execution plan. Each step has preconditions (what must be true before this step can run) and postconditions (what should be true after). If a step fails, the planner can backtrack, try an alternative approach, or escalate to a human.
The planning mode is powered by a tree-of-thought style reasoning engine. The agent explores multiple execution paths in parallel, scores them, and picks the highest-probability path. If the chosen path fails mid-execution, it falls back to the next-best path. This makes CUGA resilient to the kind of partial failures that kill simpler agent frameworks — an API returning a 500, a document in an unexpected format, a missing data field.
The cost of planning mode is latency and token usage. A complex task with 5-7 steps and backtracking can consume thousands of tokens and take 30-60 seconds. IBM recommends using heuristic mode as the default and switching to planning mode only when the task complexity warrants it or when heuristic mode has failed on a task before.
How CUGA Compares to Other Agent Frameworks
I’ve used most of the major agent frameworks, and CUGA occupies a specific niche that none of the others quite fill.
LangChain and LangGraph give you building blocks but no opinion on architecture. You can build anything, but you have to build everything. For enterprise teams that want to build custom agent workflows from scratch, that’s fine. For teams that want a working agent they can configure and deploy, it’s too much rope.
CrewAI and AutoGen focus on multi-agent collaboration — defining roles, assigning tasks, and managing inter-agent communication. They’re good for research-style workflows where multiple agents with different specialties need to coordinate. But they don’t have CUGA’s built-in learning loop or its enterprise-oriented error handling. When a CrewAI agent fails, you debug the Python. When a CUGA agent fails, it records the failure and adjusts.
Microsoft’s AutoGen and Semantic Kernel are closest to CUGA’s enterprise focus, but they’re tightly coupled to the Azure ecosystem. CUGA is provider-agnostic — it works with any LLM that exposes an API, including open-source models running locally through Ollama or vLLM.
The 24 shipping examples are CUGA’s strongest differentiator. Most frameworks give you a quickstart that calls a weather API and call it a day. CUGA’s examples cover the kind of multi-step, multi-system workflows that enterprise teams actually need — and they work. I tested the IT ticket routing example with my own Jira instance and it correctly classified and routed test tickets on the first try. That’s more than I can say for most agent framework quickstarts.
The 62% Number: Honest or Alarming?
Let’s talk about that 62% task completion rate, because it’s the most polarizing number in the agent space right now.
IBM’s benchmark tested CUGA on a suite of 150 real enterprise tasks across IT operations, HR, supply chain, and finance. The tasks were drawn from actual enterprise workflows, not synthetic benchmarks. A task was marked “completed” only if the agent produced the correct final output without human intervention. Partial completions — the agent got 80% of the way there but needed a human to finish — didn’t count.
62% means the agent fully completed roughly 93 out of 150 tasks on its own. For the remaining 57 tasks, it either failed outright or produced output that required human correction. IBM’s paper breaks down the failures: 22% were tool invocation errors (wrong API call, bad parameter), 18% were planning failures (the agent couldn’t decompose the task correctly), 15% were authentication or permission issues, and the rest were miscellaneous.
Whether 62% is good depends on what you compare it to. Compared to human performance on the same tasks (which IBM measured at 94%), it’s not close. Compared to other agent frameworks running the same benchmark — which IBM didn’t publish, and no other framework vendor has volunteered to run — we don’t know. My suspicion: 62% is higher than what most frameworks would achieve on these tasks, because most frameworks weren’t designed for enterprise-grade reliability in the first place.
The practical question for a team evaluating CUGA: is a 62% automation rate worth the deployment effort? For high-volume, low-stakes tasks like ticket triage or document classification, probably yes — automating two-thirds of the work frees up significant human time, and the remaining third can go to a human queue. For low-volume, high-stakes tasks like financial approvals or security incident response, 62% isn’t enough. You’d need the agent to be right nearly every time, and it’s not there yet.
When to Use CUGA (and When Not To)
CUGA makes sense if your team has repetitive enterprise workflows that follow recognizable patterns and you have the operational maturity to handle partial automation. The sweet spot: high-volume tasks where getting 60-70% automation is still a big win, and where failures are cheap enough that you can afford a human fallback.
Examples that fit: IT ticket routing, HR onboarding document processing, supply chain order validation, customer support categorization, report generation from structured data. These are tasks where the workflow is well-understood, the failure modes are predictable, and a human can pick up the slack without derailing operations.
CUGA doesn’t make sense if you need 99%+ reliability, if your workflows are highly bespoke with no reusable patterns, or if you need real-time responses. The planning mode’s 30-60 second latency is fine for batch processing but unacceptable for interactive use cases. And if your team doesn’t have the infrastructure to run LLMs reliably — monitoring, logging, fallback handling — you’ll have a bad time regardless of which framework you pick.
For teams already using LangChain or CrewAI, CUGA isn’t a replacement. It’s a different tool for a different job. Use LangChain when you need maximum flexibility and have the engineering time to build custom chains. Use CUGA when you want a configured agent that handles common enterprise patterns out of the box and learns from its mistakes.
The code is at github.com/cuga-project/cuga-agent, with documentation at docs.cuga.dev. The 24 examples are the best starting point — pick the one closest to your use case, deploy it against a test environment, and see if the 62% number holds up for your workflows. In my experience, it probably won’t on the first try, but the learning loop means it’ll improve.