gograph_stale
Check if the Go graph index is outdated by comparing file modification times; returns stale status and changed files.
Instructions
Check whether .gograph/graph.json is outdated relative to the current Go source files — is_stale:true if any .go file in the working tree is newer than the graph index. Requires .gograph/graph.json to exist. Read-only; no side effects. WHEN TO USE: As a pre-flight check before any structural analysis — a stale graph may cause missed symbols or stale call edges. If stale, run gograph build . before proceeding. NOT TO USE: For Go module dependency freshness (go list -m all covers that); for finding which symbols changed (use gograph_changes). RETURNS: JSON with is_stale bool, graph_age (UTC build timestamp), newest_source_mtime (UTC mtime of newest .go file), newest_source_file (path of that file), and changed_files[] listing .go files newer than the graph; {"is_stale":false} when the graph is current.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||