Skip to main content

WinterSolve

Understand any repository from the terminal. Offline, in seconds, no account.

CI CodeQL PyPI version MIT License Python 3.10+ Ruff mypy strict

Real output of 'wintersolve brain .' run on the WinterSolve repository itself

You open a repository you have never seen. What is it, how do you run it, where are the tests, is anything risky, what should you look at first?

wintersolve brain . answers all of that in one report: languages and stack, source and test layout, the commands you need, an architecture map, a security and privacy check, and a short list of risks and next actions. It reads files; it never phones home. Output is plain text you can paste into an issue, Markdown for a wiki, or JSON for your tooling.

Try it

pipx install wintersolve        # or: python -m pip install wintersolve
cd path/to/any/project
wintersolve brain .

If wintersolve is not found afterwards, python -m wintersolve brain . always works. Want the latest commit instead of a release? pipx install git+https://github.com/harshitkrhere/WinterSolve.git

What you get

Real output from running WinterSolve on its own repository (lightly trimmed; the full report is in examples/):

WinterSolve Repo Brain
======================
Project: WinterSolve
Offline mode: yes

Languages:
  - Python: 39
  - Markdown: 29
  - PowerShell: 2
Detected stack:
  - GitHub Actions
  - Python package
  - pre-commit
Source layout:
  - src
  - src/wintersolve
  - src/wintersolve/modules
  - src/wintersolve/providers
  - src/wintersolve/workflows
Documentation health:
  - README contains the expected core sections.
  - Core open-source hygiene files are present.
Detected commands:
  - install editable: `python -m pip install -e .` (pyproject.toml, medium)
  - test: `python -m pytest` (pyproject.toml, medium)
  - lint: `pre-commit run --all-files` (.pre-commit-config.yaml, medium)
  - pipx: `pipx install wintersolve` (README.md, medium)
Architecture map:
  - docs: Project documentation; notable: docs/ARCHITECTURE.md, docs/COMMANDS.md, ...
  - src: Application or library source code; notable: src/wintersolve/cli.py, ...
  - tests: Automated tests; notable: tests/conftest.py, tests/test_cli.py, ...
Security and privacy:
  - Status: clear
  - Files checked: 86
  - Recognized secrets are redacted from security finding evidence.
  - Bandit ran on Python files (medium and high severity): 0 issue(s).
Risks:
  - None detected
Next actions:
  - Run the detected test command before making changes.
  - Use `wintersolve explain <file>` on the most important source files.
  - Use the architecture map as the first contributor onboarding guide.

On a repository with problems, the same report names them: a committed AWS key (redacted in the output), eval() on user input, SQL built from request data, a missing test directory, a README with no install section.

The smaller commands are just as concrete. debug names the fix, not only the category:

$ echo "ModuleNotFoundError: No module named 'cv2'" | wintersolve debug
...
Likely causes:
  - Python dependency or import path issue
Next steps:
  - `cv2` is provided by the `opencv-python` package: `python -m pip install opencv-python`.
  - Install into the environment that runs the code: activate the virtual environment first, ...

explain reads a file the way a person would, in Python, JavaScript/TypeScript, Go, Rust, Java, and more than a dozen other languages and formats. Here it is on command.go from Cobra:

Summary:
  - command.go is a Go file with 2072 lines.
  - Its header comment says: Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.
  - It has 13 definitions.
  - It imports 10 modules: 9 from the standard library, 1 from third-party packages (github.com/spf13/pflag).
Symbols and sections:
  - type FParseErrWhitelist
  - struct Group
  - struct Command (116 methods)
  ...

Commands

Command What it does Formats
wintersolve brain . Repository scan, docs health, architecture, inferred commands, and security leads. text, markdown, json
wintersolve scan . Quick health check from file names and marker files only. text, markdown, json
wintersolve explain FILE What one file is, what it defines, what it imports. Python, JS/TS, Go, Rust, Java, and more. text
wintersolve debug --text "..." Likely causes and specific next steps for an error or stack trace. Also reads stdin. text
wintersolve docs . Missing README sections and hygiene files; --draft-readme for a skeleton. text
wintersolve review . Turns your uncommitted changes into review risks and a checklist. text

Every command exits 0 on success, 1 if the analysis failed, and 2 for usage errors or targets that cannot be analyzed. Full reference: docs/COMMANDS.md.

A few things people do with it:

wintersolve brain . --format markdown --output REPO_BRAIN.md     # onboarding doc
wintersolve brain . --format json | jq '.security.findings'       # feed a script
pytest 2>&1 | wintersolve debug                                   # explain a failure
wintersolve brain ~/code/some-repo --no-bandit                    # fastest possible
wintersolve brain . --progress --format json > report.json        # stages on stderr

Why WinterSolve

  • Offline by default. No API keys, no accounts, no telemetry, no update checks. Safe to run on private code.
  • Fast on real repositories. One filesystem walk that prunes node_modules, virtual environments, and build output before descending.
  • Honest. Heuristics are labelled as heuristics. The security section says exactly which checks ran, and severity is earned: high only for unambiguous token formats, never for "this line mentions a password", and low for eval() or a fake password in test code.
  • Specific. Advice names the package to install, the port that is busy, or the line to start reading, instead of a category of problem.
  • Structured. Plain text that pastes cleanly, Markdown for wikis, JSON with a schema_version for tools. Same commit, same report, every time.
  • Small. Two runtime dependencies (typer, rich), plain dataclasses, strict typing, tests that run in seconds.

Use it in CI

- run: python -m pip install wintersolve
- run: wintersolve brain . --format markdown --output repo-brain.md
- run: cat repo-brain.md >> "$GITHUB_STEP_SUMMARY"

The report shows up in the Actions job summary. A drop-in workflow and the recipe for failing a build on high-severity findings are in docs/INTEGRATIONS.md.

Installation

Method Command
pipx (recommended) pipx install wintersolve
pip python -m pip install wintersolve
latest from GitHub pipx install git+https://github.com/harshitkrhere/WinterSolve.git
with Bandit for deeper Python checks pipx install "wintersolve[security]"

Python 3.10 or newer, on Linux, macOS, or Windows. Details and troubleshooting: docs/INSTALLATION.md.

How it works

cli.py  ->  modules/*.py (one analyzer each)  ->  frozen dataclasses  ->  report.py

Analyzers never print and never touch the network. brain calls all of them and composes one report. Adding an analyzer is a module, a renderer, a few lines in the CLI, and a test. See docs/ARCHITECTURE.md.

What it is not

WinterSolve is not an AI assistant and does not need one. It will not write your code, and its security scan is a first pass, not an audit. There is an optional provider interface for people who want to build AI features on top of redacted reports; the CLI never calls it.

Security and privacy

WinterSolve reads the directory you point it at (skipping .git, caches, virtual environments, and dependency folders), runs git status for review, and optionally runs Bandit. That is the complete list. Recognized credential patterns are redacted from security finding evidence; review reports before sharing because heuristic detection cannot catch every secret. explain refuses files outside the project root. Details: docs/SECURITY_MODEL.md. Found a problem in WinterSolve itself? Please follow SECURITY.md.

Development and tests

git clone https://github.com/harshitkrhere/WinterSolve.git && cd WinterSolve
python -m venv .venv && source .venv/bin/activate      # Windows: .venv\Scripts\Activate.ps1
python -m pip install -e ".[dev]"
ruff check . && ruff format --check . && mypy && pytest

That last line is the whole quality gate, and it is exactly what CI runs on Linux, macOS, and Windows across Python 3.10 to 3.14. Tests use temporary fixture projects and finish in seconds.

Contributing

Small contributions are the best ones here: a stack marker WinterSolve misses, a command it should have found, an error message it does not recognise, a false positive it should not raise. Each is a few lines plus a test.

Start with CONTRIBUTING.md, or BEGINNER.md for a guided first week. Ideas and questions go in Discussions; bugs in Issues.

Status

Alpha (the current release is on the PyPI badge above). The command set is stable; report wording may still change between minor versions, and the JSON schema_version is bumped for any breaking change. See the changelog and the roadmap.

If WinterSolve saved you time, a star helps other people find it.

License

MIT.

Metadata

Release files for wintersolve 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wintersolve 0.4.1
File Size Uploaded Provenance Actions
wintersolve-0.4.1.tar.gz 117.8 kB With provenance Details for wintersolve-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wintersolve 0.4.1
File Interpreter ABI Platform Actions
wintersolve-0.4.1-py3-none-any.whl Python 3 none any Details for wintersolve-0.4.1-py3-none-any.whl

Total release size: 184.9 kB

Release files / wintersolve-0.4.1.tar.gz

Download URL wintersolve-0.4.1.tar.gz
Size 117.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c3aedd1b834ea6ba8d56a66b2fb38ec961c42254042579d7866c04a64db1c4ee
BLAKE2b-256 checksum
How to use checksums
e648e7b31eec3a5be6c9b64c67eb5fc452388db2e669f4cf5502b63c3fb0d6cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / wintersolve-0.4.1-py3-none-any.whl

Download URL wintersolve-0.4.1-py3-none-any.whl
Size 67.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74b1e98ee3394d730a3abef0aa7052066a0975894e624e7e0e694f80600f0c34
BLAKE2b-256 checksum
How to use checksums
b9f11155866eaaee4a28c218160b6155f5f60e008b1efc0256bf2210f9e1a179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for wintersolve 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wintersolve-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page