Skip to main content

Resilient & Context-Aware Coding CLI Agent

Project description

Apex-Agent: Resilient & Context-Aware Coding CLI

Apex-Agent is a sophisticated Command Line Interface (CLI) framework designed to enhance developer productivity by providing deep context awareness, secure tool execution, and multi-provider LLM resilience.

🚀 Key Features (MVP)

🧠 Intelligence & Context

  • Advanced Context Engine: Automatically manages relevant project context, including pinned files and repository structure.
  • Symbol-Aware Search: Precisely locate class and function definitions using AST parsing (search_symbol).
  • Semantic Mapping: Built-in repository mapper to provide the LLM with a structural overview of the codebase.

🛠️ Resilient Architecture

  • Multi-Provider Support: Seamlessly switch between Groq (high-speed) and Ollama (local/privacy).
  • Human-in-the-Loop Safety: Mandatory planning and approval workflow. Every change is previewed with a colorized Diff UI.
  • Circuit Breaker & Fallback: Automatic failover logic with latency tracking for maximum uptime.

🧰 Comprehensive Toolset

  • File Ops: read_file (with selective truncation), write_file, replace_in_file, open_file_range.
  • Analysis: find_references, list_files, search, get_repo_map.
  • Execution: run_command (with security classification), run_tests (pytest integration).

🛠️ Setup & Installation

Prerequisites

  • Python 3.12+
  • Ollama (for local execution)
  • Groq API Key (optional, for cloud execution)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/apex-agent.git
    cd apex-agent
    
  2. Install globally (using uv or pip):

    # Using uv (recommended)
    uv tool install .
    
    # Or using pip
    pip install .
    
  3. Initialize Global Configuration: Run the following from anywhere:

    apex init
    

    This creates a configuration file at ~/.apex-agent/.env. Open it to add your API keys.


🖥️ Usage

You can now run the agent from any repository directory by simply typing:

apex chat start

Commands

  • apex init: Initialize global settings.
  • apex chat start: Start an interactive session in the current directory.
  • /trace: (Inside chat) View raw LLM interaction data.

📜 License

Distributed under the MIT License. See LICENSE for more information.

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_agent-0.1.2.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

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

apex_agent-0.1.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file apex_agent-0.1.2.tar.gz.

File metadata

  • Download URL: apex_agent-0.1.2.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for apex_agent-0.1.2.tar.gz
Algorithm Hash digest
SHA256 94c312f6577a641c019cae14268b7aadceb8a809bc0cebc558cd021d9bdc20c4
MD5 73ec0b5552655414c64db0ad442dad0c
BLAKE2b-256 58cc0599519c2b581a4ead8d62e87e852c7f73d9e97be879b411237621bc58d9

See more details on using hashes here.

File details

Details for the file apex_agent-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: apex_agent-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for apex_agent-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 804840f50c9c2bb22816100c7831b2157db5ef9834a92ac6daca0830eaf6d184
MD5 3c9a46eded8317ab9c2775298320c670
BLAKE2b-256 33e95253edf655c0001b758908c17ae3dd873be873e9be75412ae4c041aa7b13

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