Cli
cli
AXM-AST CLI entry point — AST introspection for AI agents.
Usage::
axm-ast describe src/mylib
axm-ast describe src/mylib --detail detailed --json
axm-ast inspect src/mylib --symbol MyClass
axm-ast inspect src/mylib --symbol MyClass --source --json
axm-ast graph src/mylib --format mermaid
axm-ast search src/mylib --returns str
axm-ast version
callees(path='.', *, symbol, json_output=False)
Find all functions/methods called by a given symbol.
Source code in packages/axm-ast/src/axm_ast/cli.py
callers(path='.', *, symbol, json_output=False)
Find all call-sites of a given symbol across a package.
Source code in packages/axm-ast/src/axm_ast/cli.py
context(path='.', *, json_output=False, depth=None)
Dump complete project context in one shot for AI agents.
Source code in packages/axm-ast/src/axm_ast/cli.py
dead_code(path='.', *, json_output=False, include_tests=False)
Detect dead (unreferenced) code in a Python package.
Source code in packages/axm-ast/src/axm_ast/cli.py
describe(path='.', *, detail='detailed', json_output=False, budget=None, rank=False, compress=False, modules=None)
Describe a Python package at the chosen detail level.
Source code in packages/axm-ast/src/axm_ast/cli.py
| Python | |
|---|---|
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
diff_cmd(refs, path='.', *, json_output=False)
Structural diff between two branches at symbol level.
Source code in packages/axm-ast/src/axm_ast/cli.py
docs(path='.', *, detail='full', pages_filter=None, json_output=False, tree_only=False)
Dump project documentation tree and content in one shot.
Source code in packages/axm-ast/src/axm_ast/cli.py
flows(path='.', *, trace=None, max_depth=5, cross_module=False, detail='trace', no_exclude_stdlib=False, json_output=False)
Detect entry points and trace execution flows.
Source code in packages/axm-ast/src/axm_ast/cli.py
| Python | |
|---|---|
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 | |
graph(path='.', *, fmt='text', json_output=False, scope=None)
Display the internal import/dependency graph.
Source code in packages/axm-ast/src/axm_ast/cli.py
impact(path='.', *, symbol, json_output=False, exclude_tests=False, test_filter=None, precise_callers=False, compact=False)
Analyze the impact of changing a symbol.
Source code in packages/axm-ast/src/axm_ast/cli.py
| Python | |
|---|---|
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 | |
inspect(path='.', *, symbol=None, symbols=None, source=False, json_output=False)
Inspect a symbol by name across a package.
Operates on packages (not individual files). Supports dotted paths
like ClassName.method or module.symbol. Returns file path,
line numbers, and optionally source code — matching MCP ast_inspect.
Source code in packages/axm-ast/src/axm_ast/cli.py
main()
search(path='.', *, name=None, returns=None, kind=None, inherits=None, json_output=False)
Search for symbols across a package with filters.