Practical overview
When it fits
Use gograph when you need structural context for a Go module—especially before a refactor or when an agent needs repository-aware code information. Choose precise mode when type-checked dispatch analysis is useful and the selected production packages compile.
Who it is for
- Go developers exploring callers, implementations and dependencies in a repository.
- Teams incorporating repository structure into coding-agent workflows through MCP.
- CI workflows that need to distinguish successful precise analysis from fallback using strict mode.
Documented uses
- Build a local index of Go source structure and targeted reports.
- Inspect callers, callees, implementations and dependencies through CLI queries.
- Use graph-derived repository context to inform refactoring and change-impact analysis.
- Expose Go repository structure to a coding agent through MCP.
Requirements & limits
- The tool requires Go 1.27.0 or later and a repository with go.mod.
- The default build provides AST-based structure; precise mode attempts type-checked CHA/SSA enrichment and requires compilable, build-selected production packages.
- Precise enrichment can fall back to the AST graph; --strict makes that fallback exit non-zero.
- Build tags and excluded directories affect graph selection. Use matching options when starting MCP so automatic refreshes preserve the selection.
- The graph and reports are stored locally in .gograph/.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Build a local Go repository graph
Create gograph’s graph and reports for a Go module.
Before you start
- Go 1.27.0 or later
- A Go module repository containing go.mod
- gograph installed using one of the documented installation methods
Steps
Open a terminal at the root of the Go module.
Run
gograph build ..Use
gograph statsto inspect the generated index summary.
Expected outcome
gograph writes `.gograph/graph.json` and nine targeted Markdown reports in `.gograph/`.
Guide limitations
- The default graph is AST-based; type-checked CHA/SSA enrichment requires
--preciseand compilable, build-selected production packages. - A partial build can retain parse failures and selection or security warnings in its metadata.
Compare options for AI coding assistance
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| gograph | Build a local index of Go source structure and targeted reports. | CLI, Server, Self-hosted | |
| Codex Bridge | Authorize project directories for chat-driven file and command tasks. | macOS, Windows, Linux, Desktop, Self-hosted | The project is self-hosted and provides desktop builds for macOS, Windows and Linux. The documented ChatGPT or Dot Tunnel route requires Plus or higher, or a team subscription. Windows requires WebView2 Runtime; the macOS installer is ad-hoc signed and not Apple-notarized. |
| Awwwards MCP | Search for website references using natural-language queries or filters such as color, tags, technology and award type. | CLI | The README documents a local setup with no API key or account requirement. Node.js 22.13 or later is required. The core npx setup does not run browser-dependent tools. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- gograph – Go Codebase Analysis & MCP Server · Official homepage title · retained in its source language

