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.
- ✨ 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
Requires Python 3.8+
git clone https://github.com/your-username/devagent
cd devagent
pip install -r requirements.txt
pip install -e .
pip install .
If you get permission errors:
pip install . --user
# or
sudo pip install .
The app requires a Google API Key for Gemini access.
You can either:
- Add it to your
.env
file asGOOGLE_API_KEY=your-key
, or - Let the CLI prompt you to enter it the first time you run it.
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.
├── 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
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 |
Want to improve or add tools? Fork the repo and submit a pull request.
MIT License © 2025 Rohit Yadav