Example Session
Watch how an AI agent uses Blocks to validate code against domain rules, catch issues, and fix them automatically.
AI Agent Session
B
AI Agent + Blocks Example
Watch an AI agent use Blocks to validate code against domain rules, catch issues, and fix them automatically.
What's Happening Here?
1
User Request
You describe what you want in natural language. The AI agent writes the implementation.
2
Blocks Validates
The agent runs blocks run to check against your domain rules.
3
Iterate to Success
The agent reads validation output, understands the issues, fixes them, and repeats until passing.
The Key Insight
AI agents can read validation output just like humans. When Blocks reports issues, the AI understands why the code doesn't meet the spec and knows how to fix it.
The Feedback Loop:
01. AI writes code
02. blocks run validates against domain rules
03. AI reads output → understands issues
04. AI fixes code → runs validation again
05. Repeat until all validators pass
Ready to Try It?
Add domain-aware validation to your AI coding workflow in minutes.