Commands and flags for astwire.
| Flag | Description |
|---|---|
| targets | One or more target files/directories to process, space-separated (default: current directory). |
| --targets PATH [PATH ...] | Same as the positional targets — e.g. astwire --skeleton --targets src/ is valid. |
| -i, --resolve-imports | Follow local imports from supported languages (Python, JS/TS, Go). |
| --languages | Print the language capability table and exit. |
| --lang NAME[,NAME] | Only include these languages, by name or extension, comma-separated. |
| --analysis | Dry-run audit displaying recoverable token waste per file, broken out by language, without writing files. |
| --strip-waste | Scrub trailing whitespace and collapse empty lines. |
| --skeleton | Strip function/method bodies in languages that support skeletonization, preserving signatures and docstrings. |
| --since REF | Seed context from files changed since this git ref instead of the given targets (tracked + untracked, gitignore-aware). Combine with -i to also pull in what the changed files import. |
| --max-depth N | With -i, exclude files more than N import-hops from a seed (manifests like package.json/go.mod are always kept). No effect without -i. |
| --decay-depth N | With -i, skeletonize files more than N import-hops from a seed, even without --skeleton. No effect without -i. |
| --graph | With -i, emit a dependency-graph block of edges between bundled files before the file contents. |
| --max-tokens N | Ceiling for token budget per output partition. |
| -f, --format {markdown,llm,json} | Output format (default: llm). Inferred from the -o extension if omitted. |
| -o, --output DEST | Destination context file (default: context.xml). .md/.json/.xml infer the format. |
| -v, --version | Show program’s version number and exit. |
| --uninstall | Completely remove the astwire binary and associated local configuration files. |