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
pip install gnost
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
📚 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.4.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.4.0.tar.gz | 183.4 kB | Without provenance | Details for gnost-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnost-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for gnost-0.4.0-py3-none-any.whl |
Total release size: 368.2 kB
Release files / gnost-0.4.0.tar.gz
| Download URL | gnost-0.4.0.tar.gz |
|---|---|
| Size | 183.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a2380a647eff9e7571e23c5764660cbe811aaa4cd0c3ef5b544bc72d7d8e578
|
|
BLAKE2b-256 checksum How to use checksums |
e6b031a803588f6d6dfec850889e01c6f952d4c2c981397b2fcec25a4fc878d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / gnost-0.4.0-py3-none-any.whl
| Download URL | gnost-0.4.0-py3-none-any.whl |
|---|---|
| Size | 184.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d93616306b2f1f3e7a93c1a4f1a9583f21b0dad72f35b0546a5e024422572c0
|
|
BLAKE2b-256 checksum How to use checksums |
f1feefd759bdd88287395fdcd7cc7d10940d7d16df7d6131cb5cce6b2bcae674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for gnost 0.4.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.