Skip to content

yash2998chhabria/cli_agent_prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ CLI AI Agent for macOS

This project is a CLI AI Agent designed for macOS, combining the power of local GGUF models (via llama-cpp-python) or OpenAI's GPT API to generate safe and useful Shell or Python code based on user prompts.

The agent is built with Flask for REST API support and has a built-in logging and task execution system.


πŸš€ Features

βœ… Supports Local LLMs and OpenAI API
βœ… Secure Mac Password Handling (with sudo support)
βœ… Automatic GGUF Model Downloads & Validation
βœ… Interactive Model Selection
βœ… Safe Code Generation: Outputs raw Shell/Python code based on tasks
βœ… Execute or Log Code Outputs
βœ… Retry on Errors with AI-Generated Fixes
βœ… Flask REST API with /task, /run_file, /perf, /toggle_long_mode endpoints
βœ… Logging and Error Handling
βœ… Long Context Mode for large tasks and partial completions


πŸ“¦ Requirements

These are automatically installed on first run:

  • llama-cpp-python
  • flask
  • huggingface_hub
  • (Optional) openai (for GPT-4/3.5 access)

πŸ”‘ Setup

1️⃣ Clone or download this repo.

2️⃣ Install GitHub CLI (optional for managing repos).

3️⃣ Run the agent:

python script.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages