Sitelet https://github.com/ramsudan/Quack-The-Code
Skip to content
 
 

Repository files navigation

Quack-The-Code: Agentic AI Driven

Quack-The-Code Logo

Overview

Quack-The-Code is an AI-powered legacy code modernization platform that transforms outdated programming languages into modern equivalents. The system leverages specialized AI agents to analyze and convert legacy code while preserving functionality and logic.

Features

  • Multi-Language Support: Convert from legacy languages including:

    • COBOL
    • Fortran
    • Pascal
    • Assembly
  • Target Modern Languages:

    • Python
    • C++
    • Java
    • C
  • Intelligent Conversion: Maintains original program logic and behavior

  • Specialized Agents: Each legacy language has a dedicated AI specialist

  • Comprehensive Logging: Detailed logs for tracking conversion process

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Quack-The-Code.git
    cd Quack-The-Code
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env with your API keys and configuration

Project Structure

Quack-The-Code/
├── config/
│   └── agents.yaml       # Agent configuration - Q Generated
├── legacy_code/
│   └── uploads/          # Original legacy code files - Runtime Generated
├── modernized_code/
│   └── output/           # Generated modern code files - Runtime Generated
├── .env                  # Environment variables - Update it 
├── config.json           # Application configuration 
├── crew.py               # Main application file - Q Generated (Extension)
├── q-config.json         # Q configuration - Q Generated
|__ readme.md             # End to end flow - Q Generated
|__ frontend
|   |__streamlit_app.py   # Frontend done by me
└── requirements.txt      # Dependencies - Q Generated

How It Works

  1. Input Processing: The system reads the legacy code file and identifies the source language.
  2. Agent Selection: Based on the source language, a specialized AI agent is selected.
  3. Code Analysis: The agent analyzes the legacy code structure, logic, and functionality.
  4. Conversion: The code is transformed into the target modern language.
  5. Output Generation: The modernized code is saved to the output directory.

Architecture

Quack-The-Code uses the CrewAI framework to orchestrate specialized AI agents:

  • COBOL Specialist: Expert in modernizing COBOL systems
  • Fortran Specialist: Specialized in scientific computing code conversion
  • Pascal Specialist: Focused on Pascal's structured programming paradigms
  • Assembly Expert: Skilled in translating low-level operations to high-level abstractions

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • CrewAI - AI agent orchestration framework
  • OpenAI - Language model provider

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages