parse

command
v1.0.0-alpha.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: 0

README

parse

Reads an Agentfile and dumps the parsed structure as JSON. Useful for inspecting how instructions are resolved (heredocs, ARG substitution, context file references) without building an OCI artifact.

Usage

go run ./examples/parse/ <path-to-Agentfile>

Example

go run ./examples/parse/ demo/meteo/Agentfile
{
  "syntax": "openotters/agentfile:1",
  "agent": {
    "from": "scratch",
    "runtime": "ghcr.io/openotters/runtime:latest",
    "model": "anthropic/claude-haiku-4-5-20251001",
    "name": "meteo",
    "contexts": [ ... ],
    "bins": [ ... ],
    "adds": [ ... ]
  }
}

Documentation

Overview

Parse reads an Agentfile and dumps the parsed structure as JSON.

Usage:

go run ./examples/parse/ <path-to-Agentfile>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL