Skip to main content

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.

Release files for agentic-cli-coder 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentic-cli-coder 1.2.1
File Size Uploaded
agentic_cli_coder-1.2.1.tar.gz 68.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentic-cli-coder 1.2.1
File Interpreter ABI Platform
agentic_cli_coder-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 137.4 kB

Release files / agentic_cli_coder-1.2.1.tar.gz

Download URL agentic_cli_coder-1.2.1.tar.gz
Size 68.0 kB
Tags Source
SHA-256 checksum
How to use checksums
da4d1e076359ad60bae3e1c9306856f22f0a5acadd4ee67f4efc30b4f12385cb
BLAKE2b-256 checksum
How to use checksums
98e096d4093151cb7e10e04155b0169b65cd9931564a71b15d678f0da7a59feb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / agentic_cli_coder-1.2.1-py3-none-any.whl

Download URL agentic_cli_coder-1.2.1-py3-none-any.whl
Size 69.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b874991ca47163525159ee0d20dbd3ff99ab81a9fa2159fa8b96f797e213ed4e
BLAKE2b-256 checksum
How to use checksums
a955e3ca69169e0ce37dfd86639ab7de3a1070f46b4d08f3f6d8bd1638f69b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page