Skip to content

haseeb-heaven/auto-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

copilot

Auto Copilot - An Automation Tool for Github Copilot ๐Ÿš€๐Ÿ’ก

Support Project:

Auto Copilot is an extraordinary ๐ŸŒŸ๐Ÿ”ง automation tool that monitors your code file and automatically fixes errors. ๐Ÿš€๐Ÿ’ก and give you Real-time ๐Ÿ“บ output of your code. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป just at your fingertips. ๐Ÿคฉ๐Ÿ‘Œ

Unbelievable, right? It's like having a copilot ๐Ÿš๐Ÿ‘จโ€โœˆ๏ธ that never sleeps! ๐Ÿ˜Ž๐ŸŒ™โœจ

This tool was inspired by XCode, which automatically executes your code in Playground ๐ŸŽฎ, and Compiler Explorer, which automatically compiles your code after every change. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป

Features โœจ

  • File Monitoring ๐Ÿ“‚: Auto Copilot watches your file for changes and automatically fixes errors.
  • Live Preview ๐Ÿ“บ: Auto Copilot can execute your code automatically after fixing the error and show you the output live.
  • Customizable ๐ŸŽ›๏ธ: You can set the interval time and monitor time according to your needs.
  • Easy to Use ๐Ÿš€: Just run the script with your file as an argument and let Auto Copilot handle the rest.
  • Cross Platform ๐ŸŒ: Auto Copilot works on Windows, Linux, and MacOS.

Pre-requisites ๐Ÿ“

You need to have Python 3 installed on your system. You can download it from here.

And you need to have the following compilers installed on your system:

In order to execute your code automatically and for the live preview. Just download ones you need mostly.

Github Copilot ๐Ÿ”‘

And you need to have Github Copilot installed on your VS Code. You can download it from here. Basically Auto Copilot uses Github Copilot Chat Inline version to fix the errors and bugs in your code.

And don't forget to set the keybindings for Github Copilot Chat in your VS Code. ๐Ÿ”‘

Installation ๐Ÿ’ป

  1. Clone the repository:

    git clone https://github.com/haseeb-heaven/Auto-Copilot.git
  2. Navigate to the project directory:

    cd Auto-Copilot
  3. Run the script with your file as an argument:

    python auto-copilot.py filename [interval_time] [monitor_time]
    • filename: The name of the file you want to monitor.
    • interval_time (optional): The time interval in seconds for checking the file. Default is 5 seconds.
    • monitor_time (optional): The time in seconds for the auto fix error. Default is 15 seconds.
  4. Install the dependencies:

    pip install -r requirements.txt
  5. Make sure to run this throug your terminal or cmd. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป and always give permissions to your terminal or cmd to access your VS Code. ๐Ÿ”‘

Working ๐Ÿš€

So how does Auto Copilot work? ๐Ÿค”

  • It actualyy uses the Github Copilot Chat to fix the errors in your code. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป
  • It Reads your Github Copilot Keybindings from your VS Code. ๐Ÿ”‘
  • It then compiles your code and executes it. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป
  • Then on Error & Bugs occurences it press the Github Copilot Keybindings to fix the errors. ๐Ÿ”‘
  • And then it compiles and executes your code again. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป
  • And it keeps on doing this until there are no errors left in your code. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป
  • And it also gives you the Real-time ๐Ÿ“บ output of your code. ๐ŸŽฏ๐Ÿ”ง๐Ÿ’ป

Working Demo ๐Ÿ“บ

Initiating the Auto Error fix ๐Ÿš€๐Ÿ’ก
copilot-error1

Auto Error fixed ๐Ÿš€๐Ÿ’ก
copilot-error1

Getting the Real-time output ๐Ÿ“บ
copilot-error1

YouTube Video ๐Ÿ“บ

Auto Copilot

Contributing ๐Ÿค

Contributions, issues and feature requests are welcome! Feel free to add PRs ๐Ÿš€.

Versioning ๐Ÿ“Œ

  • Version 1.0.0: Initial Release

License ๐Ÿ“œ

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

Authors ๐Ÿ‘จโ€๐Ÿ’ป

About

๐Ÿ› ๏ธโœจ Automation Tool for GitHub Copilot ๐Ÿ’ช that Auto Fixes code with Live Preview ๐Ÿš€๐Ÿคฏ๐Ÿคฉ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages