Reveal
Reveal shows the structure of code, documents and data before their content, so engineers and AI agents can read only what a question needs. It runs locally.
pip install reveal-cli
reveal src/ # what is here?
reveal src/app.py # what does this file contain?
reveal src/app.py main # read this function
reveal calls src/ --callers main # what connects to it?
reveal src/app.py main --boundary # what does it read and touch?
reveal check src/ # which rules find problems?
Start with the question
| Step | Question | Command |
|---|---|---|
| Orient | What is here? | reveal DIR or reveal overview DIR |
| Structure | What does this contain? | reveal FILE |
| Content | Show me one thing | reveal FILE FUNCTION, reveal DOC.md "Heading", reveal FILE :20-40 |
| Relations | What connects to it? | reveal calls DIR --callers NAME, reveal imports DIR --importers FILE |
| Behavior | What does this function touch? | reveal FILE FUNCTION --boundary or --effects |
| Judgment inputs | Where should I look closer? | reveal metrics DIR --view hotspots, reveal check DIR |
Search with enclosing structural context: reveal src/ --grep 'timeout'.
Use --format json for machine-readable results. Counts name their scope and
counting rule; warnings disclose incomplete analysis and coverage limits.
Static name candidates and classified effects do not prove runtime behavior.
One tool per question
These are current spellings. Where a noun has a subcommand, it and its URI form use the same execution path. Quote URI arguments containing shell operators.
| Tool | Question / example |
|---|---|
overview |
Compact project map: reveal overview .; compare with --against REF |
ast |
Code elements: reveal ast src/ --where 'complexity>10' --sort=-complexity --limit 10 |
calls |
Callers/callees: reveal calls src/ --callees main --depth 2 --detail |
imports |
Import relationships: reveal imports src/ --importers app.py |
git:// |
History: reveal 'git://.?type=history&message~=fix' |
claude |
Session recovery: reveal claude session/NAME --view messages --sort=-message_index --limit 3 |
markdown |
Documents: reveal markdown docs/ --match retry |
metrics |
File size, complexity and churn: reveal metrics src/ |
check |
Rule findings: reveal check src/; a change: reveal check --changed main..HEAD |
surface |
Recognized external boundaries: reveal surface src/ |
contracts |
Interfaces and data contracts: reveal contracts src/ |
patches |
Test patch pressure: reveal patches tests/ |
diff:// |
Structural comparison: reveal diff://before.py:after.py |
pack |
Context within a budget: reveal pack src/ --budget 8000 |
json:// |
Nested JSON: reveal json://config.json/service/mode |
sqlite:// |
Database structure: reveal sqlite:///path/to/app.db |
xlsx:// |
Workbook structure: reveal xlsx://book.xlsx |
env:// |
Environment inspection with secret redaction: reveal env://NAME |
Other resources: reveal help://adapters lists session exploration and hosting
operations. Hosting adapters remain available and are planned to move to
reveal-ops; nginx configuration analysis stays in core. No server or API key
is required for local file inspection.
Install and discover
Git history, architecture comparisons and churn need the Git extra:
pip install "reveal-cli[git]"
reveal --agent-help # agent orientation
reveal help://quick # choose a tool
reveal help://languages # supported languages and formats (live registry)
reveal help://schemas/ast # one tool's exact controls
reveal calls --help # this subcommand's options
If a managed Windows machine blocks the generated executable, use
python -m reveal. To pre-download grammars for offline use, run reveal offline.
Scripting and agents
reveal src/app.py main --format json
git ls-files '*.py' | reveal --stdin
reveal pack src/ --since main --budget 8000
Exit codes on qualified operations: 0 completed, 1 a findings gate matched, 2 invalid invocation/resource, 3 required analysis or output failed or was incomplete. Incompleteness takes priority over findings. See output diagnostics and each tool's help for its supported controls and remaining legacy exceptions.
The optional reveal-mcp server exposes inspection tools to MCP clients;
setup and transport details describe its scope.
Reveal reads, checks and packages context; it does not edit source or run an LLM.
Evidence and documentation
- Validation: measured populations, independent oracles and limits.
- Roadmap: command consolidation and planned behavior changes.
- Quick start and recipes.
- Agent reference and all documentation.
- Contributing.
License
MIT; see LICENSE.
Metadata
Release files for reveal-cli 0.135.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 |
|---|---|---|---|---|
| reveal_cli-0.135.0.tar.gz | 3.5 MB | With provenance | Details for reveal_cli-0.135.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reveal_cli-0.135.0-py3-none-any.whl | Python 3 | none | any | Details for reveal_cli-0.135.0-py3-none-any.whl |
Total release size: 6.7 MB
Release files / reveal_cli-0.135.0.tar.gz
| Download URL | reveal_cli-0.135.0.tar.gz |
|---|---|
| Size | 3.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbe1cd487800c0a1502b0581eeb4b0abf06b738a906a40639f7c3522245ac07e
|
|
BLAKE2b-256 checksum How to use checksums |
299db3093e66f71058396a185bd2ed1a3ac60513009163617de809f4310b68da
|
| 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 / reveal_cli-0.135.0-py3-none-any.whl
| Download URL | reveal_cli-0.135.0-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4005c4dc44cfb1a4021d923ce505b19bda33792b8c4a06ebba0a284d6d09db65
|
|
BLAKE2b-256 checksum How to use checksums |
4cf6495ee1a2281836149dfbbb26c10d895700a05e0e22dc23f3398391770f39
|
| 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 reveal-cli 0.135.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 reveal_cli-0.135.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.