software-assistant-interface
v1.0.1
Published
A script to interface with AI language model for development tasks
Downloads
1
Readme
Software Assistant Interface
This script helps you interface with an AI language model to assist with your development tasks. It monitors your clipboard for code blocks and terminal commands, and processes them accordingly. For code blocks, it writes the content to a specified file, while for terminal commands, it executes them in the current directory.
Installation
- Ensure you have Node.js installed on your system.
- Clone or download this repository to your local machine.
- Open a terminal in the project directory and run the following commands to install the required packages:
$ npm install -g .
Usage
- Run the assistant interface using the following command:
assistant
- When interacting with the AI language model, use the following prompt to ensure the generated code blocks and terminal commands are properly formatted:
In our conversation, please provide code blocks with a comment at the beginning of the code block that indicates the file path (e.g., "// filename.js"). Also, prefix terminal commands with a '$' sign. Now let's create an application that...
- Copy code blocks and terminal commands provided by the AI model. The script will process the copied content accordingly:
- For code blocks, it writes the content to the specified file.
- For terminal commands, it executes them in the current directory.
Note: Ensure that the AI-generated code blocks start with a comment containing the file name, and the terminal commands start with a '$' sign.