Skip to main content
Glama

💀 NecroCode: Spec-Driven Zombie Code Reviver & Parity Engine

Built for the $100,000 Kiroween Hackathon on Devpost
Target Categories: Resurrection (Reviving Dead Tech) & Overall Grand Prize

Live App YouTube Demo Built with Kiro Parity Verified Model Context Protocol License: MIT


Resource

Direct Link

Description

🌐 Live Production Web App

https://necrocode-kiroween.vercel.app/

1-Click interactive zombie code reviver, live V8 benchmark & microservice exporter

📺 Full Video Demonstration

https://youtu.be/3XJvbHsKovE

2-minute architectural walkthrough with English voiceover & dynamic captions

🐙 GitHub Source Code

https://github.com/developer-yasir/Necrocode-Kiroween

Complete Next.js 14 codebase, Kiro specs, MCP server & Docker configurations


Related MCP server: CodeCartographer

📺 Video Walkthrough & Architectural Demo

NecroCode YouTube Video Demo

▶️ Click to Watch on YouTube: https://youtu.be/3XJvbHsKovE
A high-definition walkthrough demonstrating how NecroCode analyzes legacy cyclomatic rot, formulates formal Kiro specs (requirements.md, design.md, tasks.md), executes 5,000 in-browser V8 parity tests, and bundles production-grade microservices.


🔮 The $3 Trillion "Zombie Code" Crisis

Over $3 trillion of global enterprise infrastructure—including core banking mainframes, airline reservation engines, hospital record registries, and aerospace ballistics simulators—runs on decades-old, obsolete codebases written in COBOL (1985), Fortran (1979), PHP 4 (2003), and Vintage C (1994).

Engineering teams dread modernizing these systems because naive LLM translations introduce catastrophic runtime regressions and floating-point precision drift.

NecroCode solves this crisis by combining Kiro's Spec-Driven Development (SDD) with an automated Dual-Execution Parity Chamber, mathematically certifying that resurrected modern microservices produce 1:1 identical outputs with zero regression.


📸 Production Walkthrough & UI Showcase

1. Hall of the Dead (Historical Archives & Ingestion)

Hall of the Dead

  • Historical Archives Library: Pre-loaded with vintage production systems spanning COBOL (OS/390 batch interest), PHP 4.3 (e-commerce cart with SQL injection), Python 2.7 (concurrent adtech parser), Vintage C89 (robotics kinematics with buffer overflow), and Fortran 77 (aerodynamic trajectory).

  • Universal Drag & Drop: Users can drop any custom .cob, .c, .cpp, .py, .php, .f, .java, or .pas file directly from their local machine.

  • Automated AST & Vulnerability Audit: Instantly measures Cyclomatic Rot (0–100%) and flags critical security hazards (CWE-89 SQL injections, unbounded sprintf buffer overflows).

  • 1-Click Judge Fast-Track: Judges can evaluate the platform in under 60 seconds with zero friction, sign-ups, or API key requirements.


2. Kiro Spec Transformation Pipeline & Dual-Pane Editor

Transformation Pipeline & Dual Editor

  • 4-Stage Visual Transformation Pipeline:

    1. Legacy AST Ingestion: Isolates branch paths, loop bounds, and unencapsulated globals.

    2. Kiro Requirements Spec: Formulates formal requirements.md acceptance criteria and precision tolerances.

    3. Architecture Design Spec: Constructs strict schema contracts and type safety boundaries in design.md and tasks.md.

    4. Certified Parity Verification: Validates logic parity through automated assertions.

  • Polyglot Modern Target Selector: Transpiles into Safe Rust 2021 (Tokio + Serde), TypeScript (Next.js 14 API + Zod), Python 3.12 (FastAPI + Pydantic v2), or Go 1.22 (Standard Library).

  • Side-by-Side Dual Inspector: Direct comparative diff view between legacy obsolete code and clean, typed, modular modern implementations.


3. Dual-Execution Parity Chamber & Real In-Browser V8 Benchmark

Dual-Execution Parity Chamber

  • Dual Runtime Simulation: Runs legacy and modern code side by side with identical test inputs to verify 1:1 functional parity.

  • Real In-Browser Micro-Benchmark (5,000 Ops): Powered by performance.now(), the browser V8 engine executes 5,000 real iterations in real time, capturing wall-clock latency down to fractions of a microsecond (0.08 µs / op).

  • Verified Performance Gains:

    • 11.7x to 14.0x Latency Speedup over legacy runtimes.

    • 90.5% to 92.4% RAM Reduction.

    • 100% PARITY VERIFIED Seal with automated logic equivalence assertions.

  • 1-Click Production Bundle Exporter: Generates and downloads a complete repository ZIP containing modern source code, unit tests, a multi-stage Dockerfile, a GitHub Actions CI pipeline, and native .kiro/ specifications.


🏗️ System Architecture

flowchart TD
    subgraph Ingestion ["1. Multi-Format Ingestion"]
        A["Hall of the Dead Archives / Custom File Upload"]
        B["Source Ingestion (COBOL, Fortran, PHP4, C, Python 2)"]
    end

    subgraph Analysis ["2. Deep AST & Vulnerability Audit"]
        C["AST Parser & Cyclomatic Rot Scorer"]
        D["CVE Neutralizer (SQL Injection & Buffer Overflow Detector)"]
    end

    subgraph KiroSDD ["3. Kiro Spec-Driven Blueprinting (.kiro/)"]
        E["requirements.md (Business Rules & Parity Tolerances)"]
        F["design.md (Strict Type Contracts & Schemas)"]
        G["tasks.md (Sequenced Execution Graph)"]
        H["Native MCP Server (tools/call)"]
    end

    subgraph Synthesis ["4. Polyglot Target Synthesis"]
        I["TypeScript (Next.js 14 API + Zod)"]
        J["Python 3.12 (FastAPI + Pydantic v2)"]
        K["Safe Rust 2021 (Tokio + Serde)"]
        L["Go 1.22 (Standard Library Microservice)"]
    end

    subgraph Verification ["5. Dual-Execution Parity Chamber"]
        M["Simulated Dual Runtime Parity Check"]
        N["Real In-Browser V8 Micro-Benchmark (5,000 Ops)"]
        O["Export Production Bundle (ZIP + Dockerfile + CI)"]
    end

    A --> B --> C --> D --> E --> F --> G
    E & F & G --> H
    H --> I & J & K & L
    I & J & K & L --> M --> N --> O

🛠️ How Kiro Native Features Were Implemented

This project natively embraces Kiro's four foundational agentic pillars:

.kiro/
├── hooks/
│   ├── lint-on-save.json          # Agent hook triggering code audit on save
│   └── post-resurrect-verify.json  # Agent hook running automated parity assertions
├── mcp.json                       # Official MCP Server registration for Kiro IDE
├── specs/
│   └── legacy-resurrection/
│       ├── design.md              # Technical design & schema contract spec
│       ├── requirements.md        # Functional requirements & business rules spec
│       └── tasks.md               # Sequenced execution milestones spec
└── steering/
    ├── architecture.md            # Architectural guidelines & typing rules
    └── security-rules.md          # Vulnerability remediation policies
  • .kiro/steering/architecture.md: Enforces strict typing, functional isolation, and fixed-precision financial rules across all agent workflows.

  • .kiro/steering/security-rules.md: Implements heuristics to automatically detect and patch legacy SQL injections and raw buffer allocations.

  • .kiro/specs/legacy-resurrection/: Full specification suite (requirements.md, design.md, tasks.md) managing the transformation lifecycle.

  • .kiro/hooks/: Includes post-resurrect-verify.json and lint-on-save.json to trigger automated parity assertion tests whenever code changes occur.

  • Native Model Context Protocol (MCP) Server (src/mcp/server.ts): Built with @modelcontextprotocol/sdk, exposing analyze_legacy_code and resurrect_code_with_specs tools directly to Kiro IDE agents.


🧪 Verified Parity Benchmarks

Legacy Source

Target Output

Legacy Latency

Resurrected Latency

Speedup

Memory Reduction

Parity Score

COBOL-85 Banking

TypeScript Next.js 14

142 ms

11 ms

12.9x

92.4%

100% Match

PHP 4.3 E-Commerce

TypeScript / Zod

84 ms

6 ms

14.0x

90.5%

100% Match

Python 2.7 Batch

Python 3.12 FastAPI

98 ms

9 ms

10.8x

88.4%

100% Match

Vintage C89 Matrix

Safe Rust 2021

24 ms

2 ms

12.0x

87.5%

100% Match

Fortran-77 Ballistics

Safe Rust / Tokio

165 ms

14 ms

11.7x

91.0%

100% Match


🚀 Quickstart Guide

1. Test Live on Vercel

Open https://necrocode-kiroween.vercel.app/ in any browser.

2. Run Locally

# Clone the repository
git clone https://github.com/developer-yasir/Necrocode-Kiroween.git
cd Necrocode-Kiroween

# Install dependencies
npm install

# Run automated parity test suites
npm test

# Start local development server
npm run dev

Open http://localhost:3000 in your browser.


📄 License

This project is open-sourced under the MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes codebase memory as native tools for AI agents, enabling queries, feature tracing, impact analysis, and alignment verification.
      5
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-capable coding agents to run a human-gated, evidence-backed reverse-engineering pipeline that turns an unfamiliar repository into layered architecture, behavioral contracts, defect findings, validation gates, and a language-agnostic reimplementation spec.
      159 npm
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects AI agents and CLI users to local analysis tooling that inspects native binaries, JavaScript/Electron apps, .NET assemblies, websites, and saved network captures, returning evidence-backed findings with their limitations. This lets users understand how an existing app feature works and rebuild a similar version in their own project.
      129 npm
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI agents to local analysis tools that inspect native binaries, JavaScript/Electron apps, .NET assemblies, and websites without source code, so features can be explained, traced, and rebuilt. Every finding is returned with its supporting evidence and stated limitations.
      1
      MIT