Cerci is an intelligent systems assistant designed to streamline and enhance the user experience on Linux systems. By leveraging AI, Cerci translates user requests into actionable terminal commands and executes them seamlessly. The assistant communicates with an AI server via the Groq API using curl and handles command execution through system calls in Linux.
- AI-Powered Command Generation: Cerci uses AI to interpret user requests and generate the appropriate bash commands.
- Seamless API Integration: Communicates with an AI server using HTTP requests via
curl. - Efficient Command Execution: Executes terminal commands using system calls in Linux.
- User-Friendly: Simplifies complex tasks by abstracting command syntax and operations.
- User Input: The user provides a natural language request specifying the task they want to perform in the terminal.
- AI Query: Cerci sends the user request to the AI server via the Groq API using
curl. - Response Handling: Cerci receives the AI-generated bash command.
- Command Execution: The command is executed directly using Linux system calls.
- Linux operating system
- C++ compiler (e.g.,
g++) curlinstalled
-
Clone the repository:
git clone https://github.com/Ayushman2004/cerci.git cd cerci -
Compile the source code:
mkdir build cd build cmake .. make -
Run the executable:
./cerci <request>
- Set up Groq API ans API_key
- Cerci launch and request:
./cerci create a new directory called projects
- Cerci will generate and execute the corresponding bash command:
mkdir projects
-
File Management:
./cerci Delete all files with the .log extension in the current directoryCerci executes:
rm *.log -
System Monitoring:
./cerci show me the current CPU usageCerci executes:
top
- Be cautious when executing commands generated by Cerci, especially commands that modify or delete files.
- Ensure the AI server and Groq API endpoints are secure.
- Enhanced natural language processing capabilities.
- Improved error handling and logging.
This project is licensed under the Apahe-2.0 LICENSE.
- Groq API for AI capabilities
Cerci empowers Linux users and DevOps Engineers by simplifying terminal operations and making system management more accessible through AI-driven automation.