Skip to main content
Glama

DAIV (pronounced "dive", from dev + AI) is an open-source, self-hosted AI coding agent for GitLab and GitHub that turns issues into merge requests, answers review comments and fixes failing CI. It works through webhooks — no new tools to adopt, no context-switching. Beyond your Git workflow, DAIV plugs into your editor over MCP and ships with an optional self-hosted dashboard to chat with the agent, start and watch runs, schedule jobs, and review what changed. You host it, you pick the model, and every task executes in an isolated sandbox whose network access you define.

Why DAIV

  • It lives where you already work. Issue → plan → merge request, replies to review comments, and CI fixes all happen inside GitLab and GitHub threads, self-managed GitLab included.

  • Your infrastructure, your model, your network rules. Run it on your own servers, with any of the built-in LLM providers or your own OpenAI-compatible server, in a sandbox whose egress you define.

  • Open source, no per-seat pricing. Apache-2.0, with nothing to buy per developer.

Related MCP server: GitLab MR MCP

Three ways to put DAIV to work

In your Git platform — webhooks, zero setup

  • Issue addressing — DAIV reads a labelled issue, proposes a plan, and — once you approve — opens a merge/pull request with the implementation.

  • Pull request assistant — answers reviewer comments, applies requested changes, and repairs failing CI/CD pipelines, all inside the merge/pull request thread.

  • Slash commands and skills — invoke /plan, /code-review, /help, and your own custom skills straight from issues and merge requests.

From your editor and pipelines

  • MCP endpoint — connect Claude Code, Cursor, or Codex CLI over the Model Context Protocol and delegate tasks without leaving your editor.

  • Jobs API — trigger agents programmatically from CI, scripts, or other tools, then poll for the result.

From the dashboard

  • Sessions — a unified workspace and history: chat with the agent live, start background runs, and see every execution — webhook, API, MCP, scheduled, or manual — in one list, with retries.

  • Scheduled jobs — run agents on any cron schedule: dependency audits, code-quality scans, stale-branch cleanup, and more.

  • Sandbox environments — define a reusable runtime once: base image, CPU/memory, network egress policy, and encrypted secrets, scoped to the repositories you choose.

  • Per-run model & effort — pick the LLM and thinking effort for each run.

  • Notifications — know the moment work finishes, via the in-app bell, email, Rocket Chat or Telegram.

  • Merge metrics — track code velocity with commit-level DAIV-vs-human attribution.

Quick example

  1. You create an issue: "Add rate limiting to the API endpoints"

  2. DAIV posts a plan: Analyzes the codebase and proposes implementation steps

  3. You approve: Comment @daiv proceed

  4. DAIV implements: Creates a merge request with the code changes

  5. Reviewer asks for changes: "@daiv use Redis instead of in-memory storage"

  6. DAIV updates the code: Modifies the implementation and pushes

Security model

DAIV acts on issues, comments and code that other people wrote, so each layer below limits what a run can reach:

  • Isolated sandbox. Every command the agent runs executes in a Docker container managed by daiv-sandbox, optionally under gVisor for a stronger boundary against container escape.

  • No network unless you allow it. The sandbox has no network access by default. A sandbox environment can turn it on with an egress allow-list that blocks every other host, and if the egress proxy is unavailable the run aborts rather than falling back to an open network.

  • Credentials stay outside the container. A credential for an allowed host, such as a private registry token, is stored encrypted and added to matching requests by the egress proxy, so the agent never sees it.

  • Short-lived, scoped git tokens. On GitLab, DAIV clones and pushes with a short-lived token scoped to one project instead of its main token (on GitLab.com this needs Premium or Ultimate, otherwise it falls back to the main token). On GitHub, it uses a short-lived GitHub App installation token scoped to the one repository.

  • People stay in charge. On an issue labelled daiv, DAIV posts a plan and writes code only after someone approves it. allowed_usernames in .daiv.yml limits who can trigger DAIV, which you should set on public repositories.

Prompt injection through an issue, a comment or repository content is still possible: these layers limit what an injected instruction could reach, not whether the agent reads one. Report vulnerabilities privately, as described in SECURITY.md.

How it compares

Pick the tool that fits your team:

  • GitHub Copilot's coding agent is built into GitHub and needs no infrastructure of your own. If your code is on GitHub and you already pay for Copilot, start there.

  • GitLab Duo builds agents into GitLab itself. If your GitLab subscription already includes it, try it first.

  • Claude Code in CI (GitHub Actions or GitLab CI/CD) runs Anthropic's agent inside your own pipelines, if you want Claude in CI rather than a long-running service.

  • OpenHands is also open source and self-hostable, with a larger community and a general-purpose agent that goes beyond Git workflows.

DAIV is for teams that want one agent in their GitLab or GitHub threads, running on their own servers, with the model and network rules they choose, and a dashboard, MCP endpoint and scheduled jobs in the same deployment.

Under the hood

DAIV is powered by Deep Agents, a general-purpose deep-agent framework built on LangGraph with sub-agent spawning, a middleware stack, and a virtual filesystem. On top of it, DAIV adds:

  • Subagents — specialized agents for fast codebase exploration and complex multi-step tasks.

  • Sandbox — secure command execution for tests, builds, linters, and package management inside an isolated Docker container.

  • MCP tools — external integrations over the Model Context Protocol, such as Sentry for error tracking.

  • Monitoring — trace every agent execution with LangSmith to analyze performance and spot issues.

  • Scalable Workers — background workers scale horizontally by adding replicas, with a dedicated scheduler for recurring jobs.

  • LLM providers — run on OpenRouter, Anthropic, OpenAI, or Google, or on your own OpenAI-compatible server (vLLM, llama.cpp, LiteLLM) — your keys, your choice. Tested with Claude Sonnet 5.5, Opus 5.5 and Haiku 5.5, GPT-6.1 Sol and GPT-6 Luna, GLM-5.2 through OpenRouter, and Qwen3.8 on a self-hosted vLLM server.

Technology Stack

  • Agent Framework: Deep Agents — the core agent engine powering DAIV. A general-purpose deep agent with sub-agent spawning, middleware stack, and virtual filesystem. Built on LangGraph.

  • Backend Framework: Django for building robust APIs and managing database models.

  • Async Tasks: Django Tasks with the django-tasks-db backend and django-crontask for periodic scheduling.

  • Code Executor: Sandbox for running commands in a secure sandbox to allow the agents to perform actions on the codebase.

  • Observability: LangSmith for tracing and monitoring all the interactions between DAIV and your codebase.

  • Error Handling: Sentry for tracking and analyzing errors.

Getting Started

To try DAIV, follow the Quickstart: it runs DAIV on one machine with Docker Compose and turns a GitLab issue into a merge request in about 15 minutes, no clone needed.

To run the development stack from a clone instead:

git clone https://github.com/srtab/daiv.git && cd daiv
make setup                 # creates config files from templates

Add at least one LLM provider key to docker/local/app/config.secrets.env — it is read at container start — then bring the stack up:

docker compose up --build  # db, redis, app, worker, worker-interactive, scheduler
  • Running DAIV for real → Deployment, then Platform setup to connect GitLab or GitHub.

  • Developing DAIV → CONTRIBUTING.md covers Compose profiles, the local GitLab instance, webhooks, tests, and linting.

Roadmap

  • Configurable hooks — run DAIV on specific events with user-defined triggers and actions.

  • Chrome extension — interact with DAIV directly from the git platform without leaving the browser.

  • Custom MCP servers — user-defined MCP servers managed from the dashboard, as global or personal servers.

  • Scheduled maintenance tasks — run DAIV on a cron schedule for tasks like dependency updates, security scans, or documentation drift detection.

  • Notifications — in-app, email, Rocket Chat and Telegram delivery shipped; Slack, Discord, and Microsoft Teams planned.

  • Self-hosted LLM support — register any OpenAI-compatible server, such as vLLM, llama.cpp, or LiteLLM, as a provider for air-gapped or cost-sensitive environments.

Contributing

We welcome contributions! Whether you want to fix a bug, add a new feature, or improve documentation, please refer to the CONTRIBUTING.md file for more information.

License

DAIV is Apache-2.0 and will stay that way. There is no paid tier today; if paid support or hosting is ever offered, it will run the same open-source code, not a separately licensed edition. It is maintained by Sandro Rodrigues.

Support & Community

Ask questions and share ideas in Discussions, and report bugs in Issues. Report security vulnerabilities privately, as described in SECURITY.md. Everyone taking part is expected to follow the Code of Conduct. See the Community page for contribution paths and project links.

If DAIV saves you time, star it on GitHub: it helps other teams find it.

Available Tools

8 tools
get_environmentA

Look up one sandbox environment by name or UUID. Returns None if not found in the caller's visible scopes (own USER envs plus all GLOBAL envs).

Secret env-var values are masked as "******".

Inputs: name_or_id (required). Returns: result

get_job_statusA

Get the status and result of a previously submitted job.

Status is one of: QUEUED, READY, RUNNING, SUCCESSFUL, WAITING_INPUT, FAILED. WAITING_INPUT means the agent stopped to ask the user: question holds its questions and result their rendered text. To answer, call submit_job with the same repository, this response's thread_id, and the answer as prompt.

Inputs: job_id (required), wait. Returns: result

list_environmentsA

List sandbox environments visible to the caller — their own USER envs plus all GLOBAL envs.

Returns {"environments": [...], "next_cursor": str | None}; pass next_cursor back for the next page. Use a returned name (or id) as the environment argument to submit_job. Secret env-var values are not included; call get_environment for full details.

Inputs: limit, cursor.

list_jobsA

List the caller's recent agent runs, newest first.

Returns {"jobs": [...], "next_cursor": str | None}. Pass next_cursor back to fetch the next page; None means no more rows. Each entry is a lean summary — use get_job_status for a single job's full result text.

Inputs: limit, cursor, status, repo_id.

list_repositoriesA

List repositories the calling user can view, served from the local RepositoryCatalog mirror.

Members see only repositories for which they have at least read access; admins see the full catalog. Returns {"repositories": [...], "next_cursor": str | None} ordered by slug — pass next_cursor back to fetch the next page; None means no more rows. Narrowing with search is cheaper than paging the whole catalog (topics and language are matched server-side row by row, so they are not); either way a filter matching more than limit is reachable by paging. Each repository carries its languages breakdown (percent of the code).

Inputs: limit, cursor, search, topics, +1 more.

list_scheduled_jobsA

List the caller's scheduled jobs, newest first.

Returns {"scheduled_jobs": [...], "next_cursor": str | None}; pass next_cursor back to fetch the next page (None means no more rows).

Inputs: limit, cursor, repo_id, enabled_only.

schedule_jobB

Create a recurring (or one-off) scheduled agent run owned by the caller.

Returns {id, name, frequency, next_run_at, is_enabled, repos, intent} or {"error": ...}.

Inputs: name (required), repos (required), prompt (required), frequency (required), +9 more.

submit_jobA

Submit a batch of agent jobs. Each repository runs as an independent job.

Returns {batch_id, jobs: [{job_id, repo_id, ref, thread_id, status}], failed: [...]}. Each job runs independently; poll with get_job_status per job_id or pass wait=true.

Inputs: repos (required), prompt (required), wait, muted, +7 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action pair: submit_job vs schedule_job (ad-hoc batch vs recurring), get_job_status vs list_jobs (single full result vs paginated summaries), and get_environment vs list_environments (single lookup vs listing). Descriptions explicitly state these boundaries, leaving no realistic misselection.

    Naming Consistency5/5

    Consistent verb_noun pattern throughout: submit_job, get_job_status, list_jobs, list_environments, schedule_job, etc. The slightly longer get_job_status/list_scheduled_jobs still follow the same convention without mixing styles.

    Tool Count5/5

    Eight tools is well-scoped for a job-orchestration server, cleanly splitting job, environment, and schedule concerns with each tool earning its place. No redundancy or bloating.

    Completeness3/5

    Core submit/status/list flow is covered, but lifecycle gaps exist: no cancel/delete for jobs, and schedule_job + list_scheduled_jobs lack any update/disable/delete for recurring schedules. These missing operations will send agents into dead ends when they need to stop or modify runs.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      A fully featured coding agent that uses symbolic operations (enabled by language servers) and works well even in large code bases. Essentially a free to use alternative to Cursor and Windsurf Agents, Cline, Roo Code and others.
      29
      30,905 PyPI
      31,781
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with GitLab repositories, manage merge requests, review code diffs, post comments, and handle issues directly through natural language.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to automate GitHub repository management, issue tracking, and commits using natural language.
      -