{"slug": "i-built-an-ai-coding-agent-in-rust", "title": "I Built an AI Coding Agent in Rust", "summary": "A developer released Rexo Code v0.9, a free, open-source, provider-agnostic AI coding agent written in Rust that runs in the terminal and supports Windows, Linux, and macOS. The agent can search and edit project files, run shell commands, use MCP tools, manage sessions, run subagents, and request permission before sensitive actions, letting users pick their own AI provider or model. The developer said Claude and Claude Code were used during development for debugging, implementation, and refactoring across the Rust codebase.", "body_md": "I’ve been working on a project called Rexo Code for quite a while now.\n\nWhat started as an experiment to understand how AI coding agents work turned into a full open-source project written in Rust.\n\nRexo Code is a provider-agnostic AI coding agent that runs directly in the terminal.\n\nThe main idea was simple: I wanted an agent that could actually work through a project, while still letting the user choose which AI provider or model they want to use.\n\nWhat Rexo can do\n\nRexo can:\n\nUnderstand and search through projects\n\nRead and edit files\n\nRun shell commands\n\nUse MCP tools\n\nAsk for permission before sensitive actions\n\nInspect command results and continue working\n\nManage sessions\n\nUse Skills and custom commands\n\nRun hooks and plugins\n\nWork with subagents\n\nAccept image input\n\nStream responses\n\nRun in headless/JSON mode\n\nThe project currently supports Windows, Linux, and macOS.\n\nBuilding it\n\nBuilding an AI coding agent is quite different from just making an application that sends a prompt to an API.\n\nThere are a lot of things to think about once the agent starts interacting with a real codebase.\n\nIt needs to understand context, decide what to inspect, make changes, execute commands, look at the results, and then decide what to do next.\n\nPermissions were another important part. I didn't want an agent to blindly execute everything it decided to run, especially when working with a real system.\n\nA lot of the development process was basically:\n\nBuild something → test it → break it → figure out why → rebuild it.\n\nThere were plenty of bugs and architectural changes along the way.\n\nWhy provider-agnostic?\n\nI didn't want Rexo to be tied to one AI provider.\n\nModels change quickly, providers change their APIs, and different developers have different requirements.\n\nSo the agent is built around a provider-agnostic approach, allowing users to choose the models and providers that fit their workflow.\n\nUsing AI to build an AI agent\n\nI also used Claude and Claude Code quite a lot while developing Rexo.\n\nI used them for things like debugging, implementation, refactoring, and working through larger changes across the Rust codebase.\n\nBut I still tested the changes myself and decided what actually belonged in the project.\n\nThat process was useful because I wasn't just generating isolated pieces of code. I could work through larger changes, test the result, find problems, and iterate.\n\nRexo Code v0.9\n\nAfter a lot of testing and iteration, v0.9 is the version I'm comfortable releasing more widely.\n\nRexo Code is free and open source.\n\nGitHub:\n\n[https://github.com/Daksh-Saboo/Rexo-Code](https://github.com/Daksh-Saboo/Rexo-Code)\n\nI'd be interested in hearing from other developers who work with coding agents.\n\nWhat would you change about this kind of workflow?\n\nWhat features do you think are still missing?\n\nAnd if you've built an agent yourself, I'd be interested in hearing how you approached the architecture.", "url": "https://wpnews.pro/news/i-built-an-ai-coding-agent-in-rust", "canonical_source": "https://dev.to/dakshsaboo/i-built-an-ai-coding-agent-in-rust-33do", "published_at": "2026-09-27 06:52:16+00:00", "updated_at": "2026-09-27 07:00:48.648574+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "ai-products"], "entities": ["Rexo Code", "Rust", "Claude", "Claude Code", "Daksh-Saboo", "GitHub", "MCP"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/i-built-an-ai-coding-agent-in-rust", "markdown": "https://wpnews.pro/news/i-built-an-ai-coding-agent-in-rust.md", "text": "https://wpnews.pro/news/i-built-an-ai-coding-agent-in-rust.txt", "jsonld": "https://wpnews.pro/news/i-built-an-ai-coding-agent-in-rust.jsonld"}}