/code-graph
Look up the code graph: the indexed files a (possibly wrong) path means, the files declaring a symbol, or index a file again (update)
Sub-commands
/code-graph file "<typed path>"/code-graph symbol <name>/code-graph symbols [dir]/code-graph refs <name> [dir]/code-graph endpoints [exposed|consumed] [dir]/code-graph track-usage <@file|#symbol> [-f <file>] [-r <n>] [-t off]/code-graph update <path>
How to use it
The code graph is the always-up-to-date map of your project. Every call runs on your machine, with no model.
/code-graph file "<typed path>"finds a file even when you type only part of its path./code-graph symbol <name>finds the classes, functions and methods with that name./code-graph refs <name> [dir]shows who uses a symbol./code-graph endpoints [exposed|consumed] [dir]lists the endpoints your project exposes or consumes./code-graph track-usage <@file|#symbol> [-f <out-file>] [-r <depth>]draws who calls a file or symbol as a Mermaid diagram,depthlevels deep (3 by default). The diagram is added to the file, or the file is created. Without-f, a new file named like the processed file (the one declaring the symbol) plus the date and time is created next to it.
Example: /code-graph track-usage #OrderService.create -f docs/orders.md -r 2
Part of Find and understand your code.