bury ðŠĶ
A blazingly fast dead code detector using reachability analysis
Bury the dead code before it haunts your codebase!
What is Bury?
Bury finds unused code in your Python and TypeScript projects by performing reachability analysis from entry points. Unlike simple pattern matching tools, Bury builds a complete call graph and identifies code that's truly unreachable.
Key Features
- ð Blazingly Fast - Written in Rust with parallel processing
- ðŊ Accurate - Uses reachability analysis, not simple pattern matching
- ð Multi-Language - Supports Python and TypeScript
- ðĪ LLM-Friendly - Outputs structured JSON perfect for AI tools
- ð Multiple Output Formats - JSON, Markdown, or terminal
Installation
# From crates.io
# From source
Quick Start
# Analyze current directory
# Analyze specific path
# Output as JSON
# Verbose mode
How It Works
Bury uses a three-phase reachability analysis:
- Scan - Find all source files (respecting .gitignore)
- Parse - Build AST using tree-sitter for each language
- Analyze - Perform reachability analysis from entry points
- Report - Output dead code findings
Example
# module.py
# â
Used
return +
# â DEAD CODE
return *
=
= # Only calls add()
Output:
Part of Neural Garage ð§ ð§
Bury is part of the Neural Garage toolkit - AI-powered code analysis tools built in Rust.
Other Neural Garage tools:
- complexity (coming soon) - Code complexity analyzer
- conductor (private) - Multi-agent orchestration platform
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
See the main repository for contribution guidelines.