Coding assistant app using the DeepSeek API
Top 20.6% on sourcepulse
This project provides a command-line coding assistant powered by the DeepSeek API, designed for developers needing to interact with codebases programmatically. It enables users to read local files, create new ones, and apply precise diff edits directly from their terminal, streamlining code-related tasks and discussions.
How It Works
The assistant leverages Pydantic for robust data modeling of file operations (creation, editing) and chat responses. It uses a comprehensive system prompt to enforce strict JSON output for both conversational text and file modification instructions. The core interaction involves streaming completions from the DeepSeek API, parsing the JSON output to execute file operations like reading (/add
), creating, or applying diff edits to existing files.
Quick Start & Requirements
pip install -r requirements.txt
python3 main.py
.env
file (DEEPSEEK_API_KEY=your_api_key_here
).Highlighted Details
/add
command.r1.py
script utilizing DeepSeek's Reasoning Model for Chain of Thought (CoT) capabilities.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
This project is described as an experimental rapid prototype. The lack of a specified license may pose compatibility issues for commercial or closed-source use. No benchmarks or performance metrics are provided.
2 months ago
Inactive