CLI & Agents

TangleGuard for Agents

The CLI answers questions about your architecture in milliseconds — for you, your CI and your coding agent. The Claude Code plugin teaches the agent when to ask, and checks every change it makes against your rules.

One Native Binary
Runs Locally
Fewer Tokens
The CLI

Ask the architecture, don't guess it

Compact markdown output: readable for you, ready-made context for an LLM. Add --format json for scripts, --ci to fail pipelines and hooks.

architecture

The big picture in one call: layers, packages with lines of code, the dependency graph.

context --node <name>

One building block's layer, rules, real dependencies and blast radius.

explain-dependency

The exact imports, with file:line, behind any arrow in the graph.

check-import

ALLOWED or DENIED for a new import — rule check and cycle check in one verdict.

validate

Every rule violation and cycle, with evidence and a ranked list of edges to cut.

suggest-layers

A layered architecture inferred from the real graph, ready for write-config.

changes

What a change did to the structure: dependencies and components added or removed.

scan --html

The whole graph as one self-contained HTML page — the Studio in a file.

RustGoTypeScript / JavaScriptPythonJavaKotlinC#PHPDart

All commands and downloads →

The Claude Code plugin

Keep your agent inside your architecture

Four skills tell the agent when to reach for which command. The guardrail hook doesn't rely on the agent remembering.

architecture

Query the structure instead of grepping files and guessing.

validate

Preflight every import before it is written, confirm the result after.

untangle

A guided refactor that breaks cycles along the cheapest cuts.

assign-layers

Map components onto a target architecture; the violations become the migration backlog.

guardrail hook

When the agent finishes, new violations and cycles go straight back to it — before you see the result.

How the skills and the hook work →

Install

Two steps, a couple of minutes

First the CLI, then the plugin that teaches your agent to use it.

Install in one line

Easiest

On macOS and Linux, the install script puts tangleguard into ~/.local/bin; run it again to upgrade. Using Homebrew? The cask keeps it up to date with brew upgrade.

Install script

curl -fsSL https://tangleguard.com/install.sh | sh

Homebrew

brew install --cask tangleguard-cli

Then, inside Claude Code

/plugin marketplace add TangleGuard/claude-code-plugin
/plugin install tangleguard@tangleguard

Using the Claude desktop app or another agent? The skills work with any agent that reads Agent Skills — see the installation guide. For MCP-based tools there is the MCP server.

Windows, manual downloads and release notes