Skip to content

eli-labz/Godcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

⚑ Godcoder

A local-first, open-source AI coding agent for your desktop.

Bring your own LLM key. Your code never leaves your machine.

License: MIT Built with Rust Tauri 2 Stars Forks

Download Β· Features Β· Architecture Β· Contribute


πŸš€ What is Godcoder?

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.


🧬 The Agent Builds Its Own Harness β€” Live

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.


✨ What Godcoder Can Do

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)

πŸ‘₯ Self-training CoWork (drives Open Cowork)

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.


πŸ—οΈ Architecture

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.


πŸ”₯ Two Ways to Run

Mode 1 β€” Core Agent (Zero backend required)

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

Mode 2 β€” Core Agent + Context Engine

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.


πŸ› οΈ Getting Started

Prebuilt binaries are coming. For now, build from source β€” it's straightforward.

Prerequisites

Run the App

cd apps/desktop
npm install

# Development
npm run tauri:dev

# Production build
npm run tauri:build

Windows shortcut: Double-click launch-godcoder.bat in 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.

(Optional) Run the Context Engine

cd services/context-engine
cp .env.example .env   # set SUPERCODER_OPENAI_API_KEY (server-side embedding key)
docker compose up -d --build

Then enable Settings β†’ Context engine in the app. Full instructions: services/context-engine/README.md.


πŸ—ΊοΈ Roadmap

  • 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)

🀝 Contributing

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!

πŸ“„ License

MIT Β© eli-labz

If Godcoder saves you time, please consider giving it a ⭐ β€” it helps the project grow!

About

A local-first, open-source coding agent for your desktop. Bring your own LLM key; your code stays on your machine and only ever leaves to the model provider. The AI Agent builds its own Harnes.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors