You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,18 +97,34 @@ The workflow can be overridden with a specific version via the `version-override
97
97
98
98
## Dogfooding — codegraph on itself
99
99
100
-
Codegraph is **our own tool**. Use it to analyze this repository before making changes:
100
+
Codegraph is **our own tool**. Use it to analyze this repository before making changes. If codegraph reports an error, crashes, or produces wrong results when analyzing itself, **fix the bug in the codebase** — don't just work around it.
101
101
102
+
### Before modifying code, always:
103
+
1.`node src/cli.js where <name>` — find where the symbol lives
104
+
2.`node src/cli.js explain <file-or-function>` — understand the structure
105
+
3.`node src/cli.js context <name> -T` — get full context (source, deps, callers)
If codegraph reports an error, crashes, or produces wrong results when analyzing itself, **fix the bug in the codebase** — don't just work around it. This is the best way to find and resolve real issues.
123
+
### Flags
124
+
-`-T` / `--no-tests` — exclude test files (use by default)
125
+
-`-j` / `--json` — JSON output for programmatic use
126
+
-`-f, --file <path>` — scope to a specific file (partial match)
127
+
-`-k, --kind <kind>` — filter by symbol kind (function, method, class, etc.)
0 commit comments