Status: [LIVE] Endpoints found: https://integrate.api.nvidia.com/v1/chat/completions https://integrate.api.nvidia.com/v1/chat https://integrate.api.nvidia.com/v1/chat/completions` Source: https://github.com/Hamzah-Muhammad/OpenCodingAgent # OpenCodingAgent [![CI](https://github.com/Hamzah-Muhammad/OpenCodingAgent/actions/workflows/ci.yml/badge.svg)](https://github.com/Hamzah-Muhammad/OpenCodingAgent/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB.svg?logo=python&logoColor=white)](pyproject.toml) [![Free LLM](https://img.shields.io/badge/LLM-free%20tier-brightgreen.svg)](#why-free) **A free coding agent for your terminal, on an open-weight model.** OpenCodingAgent reads/searches/writes/edits files, runs shell commands, and uses git in a real repo on your machine -- the same shape of tool as Claude Code or Aider -- but it's built specifically to run on **free, open-weight LLMs**, not a paid key. Point it at NVIDIA's free-tier DeepSeek V4 endpoint, clone this repo, and you have a working coding agent for $0, confined to one sandbox folder so it can never touch anything you didn't hand it. ## What this project demonstrates An agent is six blocks. Here is each one in this repo, and where to read it: | Block | In OpenCodingAgent | Where | |---|---|---| | **Model** | DeepSeek V4 on NVIDIA's free tier. Not in the repo: the code holds a model name and calls it with the `openai` SDK pointed at NVIDIA's OpenAI-compatible endpoint. Hidden reasoning is switched off per request so the tool loop stays fast. `/model` swaps the name mid-session. | `nvidia_client.py`, `config.py` | | **Tools** | 12 tools with JSON schemas, each `safe` (auto-runs) or `risky` (preview + `y`/`a`/`q`). Guardrails are inside the tool, not the prompt: no branch or force parameter on `git_push`, refusal on `main`, sandbox-by-name and secrets refusal at the boundary. Tool failures go back to the model as text so it can adapt. A test pins schemas, executors, danger classes and previews to the same names. | `tools/`, `safety.py`, `tests/test_tools_registry.py` | | **System prompt** | One short file, written for a sm