Skip to main content

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

# 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

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:

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

atlas_strata-0.1.0.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atlas_strata-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

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

Hashes for atlas_strata-0.1.0.tar.gz
Algorithm Hash digest
SHA256 167d6a79b419f88108ba268d74e10bf4163dcace2ba7e6f8bb1c1dd52dfdf8b8
MD5 34507549b5c3622da51f7ee94503a92c
BLAKE2b-256 2337a8ba7c0a83d479746aeef1b2495e7dd8dcf648957417f9bdb088026ba3f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_strata-0.1.0.tar.gz:

Publisher: ci.yml on punitganshani/atlas-strata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for atlas_strata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc673d8f2ca963a23ab16a11bc982166eca5c0afccc32c8e78633b83acdd8e89
MD5 1a7454a957e3df041432857a724eb33a
BLAKE2b-256 da5ed5db50a65f07dba0ca817f816db562c19ed204dc5b339040d41d07d8b8b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_strata-0.1.0-py3-none-any.whl:

Publisher: ci.yml on punitganshani/atlas-strata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page