Getting Started
Overview
SourceSage scans a repository and writes an AI-friendly Markdown documentation artifact to .SourceSageAssets/Repository_summary.md.
Try it once with uvx
bash
uvx --refresh sourcesage --help
uvx --refresh sourcesage --repo /path/to/repositoryRun from source
bash
git clone https://github.com/Sunwood-ai-labs/SourceSage.git
cd SourceSage
uv sync
uv run sage --help
uv run sage --repo .This creates .SourceSageignore when missing and writes the primary documentation artifact under .SourceSageAssets/.
Start with a lighter first pass
bash
uv run sage --repo . --liteUse --lite first when ignore rules are not tuned yet. It keeps the tree, Git info, stats, and root README files without expanding every file into the summary.
Analyze another repository from this checkout
bash
uv run --directory D:\Prj\SourceSage sage --repo D:\Prj\SourceSage\example -o D:\Prj\SourceSage\.tmp-docs-check\exampleReplace those paths with your own SourceSage checkout and target repository.
Generate Japanese documentation into a custom directory
bash
uv run sage --repo . -l ja -o ./outVerify the repository locally
bash
uv run pytest -qNext steps
- Review flags in the CLI Reference.
- Inspect the generated files in the Output Guide.
- If something looks wrong, start with Troubleshooting.