Skip to content

Build a Coding assistant with NestJS to process natural language commands for tasks like file management, code generation using OpenAI, and command execution. It features a CLI with trigger words (@agent to activate, stop to end), context-aware memory, modular structure, real-time feedback, and robust error handling.

Notifications You must be signed in to change notification settings

abdurehman760/coding-assistant

Repository files navigation

Coding Assistant Bot

This project provides a coding assistant bot that can perform various tasks such as generating components, editing files, setting up projects, and more.

Table of Contents

Demo

Check out the watch demo video here

Usage

For detailed usage instructions, please refer to the check.md file.

Installation

To install the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/abdurehman760/coding-assistant
  2. Navigate to the project directory:

    cd coding-assistant
  3. Install the dependencies:

    npm install

Capabilities

The Coding Assistant Bot can perform a variety of tasks, including but not limited to:

  • Generating components for different frameworks (React, Vue, Angular, etc.)
  • Creating text files with detailed content
  • Generating files with specific extensions
  • Editing existing files based on user instructions
  • Setting up new projects (NestJS, React)
  • Installing dependencies
  • Running build commands
  • Reviewing code in specified directories
  • Performing file operations (delete, rename, copy, move)
  • Executing shell commands

Technologies Used

The Coding Assistant Bot is built using the following technologies:

  • Node.js: JavaScript runtime environment
  • NestJS: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications
  • OpenAI API: For generating code and responses
  • TypeScript: A strongly typed programming language that builds on JavaScript
  • File System (fs): For file operations

Best Features

  • AI-Powered Code Generation: Utilizes OpenAI's API to generate high-quality code based on user prompts.
  • Comprehensive File Management: Supports various file operations such as generating, editing, deleting, renaming, copying, and moving files.
  • Project Setup: Can set up new projects for popular frameworks like NestJS and React.
  • Code Review: Provides detailed code reviews, covering aspects like structure, naming conventions, and potential improvements.
  • CLI Interface: Easy-to-use command-line interface for interacting with the bot.
  • Start and Stop: Easily start the application with npm start and stop it by typing @stop in the terminal.
  • Colored Terminal Output: Uses colorette to provide colored output in the terminal for better readability and user experience.

Future Improvements

  • Enhanced Error Handling: Improve error handling to provide more informative and user-friendly error messages.
  • Support for More Frameworks: Extend support to additional frameworks and languages.
  • Integration with CI/CD: Integrate with continuous integration and continuous deployment pipelines for automated testing and deployment.
  • User Authentication: Add user authentication and authorization to secure the bot's functionalities.
  • Web Interface: Develop a web-based interface for users who prefer a graphical user interface over the CLI.
  • Memory and Context Awareness: Implement memory and context awareness to provide more personalized and contextually relevant responses.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

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

About

Build a Coding assistant with NestJS to process natural language commands for tasks like file management, code generation using OpenAI, and command execution. It features a CLI with trigger words (@agent to activate, stop to end), context-aware memory, modular structure, real-time feedback, and robust error handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published