Skip to content
Projetos

vrajpal-jhala/langgraph-harness

Ver no GitHub

Sobre

Self-hosted AI coding agent platform for GitLab and GitHub, built with LangGraph. An open-source alternative to the code review and coding agents in GitLab Duo and GitHub Copilot: reviews merge and pull requests, resolves issues autonomously, and chats with full project context.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original
langgraph-harness logo

langgraph-harness

Self-hosted AI coding agent platform for GitLab and GitHub, built with LangGraph

Reviews merge and pull requests, resolves issues and tasks autonomously, and chats with full project context — remembering what matters so every run builds on the last. An open-source alternative to the code review and coding agents in GitLab Duo and GitHub Copilot, running on your own infrastructure.

Battle-tested in production since mid-2026 — 133 releases, 1k+ reviews, 67% comment acceptance rate (Sept 29 2026, see snapshot). Development history → every failure and fix, documented.

License: MIT Node Docs

Docs · Getting Started · Features · Screenshots · Screencasts

https://github.com/user-attachments/assets/9043c09e-cdfc-4a93-a18b-53c7b6d17bb2

Not affiliated with LangChain. See DISCLAIMER.md.


What it does

Four harnesses, one shared foundation:

  • 🔍 MR Review — fires on webhook events, reads the diff, drafts comments, publishes them. No polling, no manual trigger.
  • 🛠️ Work Item Resolve — assign a GitLab issue or task and get an agent that runs inside its own Kata Containers VM (a dedicated guest kernel per sandbox, not just syscall interception), opens a draft MR, and keeps responding to follow-up comments on the same branch.
  • 📋 Task Resolve — the same sandboxed loop, started from a free-text instruction instead of an issue — on demand or on a recurring schedule.
  • 💬 Chat — an interactive, GitLab- and GitHub-aware assistant with real tool access: GitLab and GitHub data, a headless browser, its own review/chat history; sensitive tool calls pause for explicit human approval before running.

Shared foundation: every drafted comment is screened before it posts; a run that misbehaves (repeats a call, loops, ends on a question, skips a check) gets caught and corrected mid-run — backed by persistent checkpoints, so a run resumes instead of restarting from scratch.

Full breakdown: Features · Architecture

Screenshots

Real production analytics, Sept 29 2026 snapshot: 1k+ reviews, 67% comment acceptance rate Real production analytics detail, Sept 29 2026 snapshot: reliability, efficiency, and guardrail health

More in the screenshots gallery.

Roadmap

  • Automatic MR reviews, issue-to-draft-MR, on-demand tasks, and a GitLab-aware chat
  • GitHub support: pull request reviews, issue-to-draft-PR, tasks, schedules and chat tools (#35)
  • Isolated sandbox for code-changing runs, with human approval before Chat takes sensitive actions
  • Project memory that carries across reviews, and crashed runs that resume instead of restarting
  • Recurring scheduled tasks
  • Project memory that keeps itself up to date, with visibility into what it learned (#2)
  • A self-hosted memory engine that links related facts and retrieves them by relevance (#1)
  • Web search, so agents can look things up instead of only fetching a known page (#24)

Everything else is tracked in open issues.

Stack

  • Frontend — React admin UI (Dashboard, Threads, Chat, Workflows) for monitoring runs and chatting directly with the agent
  • Backend — Elysia API server running a LangGraph agent with persistent checkpoints
  • Agent — Multi-provider LLM (OpenRouter, Gemini, Groq, Ollama, or sglang) with GitLab and GitHub MCP tools and skill-based workflows
  • Queue — BullMQ; debounced re-reviews, capped concurrency, live queue state in the UI
  • Memory — context engineering for GitLab and GitHub repos: durable, project-scoped facts learned across reviews; personal memory in Chat

Quick Start

Prerequisites: Node.js 26+, Docker, a bot account and OAuth app on GitLab, GitHub, or both, and an OpenRouter/Gemini/Groq key or a local Ollama/sglang instance.

npm install
cp backend/.env.example backend/.env
# fill in SESSION_SECRET, SECRETS_ENCRYPTION_KEY, one of OPENROUTER_API_KEY / GEMINI_API_KEY /
# GROQ_API_KEY / OLLAMA_BASE_URL / SGLANG_BASE_URL, and your provider's variables
npm run dev

Frontend at http://localhost:5173, API at http://localhost:3698.

Full walkthrough — choosing GitLab or GitHub, bot tokens, OAuth apps, webhooks, per-repo .harness.yml: Getting Started.

Deployment & CI/CD

Self-hosted via Docker Compose; production deploys are automated through GitLab CI on push. See Deployment for server setup, and sglang Deployment if self-hosting the LLM backend.

The Story

Curious how this got built? The Story So Far.

Built On

langgraph-harness stands on these open-source projects:


"LangGraph" is a trademark of LangChain, Inc., used here under nominative fair use to describe the framework this project is built on. GitLab, GitLab Duo, GitHub and GitHub Copilot are trademarks of their respective owners, named here only to describe compatibility and comparison. This project is independent and not affiliated with any of them — see DISCLAIMER.md. Licensed under the MIT License.

Explore projetos relacionados

Carregando…