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.
  • Undo System: Instant filesystem reverts using Git-based snapshots (/undo).
  • 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+
  • Git (required for the Undo system)
  • 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.
  • /undo: (Inside chat) Revert the last filesystem change.
  • /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.0.tar.gz (21.7 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.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apex_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 21.7 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.0.tar.gz
Algorithm Hash digest
SHA256 bd1a75019ae8eb4aab524f3716060afaeba8f05c11807bcb0ed5823279c8f28f
MD5 b66a0eea30431832f477abfea450c0b0
BLAKE2b-256 ae1a4339674c5ff58da4f88cc42da1537a09b57a41da5e6b10bca2db5eac5d20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apex_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 275a6811735f1def0da12ba7fd003f93e9bf09aff0fc24610bfa19f870fc9f63
MD5 41755a25acbaddb0e826ef01c3106c2f
BLAKE2b-256 4641d2571e6b307152291a2f391d090736c81ea532ba321af235b4851e3f1b32

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