{"repo":"rasbt/mini-coding-agent","free":true,"listed":false,"github":"https://github.com/rasbt/mini-coding-agent","clone":"git clone https://github.com/rasbt/mini-coding-agent.git","description":"Minimal and readable coding agent harness implementation in Python to explain the core components of coding agents.","language":"Python","stars":1106,"topics":["agents","ai","large-language-models","llms","python"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"&nbsp; Mini-Coding-Agent This folder contains a small standalone coding agent: - code: mini coding agent.py - CLI: mini-coding-agent It is a minimal local agent loop with: - workspace snapshot collection - stable prompt plus turn state - structured tools - approval handling for risky tools - transcript and memory persistence - bounded delegation The model backend is currently based on Ollama. The detailed tutorial: Components of a Coding Agent &nbsp; Six Core Components This coding harness is organized around six practical building blocks: 1. Live repo context The agent collects stable workspace facts upfront, such as repo layout, instructions, and git state. 2. Prompt shape and cache reuse A stable prompt prefix, which is separate from the changing request, transcript, and memory so repeated model calls can reuse the static parts efficiently. 3. Structured tools, validation, and permissions The model works through named tools with checked inputs, workspace path validation, and approval gates instead of free-form arbitrary actions. 4. Context reduction and output management Long outputs are clipped, repeated reads are deduplicated, and older transcript entries are compressed to keep prompt size under control. 5. Transcripts, memory, and resumption The runtime keeps both a full durable transcript and a smaller working memory so sessions can be resumed while preserving important state via working memory. 6. Delegation and bounded subagents Scoped subtasks can be delegated to he","default_branch":null,"files":null,"tree":[],"storefront":"/r/rasbt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rasbt/mini-coding-agent/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}