Skip to main content

APEX - AI powered terminal coding assistant

Project description

โšก APEX โ€” Your AI Coding Assistant

Python License Powered by Groq Mistral Version PyPI

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
Dashboard Auto Code
GitHub RAG Search Analyze & Test
GitHub RAG Test

โœจ Features

  • โšก Fast AI Responses โ€” Powered by Groq (llama-3.1, llama-3.3) for ultra-fast inference
  • ๐Ÿง  Smart Automation โ€” /auto on lets 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:

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


๐Ÿ“„ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apex_coder-1.0.0.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apex_coder-1.0.0-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file apex_coder-1.0.0.tar.gz.

File metadata

  • Download URL: apex_coder-1.0.0.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for apex_coder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7ce89c1a44f1b5cfdb49c8084cf35890b037a5a2a8a43bd27ea5d7a331effd5e
MD5 28ff3819182f8d24255989fd42b437c2
BLAKE2b-256 76017447b4958b48db70b11964704ef7de7efeb88f6b42b2168cbe72815c9553

See more details on using hashes here.

File details

Details for the file apex_coder-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: apex_coder-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for apex_coder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52a7c1bff8a35f3d0a9bb607e91071103d26ee0c81eae0e7e196c49410dd157e
MD5 e8ef9522bfee81595e810db6f6bca346
BLAKE2b-256 7aeae008657c7c5df61ed41cc05104dae4bb8aaa295bc1405056781e5956b81e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page