GNOST: Codebase Knowledge
GNOST is a lightweight static analysis CLI that helps you understand an unfamiliar codebase in minutes. It finds where execution starts, maps how it flows, points out the files that matter most, and writes onboarding documentation and Mermaid diagrams. gnost analyze adds a quality score with prioritized findings.
Good for first-day onboarding, audits and exploring code you did not write.
What you get
- Entry points and routes: where execution starts, and HTTP endpoints for Flask, FastAPI, Django, Express, NestJS and Spring.
- Execution flow: Mermaid diagrams of imports, plus function-level flow for Python.
- How to get it running: install, run and test commands and the environment variable names, read from the project's own files (nothing guessed).
- Hotspot files and caution areas: the files most worth reading first, and the risky ones to read carefully.
- Circular imports, listed and drawn.
ONBOARD.md: a written guide to the repository, plus the same facts as JSON for tools and AI, all saved in a.gnost/folder.- Quality analysis: maintainability, robustness, observability and readability, with a score and prioritized findings (Python projects).
- Any repository by address:
gnost onboard https://github.com/owner/repoclones it read only, writes the results to.gnost/<repo-name>/in your current folder and deletes the clone. Nothing in the repository is run. - Languages: Python, JavaScript, TypeScript and Java.
Install
pip install gnost
Or install it as an isolated tool:
pipx install gnost
Or run it once without installing:
pipx run gnost onboard .
uvx gnost onboard .
Requires Python 3.9 or newer.
Usage
gnost onboard . # writes the .gnost/ folder: guide, diagrams, JSON, explorer
gnost onboard . --layered --depth 3
gnost summary . # languages, files and lines of code
gnost stats . # detailed stats per language
gnost folders . # lines of code by folder
gnost files . # largest files
gnost analyze . # quality report
gnost analyze . --parallel -o # run analyzers in parallel and open the report
gnost open flow # interactive flow explorer in your browser
gnost changes origin/main # what your change touches: blast radius, risk, new cycles
gnost onboard https://github.com/owner/repo # any public repository (read only)
gnost init # write a complete .gnost.toml
gnost init --github-action # GitHub workflow: quality gate and a comment on each pull request
gnost init --github-action --fork-comments # also comment on pull requests from forks
Add an optional .gnost.toml at the repository root for excludes, weights and thresholds. Command-line flags win over the file.
Explore the flow in your browser
gnost open flow opens the diagrams as an interactive explorer: a folder overview first, click a folder to see its files, click a file to see what it imports and what imports it. It works offline.
The analysis report
Links
- Documentation: https://gnost.readthedocs.io
- Source: https://github.com/mohdzain98/gnost
- Issues: https://github.com/mohdzain98/gnost/issues
- Changelog: https://github.com/mohdzain98/gnost/blob/main/CHANGELOG.md
MIT licensed.
Metadata
Release files for gnost 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gnost-0.7.1.tar.gz | 1.3 MB | With provenance | Details for gnost-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnost-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for gnost-0.7.1-py3-none-any.whl |
Total release size: 2.6 MB
Release files / gnost-0.7.1.tar.gz
| Download URL | gnost-0.7.1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfd19611a907868d064ace497a66a585c307331f36599c756331fec313e6a0f8
|
|
BLAKE2b-256 checksum How to use checksums |
4bafcf00f0a9e154bcb2c70638b0ebc4bde464d4dd89c8a3d07922e4de48cb28
|
| 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 27, 2026.
Transparency logRelease files / gnost-0.7.1-py3-none-any.whl
| Download URL | gnost-0.7.1-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcd948c35a1da3ffe75486fde39c8cb5ba940dc60889ce7c5fa09e85b3d0a7da
|
|
BLAKE2b-256 checksum How to use checksums |
c36e268e32958638203e8d697c073f927f5af984b23b286dbbf6cd75ed3157eb
|
| 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 27, 2026.
Transparency logSecurity for gnost 0.7.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.
Attestation for gnost-0.7.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 27, 2026.
Transparency logA 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.