Proves byte-level output parity between legacy COBOL and modernized code โ in minutes, not months.
๐ Microsoft Agents League Hackathon 2026 โข ๐ง Reasoning Agents Track โข ๐ก Foundry IQ
๐ฌ Demo โข ๐ฏ Problem โข ๐ก Solution โข ๐ง How It Works โข ๐ Foundry IQ โข ๐ก๏ธ Reliability โข ๐ Get Started
๐ฅ Full Demo Video โ https://youtu.be/d6HZIv6LhI0
Live multi-agent validation โข Foundry IQ grounded retrieval โข Voice-driven workflow โข Real-time fix suggestions with COBOL line citations.
"There are still 220 billion lines of COBOL running the world's banks, insurance companies, governments, and supply chains." โ Reuters, 2024
Every enterprise modernizing legacy COBOL hits the same wall:
| Pain Point | Reality |
|---|---|
| ๐ฐ Migration cost | $5M โ $50M per program portfolio |
| โฑ๏ธ Validation time | 6โ18 months of manual line-by-line checking |
| ๐ Defect leakage | 1 in 4 modernized programs ships with output mismatches |
| ๐ซ Project failure rate | 70% of mainframe migrations stall (Gartner) |
| ๐ง COBOL expertise | Vanishing โ average COBOL engineer is 55+ |
Writing modern code isn't the bottleneck. Trusting it is.
Until output parity is mathematically proven, businesses can't cut over. Migration projects sit in "validation purgatory" โ burning budget, blocking innovation, risking outages.
MigrateIQ is a reasoning multi-agent AI system that automatically validates modernized code against the legacy COBOL source-of-truth โ and proves byte-level output parity in minutes.
It is not a code converter. It is the trusted final checkpoint that unblocks every other modernization tool on the market.
| Traditional Approach | MigrateIQ Approach |
|---|---|
| ๐จโ๐ป Manual line-by-line review | ๐ค 5 specialized AI agents collaborating |
| ๐ Spreadsheet diffs | โก Byte-level automated comparison |
| โ Guess the root cause | ๐ง Reasoning grounded in COBOL source |
| ๐ฅ Hallucinated AI fixes | ๐ Foundry IQ cited retrieval |
| ๐ข 6โ18 months | โฑ๏ธ Minutes per program |
| ๐ธ Millions in QA labor | ๐ Fully automated workflow |
Mainframe modernization is one of the largest IT challenges of this decade โ affecting banking, government, healthcare, logistics, telecom, and utilities.
| Metric | Before MigrateIQ | With MigrateIQ |
|---|---|---|
| ๐ฅ QA engineers per migration | 8โ15 specialists | 1 reviewer |
| โฑ๏ธ Validation cycle time | 6โ18 months | Hours to days |
| ๐ฏ Defect detection accuracy | ~85% (sampling) | 100% (byte-level) |
| ๐ฐ Validation cost | $2M โ $8M | $50K โ $200K |
| ๐ Time to production | 18 months | 3 months |
| ๐ฑ Carbon footprint | Months of mainframe hours | Cloud-native cutover |
๐ก MigrateIQ doesn't replace modernization tools โ it unlocks them by removing the validation bottleneck that stops 70% of these projects from finishing.
MigrateIQ orchestrates 5 specialized AI agents through a deterministic 9-step pipeline. Every step is observable, replayable, and auditable โ engineered for enterprise trust.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ MigrateIQ Reasoning Workflow โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[1] Pull Latest [2] Build Modern [3] Execute Modern โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ DevOps โ โโโโโโโโถ โ Script โ โโโโโโโโถ โ Script โ โ Agent โ โ Runner โ โ Runner โ โโโโโโฌโโโโโโ โโโโโโโโโโโโ โโโโโโโฌโโโโโ โ โ โผ โผ Pulls converted Captures modern code from Git program output โ [4] Run COBOL โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโ โ Script โ โโโถ Generates COBOL baseline output โ Runner โ โโโโโโฌโโโโโโ โผ [5] Byte-Level Compare [6] Generate Report โโโโโโโโโโโโ โโโโโโโโโโโโ โ Compare โ โโโโโโโโโโโโถ โReporting โ โ Agent โ โ Agent โ โโโโโโฌโโโโโโ โโโโโโโฌโโโโโ โผ โผ Detects mismatches Structured failure at byte precision classification โ [7] Reason w/ Foundry IQ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ ๐ง Analysis Agent โ โ โ โ โ โผ โ โ โโโโโโโโโโโโโโโโโโโโ โ โ โ Microsoft โ โ โ โ Foundry IQ โ โโโถ Cited COBOL snippets โ โ (Grounded RAG) โ + line numbers โ โโโโโโโโโโโโโโโโโโโโ โ โโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโ โผ [8] Suggest Grounded Fix [9] Learn & Improve โโโโโโโโโโโโ โโโโโโโโโโโโ โ Analysis โ โโโโโโโโโโโโถ โKnowledge โ โ Agent โ โ Base โ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ โผ โผ Fix tied to specific Stores PR fixes for COBOL paragraph + line future similar errors
| Agent | Role | Reasoning Capability |
|---|---|---|
| ๐ง DevOps Agent | Pulls latest converted code from version control | Branch resolution, PR-aware |
| โ๏ธ Script Runner | Builds & executes both modern and COBOL programs | Sandboxed execution, output capture |
| ๐ Compare Agent | Performs byte-level output diff | Field-aware, format-aware comparison |
| ๐ Reporting Agent | Classifies failures by category | Pattern detection, severity ranking |
| ๐ง Analysis Agent | Reasons over failures, suggests grounded fixes | Foundry IQ grounded retrieval, multi-hop reasoning |
Foundry IQ is MigrateIQ's reasoning brain โ and our defense against AI hallucination.
Without grounding, LLMs invent fixes that look plausible but don't match COBOL semantics. In enterprise migration, a hallucinated fix can introduce silent defects worth millions.
Foundry IQ eliminates that risk.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ Question: "Why does PAYROLL.COB net pay differ from C#?" โ โ โ โ โ โผ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ ๐ง Microsoft Foundry IQ โ โ โ โ โข Azure AI Search (semantic + vector + hybrid) โ โ โ โ โข Indexed COBOL source files โ โ โ โ โข Past PR fixes (institutional memory) โ โ โ โ โข COBOL pattern knowledge base โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ โ โผ โ โ ๐ Cited Retrieval: โ โ โข PAYROLL.COB:142 โ "COMPUTE WS-NET-PAY = ..." โ โ โข PAYROLL.COB:87 โ "PIC S9(7)V99 COMP-3" โ โ โข PR #1247 โ "Decimal precision fix pattern" โ โ โ โ โ โผ โ โ ๐ฏ Grounded Fix Suggestion (with citations) โ โ "Use C# decimal not double โ see PAYROLL.COB:87 โ โ where COMP-3 packed decimal preserves precision." โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Capability | Impact on MigrateIQ |
|---|---|
| ๐ฏ Grounded retrieval | Every fix references exact COBOL file + line number |
| ๐ก๏ธ Hallucination-free | No invented code โ only cited evidence |
| ๐ฌ Semantic understanding | Knows COBOL idioms (PIC, REDEFINES, OCCURS, COPY) |
| ๐ Hybrid search | Keyword + vector + semantic via Azure AI Search |
| ๐ Institutional memory | Past PR fixes become future grounding context |
| ๐ง Multi-hop reasoning | Agent chains queries to build complete context |
| โก Enterprise SLA | Production-grade latency and reliability |
Microsoft Foundry Setup:
Resource: migrateiq-foundry
Project: MigrateIQ-Hackathon
Region: East US
Foundry Agent: MigrateIQ-Validator (Published v2)
Knowledge Base: Connected via Foundry IQ
Status: โ
Live๐ค MigrateIQ-Validator is a published Foundry agent specialized in COBOL-to-modern code reasoning. It connects to Foundry IQ for grounded retrieval and powers the Analysis Agent.
๐ก๏ธ Reliability & Safety MigrateIQ is engineered for enterprise-grade trust โ because mainframe modernization is mission-critical.
| Concern | MigrateIQ Mitigation |
|---|---|
| ๐ญ LLM hallucination | Foundry IQ grounded retrieval โ every claim cited to source |
| ๐ Non-determinism | Fixed 9-step workflow with idempotent stages |
| ๐ฅ Cascading failures | Per-step graceful fallbacks; failures isolated to agent boundary |
| ๐ Secret leakage | All credentials via .env (never committed); .env.example template |
| ๐ Auditability | Every reasoning step logged with inputs, outputs, citations |
| ๐งช Reproducibility | Sessions persisted; replayable end-to-end |
| ๐ฏ Output verification | Byte-level diff is deterministic ground truth โ no "AI says it's fine" |
| ๐ Multi-LLM resilience | Auto-failover between primary and fallback LLM gateways |
| ๐ข Enterprise data safety | Code never leaves customer environment; on-prem deployable |
๐ง Why Reasoning โ Hallucination Here A common pitfall in agentic systems is "the agent decided it was correct." MigrateIQ avoids this by design:
Truth comes from execution, not the LLM. Both COBOL and modern programs run in real sandboxes, and outputs are diffed at byte level. The LLM only reasons about why outputs differ โ it never decides whether they match. Every fix suggestion is grounded โ Foundry IQ requires a source citation before the Analysis Agent can recommend a change. This separation of concerns is what makes MigrateIQ safe to use in regulated industries (banking, insurance, government).
-
๐จ Conversational UI Layer (Chainlit)
- Streaming responses
- Voice command interface (accessibility)
- Multi-LLM runtime switching
-
๐ง Reasoning Orchestrator
- Deterministic 9-step flow
-
๐ค Multi-Agent Layer
- DevOps, Runner, Compare, Report, Analysis
-
๐ Integration Layer
- Microsoft Foundry IQ (grounded retrieval)
- Microsoft Foundry Agent (MigrateIQ-Validator)
- Vector store (semantic similarity)
- LLM Gateway (multi-provider, auto-failover)
- Source control connectors
๐ Project Structure MigrateIQ/ โโโ agents/ # 5 specialized AI agents โโโ services/ # Core services (Foundry IQ, LLM, KB) โโโ tools/ # Agent tool integrations โโโ models/ # Pydantic data models โโโ prompts/ # Externalized prompts (no hardcoded text) โโโ workflows/ # Session orchestration โโโ public/ # UI assets โโโ app.py # Application entry point
๐ Key Innovations ๐ค Multi-Agent Reasoning โ 5 specialized agents collaborating via deterministic orchestration ๐ก Foundry IQ Grounding โ All reasoning cited to COBOL source-of-truth ๐๏ธ Voice-Driven Workflow โ Accessibility-first hands-free control ๐ Streaming Reasoning โ Watch the AI think token-by-token ๐ Multi-LLM Support โ Swap GPT-4, Claude, Gemini at runtime via gateway ๐ Self-Improving KB โ Past PR fixes become future grounding context ๐ Language-Agnostic Target โ Generic for COBOL โ C#, Java, Python migrations ๐ Auditable Reasoning โ Every decision traceable, every fix cited ๐จ Operator Dashboard โ Visual workflow with real-time progress
- AI Platform: Microsoft Foundry + Foundry IQ
- AI Search: Azure AI Search (hybrid semantic + vector)
- Orchestration: Custom multi-agent reasoning framework
- UI: Chainlit with custom CSS/JS
- LLM Gateway: Multi-provider (OpenAI, Anthropic, Google)
- Vector Store: ChromaDB (complementary local search)
- Language: Python 3.11+
- Extensibility: Pluggable target language (C#, Java, Python)
MigrateIQ is designed to operate on customer-owned COBOL codebases within secure enterprise environments. For this hackathon demo, MigrateIQ uses synthetic sample data indexed in a local ChromaDB vector store to showcase the validation workflow safely โ as demonstrated in the demo video.
In production deployment, MigrateIQ runs entirely within the customer's tenant โ code and data never leave the customer's secure boundary, and Foundry IQ permission-aware retrieval ensures full compliance with enterprise security and governance requirements.
- Python 3.11+
- Azure subscription with Foundry & Foundry IQ access
- Git
# 1. Clone the repository
git clone https://github.com/Shivarajbhosur/MigrateIQ.git
cd MigrateIQ
# 2. Create a virtual environment
python -m venv venv
# macOS / Linux
source venv/bin/activate
# Windows
venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
copy .env.example .env
# Edit .env with your Azure / Foundry / LLM credentials
# 5. Launch MigrateIQ
chainlit run app.pyAll credentials and paths are managed via .env (see .env.example for the full template). MigrateIQ supports:
- Multi-provider LLM gateway with automatic failover
- Foundry IQ grounded retrieval
- Custom validation tooling integration
- Pluggable source control (Azure DevOps, GitHub, GitLab)
MigrateIQ is one piece of a larger vision โ making mainframe modernization safe, predictable, and accessible to every enterprise on Earth.
When validation becomes trivial:
- ๐ฆ Banks can finally retire 50-year-old systems
- ๐๏ธ Governments can serve citizens through modern apps
- ๐ฑ Massive carbon savings as power-hungry mainframes decommission
- ๐จโ๐ป The next generation of engineers can contribute (no COBOL expertise required)
- ๐ฐ Trillions of dollars unlocked from "modernization paralysis"
Validation is the bottleneck. MigrateIQ removes it.
- โ v1.0 โ 9-step reasoning workflow
- โ v1.1 โ Foundry IQ integration
- โ v1.2 โ Foundry Agent: MigrateIQ-Validator
- ๐ง v2.0 โ Multi-language targets (Java, Python, Go)
- ๐ v2.1 โ Real-time PR validation in CI/CD
- ๐ฎ v3.0 โ Self-healing fix loop (auto-apply + verify)
Shivaraj Hosur
MIT License โ built openly to inspire the next generation of mainframe modernization tools.
โญ If MigrateIQ inspires your modernization journey, star this repo!
๐ Built with โค๏ธ for Microsoft Agents League Hackathon 2026 ๐
Making the world's legacy code safe to modernize โ one validated program at a time.
Spanning ๐ง Reasoning Agents โข ๐ก Foundry IQ โข โฟ Accessibility tracks.
