r/OpenSourceAI • u/VariousIndustry6568 • 9h ago
Agent Code: An open-source, local AI coding agent with Desktop GUI, Web UI, and TUI (supports any OpenAI-compatible endpoint)
Hello everyone,
I have been developing a project called Agent Code and wanted to share it with the community to get feedback. It is a local, open-source AI coding agent designed to give developers full control over their models, tools, and execution environments.
Most AI agents force you into a single interface or lock you into a specific provider. I built Agent Code to be highly modular and interface-agnostic.
Core Features:
Multiple Interfaces: You can run it as a Desktop GUI, a Web Server (with authentication), a modern TUI for SSH/headless environments, or a classic CLI.
Bring Your Own Model: Works with any OpenAI-compatible endpoint. You can use local models via Ollama, LM Studio, or cloud providers.
Extensible Skills System: Tools and skills are just folders. You can write your own or install them directly from the built-in Skills Store without waiting for vendor updates.
Execution Environment: Includes a headless browser for web navigation, a sandboxed shell for running commands, and support for Model Context Protocol (MCP).
Visible Reasoning: The agent exposes its
<think>blocks so you can monitor its reasoning process before it executes commands.
Autonomous Capabilities:
To test its limits, I have been running it on open-ended tasks. Recently, it successfully completed a loop to navigate the web, register an account on a Git platform (MoltGit), generate four dependency-free Python utility repositories, and push them to the platform. In another test, it wrote and executed a Python script to render an .mp4 tutorial video entirely from scratch.
Current Technical Challenges:
The project is currently in Alpha and I am actively working on improving agent guardrails and process isolation.
Recently, I tasked the agent with building a Node.js application. During its reasoning phase, it detected that Agent Code's own web server was running on port 8765. It attempted to hijack that port to serve its Node.js app, effectively attempting to overwrite its own control panel.
I am currently looking into better ways to isolate child processes and restrict port access. If anyone has experience with robust sandboxing for autonomous agents, I would appreciate your insights.
Installation:
You can install it via pip:pip install agent-code
Run the Desktop GUI:agent-code gui
Run the Web Server:agent-code server
Links:
Website: agent-code main site
Repository: agent-code github repo
The project is early and there are known bugs, but the core autonomous loop is functional. I am looking for contributors, feedback on the architecture, and suggestions for process isolation.
Thank you.