Skip to content

Automatically detect, analyze, and visualize algorithms in codebases

Notifications You must be signed in to change notification settings

Lemniscate-SHA-256/Dissect

Repository files navigation

Dissect - Algorithm Detective 🔍

CI/CD Coverage

Automatically detect, analyze, and visualize algorithms in codebases


Overview

Dissect scans your code to:

  • 🔎 Identify algorithms (sorting, graph traversal, etc.)
  • 📊 Analyze complexity (time/space Big-O notation)
  • 🎨 Generate visualizations (Netron-like flowcharts)
  • Category-Driven Visualization
    Algorithms are color-coded by type (sorting=red, graph=blue)

flowchart

Features

  • Multi-Language Support: Python, JavaScript, Java (more coming)
  • Algorithm Taxonomy: Categorizes implementations into hierarchies
  • Educational Annotations: Explains algorithm logic in context
  • CI/CD Ready: Integrates with GitHub Actions

Installation

pip install dissect

Usage

Basic Detection:

dissect analyze --file ./src/sorting.py

# Output:
# [✓] quicksort (sorting) - Confidence: 92%
# [✓] bfs (graph) - Confidence: 85%

Visualization:

dissect visualize --file ./src/graph.py --output architecture
# Saves architecture.png

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/amazing-feature)
  3. Commit changes (git commit -m 'feat: add amazing feature')
  4. Push to branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for details. https://discord.gg/ZJz3tT5r

License

Distributed under the MIT License. See LICENSE for more information.


Dissect - Because great code deserves to be understood. 🧠