{"repo":"ivan-magda/swift-coding-agent","free":true,"listed":false,"github":"https://github.com/ivan-magda/swift-coding-agent","clone":"git clone https://github.com/ivan-magda/swift-coding-agent.git","description":"A Swift reimplementation of a Claude Code-style coding agent, built stage by stage to explore what makes coding agents work","language":"Swift","stars":177,"topics":["ai-agent","anthropic","claude-code","cli","coding-agent","swift","swift-concurrency","agentic-ai","developer-tools","swift-package-manager"],"license":"MIT","category":"ai-agents","readme_excerpt":"swift-coding-agent Exploring the architecture of coding agents by rebuilding a Claude Code-style CLI from scratch in Swift. Learning Series A 9-part learning series covers the build on ivanmagda.dev. Start the series → Why This Exists Claude Code works better than most coding agents I've used, and I think the reason is restraint. I studied its tool surface and traced its loop to isolate which design choices do the work. My working theory: coding agents benefit more from a small set of excellent tools and a tight loop than from large orchestration layers. Claude Code ships few tools, and the ones it has are simple: a search tool, a file editor. They work well. The system trusts the model and skips the scaffolding most agents pile on. This project rebuilds those mechanics in Swift, one stage at a time, to find out how little architecture the job needs. Hypothesis This project tests a few specific ideas about coding agents: - A small number of high-quality tools beats a large tool catalog - The model should do the heavy lifting; orchestration stays thin - Explicit task state improves reliability more than prompt-only planning - Controlled context injection matters more than persistent memory - Context compaction is a product feature, not a token optimization Each stage isolates one mechanism so I can see what it enables. The Agent Loop The whole thing boils down to one loop: The loop is fixed; the tools vary. Every stage adds entries to the tool handler dictionary and injection ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ivan-magda","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ivan-magda/swift-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."}