Architecture guardrails for AI-written code. TangleGuard is a code analysis tool and a linter for application-level software architecture. It scans your codebase, shows its real architecture as an interactive dependency graph, and enforces the layers and dependency rules you define, so neither your team nor your coding agent tangles it up. It finds circular dependencies and rule violations with file:line evidence, for Rust, TypeScript/JavaScript, Python, Go, Java, Kotlin, C#, PHP and Dart.
Everything runs locally. Your code never leaves your machine.
-
MCP server: lets any MCP client (Claude Code, Claude Desktop, Cursor, VS Code, Zed, …) ask before it writes.
check_importanswers "is this import allowed, or would it close a cycle?",placementandcontextshow where code belongs and what depends on it, andvalidatewithsince: "HEAD"reports only what a change introduced. A single binary for macOS, Linux and Windows. Docs and downloadsclaude mcp add --scope user tangleguard -- /path/to/tangleguard-mcp
-
Claude Code plugin: skills that query the architecture instead of guessing it, plus a hook that hands new violations back to the agent before it finishes. TangleGuard/claude-code-plugin
-
CLI:
architecture,check-import,validate --since HEADand more, with markdown output that drops straight into a prompt. Works in git hooks and CI too. Install
- Desktop app and VS Code extension: explore the interactive, configurable dependency graph, define layers and rules visually, and see how the architecture evolves over time.
- GitHub Action: enforces your architecture rules on every pull request. Marketplace
- Zed extension: the MCP server inside Zed. TangleGuard/zed-mcp-extension
See some demos here.
Archwise Solutions UG is working on making the source code publicly available for auditing. Follow the GitHub organization to stay updated.
If you have any questions or concerns, don't hesitate to get in touch at archwise-contact@mailbox.org. We're happy to talk to you!