Back to Dagger

Examples

docs/versioned_docs/version-0.18.19/introduction/examples.mdx

0.21.53.9 KB
Original Source

Examples

This page showcases real-world examples of Dagger in action, with a focus on working implementations you can study and adapt.

Agents and agentic CI

:::info Watch a livestream of building an AI agent with Dagger. :::

  • Toy Programmer: A simple programmer micro-agent for demonstration purposes

  • Multi-Agent Demo: A demonstration using multiple LLMs to collaboratively solve a problem

  • Go Coder: A Go programmer agent that receives assignments from GitHub issues and creates PRs with solutions

  • Cypress Test Writer: An agent that compares two git branches for UI changes and creates Cypress tests to cover the differences

  • Tic Tac Toe: An agent that plays Tic Tac Toe with a human player

  • Dockerfile Optimizer: An agent that analyzes Dockerfiles and suggests improvements for better efficiency, security, and best practices

  • Test Debugger: An agent that automatically debugs failing tests in CI

  • Technical Content Summarizer: An agent that summarizes technical content from a URL for a non-technical audience

  • SWE Agent: An agent that gets assigned GitHub issues and solves them with pull requests

  • Database Agent: An agent that connects to an existing database and allows the user to ask plain language questions to explore and query a database.

Portable CI

  • cdebug: A pipeline with containerd tests

  • Runme: A pipeline to test, build, and release a Go application

  • Blip: A pipeline to lint, format and test a C++ application

  • Greetings API: A pipeline to lint, test, build and release a Go API service

  • Books API: A pipeline to test a Python API service

  • Symfony Demo Application: A pipeline to lint, test and perform static analysis on a Symfony application

Monorepos

  • Dagger: Dagger's own CI pipelines, used to test, lint, build, and release multiple assets, includings the Dagger CLI, Dagger SDKs, and Dagger documentation.

  • OpenMeter: A set of pipelines to test, lint, scan, publish and release multiple assets, includings SDKs, binaries, Helm charts and container images

Cookbook

The Dagger Cookbook contains practical code examples for common tasks:

Contribute examples

Have you created a Dagger example you'd like to share?