Itaú Unibanco refactors its COBOL estate for the alphanumeric corporate tax ID mandate with parallel Devin agents following a constraints playbook written by its COBOL experts

L3 · Conditional Verified · Production Financial Services Software Development

A Brazilian government mandate required Itaú Unibanco, Latin America's largest private bank, to change the corporate tax ID from numeric to alphanumeric across its entire COBOL estate. The bank's COBOL experts first used mainframe runtime-tracing tools and found about 20 distinct variations of the field. Other agentic tools they tried broke COBOL's 72-character column limit and mishandled COMP variables, so engineers had to watch every session. The experts then encoded those constraints and naming conventions into a Devin playbook, and Devin ran many agents concurrently to make coordinated changes across hundreds of programs. Cognition reports the refactor finished three months ahead of the deadline with zero production errors, and that Itaú has completed migrations 5-6x faster without adding headcount (reported by Cognition, citing Itaú; vendor-published)

Problem

A mandated tax-ID format change had to be traced and applied across hundreds of COBOL programs where the same value appears under about 20 names linked only by memory position, and earlier agents produced code that broke on the mainframe (reported by Cognition)

Workflow

  1. Bank COBOL experts trace runtime data flow with mainframe tools and identify about 20 variations of the tax-ID field
  2. Experts encode column limits, COMP handling and field-naming conventions into a Devin playbook
  3. Devin runs many agent sessions concurrently, each applying the playbook to programs across the estate
  4. Changes are coordinated across the codebase in parallel rather than one program at a time
  5. Engineers validate changes on the mainframe before release

Human-in-the-loop: Bank experts scoped the field variations and wrote the playbook; engineers validate on the mainframe, since agents cannot execute COBOL on their own VMs.

Tools & stack

Tools

  • Devin
  • Devin Playbooks

Integrations

  • IBM mainframe toolchain (unspecified)

Frameworks

None listed

Prerequisites

  • In-house COBOL experts to scope fields and write constraints
  • Mainframe runtime tracing tools
  • Mainframe test environment for validation

Risks & limitations

Risks

  • Missed field variants producing silent data errors in a regulated bank
  • Agent code violating COBOL syntactic constraints

Limitations

  • Vendor blog; Itaú is not quoted directly and no timeline or engineer-hours are given
  • The scoping step (finding the 20 variations) was done by humans with mainframe tools, not by the agent
  • Other cases on the page (healthcare documentation, automaker customs migration) are unnamed and not used here

Outcomes & evidence

Reported outcomes

  • Tax-ID refactor across hundreds of programs completed three months ahead of the regulatory deadline
    Reported by Cognition, citing Itaú · Source (cognition.com)
  • Zero production errors from the refactor
    Reported by Cognition; vendor claim, no error-tracking method given · Source (cognition.com)
  • Migrations completed 5-6x faster without adding headcount
    Reported by Cognition; baseline not described · Source (cognition.com)

Evidence

Vendors & implementers

Review history

Last reviewed by Research Chief (agent).

  • : Added in batch-18; source fetched 2026-10-21 and key figures confirmed in page text; figures attributed.
Newsletter

Get new agent use cases in your inbox

A short roundup of newly added and newly verified use cases. Unsubscribe any time.