Skip to main content

Open source, cheap, and premier coding agent

Project description

agentic-cli-coder

An open-source, powerful, and versatile coding agent for your terminal. agentic-cli-coder is designed to be your primary AI assistant for software development, providing a rich set of tools and features to accelerate your workflow right from the command line.

Agentic Demo

IMPORTANT:
Before installing, make sure the directory containing the agentic package (and its subfolders) is in your PATH environment variable.
This is required for the agentic command to work after installation.
For example, if you are installing in a virtual environment, activate it first, or ensure your Python scripts directory is in your PATH. Or, if you are installing on Windows, make sure to add necesarry folders to PATH based on what the cmd tells you.

✨ Features

  • Multi-Provider LLM Support: Powered by LiteLLM, Agentic supports over 100 LLM providers, including OpenAI, Anthropic, Google, Mistral, and many more. You can even use local models via Ollama.
  • Multiple Agent Modes: Switch between specialized agents tailored for different tasks:
    • code: A general-purpose coding assistant with a full toolset.
    • ask: A question-answering agent with web search and file reading capabilities.
    • architect: A high-level planner that designs project structures and implementation plans.
    • agent-maker: A master agent that can delegate tasks to other sub-agents.
    • memory: An agent dedicated to creating and managing project summaries.
  • Retrieval-Augmented Generation (RAG): Agentic can index your entire project codebase to provide contextually-aware answers and code modifications.
  • Persistent Memory: Save key information, architectural summaries, and user instructions to a persistent memory that is loaded in future sessions.
  • Powerful Interactive Shell: A feature-rich interactive prompt with commands for managing conversation, configuration, and agent state.
  • Sub-Agent Delegation: Break down complex tasks by creating and delegating work to specialized sub-agents.
  • Comprehensive Toolset: Comes with a wide range of tools for file operations (ReadFile, WriteFile, Edit), version control (Git), shell command execution (Shell), web browsing, and more.
  • Model Context Protocol (MCP) Integration: Connect to external MCP servers to extend the agent's capabilities with third-party tools.
  • Secure Configuration: All sensitive information, including API keys, is encrypted on your local machine.

🚀 Installation

agentic-cli-coder is available on PyPI.

  1. Install the package:

    pip install agentic-cli-coder
    
  2. Install browser drivers for the Browser tool: (optional) Agentic uses Playwright for web browsing tasks. You need to install its browser drivers by first installing Playwright and then installing the browsers:

    pip install playwright
    playwright install
    

🏃‍♀️ Quick Start

  1. Launch the agent:

    agentic
    
  2. Configure your LLM provider: The first time you run Agentic, you will be prompted to configure it. You can also run the configuration menu at any time with the /config command.

    > /config
    

    This will open an interactive menu where you can select your provider (e.g., openai), enter your model name (e.g., gpt-4-turbo), and add your API key.

  3. Start coding! Once configured, you can start interacting with the agent.

    > Please write a Python script to list all files in the current directory.
    

📖 Usage

Interactive Commands

Agentic provides a set of slash commands to manage the session:

Command Description
/help Show the help message with all commands.
/config Open the interactive configuration menu.
/mode <name> Switch agent mode (e.g., /mode ask).
/clear Clear the current conversation history.
`/rag <init update>`
`/memory <init save>`
/yolo Toggle YOLO mode to execute dangerous tools without confirmation.
/exit Exit the interactive session.
! <command> Execute a shell command (e.g., !ls -l).

Non-Interactive Usage

You can pipe content directly into Agentic for non-interactive tasks.

cat my_file.py | agentic "Refactor this code to be more idiomatic."

⚙️ Configuration

agentic-cli-coder stores its configuration in ~/.agentic-cli-coder/.

  • config.encrypted: Encrypted file containing your settings and API keys.
  • config.key: The local encryption key for your configuration.
  • data/: Directory for persistent memories and RAG indexes.

The easiest way to manage your settings is through the interactive agentic config or /config command. You can set up different models for different modes, manage presets, configure RAG and memory settings, and much more.

❤️ Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

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

agentic_cli_coder-1.2.1.tar.gz (68.0 kB view details)

Uploaded Source

Built Distribution

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

agentic_cli_coder-1.2.1-py3-none-any.whl (69.4 kB view details)

Uploaded Python 3

File details

Details for the file agentic_cli_coder-1.2.1.tar.gz.

File metadata

  • Download URL: agentic_cli_coder-1.2.1.tar.gz
  • Upload date:
  • Size: 68.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for agentic_cli_coder-1.2.1.tar.gz
Algorithm Hash digest
SHA256 da4d1e076359ad60bae3e1c9306856f22f0a5acadd4ee67f4efc30b4f12385cb
MD5 2e614b05720b63267f6b75dc0782e7a3
BLAKE2b-256 98e096d4093151cb7e10e04155b0169b65cd9931564a71b15d678f0da7a59feb

See more details on using hashes here.

File details

Details for the file agentic_cli_coder-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_cli_coder-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b874991ca47163525159ee0d20dbd3ff99ab81a9fa2159fa8b96f797e213ed4e
MD5 ed6db7d7005c5c59efc03addcc8f6218
BLAKE2b-256 a955e3ca69169e0ce37dfd86639ab7de3a1070f46b4d08f3f6d8bd1638f69b78

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