sentrux
Sentrux is a Rust-based real-time code quality sensor designed to help AI agents continuously improve code architecture. It provides live visualization of project structure, measures architectural health via five core metrics, and integrates with AI agents through MCP to close the feedback loop during development sessions.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | sentrux/sentrux |
| Owner | sentrux |
| Primary language | Rust |
| License | MIT — OSI-approved |
| Stars | 2.6k |
| Forks | 233 |
| Open issues | 27 |
| Latest release | v0.5.7 (2026-03-18) |
| Last updated | 2026-03-19 |
| Source | https://github.com/sentrux/sentrux |
What sentrux is
Pure Rust single-binary tool that performs static analysis across 52 languages (via tree-sitter), computing modularity, acyclicity, depth, equality, and redundancy metrics into a 0–10000 quality score. Exposes 9 MCP tools for agent integration and enforces architectural constraints via a TOML rules engine. Runs on macOS, Linux, Windows with no runtime dependencies.
Get the sentrux source
Clone the repository and explore it locally.
git clone https://github.com/sentrux/sentrux.gitcd sentrux# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Requires baseline establishment before meaningful regression detection; initial scan must be run to save quality snapshot before agent or developer sessions.
- Rules engine (TOML) needs explicit configuration per project; default constraints may be too permissive or strict depending on team standards.
- Five metrics (modularity, acyclicity, depth, equality, redundancy) are opaque by default; invest time understanding how each metric affects your architecture to tune sensitivity.
- GPU backend selection (Vulkan/GL/fallback) is automatic but may require manual override on headless or constrained environments; document backend preference for CI systems.
- Tree-sitter language support covers 52 languages but analysis depth may vary; some languages provide richer AST context than others, affecting metric accuracy.
When to avoid it — and what to weigh
- Legacy Single-File Scripts — Tool targets multi-file architectures. Minimal value for small scripts or monolithic binaries where modularity constraints don't apply.
- You Need Behavioral Testing — Sentrux measures structural properties, not functional correctness. Does not replace unit tests, integration tests, or runtime validation.
- Fully Manual Development Workflows — Primary design assumes AI agent integration. Traditional dev teams without MCP-capable tooling benefit less; still useful as a CI linter, but that's a secondary use case.
- Environments Without GUI Support — Interactive treemap requires graphics hardware and wgpu drivers. Headless-only servers can use `sentrux check` CLI mode, but lose visual exploration.
License & commercial use
MIT License. Permissive OSI-approved license permits unrestricted use, modification, distribution, and commercial use with only attribution requirement. No copyleft or patent clauses.
MIT license explicitly permits commercial use without restrictions. No license fee, no restricted enterprise tier detected. Suitable for proprietary codebases and commercial products. Requires only attribution in license notices.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Good |
| Assessment confidence | High |
Operates on local filesystem and project source code; no network calls detected in README. Processes untrusted code during static analysis (tree-sitter parsing) — typical attack surface is parser robustness, not sentrux itself. MCP integration exposes 9 tools to AI agents; ensure agents are trusted before granting write access to `.sentrux/rules.toml` or project files.
Alternatives to consider
SonarQube / SonarCloud
Established code quality platform with broader metrics (bugs, vulnerabilities, technical debt). Heavier setup, multi-language server model. No real-time AI agent loop or interactive treemap.
Spec Kit (GitHub)
Document-first approach to managing AI-generated code. Produces architecture specs before implementation. Different philosophy: sentrux closes feedback loops post-hoc; Spec Kit attempts preventative planning.
Architectural Linters (eslint-plugin-import, rustfmt, custom rules)
Language-specific or style-based tools. Enforce naming, file organization, import constraints. Do not measure whole-system metrics like modularity, coupling, or cyclic dependencies.
Build on sentrux with DEV.co software developers
Sentrux is the missing sensor. Visualize architecture, measure quality, enforce constraints. Download now — zero dependencies, works out of the box.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
sentrux FAQ
Does sentrux run tests or check functionality?
Can sentrux be used without an AI agent?
What languages does sentrux support?
How do I interpret the 0–10000 quality score?
Software developers & web developers for hire
From first prototype to production, DEV.co delivers software development services around tools like sentrux. Our software development agency staffs experienced software developers and web developers for custom software development, web development, integrations, and ongoing support across mcp servers and beyond.
Stop Your AI from Breaking Your Codebase
Sentrux is the missing sensor. Visualize architecture, measure quality, enforce constraints. Download now — zero dependencies, works out of the box.