GNOST — Codebase Knowledge
GNOST is a lightweight static analysis CLI tool that helps developers understand unfamiliar codebases in minutes.
It automatically detects entry points, maps execution flow, identifies critical files, and generates onboarding documentation and Mermaid diagrams.
It also performs quality analysis (gnost analyze) for maintainability, robustness, observability, and readability to provide a fast quality score and prioritized findings.
Perfect for first-day onboarding, audits, and codebase exploration.
🚀 Why GNOST?
- Quickly build a mental model of a new codebase
- See how execution flows without reading everything
- Generate onboarding docs and Mermaid diagrams with one command
🧠 What GNOST Does
- Detects where execution starts
- Infers high-level execution flow
- Identifies hotspot files (most important code)
- Generates onboarding documentation
- Produces Mermaid flow diagrams, plus an interactive browser explorer (
gnost open flow) - Finds HTTP routes (Flask, FastAPI, Django, Express, NestJS, Spring), circular imports and caution areas (risky files to read carefully)
- Traces function-level flows for Python, and exports everything as JSON for tools and AI
- Reads an optional
.gnost.tomlfor excludes, weights and thresholds - Runs code quality analysis for maintainability, robustness, observability, and readability
Install
Pick the channel you already use. The same version is published to all of them.
| Channel | Command | Needs |
|---|---|---|
| pip | pip install gnost |
Python 3.9+ |
| uv / pipx | uvx gnost onboard . or pipx run gnost onboard . |
Python 3.9+ |
| npm | npx gnost-cli onboard . |
Node 18+ (no Python) |
| Docker | docker run --rm --user "$(id -u):$(id -g)" -v "$PWD":/repo ghcr.io/mohdzain98/gnost onboard /repo |
Docker (no Python) |
| Maven | mvn io.github.mohdzain98:gnost-maven-plugin:0.5.0:onboard |
Java 8+, Maven 3.6.3+ (no Python) |
The npm package and the Maven plugin carry a standalone binary for macOS (Apple silicon), Linux (x86_64) and Windows (x86_64). See the install guide for details.
Run the onboarding scan:
gnost onboard .
Explore the flow in your browser (since 0.4.0)
gnost onboard . writes Mermaid diagrams to docs/flow/. For big projects,
gnost open opens them as an interactive explorer instead of one tangled picture:
gnost open flow
# or any file: gnost open docs/flow/flow-complete.mmd (gnost show FILE does the same)
- Folder overview first. Each outlined box is a folder; arrows show how many imports go between them.
- Click a folder to see its files and the files it touches, with one arrow per neighbouring folder.
- Click a file (or pick it from the list) to see what it imports and what imports it.
- Hover anything and everything not connected to it fades, so its boxes and arrows stand out; the line at the bottom
tells you its connections (for example
gnost/core/resolver.py: imports 2 files · imported by 6 files). - Zoom with the magnifier
+/-buttons, the mouse wheel, or the Fit button. - Dark by default, with a light theme button. Circular imports are red and orange.
| Folder overview (hovering a folder) | A file and what connects to it |
|---|---|
The example above is GNOST analysing its own source code.
Minimal usage examples
gnost summary .
gnost stats .
Analysis (since 0.3.0)
gnost analyze .
gnost analyze . --parallel -o
gnost open report
Analysis report preview
Analysis scope
gnost analyzecurrently supports Python codebases only.- JavaScript/TypeScript/Java analysis is planned for future releases.
🌍 Supported Languages
🎯 Who Is This For?
- Developers joining a new team
- Engineers reviewing legacy code
- Startup founders auditing repos
- Tech leads onboarding new hires
- Open-source contributors
📊 Example Use Cases
- First-day onboarding automation
- Codebase documentation generation
- Architecture visualization
- Legacy system analysis
- Rapid technical due diligence
📦 Details
Install commands for every channel are in the Install table above.
📚 Documentation:
📜 Changelog:
🧩 Philosophy
GNOST prioritizes:
- Fast insights over deep AST complexity
- Practical developer onboarding
- Clear summaries over raw metrics
- Zero-config usage
It is designed to be simple, fast, and immediately useful.
License
MIT License
Metadata
Release files for gnost 0.5.0
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.5.0.tar.gz | 1.1 MB | With provenance | Details for gnost-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnost-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for gnost-0.5.0-py3-none-any.whl |
Total release size: 2.3 MB
Release files / gnost-0.5.0.tar.gz
| Download URL | gnost-0.5.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1f38091fd284c1c11dd30e2ff778228187361c32e616d97e37b49520bd6ff9b
|
|
BLAKE2b-256 checksum How to use checksums |
063365419e090b8cf53404c2fa1802162451ed961e1d1b22168b83b8c3727af6
|
| 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 18, 2026.
Transparency logRelease files / gnost-0.5.0-py3-none-any.whl
| Download URL | gnost-0.5.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78bc0cc2a5492ece293457c4921e197355f8f48c43043c2592228dcefeeb7665
|
|
BLAKE2b-256 checksum How to use checksums |
e4b745cb9567905fe2f4aa6b8acfaf3c675f5e3d864539e90b6af9f2b0d4b60f
|
| 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 18, 2026.
Transparency logSecurity for gnost 0.5.0
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.5.0.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 18, 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.