A lightweight desktop interface for local text generation and codebase refactoring
A Python-based developer tool designed for local text generation, AST-aware refactoring, syntax checking, and automated test execution.
Qwen Code Interface provides a developer interface for running local text generation models and automating multi-file editing and verification workflows.
Built with Python, it provides tools for directory navigation, regex editing, terminal execution, and test-driven validation.
- Offline Local Execution — Connects directly to local model runtimes via Ollama for on-device generation without external network dependencies.
- AST Refactoring & Regex Editing — Targeted file modification using contiguous multi-line regex match and syntax tree verification.
- Automated Test Validation — Automatically executes test commands against modified files and reports runtime traces.
- Workspace Sandboxing — Non-destructive directory isolation to protect untracked files during automated operations.
graph TD
User([Task / Prompt]) --> Core[Execution Engine]
Core --> Router{Tool Dispatch}
Router --> ReadFile[File Search & Reader]
Router --> EditFile[Contiguous Multi-Line Editor]
Router --> RunTerminal[Test & Compiler Execution]
ReadFile --> Context[Context Accumulator]
EditFile --> TestRunner[Test Verification]
RunTerminal --> TestRunner
TestRunner --> ErrorCheck{Tests Pass?}
ErrorCheck -->|No| FixLoop[Error Trace Analysis]
FixLoop --> Core
ErrorCheck -->|Yes| Complete([Complete & Save])
- Python:
>= 3.10 - Ollama: (For offline local execution) installed from ollama.com
-
Clone the repository:
git clone https://github.com/CodeByPartho/Qwen-Coding-Agent.git cd Qwen-Coding-Agent -
Pull model weights:
ollama pull qwen2.5-coder:7b
-
Install dependencies:
pip install -r requirements.txt
This project is licensed under the MIT License.
Built by Partho