This project is my terminal-based coding agent built on top of the DeepSeek API. It lets me chat with an AI assistant that can use tools to inspect and modify files inside the project directory.
- Runs an interactive command-line chat loop
- Sends prompts to DeepSeek for reasoning and tool selection
- Executes local tools for file operations
- Returns tool results back to the model for follow-up actions
- Read file contents
- Edit or create files
- List directory contents
- Keep conversational context while working on tasks
- Python 3.9+
- A valid DeepSeek API key
- Clone this repository.
- (Optional but recommended) Create and activate a virtual environment.
- Install dependencies:
pip install -r requirements.txt- Export your API key:
export DEEPSEEK_API_KEY="your-api-key"python main.pyType your request and press Enter.
Use Ctrl+D to exit.
Create a Python script that prints hello world
Read the contents of tools.py
List all files in the current folder
main.py: chat loop, DeepSeek request flow, and tool orchestrationtools.py: local tool implementations exposed to the modelrequirements.txt: Python dependencies