Find and understand your code

Search text and symbols, follow who calls what, and see what a prompt would touch.

How to use them

The commands of this group, as /? shows them

Commands

Command Usage What it does
/repo /repo <query> Query the repository structure, Git branches and code graph
/find text /find text "<term>" [-rdfhoal] [-n <n>] Search text in the workspace files; the term may be quoted with " ' or ` (-r subfolders, -d folder names, -f file names, -h fuzzy, -o names only, -a also dist / node_modules / binaries, -n max results)
/find symbol /find symbol <name> [-mcprlx] [-n <n>] Find method (-m), class (-c) and property (-p) declarations with tree-sitter; -x exact name only (no fuzzy matches), -r also lists their usages, -n max results
/get /get compiler errors|warnings [path] [-f] [-n <n>] | lint errors|warnings [path] [-f] [-n <n>] | error <n> prompt|json Compiler or linter errors / warnings (/get compiler errors, /get lint warnings), optionally for a file or folder; -f runs each project's typecheck / lint (all files), each item links to its line
/code-graph /code-graph file "<typed path>" | symbol <name> | symbols [dir] | refs <name> [dir] | endpoints [exposed|consumed] [dir] | track-usage <@file|#symbol> [-f <file>] [-r <n>] [-t off] | update <path> Look up the code graph: the indexed files a (possibly wrong) path means, the files declaring a symbol, or index a file again (update)
/project /project Describe the projects of this workspace: type, tech stack and their build / test / lint commands
/impact /impact <prompt> The symbols and files of the workspace a prompt touches, from the code graph