bylazora
v0.6.0
Published
Byte-exact mainframe migration: the agent CLI, rule packs and the migrate workspace template for the open-source Bylazora engine and gate.
Maintainers
Readme
bylazora
Proof, not percentages. Bylazora is the byte-exact mainframe migration standard: a migrated workload's outputs must equal the legacy COBOL reference byte for byte, or the gate fails it.
This package is the agent-facing companion to the bylazora-core engine: a thin CLI that wires your coding agent to the gate, plus the canon rule packs and the migrate workspace template.
The CLI
npx bylazora setup claude # writes .mcp.json for Claude Code
npx bylazora setup cursor # writes .cursor/mcp.json
npx bylazora setup generic # prints the mcpServers JSON
npm install -g bylazora # then use it as a commandCommands:
setup <claude|cursor|generic>: write or print the MCP client config. The config runsnode <cli.js> mcp, which finds the engine binary (BYLAZORA_CORE, then PATH, then a built checkout) and serves the MCP tools, so the config never hardcodes a binary path or a platform.mcp: run the engine's MCP server (stdio, JSON-RPC).doctor: check node, the engine, its version, and whether the current directory sits in a migrate workspace.rules: print the canon rule pack.version: the CLI and engine versions.
The loop, delegated to the engine (the CLI computes nothing itself):
new <job> [--dir ...] [--input f]... [--output f]... [--copybook p] [--cobol-source p]: scaffold a gated workspace.reference [job] [--from dir] [--force]: seal the legacy output as the byte-level contract.verify [job]: build the target, run it, hold it to the validator. IDENTICAL or a diff, no percentages. Only the validator marks a run proven.status [job]: the contract and the latest verdict.validate --ref dir --other dir: byte-compare two output directories.bench <input> <output> [--backend cpu|gpu|cuda]: run a tier.
Inside a migrate workspace, verify, status and reference find the
job themselves (the nearest SPEC.json).
The engine is required for everything except setup and rules: download
the signed binary for your platform from
https://github.com/bylazora/bylazora/releases, or cargo install
bylazora-core.
What else ships
- rules/: the canon rule pack for coding agents (rules/CLAUDE.md for Claude-family assistants, rules/README.md for everyone).
- template/: the shape
bylazora-core migrate newgenerates for one job, worked: SPEC.json, the reference capture script, verify.sh, and the migrated Rust target from the public batch-txn sample. - index.js: exports the version and the absolute paths
rulesPathandtemplatePath.
The engine in one paragraph
One Rust binary runs the equivalence gate and the production runtime across three compute tiers: CPU, any GPU through vendor-neutral wgpu, and CUDA. Measured at one billion rows against the compiled COBOL reference: 28.1x on CPU, 61.3x on wgpu, 68.8x on CUDA, every run byte-identical. Money stays integer cents and is never a float. The engine is free and unlimited under AGPL: a licence key, when installed, is a licensee record for the run record and the audit, never a gate.
- Homepage: https://bylazora.com
- Repository: https://github.com/bylazora/bylazora
- Evidence annex: https://bylazora.com/evidence.html
