KorroAi /
mue-x
The first self-evolving AI agent. Rewrites its own source code in real-time. 6 AST mutation strategies. Absorbs GitHub repos autonomously. 7 autonomic drives. Standalone CLI. Works anywhere.
86/100 healthLoading repository data…
ehtisham145 / repository
Autonomous CLI Coding Agent — A production-grade, terminal-based AI coding assistant powered by the Groq API (Llama 3.3 70B). Built with Python, Typer, and Rich, it uses a ReAct (Reason + Act) loop with native tool-calling to read, write, and patch files,
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A production-grade, CLI-based Autonomous Coding Agent that runs directly inside your terminal — installable as a global command, so you can enable it in any project, anywhere on your machine. Powered by OpenAI's GPT-4o with native tool-calling, it can read, write, and patch code, manage project directories, and execute shell commands, all through natural language, with built-in safety guardrails at every step.
y/n) before execution. Dangerous commands (e.g. rm -rf /, mkfs, shutdown) are automatically blocked.""" wrapper without breaking terminal input handling.patch_file uses atomic write operations (temp file + OS-level replace) to guarantee files are never left in a corrupted state, even on a crash.codeagent from inside any project folder on your system.| Component | Technology |
|---|---|
| Language | Python 3.11+ |
| CLI Framework | Typer |
| Terminal UI | Rich |
| Data Validation | Pydantic v2 / pydantic-settings |
| LLM Provider | OpenAI (GPT-4o) |
Coding_Agent/
├── pyproject.toml # Package config — defines the `codeagent` command
├── venv/ # Virtual environment (kept outside the package)
└── code_agent/ # The actual installable Python package
├── __init__.py
├── main.py # CLI entrypoint & interactive chat loop
├── agent.py # Core ReAct orchestration loop
├── prompts.py # System prompt definition
├── requirements.txt
├── utils/
│ ├── __init__.py
│ └── config.py # Settings, logging, and LLM client initialization
└── tools/
├── __init__.py # Tool registry (TOOL_FUNCTIONS)
├── file_ops.py # read_file, write_file, patch_file, create_directory
├── shell_ops.py # list_dir, execute_command
├── safety.py # Truncation & dangerous-command detection
└── schemas.py # OpenAI-compatible tool JSON schemas
| Tool | Description |
|---|---|
read_file(path, line_start, line_end) | Reads a file, optionally within a specific line range, to save tokens. |
write_file(path, content, append) | Creates, overwrites, or appends to a file (with confirmation). |
patch_file(path, search_block, replace_block) | Makes a precise, targeted edit to a file using atomic writes (with confirmation). |
create_directory(path) | Creates a new directory, including parent folders. |
list_dir(path) | Lists the contents of a directory, skipping hidden files and __pycache__. |
execute_command(command) | Runs a shell command and returns stdout/stderr/exit code (with confirmation and blacklist checks). |
You only need to do this once. After that, codeagent will be available from any folder on your system.
git clone <your-repo-url>
cd Coding_Agent
python -m venv venv
venv\Scripts\activate
pip install -r code_agent\requirements.txt
Run this from the project root (where pyproject.toml lives):
pip install -e .
💡 If you want
codeagentavailable even outside this virtual environment (i.e. truly global, in any terminal), also run the same command using your global Python's pip, not the venv's:deactivate pip install -e .
Create a folder and .env file in your user profile directory:
mkdir $env:USERPROFILE\.coding_agent
notepad $env:USERPROFILE\.coding_agent\.env
Add the following inside it, then save:
OPENAI_API_KEY=your_actual_openai_api_key_here
OPENAI_MODEL=gpt-4o
That's it — setup is complete. ✅
No need to reinstall or reconfigure anything again. Just:
cd D:\Path\To\Any\Project
codeagent
You: list the files in this directory
You: read main.py and explain what it does
You: create a login page with HTML, CSS, and JS
The agent will treat your current folder as the working directory — so all file reads, writes, and commands happen right there in that project.
Wrap your prompt in triple quotes to paste multi-line text safely:
You: """
Create a simple, professional frontend-only website with 5 pages...
...
"""
Type exit or quit at any time, or press Ctrl+C.
| Problem | Likely Cause | Fix |
|---|---|---|
codeagent not recognized | Global Python's Scripts folder isn't in PATH, or install was only done inside the venv | Re-run pip install -e . using the global (non-venv) pip |
ModuleNotFoundError: No module named 'code_agent...' | pyproject.toml's entry point doesn't match the actual folder name | Ensure codeagent = "code_agent.main:app" matches your package folder name exactly |
| Confirmation prompts get skipped or misfire | Pasting a multi-line prompt without the """ wrapper | Always wrap multi-line input in """ on its own line, both start and end |
Failed to Load Settings on startup | Global .env file missing or misconfigured | Recheck %USERPROFILE%\.coding_agent\.env exists and has a valid OPENAI_API_KEY |
This project is open for personal and educational use. Add your preferred license here (MIT, Apache 2.0, etc.).
Built as a hands-on deep dive into agentic AI systems — tool-calling architectures, context management, and the safety considerations of giving an LLM real access to a file system and terminal.
Selected from shared topics, language and repository description—not editorial ratings.
KorroAi /
The first self-evolving AI agent. Rewrites its own source code in real-time. 6 AST mutation strategies. Absorbs GitHub repos autonomously. 7 autonomic drives. Standalone CLI. Works anywhere.
86/100 healthARCANGEL0 /
A multi-mode terminal AI agent supporting GPT-5/Ollama for vision, image creation and edition, video generation,web search, code generation, and autonomous pentesting with persistent history and zero API costs.
67/100 healthcognix-dev /
Autonomous code generation powered by flow engineering.
63/100 healthudaykanthr /
Autonomous multi-agent AI coding CLI & Python library with built-in RAG. Plans, codes, reviews, tests — works with local LLMs (Ollama, LM Studio) or cloud (OpenAI, Gemini, Claude).
72/100 healthMakson179 /
Autonomous supervisor for AI coding agents. Watches Codex CLI sessions, handles permissions, intervenes on drift, and restarts stuck agents with handoff — so you can run long autonomous tasks without babysitting.
76/100 healthwaitdeadai /
Autonomous coding agent with web research (Recon), adversarial plan debate, 5-tier cognitive memory, multi-model routing (Gemini + DeepSeek + Ollama), 24/7 loops, and $0 local mode. Apache 2.0.
64/100 health