Extract structure
Parse programs, jobs, copybooks, screens, tables, triggers, and files locally—with no model and no tokens.
LAYER 1 · DETERMINISTICTurn COBOL, JCL, CICS, DB2, and VSAM estates into a portable knowledge graph your team owns—then spend AI tokens only on logic that actually changed.
impact of ACCOUNTSDeterministic machinery handles facts. Models handle ambiguity. Every verified insight persists, so your knowledge base gets richer while recurring cost approaches zero.
Parse programs, jobs, copybooks, screens, tables, triggers, and files locally—with no model and no tokens.
LAYER 1 · DETERMINISTICConnect calls, reads, writes, executions, and lineage in a versioned SQLite graph you can inspect and export.
LAYER 2–3 · PORTABLERedact sensitive data, rank risk, and narrate only new or changed business logic using the model you choose.
LAYER 3.5–4 · CONTROLLEDAnswer “what runs this?” and “what breaks if this changes?” through instant, token-free graph traversal.
LAYER 5–6 · ACTIONABLEYour source stays local by default. Your graph is a standard, versionable artifact. Your model provider is replaceable.
Post-expansion, post-redaction hashes mean unchanged paragraphs hit the cache forever. One changed line re-queues one unit—not an entire application.
987b31a8CACHED7b1c624eCACHEDnew contentQUEUECredentials and financial identifiers are scrubbed before any optional model call.
Verify, flag, edit, and stale-check business rules. Every insight remains traceable to source.
Runs offline with the built-in mock adapter. Connect Anthropic or OpenAI only when you are ready.
Read the full guide ↗# Install from source
pip install -e ".[dev]"
# Extract structural facts
mainframe-brain extract examples/cobol \
--out brain.db
# Ask impact questions—zero tokens
mainframe-brain query --store-path brain.db \
"impact of ACCOUNTS"Mainframe Brain is independent and open source under Apache 2.0. Sponsorship funds parser coverage, documentation, and the long-term maintenance that keeps this knowledge in your hands—not behind a paywall.
Recurring or one-time sponsorship goes directly toward development. Every tier helps sustain the project and unlocks a place in our supporters list.
Become a sponsor ♥A star boosts visibility and helps other mainframe teams discover the project.
Star on GitHub ↗Add parsers, fix bugs, or improve docs. Good first issues are labeled and welcome.
Contributing guide ↗Share with your team or write about your experience. Word of mouth keeps open source alive.
Join discussions ↗Open source. No black box. No forced migration.
Explore on GitHub ↗