# Hugo: AI-friendly with conditions

> Hugo allows AI-assisted code contributions if substantial AI generation is disclosed, the contributor manually verifies and understands the code, and non-maintainers keep AI-generated changes to a narrow scope such as a bug fix. Broad AI-generated changes from non-maintainers are not accepted, and the policy does not address AI use in issues or other project communication.

- What it is: Fast static site generator. (Developer tool)
- Homepage: https://gohugo.io/
- Repository: https://github.com/gohugoio/hugo
- Overall stance: AI-friendly with conditions (Mostly friendly). AI-assisted contributions are accepted with extra rules, such as disclosing AI use or using AI only for some kinds of work, or AI is banned for issues or written text.
- Last classified: 2026-11-09 (AI, medium confidence)
- Policy last changed: 2026-11-09
- Web page: https://areweaifriendly.com/projects/hugo/

## Policy by area

- **Code contributions**: AI-friendly with conditions (AI use must be disclosed; Contributor takes full responsibility; A human must review the output; AI only for some kinds or sizes of work)
- **Issues & bug reports**: No AI policy
- **AI-written text**: No AI policy

## What is allowed and what is not

### Code contributions

- **Autocomplete**: Allowed with conditions. Inline AI completion is allowed, but contributors must manually verify the PR and understand the generated code; disclose if a substantial part is AI-generated. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Small fixes**: Allowed with conditions. Small AI-generated fixes from non-maintainers are allowed only at a narrow scope, with disclosure if substantial, manual verification, and understanding of the code. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it.; Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Large or generated changes**: Allowed with conditions. Large AI-generated changes are subject to disclosure, manual verification and understanding; non-maintainers are limited to a narrow scope, so broad AI-generated PRs from non-maintainers are not accepted. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Mechanical changes**: Allowed with conditions. AI mechanical edits are allowed for non-maintainers only at a narrow scope, with disclosure if substantial, manual verification, and understanding of the code. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it.; Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope; broad AI-driven reformatting across the codebase is not allowed for them..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Tests**: Allowed with conditions. AI-generated tests are allowed for non-maintainers only as a narrow contribution, with disclosure if substantial, manual verification, and understanding of the code. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it.; Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Build and CI**: Allowed with conditions. AI-generated build or CI changes are allowed for non-maintainers only as a narrow contribution, with disclosure if substantial, manual verification, and understanding of the code. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Take full responsibility: Understand the generated code and be able to answer critical questions about it.; Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to understand the code that is produced and be able to answer critical questions about it" (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Documentation**: Allowed with conditions. AI-written documentation changes in this repository are subject to disclosure when substantial, manual verification, and the non-maintainer narrow-scope limit; documentation-only PRs are directed to hugoDocs. Conditions: Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.; Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.; Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix..
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
  > "* We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed)." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Other**: Not allowed. AI contributions from non-maintainers must have a fairly narrow scope (e.g. a bug fix); broad AI-generated changes from non-maintainers are not accepted.
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)
- **Other**: Allowed. The narrow-scope limit is stated only for non-maintainers, so maintainers are not covered by that limitation.
  > "If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity." (https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md)

### Issues & bug reports

Not covered by the policy.

### AI-written text

Not covered by the policy.

## Sources

- [Contributing to Hugo](https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md), fetched 2026-11-09
