Bring your own LLM key. Your code never leaves your machine.
Download Β· Features Β· Architecture Β· Contribute
Godcoder is a local-first, fully open-source AI coding agent that runs as a native desktop app. Unlike cloud-based tools, your source code never transits a vendor backend β API requests go straight from your machine to whichever model provider you configure.
It goes beyond editing code: Godcoder can build and continuously improve its own agent harness (Harness mode) and self-train to drive the Open Cowork desktop app, even executing human-action tasks β clicking, typing, opening apps, sending email, e-signing β through GUI/OS automation (CoWork mode). Both modes run a self-optimizing loop that compounds lessons over time, so the agent gets measurably better with use.
Your Machine βββΊ Model Provider (OpenAI / Anthropic / Any OpenAI-compatible API)
β²
β (no middleman, no cloud backend, no data lock-in)
β
Your Code
Reimagined from the ground up. The original 2024 autonomous-dev pipeline is frozen under
v1/β preserved, not maintained.
Godcoder doesn't just use a harness. It writes one, improves it, and optimizes it β autonomously, in real time.
This is the defining capability that sets Godcoder apart. Activate Harness mode and the agent takes over its own agent loop: it scaffolds a live sandbox, engineers its own tools and workflows, runs improvement cycles, measures what works, and compounds that knowledge β all without you writing a single prompt.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β HARNESS MODE β Real-Time Self-Build β
β β
β START β
β β β
β βΌ β
β ποΈ Scaffold β creates harness-build/ sandbox β
β β β
β βΌ β
β πΊοΈ Route β selects the highest-value next change β
β β β
β βΌ β
β π Plan β designs the improvement β
β β β
β βΌ β
β βοΈ Execute β writes, edits, runs code β
β β β
β βΌ β
β β
Evaluate β verifies with the project's own checks β
β β β
β βΌ β
β π Log β records outcome in persistent memory β
β β β
β βΌ β
β π Optimize β biases future iterations toward success β
β β β
β ββββββββββββββββββββββββββββββββΊ repeat β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
How it works:
- Pick Harness in the new-session composer and press start β no prompt to type, no folder to choose.
- The agent instantly creates a dedicated
harness-build/workspace, opens it in your file explorer, and confines all new work there β reading the rest of the repo for reference but never rewriting it. - Each iteration makes one decisive, verifiable change: keep it if it's an improvement, discard it otherwise.
- Results are stored in a persistent memory store (via the ResearchSwarm bridge) so lessons from past runs rank and steer future iterations β the harness compounds knowledge over time.
- Like Freestyle mode, every tool call is auto-approved after the first confirmation.
The loop is powered by the self-optimizing-harness default skill and a ResearchSwarm bridge exposing route / log / recall / optimize over a persistent memory store.
| Feature | Description |
|---|---|
| 𧬠Real-Time Self-Built Harness | The agent scaffolds, writes, and optimizes its own agent harness live β no human prompting required |
| π§ Ask / Plan / Coding / Freestyle / Harness / CoWork Modes | From answering questions to fully autonomous coding β self-building its own harness, and self-training to drive the Open Cowork desktop app |
| π In-place File Editing | Edit files, review diffs, rewind to checkpoints, continue from previous turns |
| π₯οΈ Interactive Terminal | Built-in terminal, file explorer, and session history |
| π Any LLM Provider | Plug in OpenAI, Anthropic, or any OpenAI-compatible endpoint β no proxy needed |
| π οΈ MCP Server Support | Extend the toolset with MCP servers over stdio, streamable HTTP, or SSE |
| ποΈ Voice API Integration | Configure TTS, STT, and Voice-to-Voice from Settings β stored locally |
| π Graph-Aware Code Search | Optional Context Engine: semantic + structural search over large codebases |
| π Tool Approval Controls | Deliberate execution with subagents, skills, and approval gates |
| π₯ Self-training CoWork | One-click CoWork mode learns to drive Open Cowork and executes human-action tasks (GUI/OS automation) |
CoWork mode turns Godcoder loose on the Open Cowork desktop app
(third_party/open-cowork-main) β learning to
operate its Skills (PPTX/DOCX/XLSX/PDF), MCP connectors, and computer-use surface,
and getting better at it over time. Pick CoWork in the new-session composer
next to Harness. You can add a prompt describing the objective you want
it to accomplish β or just press start to let it self-train. Either way it sets
up a contained cowork-build/ sandbox, opens it in your file explorer, and
confines its new work there while reading Open Cowork only for reference.
What sets CoWork apart: it doesn't just plan β it executes human-action tasks.
For any step a person would do at a keyboard or screen (clicking, typing, opening
apps, filling forms, sending email, e-signing, joining meetings), CoWork gets an
actuation plan via the bridge's act command and carries it out through Open
Cowork's computer-use / GUI automation (or OS scripting), verifying each step with
a screenshot. Only steps that truly need a physical body (drive, lift, repair,
in-person signature) are handed back to you.
route β plan β execute (incl. GUI/OS actuation) β verify β log β optimize β repeat
The loop is backed by the cowork-trainer default skill, the same
ResearchSwarm bridge (now also exposing act), and a digital-cognitive-
labor classifier that splits each task into digital, actuatable, and physical
segments. Outcomes are logged under cowork:-prefixed tags so coworking lessons
compound. Like Freestyle and Harness, every tool call is auto-approved (you
confirm the first time), and a Clear button in the session header resets the
conversation and context whenever you want a fresh start.
Godcoder is built on a pure-Rust agent core with the desktop app as a thin adapter on top:
apps/desktop/ Tauri 2 + React desktop app (thin adapter)
crates/
agent/ Rust agent core β the harness (loop, tools, modes, subagents)
git-ops/ Checkpoint / diff / restore over the working tree
services/
context-engine/ Optional Go indexing service (tree-sitter β Qdrant + FalkorDB + BM25)
third_party/
ResearchSwarm-master/ Self-optimizing memory + bridge (Harness & CoWork modes)
open-cowork-main/ Open Cowork desktop app β CoWork mode's training target
v1/ Legacy 2024 codegen pipeline β frozen
See ARCHITECTURE.md for a deep-dive on how these fit together.
Add an LLM key and you're immediately productive:
- β In-place file edits
- β Ask / Plan / Coding modes
- β Checkpoint & rewind
- β Diff review
- β Interactive terminal & file explorer
Flip on the Context Engine (Settings β Context engine) for graph-aware, repo-scale retrieval powered by:
- tree-sitter β syntax-aware parsing
- Qdrant β vector similarity search
- FalkorDB β call-graph traversal
- BM25 β lexical search
The agent's codebase_search and codebase_graph tools query it automatically. See services/context-engine/README.md.
Prebuilt binaries are coming. For now, build from source β it's straightforward.
- Rust (stable) + Tauri 2 system prerequisites for your OS
- Node.js 20+ and npm
- (Optional, for Context Engine) Docker with Compose
cd apps/desktop
npm install
# Development
npm run tauri:dev
# Production build
npm run tauri:buildWindows shortcut: Double-click
launch-godcoder.batin the repo root β it sets up Cargo on PATH and starts the app automatically.
On first launch: Open Settings β add an LLM provider (base_url + api_key + model) β create a session β pick a folder and mode β start coding.
cd services/context-engine
cp .env.example .env # set SUPERCODER_OPENAI_API_KEY (server-side embedding key)
docker compose up -d --buildThen enable Settings β Context engine in the app. Full instructions: services/context-engine/README.md.
- Prebuilt releases & installers β CI pipeline for binaries lands next
- Benchmark harness β headless runner over the same agent core, with reproducible per-task sandboxes to measure the harness across models and validate graph-retrieval localization
- Broader provider support β the provider abstraction is built to grow
- Ask / Plan / Coding modes
- Self-optimizing Harness mode β agent builds and improves its own harness in real time
- Checkpoint & rewind
- MCP server support
- Voice API integration
- Context Engine (local, graph-aware semantic search)
Contributions are welcome! Please read CONTRIBUTING.md to get started.
- π Found a bug? Open an issue
- π‘ Have an idea? Start a discussion
- β Like the project? Give it a star β it helps more than you think!
MIT Β© eli-labz
If Godcoder saves you time, please consider giving it a β β it helps the project grow!