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

regctl

$ regctl Community Med Risk
regclient · Cloud & Infra · Apache-2.0 · macos / linux / windows

regctl (from regclient) is a fast, daemonless CLI for inspecting OCI manifests, configs, referrers, and tags, copying multi-arch images, and pruning stale tags directly via the OCI Distribution API. Its --format Go-template engine outputs clean JSON across inspection commands.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install regctl
CLI vs MCP Decision CLI Preferred vs MCP

regctl queries remote OCI registries directly with Go-template --format JSON extraction and rate-limit awareness, beating generic MCP tools.

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 23 / 25

Flexible Go-template --format '{{json .}}' / '{{jsonPretty .}}' and field selection across manifest, image, artifact, and tag commands.

  • --format '{{json .}}' and Go-template filtering across read commands
  • Non-interactive flags (-p / --platform) and clean exit codes
Trust & Safety 20 / 25

Daemonless HTTP client respects registry auth helpers, though tag rm and manifest rm lack a global --dry-run flag.

  • No local Docker socket or root privileges needed
  • tag rm and manifest rm mutate remote registries directly
Setup & Portability 15 / 15

Single static Go binary available via Homebrew, go install, and GitHub Releases on macOS, Linux, and Windows.

  • Zero-dependency static binary across all 3 platforms
Utility & Efficiency 14 / 15

Supports OCI Referrers API (artifact list/get), manifest lists, and registry-to-registry copies with digest preservation.

  • Copies OCI referrers (signatures/SBOMs) alongside images
Maintenance & Lineage 8 / 10

Widely respected open-source project (regclient/regclient) maintained under Apache-2.0.

  • Active regclient/regclient repository
Docs & Verifiability 8 / 10

Structured documentation at regclient.org and clear Cobra --help pages.

  • Official docs at regclient.org/usage/regctl/

Security, Auth & Guardrails

Auth Modes
No Auth Config File OS Keychain
Credential Storage

Reads OCI registry credentials from ~/.docker/config.json and ~/.regctl/config.json (plus Docker credential helpers).

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

100% free and open-source (Apache-2.0); registry API rate limits and egress pricing apply.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# regctl Agent Rules
- Default to `regctl manifest get`, `image config`, `artifact list`, and `tag ls` with `--format '{{json .}}'`.
- Never run `regctl tag rm`, `manifest rm`, or `repo prune` without explicit digest checks and user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Fetch an OCI manifest in pretty JSON
regctl manifest get ghcr.io/org/app:latest --format '{{jsonPretty .}}'

Retrieves the remote OCI manifest or index JSON directly without pulling layers.

List image tags as a JSON array
regctl tag ls ghcr.io/org/app --format '{{json .}}'

Queries repository tags from the OCI registry and formats them as compact JSON.

Controlled Writes & Previews

Copy a multi-arch image cleanly between registries
regctl image copy ghcr.io/org/app:v1.0.0 registry.internal/app:v1.0.0

Copies manifests, layers, and OCI referrers (signatures/SBOMs) without a Docker daemon.

Strengths for Agents

  • + --format '{{json .}}' and Go templates give surgical JSON field extraction across registries.
  • + Handles OCI Referrers (artifact subcommands) and multi-arch indexes seamlessly.
  • + Completely daemonless single binary across macOS, Linux, and Windows.

Caveats & Pitfalls

  • ! Requires Go template syntax (--format '{{json .}}') rather than a short --json flag.
  • ! Destructive commands (tag rm, manifest rm) do not provide a global --dry-run flag.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI