Intelligent code analysis tool for understanding any codebase. Analyze dependencies, risks, and architecture instantly.
Project description
Atlas Strata - Code Architecture Analysis
A pure Python CLI for analyzing codebase architecture, dependencies, and code quality. Works standalone or with GitHub Copilot CLI.
Features
- Intelligent Code Analysis - Build dependency graphs automatically
- Architecture Understanding - Identify coupling, cycles, dead code, impact analysis
- Health Scoring - Rate architecture quality and surface issues
- Dependency Visualization - Interactive browser-based graphs
- Two Usage Modes - Standalone CLI for automation, Copilot CLI for exploration
- Multiple Languages - Python, TypeScript, Java, Go, C#
- JSON Export - Integration with CI/CD and other tools
- Cross-platform - Windows, macOS, Linux
- Smart Recommendations - Dual-pass analysis with AST accuracy + LLM reasoning
- Pass 1: Precise code analysis with evidence
- Pass 2: LLM validation (in Copilot CLI mode)
Quick Start
Installation
pip install atlas-strata
Choose Your Mode
Mode 1: Standalone (Automation-Ready)
# Quick analysis
atlas analyze .
# Generate interactive graph
atlas visualize . --format html
# Check code health
atlas health .
# Get JSON for CI/CD
atlas analyze . --format json > analysis.json
Mode 2: Copilot CLI (Interactive with LLM)
copilot: @atlas analyze --path .
copilot: What's causing high coupling?
copilot: How do I reduce it?
Common Tasks
# Find circular dependencies
atlas health cycles .
# Detect dead code
atlas health dead-code .
# Query dependency paths
atlas query --from auth.py --to main.py
# Get recommendations (AST-based)
atlas analyze . --show-evidence
# Get detailed report with recommendations
atlas report . --show-evidence
# Get recommendations with LLM reasoning (in Copilot CLI mode)
@atlas analyze . --show-evidence
@atlas report . --show-evidence
Documentation
- Standalone Mode Guide - Complete CLI reference, automation examples, CI/CD integration
- Copilot CLI Guide - Interactive queries, LLM reasoning, example conversations
- Mode Comparison - Decide which mode to use
- Command Reference - All commands documented with examples
# Check health metrics in pipeline
atlas atlas analyze . --output json --json-output metrics.json
# Generate reports for tracking
atlas atlas report . --json-output ci-report.json
Ask Complex Questions
# Interactive mode for exploration
atlas ask "what's the impact of changing auth module?" --path ./src --interactive
# Via Copilot CLI (recommended)
@atlas ask "show me all circular dependencies"
Documentation
- Getting Started - Installation and first steps
- Complete Workflow Guide - Step-by-step analysis workflow
- Real Command Outputs - Examples with actual outputs
- CLI Dependencies - Parameter analysis and execution order
- CLI Validation Report - Test results and verification
- CLI vs Copilot Integration - When to use each mode
- Installation Guide - Multiple installation methods
- API Reference - API documentation
- Architecture - System design and layers
- Recommendations Guide - Smart code quality recommendations with evidence
Commands
Standalone CLI
# Analyze directory
atlas analyze <path> [--format json|text|mermaid]
# Generate health report
atlas report <path>
atlas health <path>
# Visualize dependency graph
atlas visualize <path> [--format html|json] [--output FILE]
# Query dependencies
atlas query --from <source> --to <target> <path>
# Show help
atlas --help
Copilot CLI Integration
# Ask questions interactively
copilot: @atlas analyze --path .
copilot: @atlas visualize --path . --format json
copilot: @atlas query --from auth --to main --path .
copilot: @atlas health --path .
See Command Reference for complete documentation.
Running Tests
# Run full test suite
pytest tests/
# Run specific tests
pytest tests/test_cli.py -v
# With coverage
pytest --cov=agent tests/
Expected: 159+ tests passing
Architecture
Atlas uses a pure Python architecture:
- Core Modules:
agent/atlas/core/- Analysis engines (Analyzer, QueryEngine, Visualizer, Formatters) - Existing Analysis Infrastructure: Reuses all existing analyzers (BlastRadius, DeadCode, Cycles, Coupling, Health)
- CLI Layer:
agent/cli.py- Command-line interface using Click - No Internal LLM: All LLM reasoning handled by Copilot CLI
No External Dependencies for LLM
- ✅ No GitHub Copilot SDK imports
- ✅ No direct API calls
- ✅ No hardcoded credentials
- ✅ Pure JSON output to stdout
- ✅ Copilot CLI manages all LLM authentication
Website
Documentation website: site/ (built with Hugo)
Key sections:
- Getting Started - Setup and first steps
- Standalone Mode - Complete CLI guide
- Copilot CLI Mode - Interactive exploration
- Mode Comparison - Choose your mode
- Command Reference - All commands documented
Development
See CONTRIBUTING.md for contribution guidelines.
Key information:
- Python 3.8+
- Pure Python execution (no subprocess calls)
- Reuse existing analysis infrastructure
- Write testable code
License
See LICENSE file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atlas_strata-0.1.0.tar.gz.
File metadata
- Download URL: atlas_strata-0.1.0.tar.gz
- Upload date:
- Size: 41.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167d6a79b419f88108ba268d74e10bf4163dcace2ba7e6f8bb1c1dd52dfdf8b8
|
|
| MD5 |
34507549b5c3622da51f7ee94503a92c
|
|
| BLAKE2b-256 |
2337a8ba7c0a83d479746aeef1b2495e7dd8dcf648957417f9bdb088026ba3f5
|
Provenance
The following attestation bundles were made for atlas_strata-0.1.0.tar.gz:
Publisher:
ci.yml on punitganshani/atlas-strata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlas_strata-0.1.0.tar.gz -
Subject digest:
167d6a79b419f88108ba268d74e10bf4163dcace2ba7e6f8bb1c1dd52dfdf8b8 - Sigstore transparency entry: 1429993487
- Sigstore integration time:
-
Permalink:
punitganshani/atlas-strata@4417bdbeeb17d31a70d79af3d2d042040c111020 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/punitganshani
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4417bdbeeb17d31a70d79af3d2d042040c111020 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file atlas_strata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: atlas_strata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc673d8f2ca963a23ab16a11bc982166eca5c0afccc32c8e78633b83acdd8e89
|
|
| MD5 |
1a7454a957e3df041432857a724eb33a
|
|
| BLAKE2b-256 |
da5ed5db50a65f07dba0ca817f816db562c19ed204dc5b339040d41d07d8b8b6
|
Provenance
The following attestation bundles were made for atlas_strata-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on punitganshani/atlas-strata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlas_strata-0.1.0-py3-none-any.whl -
Subject digest:
bc673d8f2ca963a23ab16a11bc982166eca5c0afccc32c8e78633b83acdd8e89 - Sigstore transparency entry: 1429993492
- Sigstore integration time:
-
Permalink:
punitganshani/atlas-strata@4417bdbeeb17d31a70d79af3d2d042040c111020 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/punitganshani
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4417bdbeeb17d31a70d79af3d2d042040c111020 -
Trigger Event:
workflow_dispatch
-
Statement type: