Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Dagger CLI

$ dagger Official Med Risk
Dagger · Code & DevOps · Apache-2.0 · macos / linux / windows

Executes modular, containerized CI/CD pipelines written in Go, TypeScript, or Python on top of BuildKit. Agents can inspect module functions via dagger functions, call typed pipelines via dagger call, and query the engine via GraphQL JSON with dagger query.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install dagger/tap/dagger
CLI vs MCP Decision Hybrid (CLI + MCP)

Run dagger call and dagger query directly for typed CI pipelines; Dagger also provides container-sandbox primitives useful for agent tool execution.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Strongly typed dagger functions, dagger call, --progress=plain, and JSON-native dagger query GraphQL interface.

  • dagger query returns GraphQL JSON responses
  • dagger functions self-describes module arguments and return types
Trust & Safety 21 / 25

Containerized execution isolates side effects unless explicit host directories or secrets are passed to dagger call.

  • Explicit capability passing via CLI arguments (--source, --token)
Setup & Portability 12 / 15

Single CLI binary across major OSes, but requires a Docker/container runtime to spin up the Dagger Engine container.

  • Requires Docker/container runtime for engine execution
Utility & Efficiency 14 / 15

Replaces fragile YAML CI steps with typed, locally testable pipelines in Go, Python, or TypeScript.

  • Identical execution locally and in CI runners
Maintenance & Lineage 9 / 10

Official Dagger project under Apache-2.0 with active releases.

  • First-party dagger/dagger repository
Docs & Verifiability 8 / 10

Well-maintained docs.dagger.io reference and typed CLI help.

  • Official docs at docs.dagger.io

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key OAuth Browser
Credential Storage

Local engine runs need no auth; optional Dagger Cloud telemetry uses DAGGER_CLOUD_TOKEN.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Apache-2.0 open-source CLI and engine are free; optional Dagger Cloud dashboard has free and paid plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Dagger CLI (dagger) Agent Rules
- Always pass `--progress=plain` in agent shells so TUI spinners do not scramble logs.
- Inspect `dagger functions` before calling unfamiliar module entrypoints.

Agent-Ready Command Recipes

Safe Read-Only Queries

List functions exposed by a Dagger module
dagger functions --progress=plain

Inspects the module's typed pipeline functions and descriptions without running them.

Execute a read-only GraphQL engine query
echo '{ version }' | dagger query --progress=plain

Queries the Dagger GraphQL engine and returns structured JSON.

Controlled Writes & Previews

Invoke a typed module test function
dagger call test --progress=plain

Runs the module's test pipeline inside BuildKit containers with linear plain logs.

Strengths for Agents

  • + Typed dagger functions self-documentation makes pipeline discovery accurate for agents.
  • + dagger query returns clean GraphQL JSON.
  • + Pipelines run identically in local Docker and remote CI.

Caveats & Pitfalls

  • ! Requires Docker/BuildKit daemon access to run the Dagger Engine.
  • ! Default TUI progress view must be overridden with --progress=plain in headless logs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI