{
  "id": "aicommit2",
  "name": "aicommit2",
  "homepage": "https://github.com/tak-bro/aicommit2",
  "description": "A Reactive CLI that generates commit messages for Git, YADM, and Jujutsu with Ollama, ChatGPT, Gemini, Claude, Mistral, and other AI.",
  "executables": [
    "aicommit2",
    "aic2"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/aicommit2/config.ini",
      "~/.aicommit2"
    ],
    "secret": [],
    "secret_paths": [
      {
        "file": [
          "[configHome]/aicommit2/config.ini",
          "~/.aicommit2"
        ],
        "match": {
          "prefix": [
            "key"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Generate commit message",
    "description": "Generate commit messages for the current changes with the configured AI providers. VCS selection, hooks, watch mode and config subcommands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://github.com/tak-bro/aicommit2#readme",
        "revision": "main 2026-10",
        "evidence": "- `--locale` or `-l`: Locale to use for the generated commit messages (default: **en**)\n- `--generate` or `-g`: Number of messages to generate (default: **1**)\n- `--type` or `-t`: Git commit message format (default: **conventional**). It supports conventional and gitmoji\n- `--prompt` or `-p`: Custom prompt to fine-tune the AI generation\n- `--include-body` or `-i`: Force include commit body in all generated messages (default: **false**)\n- `--all` or `-a`: Automatically stage changes in tracked files for the commit, like `git commit -a`.\n- `--confirm` or `-y`: Skip confirmation when committing after message generation (default: **false**)\n- `--auto-select` or `-s`: Automatically select the first successfully generated message (default: **false**)\n- `--edit` or `-e`: Open the AI-generated commit message in your default editor (default: **false**)\n- `--clipboard` or `-c`: Copy the selected message to clipboard and exit **without committing** (default: **false**)\n- `--dry-run` or `-d`: Generate commit message without committing (default: **false**).\n- `--exclude` or `-x`: Files to exclude from AI analysis\n"
      }
    ],
    "field": [
      {
        "id": "all",
        "label": "Stage tracked changes",
        "type": "boolean",
        "option": [
          "--all",
          "-a"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "type",
        "label": "Message format",
        "type": "enum",
        "option": [
          "--type",
          "-t"
        ],
        "choices": [
          {
            "value": "conventional",
            "label": "Conventional Commits"
          },
          {
            "value": "gitmoji",
            "label": "Gitmoji"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "locale",
        "label": "Locale",
        "type": "string",
        "option": [
          "--locale",
          "-l"
        ],
        "suggestions": [
          {
            "value": "en",
            "label": "English"
          },
          {
            "value": "zh-CN",
            "label": "Chinese (Simplified)"
          },
          {
            "value": "ja",
            "label": "Japanese"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "generate",
        "label": "Messages to generate",
        "type": "integer",
        "option": [
          "--generate",
          "-g"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "prompt",
        "label": "Custom prompt",
        "type": "string",
        "option": [
          "--prompt",
          "-p"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "include_body",
        "label": "Include commit body",
        "type": "boolean",
        "option": [
          "--include-body",
          "-i"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "exclude",
        "label": "Exclude files",
        "type": "string",
        "option": [
          "--exclude",
          "-x"
        ],
        "multiple": true,
        "sources": [
          "readme"
        ]
      },
      {
        "id": "auto_select",
        "label": "Auto-select first message",
        "type": "boolean",
        "option": [
          "--auto-select",
          "-s"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "confirm",
        "label": "Skip confirmation",
        "type": "boolean",
        "option": [
          "--confirm",
          "-y"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "edit",
        "label": "Edit in editor",
        "type": "boolean",
        "option": [
          "--edit",
          "-e"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "clipboard",
        "label": "Copy to clipboard, do not commit",
        "type": "boolean",
        "option": [
          "--clipboard",
          "-c"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "dry_run",
        "label": "Dry run",
        "type": "boolean",
        "option": [
          "--dry-run",
          "-d"
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "commit",
        "label": "Commit with an AI message",
        "fields": [
          "all",
          "type",
          "locale",
          "confirm"
        ],
        "required": []
      },
      {
        "id": "preview",
        "label": "Preview a message",
        "fields": [
          "type",
          "dry_run",
          "generate"
        ],
        "required": [
          "dry_run"
        ],
        "set": {
          "dry_run": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "all",
          "type",
          "locale",
          "generate",
          "prompt",
          "dry_run",
          "clipboard",
          "confirm"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "include_body",
          "exclude",
          "auto_select",
          "edit"
        ]
      }
    ]
  }
}
