Home / Blog / Wt-radar: Real-time Git worktree collision radar (Rust,…
Tech News

Wt-radar: Real-time Git worktree collision radar (Rust, Tree-sitter, MCP)

Open-source developer rxxusp released wt-radar, a fast Rust daemon that stops parallel AI agents from colliding across Git worktrees with 0.025 ms checks.

By Dillip Chowdary • Nov 28, 2026 • Source: github.com

Wt-radar: Real-time Git worktree collision radar (Rust, Tree-sitter, MCP)
Image: github.com

At a glance

Product
wt-radar and wt-radar-hub
Container version
1.0.0
License and price
Open source, free
Availability
macOS, Linux, Windows, Docker, Cargo
Toolchain requirement
Rust 1.96 or higher for Cargo builds
Resource ceiling
Under 30 MB RSS memory and under 1 percent CPU

Developer rxxusp released wt-radar, an open-source Git worktree collision radar that stops parallel artificial intelligence coding agents and engineers from clashing on identical functions, code hunks, lockfiles, and database migrations. According to github.com's report, the software operates as a Rust background daemon, terminal dashboard, command-line tool, Model Context Protocol server, and team coordination hub.

This article details the architecture, resource budgets, cryptographic hashing, and protocol integrations powering the project for platform engineers and developers managing automated coding pipelines. Readers will learn how the system evaluates overlapping edits across local worktrees and team repositories before code is committed to version control.

01Multiplatform binary packages and repository setup

The software distributes through Homebrew on macOS and Linux, cargo-dist shell scripts, Windows Winget, and multi-architecture Docker container images tagged for linux/amd64 and linux/arm64 on distroless nonroot bases. Developers using the Rust toolchain can install the CLI and Hub crates via Cargo when operating on Rust version 1.96 or higher.

Initializing a repository requires running wt-radar init to generate the root .wtradar.toml configuration file. Developers can run wt-radar status to execute an immediate four-tier collision scan across all linked worktree directories, start the background daemon and IPC socket using wt-radar watch, or launch the interactive terminal interface via wt-radar tui.

02Four tier collision detection matrix

The detection engine inspects repository mutations using four distinct tiers that escalate from simple paths to semantic code structures. Tier 1 flags identical normalized paths modified across separate checkouts with info severity, while Tier 2 warns of overlapping or nearby merge-base diff hunks within five proximity lines.

TierEngine RuleDefault SeverityTarget Scope
Tier 1tier1_pathinfoIdentical normalized file paths modified, renamed, or deleted
Tier 2tier2_hunkwarnOverlapping merge-base diff hunks within five proximity lines
Tier 3tier3_ast_semanticwarnTree-sitter AST signature collisions across seven languages
Tier 4tier4_critical_assetblockHigh-blast assets, 26 built-in lockfile rules, migrations, and IaC

Higher tiers evaluate complex structural conflicts during concurrent editing workflows. Tier 3 uses Tree-sitter abstract syntax tree parsers across TypeScript, JavaScript, Python, Rust, Go, Java, and C++ to flag clashing function signatures and exports. Tier 4 blocks concurrent edits to twenty-six critical assets, including lockfiles, database migrations, and infrastructure configurations.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Verified resource budgets and performance benchmarks

The core engine utilizes pure-Rust gix libraries rather than git subprocesses, combining native notify filesystem watchers with adaptive burst shedding. In benchmark tests on a macOS aarch64 workstation against a 100,000-file repository with 20 active worktrees, index creation finished in 29.44 milliseconds while memory usage remained at 12.28 megabytes.

Incremental collision detection latency registered at 0.025 milliseconds across p50, p95, and p99 measurements, beating the 50-millisecond ceiling. Salted BLAKE3 path hashing achieved 3,452,780 paths per second for hex digests, exceeding the 250,000 threshold. Engineers can reproduce these results using cargo run with release bench flags.

04Salted cryptographic hashing and hub synchronization

Team coordination operates through the optional wt-radar-hub server, deploying via Docker Compose with Prometheus metrics on port 9090 and Grafana on port 3000. Communication uses bidirectional gRPC on port 50051 for stream syncing and health checks. Local daemons connect by exporting a WT_RADAR_SALT secret and targeting the hub URL.

The platform ensures privacy by keeping file paths, source code, branch names, and symbol identifiers off the hub server. The SaltedHasher utility derives a 256-bit BLAKE3 key from the organization secret to produce domain-separated digests, while the protobuf layer physically strips plaintext local path and branch strings before transmission.

Note: Ephemeral worktree leases expire automatically after sixty seconds without a recorded heartbeat signal. This safety mechanism guarantees that closed developer laptops, terminated background agents, and crashed remote containers do not leave stale conflict reservations across active team repositories or cluster nodes.

05Model context protocol and policy enforcement

Artificial intelligence coding agents integrate through a native Model Context Protocol server built with the official Rust rmcp software development kit. The server supports stdio transport as well as streamable HTTP on port 3849. Assistants like Claude Code, Cursor, and Antigravity invoke check_collision, list_worktrees, list_collisions, and get_policy to evaluate potential conflicts.

Policy configuration lives in .wtradar.toml at the repository root, defining severity levels and protected asset patterns. Teams can specify custom glob rules for database migrations or schemas to enforce sequential execution. When an agent queries check_collision on a protected file, the server returns a block action with the rule identifier.

Frequently asked questions

How does wt-radar detect collisions between Git worktrees?

The engine evaluates changes across four progressive tiers covering normalized paths, merge-base diff hunks, Tree-sitter AST symbols across seven languages, and critical assets like migrations and lockfiles.

How do AI coding agents check for conflicts before committing?

Agents connect via a native Model Context Protocol server over stdio or HTTP to query tools like check_collision, which returns allow, warn, or block recommendations.

Does team coordination send source code to the hub server?

No, the system uses salted 256-bit BLAKE3 hashes derived from an organization secret and strips all plaintext paths, branches, and symbols before gRPC transmission.

What are the daemon performance and memory benchmarks?

In tests on a 100,000-file repository, incremental checks completed in 0.025 milliseconds while memory usage remained at 12.28 megabytes.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →