π GitGalaxy Documentation
Code is art. Logic is art. Systems engineering is art.
GitGalaxy is a high-velocity, deterministic function-level knowledge graph engine designed for planetary-scale codebases.
While the project is widely recognized for its interactive 3D WebGL visualizerβwhich renders repositories as explorable galaxiesβthis visualizer is ultimately just a presentation layer. The true core of the project is the blAST Engine (Bypassing LLMs and ASTs): a polyglot structural physics engine that extracts the architectural heuristics of 50+ languages simultaneously without requiring compilation.
π§ Where should I start?
GitGalaxy is a massive ecosystem. Choose your entry point based on your operational domain:
π‘οΈ For Enterprise Architects & DevSecOps
If you are looking to secure supply chains, audit AI agents, and generate compliance artifacts, start here: * π The SHBOM Standard (Structural Health Bill of Materials) * π€ Autonomous AI Guardrails (Dev Agent Firewall) * β±οΈ The Continuous Delta Paradigm (CI/CD Integration) * ποΈ Cookbook: Enforce a Import Policy Gate
π¦ For Legacy Modernization Teams
If you are tasked with breaking apart 40-year-old IBM monoliths without using an emulator: * π The Legacy Bridge (Mainframe Modernization Philosophy) * πΈοΈ The DAG Architect (Topological Execution Mapping) * β Cookbook: Refactoring COBOL into Spring Boot
βοΈ For Systems Engineers (The Physics & Proofs)
If you want to understand the mathematics driving the engine and the empirical proofs that validate our AST-free approach:
* π¬ The blAST Paradigm (Heuristics vs. ASTs vs. LLMs)
* βοΈ Claim 10: The Heuristic vs. AST Paradigm
* π Claim 11: Multi-Signal Language Detection (Inference With Provenance)
* π‘οΈ Claim 8: Empirical Validation of AST-Free Parsing (The Gauntlets)
* π The 13-Point Structural Surface Profile β formerly "Risk Exposure"; see the vector reference & validation record for why the risk_ framing was retired
βοΈ The Hub and Spoke Ecosystem
1. The Hub: The blAST Engine (GalaxyScope)
A hyper-scale, language-agnostic static analysis CLI. Bypassing traditional ASTs, it parses code at ~100,000 LOC/second using deterministic regular expressions and a multi-phase Physics Engine. It outputs rich JSON telemetry, SQLite databases, and low-token Markdown briefs optimized for AI-agent workflows.
2. The Spokes: Enterprise Operations
The core engine powers a massive ecosystem of specialized tools:
* Legacy Modernization: Automated pipelines to map, slice, and refactor legacy COBOL into modern Java microservices.
* Security & Auditing: a secrets scanner (Vault Sentinel), an SBOM recorder that samples installed packages for anomalies, a Shadow API mapper that compares source routes with the OpenAPI spec, Binary X-Ray, and a dependency firewall. These are tested on planted inputs; none has a measured real-world recall. The firewall gates imports (blacklist or strict allowlist) and secrets_risk when it runs inside a galaxyscope scan; the standalone CLI applies the same gates to the audit JSON of a scan and exits 1 on a counted threat, and #8432 tracks its enforcement gaps.
* AI Governance: heuristics that flag an agent framework import alongside disk or network I/O and few safety checks (over-permissioned agents), and files whose token mass exceeds 8,000 (too large for an agent's context). No classifier or data-flow analysis is involved.
3. The Presentation: The Observatory
Drop your _galaxy_gpu.json into the free viewer at GitGalaxy.io or use the repo's airgap_observatory, a standalone WebGPU visualizer. Both visualizers read the JSON contract and render the entire codebase as a procedural 3D galaxy where files are stars, allowing humans to visually map scale and risk exposure instantly.
π Quick Navigation (Popular Starting Points)
This is a curated subset for first-time visitors, not the complete page list -- see the sidebar for the full, always-current navigation.
Foundation & Claims
- 01-01: Project Overview
- 01-02: GalaxyScope CLI Reference
- 01-03: The blAST Paradigm (ASTs vs LLMs)
- 01-04: The Legacy Bridge
- 01-06: The Structural RAG Graph
- 01-07: The SHBOM Standard
- 01-08: Autonomous AI Guardrails
- 01-09: The Continuous Delta Paradigm
- 03-01: Claim 1 - Search Strategies
- 03-02: Claim 2 - Explicitness
- 03-03: Claim 3 - Taxonomy Map
- 03-04: Claim 4 - Comparing Languages
- 03-05: Claim 5 - File Archetypes
- 03-05b: Composition Archetypes (function β file β repo)
- 03-06: Claim 6 - Keyword Fingerprinting
- 03-07: Claim 7 - Doom Comparisons
- 03-08: Claim 8 - AST-Free Empirical Validation
- 03-09: Claim 9 - Universal Logic Extraction
- 03-10: Claim 10 - AST vs Heuristic Paradigm
- 03-11: Claim 11 - Multi-Signal Language Detection
- 03-20: Future Outlooks
Pipeline & Architecture
- 02-02: Optical Orchestration
- 02-06: Security Lens
- 02-12: Audit Recorder
- 06-01: GitGalaxy Configuration
- 06-02: Language Standards
- 06-03: Analysis Lens
Security & Threat Intelligence
Legacy Mainframe Refraction
- 05-01: Legacy Refraction Controller
- 05-02: Spring Boot Scaffolding
- 05-03: Entity & Memory Mapping
- 05-04: API & Service Contracts
- 05-05: Autonomous Agent Tickets
- 05-06: Batch Test Harness
- 05-07: Mainframe Compiler Forge
- 05-08: DAG Architect
- 05-09: ETL Unpacker
- 05-10: Graveyard Reaper (Dead Code Math)
- 05-11: JCL Meta Auditor
- 05-12: Verified JCL Forge
- 05-13: Lexical Patcher
- 05-14: Microservice Slicer
- 05-15: Cloud Schema Forge
- 05-16: Anomaly Agent Task Forge
- 05-17: System Limits Reporter
- 05-18: COBOL β Java Scan Parity
- 05-19: Ported COBOL-to-Java Programs and Their Evidence
- 05-20: The Equivalence Harness
Mathematical Physics (3D Geometry)
- 07-01: Code Complexity
- 07-02: Stars Size
- 07-03: Stars Pulse Rate
- 07-04: Stars Shape
- 07-05: Satellite Unit
- 07-06: Satellite Orbital Distance
- 07-07: Number of Satellites
- 07-08: Relative Positioning (Phyllotaxis)
- 07-09: Node Size
- 07-10: Planetary Rings (Dependencies)
- 07-11: Sequence Affinity
- 07-12: Miscellaneous Equations
Mathematical Physics (Structural Surface Profile)
Formerly "Risk Exposures." These 13 per-file vectors measure structural surface area and activity, not defect probability β the temporal-crucible validation (#2982) found they do not predict defects, so the risk_ framing was retired (#2991). Full reference and evidence: vectors.md.
* 08-01: Methodology
* 08-02: Sub Equations
* 08-03: Transforming Regex Counts
* 08-04: Ownership Entropy
* 08-05: Cognitive Load
* 08-06: Deep Churn
* 08-07: Structural Fortification
* 08-08: Technical Debt
* 08-09: Documentation Risk
* 08-10: File Stability
* 08-11: Test Coverage
* 08-12: Civil War (Layout Unity)
* 08-13: Graveyard Detector
* 08-14: API Exposure
* 08-15: Concurrency Exposure
* 08-16: State Flux Exposure
* 08-18: Specification Alignment
* 08-19: Obscured Payload Exposure
* 08-21: Injection Surface Exposure
* 08-22: Memory Corruption Exposure
* 08-23: Hardcoded Secrets Exposure
* 08-24: Reach Sensor
* 08-25: Library Surface
* 08-26: Change Report
* 08-27: Activity Sensor
* 08-28: Blast Radius of a Change
* 08-29: Repair Radius
ποΈ The Cookbook (Applied Use Cases)
- Audit Local AI Models
- Continuous Delta Monitoring
- Cross-Cultural M&A Technical Due Diligence
- Deploy Vault Sentinel
- Detect Architectural Drift
- Detect Binary Anomalies
- Enforce Import Policy Gate
- Generate LLM Architecture Briefs
- Generate a Verified SBOM
- Hunt PII Leaks
- Hunt Shadow APIs
- Prevent Agentic RCE
- Sandbox Autonomous Agents
- Scaffold Spring Boot
Legacy Modernization Cookbooks
- Map Legacy COBOL Monoliths
- COBOL Microservice Slicing
- Creating DAG from COBOL Files
- Creating JCL from COBOL Files
- Creating Schema from COBOL Files
- Identifying Dead Code in COBOL
- Prove Dead Code Logs
- COBOL Equivalence Testing
- Unpacking ETL from CBL Files
- COBOL to Java: Automated Spring Boot Build System
- COBOL to Java: Mainframe Data Serialization Forge
- COBOL to Java: REST API Generation
- COBOL to Java: Spring Boot Entity Forge
- COBOL to Java: Spring Boot Service Forge
π Quickstart
1. Install
2. Scan a Repository Point the GalaxyScope at any local repository or ZIP archive. The engine runs entirely on your local machineβzero data is transmitted.
3. View the Galaxy
GitGalaxy offers two ways to visualize your 3D architecture. Both read the _galaxy_gpu.json file the scan wrote; neither needs your source code.
* The Web Viewer (Frictionless): Drag and drop your generated _galaxy_gpu.json file directly into GitGalaxy.io. All rendering and scanning happens entirely in your browser's local memory.
* The Local Server (Enterprise & Offline): For teams operating under strict compliance rules, GitGalaxy includes a 100% static, zero-telemetry local viewer called the Airgap Observatory.
π Privacy and Local Processing
The scanner (galaxyscope) and the analysis tools run locally and make no network calls: a scan does not send your code anywhere.
- No data transmission from the scanner: a scan does not send source code to any API, cloud database or LLM service.
- One opt-in exception: the COBOL-to-Java port runner (
gitgalaxy/tools/cobol_to_java/port_runner.py) sends prompts built from your source to the model endpoint you choose with--backend openai(any OpenAI-compatible URL) or--backend anthropic, and--backend commandhands them to a command you supply, which may call a model. It only does so when you run it with one of those backends; itsdetbackend is deterministic and makes no network call. - Air-gap use: the scanner and the other tools run without network access; the port runner's model backends need whatever endpoint you point them at.
- What is written to disk: a
.ziptarget is extracted to an on-disk temporary directory (tempfile.mkdtemp), which is deleted when the scan ends, including on failure. Scan outputs go where you direct them, and by default a scan also writes a dependency-audit cache to<target>/.gitgalaxy/dependency_cache.db(--no-dependency-cacheturns it off).
π Powered by the blAST Engine
This documentation is part of the GitGalaxy Ecosystem, an AST-free, LLM-free heuristic knowledge graph engine.
- πͺ Explore the GitHub Repository for code, tools, and updates.
- π Visualize your own repository at GitGalaxy.io using our interactive 3D WebGPU dashboard.