Skip to content

cecli-dev/cecli

 
 

Repository files navigation

Why cecli?

cecli (probably pronounced like "Cecily") is yet another cli agent crafted for extensibility and customization. Originally a fork of the Aider AI pair programming tool, we aim to make agentic coding as maximally effective as it can be based on the incredible capabilities of large language models.

Links

Documentation 🞄 Discord Chat 🞄 Issue Queue

Installation Instructions

All installation methods export a cecli command that can start the application. This project can be installed using several methods:

Linux & Mac

Use curl to download the script and execute it with sh:

curl -LsSf https://cecli.dev/install.sh | sh

If your system doesn't have curl, you can use wget:

wget -qO- https://cecli.dev/install.sh | sh

Windows

powershell -ExecutionPolicy ByPass -c "irm https://cecli.dev/install.ps1 | iex"

Package Installation

uv pip install --native-tls cecli-dev

or

pip install cecli-dev

Tool Installation

uv tool install --native-tls --python python3.12 cecli-dev

Use the tool installation so cecli doesn't interfere with your development environment

Configuration

The documentation above contains the full set of allowed configuration options but I highly recommend using an .cecli.conf.yml file. A good place to get started is:

model: <model of your choice>
agent: true
auto-commits: true
auto-save: true
cache-prompts: true
check-update: true
enable-context-compaction: true
context-compaction-max-tokens: 0.8
show-model-warnings: true

agent-config:
  large_file_token_threshold: 8192
  skip_cli_confirmations: false

mcp-servers:
  mcpServers:
    context7:
      transport: http
      url: https://mcp.context7.com/mcp

Use the adjacent .cecli.env file to store model api keys as environment variables, e.g:

ANTHROPIC_API_KEY="..."
GEMINI_API_KEY="..."
OPENAI_API_KEY="..."
OPENROUTER_API_KEY="..."
DEEPSEEK_API_KEY="..."

Run Program

If you are in the directory with your .cecli.conf.yml file, then simply running cecli will start the agent with your configuration. For best results, since terminal emulators can be finicky, we highly suggest running:

cecli --terminal-setup

On first run to configure keybindings for the program (notably shift+enter). Support for terminals is ongoing so feel free to make a github issue or chat in the discord for us to figure out what's needed to support automatically setting up a given terminal.

If you want additional sandboxing, we publish a docker container that can be ran as follows:

docker pull dustinwashington/cecli
docker run \
  -it \
  --user $(id -u):$(id -g) \
  --volume $(pwd):/app \
  --volume $(pwd)/.cecli.conf.yml:/.cecli.conf.yml \
  --volume $(pwd)/.cecli.env:/.cecli.env \
  dustinwashington/cecli \
  --config /.cecli.conf.yml
  --env-file /.cecli.env

This command will make sure all commands ran by the coding agent happen in context of the docker container to protect the host file system from any infamous agentic mishap

Documentation/Other Notes:

Project Roadmap/Goals

The current priorities are to improve core capabilities and user experience of the cecli project

  1. Base Asynchronicity (cecli coroutine-experiment branch)
  • Refactor codebase to have the main loop run asynchronously
  • Update test harness to work with new asynchronous methods
  1. Repo Map Accuracy - Discussion
  1. Context Discovery - Discussion
  • Develop AST-based search capabilities
  • Enhance file search with ripgrep integration
  • Implement RAG (Retrieval-Augmented Generation) for better code retrieval
  • Build an explicit workflow and local tooling for internal discovery mechanisms
  1. Context Delivery - Discussion
  • Use workflow for internal discovery to better target file snippets needed for specific tasks (ExploreCode and ReadRange)
  • Add support for partial files and code snippets in model completion messages
  • Update message request structure for optimal caching
  1. TUI Experience - Discussion
  • Add a full TUI (probably using textual) to have a visual interface competitive with the other coding agent terminal programs
  • Re-integrate pretty output formatting
  • Implement a response area, a prompt area with current auto completion capabilities, and a helper area for managing utility commands
  1. Agent Mode - Discussion
  • Renaming "navigator mode" to "agent mode" for simplicity
  • Add an explicit "finished" internal tool
  • Add a configuration json setting for agent mode to specify allowed local tools to use, tool call limits, etc.
  • Add a RAG tool for the model to ask questions about the codebase
  • Make the system prompts more aggressive about removing unneeded files/content from the context
  • Add a plugin-like system for allowing agent mode to use user-defined tools in simple python files
  • Add a dynamic tool discovery tool to allow the system to have only the tools it needs in context
  1. Sub Agents
  • Add /invoke-agent command to manually branch a sub agent and return a summary to the main context
  • Add an instance-able view of the conversation system so sub agents get their own context and workspaces
  • Modify coder classes to have discrete identifiers for themselves/management utilities for them to have their own slices of the world
  • Refactor global files like todo lists to live inside instance folders to avoid state conflicts
  • Add a Delegate tool that launches a sub agent as a background command that the parent model waits for to finish
  • Add visibility into active sub agent calls in TUI
  1. Hooks
  • Add hooks base class for user defined python hooks with an execute method with type and priority settings
  • Add hook manager that can accept user defined files and command line commands
  • Integrate hook manager with coder classes with hooks for start, end, on_message, end_message, pre_tool, and post_tool
  1. Efficient File Editing
  • Explore use of hashline file representation for more targeted file editing
  • Assuming viability, update SEARCH part of SEARCH/REPLACE with hashline identification (Done with new edit format)
  • Update agent mode edit tools to work with hashline identification
  • Update internal file diff representation to support hashline propagation
  1. Dynamic Context Management
  • Update compaction to use observational memory sub agent calls to generate decision records that are used as the compaction basis
  • Persist decision records to disk for sessions with some settings for managing lifetimes of such persistence
  • Integrate RLM to extract information from decision records on disk and other definable notes
  • Add a "describe" tool that launches a sub agent workflow that populates an RLM call's context with:
    • Current Conversation History
    • Past Decision Records
    • Repo Map Found Files
  1. Quality of Life
  • Add hot keys support for running repeatable commands like switching between preferred models
  • Unified error message logging inside of .cecli directory

All Contributors (Both Cecli and Aider main)

@paul-gauthier @dwash96 @tekacs @ErichBSchulz
@ei-grad @joshuavial @chrisnestrud @chr15m
@johbo @fry69 @quinlanjager @caseymcc
@shladnik @jamwil @itlackey @tomjuggler
@szmania @vk4s @titusz @bphd
@daniel-vainsencher @1broseidon @akaihola @jalammar
@schpet @iamFIREcracker JV @KennyDizi
@ivanfioravanti @mdeweerd @itsmeknt @fahmad91
@cheahjs @youknow04 @pjcreath @pcamp
@miradnanali @o-nix Jonathan Ellis @codeofdusk
@claui @jpshackelford @Taik @Hambaobao
@therealmarv @muravvv @hypn4 @gmoz22
@contributor @ctoth @thehunmonkgroup @gcp
@sentienthouseplant @ktakayama @lreeves @nims11
@preynal @tgbender @apaz-cli Alexander Kjeldaas
@zhyu Yutaka Matsubara @burnettk @cryptekbits
@deansher @kennyfrc @lentil32 @malkoG
@mubashir1osmani @TimPut @zjy1412 @savioursho
@jayeshthk @susliko @FeepingCreature @misteral
@aelaguiz @DhirajBhakta @gopar @eltociear
@tao12345666333 @jpshack-at-palomar @smh @nhs000
@sannysanoff @ryanfreckleton @mbokinala @yamitzky
@mobyvb @ozapinq @nicolasperez19 @varchasgopalaswamy
@ffluk3 @tanavamsikrishna @tylersatre @pcgeek86
@tamirzb @taha-yassine @strayer @StevenTCramer
@Skountz @sestrella @rnevius @holoskii
@Netzvamp @peterhadlaw @pauldw @paulmaunders
@omri123 @MatthewZMD @mbailey @golergka
@matfat55 @mtofano @maledorak @mlang
@marcomayer @you-n-g wangboxue @rti
@prmbiy @omarcinkonis @Oct4Pie @mark-asymbl
@yazgoo michal.sliwa @mdklab @mario7421
liam.liu kwmiebach @kAIto47802 @jvmncs
@hydai @hstoklosa @gordonlukch @develmusa
@coredevorg @cantalupo555 @caetanominuzzo @yzx9
@zackees @wietsevenema @krewenki @vinnymac
@szepeviktor @lattwood @spdustin @henderkes
@daysm @devriesd @daniel-sc @damms005
@curran @cclauss @cjoach @csala
@bexelbie @branchv @bkowalik @h0x91b
@aroffe99 @banjo @anjor @andreypopp
@ivnvxd @andreakeesys @ameramayreh @a1ooha
@maliayas @akirak @adrianlzt @codefromthecrypt
@aweis89 @aj47 @noitcudni @solatis
@webkonstantin @khulnasoft-bot @KebobZ @acro5piano
@josx @joshvera @jklina @jkeys089
@johanvts Jim White @gengjiawen @jevon
@jesstelford @JeongJuhyeon @jackhallam @Mushoz
@zestysoft Henry Fraser @gwpl @garrett-hopper
@filiptrplan @FelixLisczyk @evnoj @erykwieliczko
@elohmeier @emmanuel-ferdman

About

cecli - a neat cli assistant

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages

  • Python 90.2%
  • Shell 2.4%
  • Tree-sitter Query 1.8%
  • CSS 1.8%
  • JavaScript 1.7%
  • SCSS 0.9%
  • Other 1.2%