DEV.co
MCP Servers · sentrux

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.

Source: GitHub — github.com/sentrux/sentrux
2.6k
GitHub stars
233
Forks
Rust
Primary language
MIT
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorysentrux/sentrux
Ownersentrux
Primary languageRust
LicenseMIT — OSI-approved
Stars2.6k
Forks233
Open issues27
Latest releasev0.5.7 (2026-03-18)
Last updated2026-03-19
Sourcehttps://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.

Quickstart

Get the sentrux source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/sentrux/sentrux.gitcd sentrux# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

AI Agent Development Sessions

Real-time feedback during Claude Code, Cursor, or other MCP-capable agent sessions. Agents can query health metrics, establish baselines, and detect architectural regression before work is committed.

Continuous Architecture Governance

CI/CD gate that tracks quality across commits. Prevents gradual architecture degradation in team codebases by catching coupling growth, cyclic dependencies, and god-file emergence early.

Interactive Codebase Exploration

Live treemap GUI visualizes project structure and dependencies. Useful for onboarding, refactoring planning, and identifying architectural bottlenecks in legacy codebases.

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.

SignalAssessment
MaintenanceActive
DocumentationAdequate
License clarityClear
Deployment complexityLow
DEV.co fitGood
Assessment confidenceHigh
Security considerations

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.

Software development agency

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.co

Related 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?
No. Sentrux measures structural properties (dependencies, file organization, metrics) via static analysis. Functional correctness is the job of test suites. Use both.
Can sentrux be used without an AI agent?
Yes. Run `sentrux` to visualize your codebase, `sentrux check` in CI to enforce rules, `sentrux gate` to track quality over time. MCP agent integration is optional.
What languages does sentrux support?
52 languages via tree-sitter parsers (Rust, Python, Go, Java, C++, C#, JavaScript, TypeScript, and others). Language support depends on tree-sitter plugin availability.
How do I interpret the 0–10000 quality score?
Score aggregates modularity, acyclicity, depth, equality, and redundancy into a single number. Higher is better. Review the rules engine docs and your project's `.sentrux/rules.toml` to understand what drives score changes.

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.