APEX - AI powered terminal coding assistant
Project description
โก APEX โ Your AI Coding Assistant
APEX is a terminal-based agentic AI coding assistant that helps you write code, fix bugs, run commands, search your project, manage GitHub repos, and automate tasks โ all from your terminal.
๐ธ Preview
| Dashboard | Auto Mode | Code Generation |
|---|---|---|
| GitHub | RAG Search | Analyze & Test |
|---|---|---|
โจ Features
- โก Fast AI Responses โ Powered by Groq (llama-3.1, llama-3.3) for ultra-fast inference
- ๐ง Smart Automation โ
/auto onlets APEX write, run, and fix code automatically - ๐ RAG โ Project Search โ Index your codebase and search it with natural language
- ๐ง Tool Execution โ Run terminal commands safely with dangerous command detection
- ๐ GitHub Integration โ List, search, push, pull, create repos from the terminal
- ๐ Watchdog โ Monitor files and auto-analyze on every save
- ๐ Code Analysis โ Scan files for real bugs and auto-fix them
- ๐งช Unit Test Generator โ Auto-generate and run tests in a safe sandbox
- ๐พ Save Code โ Save any code block from responses with
/save - ๐ Mistral Fallback โ Automatically falls back to Mistral if Groq is unavailable
๐ Installation
pip install apex-coder
Or clone and install manually:
git clone https://github.com/parinprajapati/apex.git
cd apex
pip install -e .
๐ Setup
On first run, APEX will ask for:
- Groq API key โ get it from https://console.groq.com
- Mistral API key โ get it from https://console.mistral.ai
- Your experience level (Beginner / Intermediate / Advanced)
- Whether to allow auto command execution
python -m apex.agent.main
๐ ๏ธ Commands
+---------------------------+---------------------------------------------------+
| Command | Description |
|---|---|
/index <path> |
Index a project folder for RAG code search |
/save <file> |
Save the last code block to a file |
/github |
GitHub actions (login, push, pull, search, etc.) |
/watch <file> |
Monitor a file and auto-analyze on every save |
/analyze <file> |
Scan a file for bugs and bad practices |
/fix <file> |
Auto-fix issues in a file (shows preview first) |
/test <file> |
Generate and run unit tests in a safe sandbox |
/auto on|off |
Toggle smart automation mode |
/setting |
View or update your config (API keys, level) |
/help |
Show full help guide |
exit |
Quit APEX |
| +---------------------------+---------------------------------------------------+ |
๐ค Auto Mode
Enable auto mode and just describe what you want:
>: /auto on
>: create a hello world python script and run it
APEX will write the file, run it, and show you the output โ fully automated.
๐ RAG โ Project Code Search
>: /index C:\Users\Parin\Projects\MyApp
>: find the login function
>: where is the database connection?
Supports: .py .js .ts .java .cpp .c .cs .kt .scala .html .md
๐ GitHub Commands
/github login <token>
/github list
/github search <keyword>
/github commits <owner/repo>
/github make <repo-name>
/github push <owner/repo> <file> <message>
/github pull <owner/repo> <file>
/github view <owner/repo> <file>
๐ Watchdog
/watch myfile.py # auto-analyze on every save
/analyze myfile.py # one-time scan
/fix myfile.py # auto-fix with preview
/test myfile.py # generate + run tests
/wdstop # stop watching
๐ง Models Used
+-------------------+---------------------------------------------+
| Purpose | Models |
|---|---|
| General coding | llama-3.1-8b-instant, llama-3.3-70b |
| Automation | mistral-large-latest, codestral-latest |
| Router / Planner | mistral-small-latest, ministral-3b |
| Watchdog / Fix | llama-3.3-70b, codestral-latest |
| +-------------------+---------------------------------------------+ |
๐ Project Structure
apex/
โโโ agent/ # Core agent loop, planner, UI
โโโ auto/ # Auto mode pipelines, stages, memory
โโโ config/ # Settings, system prompt, help
โโโ github/ # GitHub integration
โโโ models/ # LLM fallback + model routing
โโโ rag/ # RAG indexing and code search
โโโ tools/ # File, command, and code tools
โโโ watchdog/ # File watcher, analyzer, fixer, tester
๐ Safety
APEX detects and blocks dangerous commands like rm -rf, format, drop table, shutdown, and many more across Windows, Linux, and macOS. You can also set auto_run_commands: false to approve every command manually.
๐จโ๐ป Author
Parin Prajapati
- ๐ง parin0127@gmail.com
- ๐ GitHub
- ๐ Age: 19
๐ License
This project is licensed under the MIT License.
โญ Support
If you find APEX useful, please give it a โญ on GitHub โ it means a lot!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apex_coder-1.0.1.tar.gz.
File metadata
- Download URL: apex_coder-1.0.1.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1127ee6178b3960d76089315852059a3b5d4b1ff48e5c1f66cef53fa478aa68
|
|
| MD5 |
6ba216df07fb528e4bfb2989b078b749
|
|
| BLAKE2b-256 |
d390203eab5784f1d57c37eb1ac500e796c01f5f7077ec56b2405cbe5844e417
|
File details
Details for the file apex_coder-1.0.1-py3-none-any.whl.
File metadata
- Download URL: apex_coder-1.0.1-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd9f989c0c99d5f02c2c88158690f60a7566055b8d20115b1aabc1cdfb50aeb
|
|
| MD5 |
5b3ee670d4310614f41099e5849e31be
|
|
| BLAKE2b-256 |
769eecf81dea0718489cb693cff53ce06c71ba07cab11a14851a4bba16df2cb7
|