Retrieved article excerpt
Open article · Retrieved 2026-09-20T04:21:28.350304+00:00
| | |
| --- | --- |
| [CXGRD logo](https://camo.githubusercontent.com/3b72c12686ed92316ac667b53b4c14944450e7efe90c64c256f1e2a4c087e0c5/68747470733a2f2f7777772e63786772642e636f6d2f63786772646c6f676f2e706e67) | CXGRD |
[License](https://camo.githubusercontent.com/1fd9f03569634d0b793dc2be729eab6b73fd190399c23b1f6457c97e49109203/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542532302d3466356437353f7374796c653d666c61742d737175617265)
[Release](https://camo.githubusercontent.com/52488be0b731d84f2b2deba77723a898e203b5404ff5a5edaa504814541be63f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d76312e302e302d3862356366363f7374796c653d666c61742d737175617265)
# Architectural Guardrail for AI-native development
CXGRD maps blast radius across your codebase, so AI tools know what they will break - before they write a line
[example workflow](https://github.com/cxgrd/cli/blob/main/.github/profile/assets/example-flow.png)
**CXGRD** scans your project, builds a dependency graph, and gives AI assistants the architectural context they need to make safer changes.
- **Tell you exactly what will break** before a change lands.
- **Enrich AI prompts** with project structure, dependencies, and blast-radius analysis.
- **Validate architecture** with circular dependency checks, orphan detection, and compiler-backed validation.
- **Enforce merge policies** in GitHub Actions to protect your team from risky changes.
---
### Typical workflow
```
# 1. Install
npm install -g cxgrd
# 2. Authenticate
cxgrd auth login
# Required for Pro, Team, and Enterprise plans
# 3. Scan your project
cxgrd scan
# 4. Check blast radius before a change
cxgrd input "extract UserService into a separate module"
# 5. Generate an enriched prompt for your AI
cxgrd prompt "extract UserService into a separate module"
# 6. Validate the result
cxgrd check
```
### See it in action
CXGRD-Demo.mp4
[
](https://private-user-images.githubusercontent.com/181568300/654679638-7ea3ff22-d187-4166-9a84-1395bf7a625a.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODk4NzgzODcsIm5iZiI6MTc4OTg3ODA4NywicGF0aCI6Ii8xODE1NjgzMDAvNjU0Njc5NjM4LTdlYTNmZjIyLWQxODctNDE2Ni05YTg0LTEzOTViZjdhNjI1YS5tcDQ_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwOTIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDkyMFQwNDIxMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NGEwOThiODZjMGFhNGQ4YjVmMDgzNTBlODQ3YzJhNjAwYWJiNjc4NjM2YTI5ODYxOGY0NTJjOGJhZDA2Mzk4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9dmlkZW8lMkZtcDQifQ.Y2Ieq-9y6-RL304bjth5gSfEiUvJUxqo-3Aqx6Z7xSc)
---
### Core commands
- `cxgrd scan` → writes .cg/ from scratch or diffs it
- `cxgrd input` → reads graph + architecture + history, writes to history.json
- `cxgrd prompt` → reads everything, sends a subgraph to your LLM, and returns an enriched prompt
- `cxgrd check` → reads graph + compiler output, writes result to history.json
- `cxgrd auth login` → log in for Pro, Team, and Enterprise users
- `cxgrd doctor` → verifies toolchain readiness before strict checks
- `cxgrd watch` → monitors dependency changes in real time
- `cxgrd init-hooks` → installs pre-commit checks automatically
---
For more information, visit the [official website](https://www.cxgrd.com) or read the docs [here](https://docs.cxgrd.com).
[Report Bug](https://github.com/cxgrd/cli/issues/new/choose) · [Request Feature](https://github.com/cxgrd/cli/issues/new/choose)