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: generated/DOGFOOD-REPORT-2.1.0.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ All test directories show `cohesion=0.00`, which is technically correct (tests i
129
129
130
130
## 5. Suggestions for Improvement
131
131
132
-
### 5.1 UX: Default `--no-tests` in Config
132
+
### 5.1 UX: Default `--no-tests` in Config — IMPLEMENTED
133
133
134
134
Many codebases have large test directories. A `.codegraphrc.json` option like `"excludeTests": true` would let users default to production-only views:
135
135
```json
@@ -139,21 +139,29 @@ Many codebases have large test directories. A `.codegraphrc.json` option like `"
139
139
```
140
140
This would save typing `-T` on every command while still allowing `--include-tests` to override.
141
141
142
-
### 5.2 UX: `map` Could Show Coupling Score
142
+
**Implementation:** Added `query.excludeTests` to config defaults (`config.js`). CLI loads config at startup and uses a `resolveNoTests()` helper: `--include-tests` flag always overrides to include, `-T` always excludes, otherwise falls back to config value. All commands with `--no-tests` now also accept `--include-tests`.
143
+
144
+
### 5.2 UX: `map` Could Show Coupling Score — IMPLEMENTED
143
145
144
146
The `map` command shows fan-in/fan-out bars, but doesn't show the actual coupling score (in+out combined). The `stats` command shows "Top 5 coupling hotspots" — `map` could integrate this as a column since it already has the data.
145
147
146
-
### 5.3 UX: `explain` Is the Most Useful Command for AI Workflows
148
+
**Implementation:** Added `coupling` field (in+out) to `moduleMapData` and display as `=NNN` column in `map` output.
149
+
150
+
### 5.3 UX: `explain` Is the Most Useful Command for AI Workflows — IMPLEMENTED
147
151
148
152
The `explain` command produces the most AI-agent-friendly output — structured sections (exports, internals, data flow) that give an LLM exactly the context it needs. Consider:
149
153
- Making it the default recommendation in the README for AI workflows
150
154
- Adding a `--depth` option to recursively explain dependencies
151
155
152
-
### 5.4 Performance: Status Messages to stderr
156
+
**Implementation:** Added `--depth <n>` option (default 0) to the `explain` command. When depth > 0 on a function target, recursively explains each callee's structure (callees, callers, signature, tests) up to N levels deep with cycle-safe visited tracking. Works with both text and JSON output.
157
+
158
+
### 5.4 Performance: Status Messages to stderr — IMPLEMENTED
153
159
154
160
The native engine still prints "Using native engine" to stdout, which pollutes piped output. Consider using `process.stderr.write` for status messages, keeping stdout clean for actual data output.
155
161
156
-
### 5.5 UX: `--no-tests` Help Text Consistency
162
+
**Implementation:** Replaced all `console.log` status messages in `builder.js` with `info()` from the logger (which writes to stderr).
163
+
164
+
### 5.5 UX: `--no-tests` Help Text Consistency — ALREADY DONE
157
165
158
166
All commands now use `'Exclude test/spec files from results'` after this fix. Future commands should follow the same wording.
159
167
@@ -163,7 +171,7 @@ All commands now use `'Exclude test/spec files from results'` after this fix. Fu
163
171
164
172
Codegraph v2.1.0 on Windows x64 with the native engine is **solid**. All 22 commands work correctly, edge cases are handled gracefully, the test suite is comprehensive (494 tests), and the native binary installs cleanly as an optional dependency.
165
173
166
-
The bugs found (missing `--no-tests` wiring on 6 CLI commands + 4 MCP tools, hook not catching `gh pr create`) are fixed in this PR. The engine parity gap is the most significant technical observation — worth tracking but not blocking since both engines produce usable graphs.
174
+
The bugs found (missing `--no-tests` wiring on 6 CLI commands + 4 MCP tools, hook not catching `gh pr create`) are fixed in this PR. All 5 suggestions from section 5 have been implemented. The engine parity gap is the most significant technical observation — worth tracking but not blocking since both engines produce usable graphs.
167
175
168
-
**Rating: 9/10** — Production-ready with minor consistency issues.
176
+
**Rating: 9/10** — Production-ready with minor consistency issues. All suggestions addressed.
0 commit comments