Skip to content

Rust workspace · MIT

Tooling for AI-assisted development, in one workspace.

trusty-tools is one Cargo workspace for the trusty-* ecosystem: hybrid code search, a memory palace, and a code-analysis sidecar, each with an MCP server.

License
MIT
MSRV
Rust 1.94
Prebuilt for
macOS arm64, Linux x86_64, Linux arm64

What trusty-tools is

A single Cargo workspace holding the whole trusty-* family — shared libraries, daemons and MCP servers, a multi-agent platform, and an orchestrator. Everything is co-located under crates/, so a change spanning several of them is one commit against one lockfile.

Each crate versions, tags, and publishes independently, and everything is MIT licensed. All five flagship tools below speak the Model Context Protocol, so they plug into Claude Code and any other MCP client without a bespoke integration.

Five flagship tools

Each one has its own page — what it does, how it works, and how to install it.

trusty-git-analytics (tga) and trusty-audit have moved to their own site, tga.trustytools.dev. Until it is live, see the repository.

UNIT 01

trusty-search

Hybrid code search

  • BM25, vector, and knowledge-graph retrieval fused with Reciprocal Rank Fusion
  • One machine-wide daemon, unlimited named project indexes
  • Query-intent routing across definition, usage, conceptual, and bug/debt lookups
  • Branch-aware ranking and caller/callee chain expansion

trusty-search →

What’s new

1.2.0· 2026-11-30

  • Added The daemon now deletes a duplicate or unregistered index, corpus included, once it has been idle for 30 days. Duplicate means a worktree root, so a worktree session's own index is covered, or an index parked as worktree or operator; unregistered means parked as decommissioned. Idle time runs from the latest of last_queried_unix and last_indexed_unix in indexes.toml, or from the park time when that is later; grep, global grep, chunk pages and the search.query.all fan-out now write last_queried_unix too, as search already did. An index with neither stamp (a stamp of 0 counts as none), a main checkout or other registered non-duplicate index, an index named in tm's active set, and a loaded, warm-pinned or reindexing index are kept. Each delete decides again from fresh inputs under the index's teardown lock, so an index loaded, named in the active set or used after the pass read it is kept. A missing root stays with the orphan reaper and its 7-day grace. Nothing is deleted when the active set is not trusted or when indexes.toml or project-map.toml cannot be read; the error is logged. The pass runs on the orphan-reaper ticker, so TRUSTY_ORPHAN_REAP_SECS=0 turns it off too (Refs #10534).
  • Added search.project.health, a read-only socket method that answers {registered, resident, parked, orphaned, never_queried} from indexes.toml, the loaded indexes and project-map.toml (#10535). It loads no index and never writes a missing project map. orphaned counts parks whose stored reason is orphaned; never_queried counts rows with no query stamp, which also includes rows written before query stamps existed. An unreadable registry or map answers an internal error naming the file.
  • Added A full rebuild (first build or forced reindex) stamps the embedder that produced the index's vectors (model, dimension, precision) into the corpus _meta table. An incremental reindex keeps the existing stamp (Refs #10664).

All changes →

UNIT 02

trusty-memory

Memory palace storage

  • Named palaces, one per project, with rooms and wings inside them
  • Hybrid BM25 + vector recall over an HNSW index and a redb store
  • A knowledge graph of subject/predicate/object triples alongside the prose
  • A dream cycle that consolidates near-duplicates instead of hoarding them

trusty-memory →

What’s new

1.1.2· 2026-11-30

  • Fixed The inbox-check handler tests no longer read the test binary's stdin. Under a gate whose stdin is a pipe that stays open, the read never returned, the test held the crate's env lock, and every later env-locked lib test waited behind it until the run was killed (#11949).
  • Fixed A test that holds the crate's env lock and stalls no longer hangs the test binary. When the lock does not change hands for 300 s, each waiting test panics with a message naming the bound and the holding test (#11949).
  • Documentation serve --stdio: a test now pins that a memory_remember the daemon accepts and never answers comes back as an error after the bridge's 60 s request timeout, so one call is bounded. A caller that seeds many drawers one call at a time still waits up to 60 s per call (#11965).

All changes →

UNIT 03

trusty-mpm

Multi-agent orchestration

  • One `tm` binary: daemon, CLI, TUI dashboard, and MCP server
  • Sessions and worktrees per project, tracked across restarts
  • Claude Code lifecycle hooks relayed into the daemon
  • A statusline estimate of the tokens the harness kept out of the session
  • Remote control from Telegram or Slack when you are away from the terminal

trusty-mpm →

What’s new

1.15.0· 2026-11-30

  • Added tm build-lease now owns the target directory of a lease outside the slot pool. A pinned private CARGO_TARGET_DIR, and cargo's own <workspace>/target when CARGO_TARGET_DIR is unset, are held by an exclusive lock (.trusty-checkout.lock) for the build's whole life. A second leased build into that directory, from the same checkout too, waits and then exits 75 naming the lock, so it cannot replace binaries a running test or program uses (#8692, #9223).
  • Added The wait for that lock is the lease wait (--wait-secs, else builders.lease_wait_secs, default 90 s, at most 600 s). The exit-75 message names the lock file and the holding build's pid and command, or holder unknown when the lock file records no live holder (#8692).
  • Added Such a lease now frees compile capacity once cargo drops its build lock, the same as a slot lease, so a second build elsewhere is admitted while its tests run (#8692).

All changes →

UNIT 04

trusty-analyze

Code analysis sidecar

  • Cyclomatic and cognitive complexity per chunk, file, and index
  • Code-smell detection with configurable thresholds and named categories
  • Git-blame temporal decay, so stale complex code sorts to the top
  • Tree-sitter adapters for 14 languages, behind a Unix socket and one MCP server

trusty-analyze →

What’s new

0.13.1· 2026-11-27

  • Changed Bus events set the new HarnessEvent.project field to None; no producer here names a project yet (#10906).
  • Changed The batch-3 test-audit findings in trusty-analyze are acted on: tests that only exercised a derive or another crate's registry are removed, and serde round-trip tests now compare against a JSON literal so a renamed field, tag or variant fails; no behaviour change (#11268).
  • Changed The default facts store is <config_dir>/.trusty-tools/analyze/facts.redb, following the install paths; a broken install.toml is an error, not the $HOME default (#11821).

All changes →

UNIT 05

trusty-review

LLM code review

  • Reviews a GitHub PR, a git ref range, or a diff on stdin
  • Injects code context from trusty-search and metrics from trusty-analyze
  • A letter grade alongside an APPROVE / REQUEST_CHANGES / BLOCK verdict
  • Skips a review it cannot ground rather than issue a confident guess

trusty-review →

What’s new

0.42.2· 2026-11-27

  • Breaking trusty-review 0.42.1 ships a public-API break under the internal numbering policy (docs/reference/semver-gate.md); recorded in scripts/semver-accepted-breaks/trusty-review-0.42.1.txt (Refs #8699).
  • Fixed Two cargo test -p trusty-review hangs no longer occur: a test that read from an inherited stdin, and a deadlock at the dedup barrier (Refs #12040)

All changes →

The rest of the lineup

What else you can install today, and what is still being built. Shared libraries and internal tooling are left out — the workspace glob in the root Cargo.toml is the authoritative list of everything under crates/.

Also shipped

  • trusty-installer

    The tctl install and upgrade control plane

  • trusty-console

    Web dashboard over the trusty services you run

  • trusty-code

    Per-project coding harness (tcode)

  • trusty-gworkspace

    Google Workspace MCP server

In development

  • trusty-assistants

    Agentic harness with multi-model routing (ta)

  • trusty-channels

    Chat-channel MCP servers, starting with Slack

  • trusty-sld-lint

    Linter for spec-linked documentation

  • trusty-code-gui

    Desktop shell for the tcode daemon

Install

A bare tctl install brings up the eight managed crates in dependency order. Name one to install just that crate and whatever it needs at runtime.

Bootstrap, then tctl

Recommended. No Rust toolchain needed on a supported platform. Resolves the runtime dependency graph, and keeps macOS signing grants stable across upgrades.

curl -sSf https://raw.githubusercontent.com/bobmatnyc/trusty-tools/main/install.sh | sh
tctl install

Homebrew

Ten formulae in the tap. Installs one binary, without the dependency resolution tctl does.

brew tap bobmatnyc/trusty
brew install bobmatnyc/trusty/trusty-search

From source

Requires Rust 1.94. cargo install writes atomically — never copy a built binary onto your PATH on macOS.

git clone https://github.com/bobmatnyc/trusty-tools
cd trusty-tools
cargo install --path crates/trusty-search --locked

Managed by tctl
trusty-search · trusty-memory · trusty-analyze · trusty-review · tga · trusty-events · trusty-console · trusty-architect · trusty-summarizer · trusty-mpm · trusty-installer

The bootstrap installer verifies every downloaded tarball against its published SHA-256 checksum. The install script itself is unsigned — read it first if you need higher assurance.

Installing one specific product? The install walkthrough has the exact sequence for each of the eight, what it needs first, and the macOS permission it asks for.

Read the documentation

Guides, references, and architecture decisions for every crate.

Browse docs