Skip to content

rohit-yadavv/DevAgentCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 DevAgent – A CLI Developer Assistant

DevAgent is a command-line developer assistant powered by Google Gemini and LangGraph, equipped with tool-calling support and memory capabilities. Just run the CLI and start asking technical questions or code help – as simple as chatting.


🚀 Features

  • ✨ Chat with Gemini 2.0 Flash from the terminal
  • 🔧 Tool calling support (e.g., code analysis, documentation fetch)
  • 💬 Memory support using LangGraph MemorySaver
  • 🧠 Contextual responses with custom system prompt
  • 🖼️ Beautiful terminal UI using rich

📦 Installation

Requires Python 3.8+

1. Clone the repo

git clone https://github.com/your-username/devagent
cd devagent

2. Install dependencies

pip install -r requirements.txt

3. Install as a CLI tool

For development (recommended)

pip install -e .

For global use

pip install .

If you get permission errors:

pip install . --user
# or
sudo pip install .

🔑 Environment Setup

The app requires a Google API Key for Gemini access.

You can either:

  • Add it to your .env file as GOOGLE_API_KEY=your-key, or
  • Let the CLI prompt you to enter it the first time you run it.

🧪 Usage

Simply run:

devagent

You'll see a prompt like:

▌ Developer Assistant ▌ (type 'exit' to quit)

You >

Ask technical questions, request code, or trigger tools. Type exit to quit.


📁 Project Structure

├── devagent/main.py # Entry point for the CLI tool ├── system_prompt/init.py # Custom system prompt ├── tools/ # LangChain tools folder contains multiple tools ├── requirements.txt # All dependencies ├── setup.py # Installable package config └── README.md # You're here


🛠 Commands Summary

Command Description
devagent Starts the CLI assistant
pip install -e . Installs CLI in development mode
pip install . Installs CLI globally
exit / quit / q Quit the assistant

🤝 Contributing

Want to improve or add tools? Fork the repo and submit a pull request.


📜 License

MIT License © 2025 Rohit Yadav

About

An AI-powered command-line assistant that helps developers generate, refactor, and debug code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages