JetBrains

    JetBrains/go-modern-guidelines

    #454 this week

    Help AI coding agents write modern Go

    ai-agents
    developer-tools
    coding-agent
    go
    golang
    guidelines
    Go
    Apache-2.0
    3.9K stars
    126 forks
    3.9K GitHub watchers
    Updated Oct 15, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #454 of 2,845 repositories GStars tracks this week (top 16%).

    The project lists 9 contributors on GitHub.

    Peaked at #34 in the weekly ranking the week of Aug 30, its best in the past year.

    Use Cases & Benefits

    • Provides guidelines and tooling to help AI coding agents write modern, idiomatic Go code using features up to Go 1.27.
    • Ensures AI-generated Go code uses the latest language features and idioms, reducing outdated patterns and manual refactoring.
    • Use for integrating with AI coding agents like Junie or Claude Code to automatically generate modern Go code in development workflows.
    • Use for updating AI code generation skills in multi-agent environments to maintain consistency with recent Go language standards.
    • Use for developers building or customizing AI coding assistants to enforce modern Go best practices and language feature usage.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    This repository contains guidelines for code agents that help them write modern Go code.

    For example, an agent with these guidelines uses max(a, b) instead of an if-else block, slices.Contains instead of a manual loop, cmp.Or(a, b, c) instead of a chain of nil checks. It also knows about recent additions like new(42) to get a pointer to a value and errors.AsType[T](err) for type-safe error matching—both from Go 1.26.

    All coding agents tend to generate outdated Go. Two reasons:

    These guidelines fix both problems by giving the agent an explicit reference.

    This aligns with the Go team's direction. The modernize analyzer exists to automatically update existing code to use newer idioms (see this talk from the Go team). These guidelines serve the same goal for new code: agents write modern Go from the start, so there's less to fix later.

    The marketplace integrations run a small CLI that is installed on first use with go install. Because of that, the Go toolchain must be installed and available on your PATH.

    The CLI is installed into a local cache (for example ~/.cache/go-modern-guidelines) and never modifies your project. It targets Go 1.25 or newer; on an older Go it still works as long as automatic toolchain switching is enabled (GOTOOLCHAIN=auto, the default), which lets Go fetch a compatible toolchain on first run.

    Excerpt from the JetBrains/go-modern-guidelines README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 28: +526Aug 29: +259Aug 30: +96Sep 3: +36Sep 4: +63Sep 5: +63Sep 6: +28Sep 25: +35Sep 26: +5Sep 27: +6

    +1,823 stars over 49 days across 15 snapshot days; best day +526 on Aug 28.

    Forks

    126+64

    Open issues

    11+1

    Compared with peers in AI Agents

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth

    JetBrains/go-modern-guidelines compared with AI Agents repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    morluto/rea378.8K+249.0K756 days ago
    vxcontrol/pentagi32.3K+5.4K7519 days ago
    DietrichGebert/ponytail175.5K+5.3K758 days ago
    lexmount/moli20.5K+4.5K753 days ago
    hugohe3/ppt-master61.7K+3.8K755 days ago
    JetBrains/go-modern-guidelines3.9K+075—
    Category median61.7K+5.3K75—

    Also by JetBrains

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description