{
  "id": "agda",
  "name": "Agda",
  "homepage": "https://agda.readthedocs.io",
  "description": "A dependently typed functional programming language.",
  "executables": [
    "agda"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/agda/defaults",
      "~/.config/agda/libraries",
      "~/.agda/defaults",
      "~/.agda/libraries",
      "%APPDATA%/agda/defaults",
      "%APPDATA%/agda/libraries"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": [
          "~/.config/agda/libraries",
          "~/.agda/libraries",
          "%APPDATA%/agda/libraries"
        ],
        "match": {
          "prefix": [
            "/"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Type-check an Agda file",
    "description": "Type-check an Agda module with a few common options and optionally generate HTML, LaTeX or Vim highlighting. Compiler backends, interaction mode and the many pragma-style flags are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "docs",
        "kind": "manual",
        "url": "https://agda.readthedocs.io/en/latest/tools/command-line-options.html",
        "revision": "latest 2026-10",
        "evidence": "--html\nGenerate HTML files with highlighted source code\n--latex\nGenerate LaTeX with highlighted source code\n--vim\nGenerate Vim highlighting files.\n--include-path={DIR}, -i {DIR}\nLook for imports in DIR. This option can be given multiple times.\n--library={DIR}, -l {LIB}\nUse library LIB.\n--library-file={FILE}\nUse FILE instead of the standard libraries file.\n--safe\nDisable postulates, unsafe OPTIONS pragmas and primTrustMe.\n--without-K\n--allow-unsolved-metas\nSucceed and create interface file regardless of unsolved meta variables\n--only-scope-checking\n--dependency-graph={FILE}\nGenerate a Dot file FILE with a module dependency graph.\n--ignore-interfaces\nDon't read interface files (re-type check everything\n"
      }
    ],
    "field": [
      {
        "id": "file",
        "label": "Agda file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "docs"
        ]
      },
      {
        "id": "safe",
        "label": "Safe mode",
        "type": "boolean",
        "option": [
          "--safe"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "without_k",
        "label": "Without K",
        "type": "boolean",
        "option": [
          "--without-K"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "allow_unsolved_metas",
        "label": "Allow unsolved metas",
        "type": "boolean",
        "option": [
          "--allow-unsolved-metas"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "include_path",
        "label": "Import search directories",
        "type": "path",
        "option": [
          "--include-path"
        ],
        "multiple": true,
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "docs"
        ]
      },
      {
        "id": "library",
        "label": "Libraries",
        "type": "string",
        "option": [
          "--library"
        ],
        "multiple": true,
        "sources": [
          "docs"
        ]
      },
      {
        "id": "library_file",
        "label": "Libraries file",
        "type": "path",
        "option": [
          "--library-file"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "docs"
        ]
      },
      {
        "id": "html",
        "label": "Generate HTML",
        "type": "boolean",
        "option": [
          "--html"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "latex",
        "label": "Generate LaTeX",
        "type": "boolean",
        "option": [
          "--latex"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "vim",
        "label": "Generate Vim highlighting",
        "type": "boolean",
        "option": [
          "--vim"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "dependency_graph",
        "label": "Dependency graph (Dot file)",
        "type": "path",
        "option": [
          "--dependency-graph"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "docs"
        ]
      },
      {
        "id": "only_scope_checking",
        "label": "Only scope-check",
        "type": "boolean",
        "option": [
          "--only-scope-checking"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "ignore_interfaces",
        "label": "Ignore interface files",
        "type": "boolean",
        "option": [
          "--ignore-interfaces"
        ],
        "sources": [
          "docs"
        ]
      }
    ],
    "task": [
      {
        "id": "check",
        "label": "Type-check",
        "fields": [
          "file",
          "safe",
          "include_path",
          "library"
        ],
        "required": [
          "file"
        ]
      },
      {
        "id": "html_docs",
        "label": "Generate HTML",
        "fields": [
          "file",
          "html",
          "include_path",
          "library"
        ],
        "required": [
          "file",
          "html"
        ],
        "set": {
          "html": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "file",
          "safe",
          "without_k",
          "allow_unsolved_metas",
          "include_path",
          "library",
          "html"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "library_file",
          "latex",
          "vim",
          "dependency_graph",
          "only_scope_checking",
          "ignore_interfaces"
        ]
      }
    ]
  }
}
