Back
45/65
Lesson 45
4 min
AADC: Diagram Corrector
Fix malformed ASCII art diagrams with AI assistance
Ready to level up?
Mark complete to track your learning progress.
Fix malformed ASCII art diagrams with AI assistance
Mark complete to track your learning progress.
Fix malformed ASCII art diagrams that AI agents produce with misaligned boxes and broken lines.
AADC (ASCII Art Diagram Corrector) automatically fixes alignment issues, broken box edges, and misconnected lines in ASCII diagrams. AI models frequently generate diagrams with subtle rendering errors that AADC corrects.
When agents produce architecture diagrams, flowcharts, or tables in ASCII, the output often has columns that don't align, boxes with gaps, or connectors that miss their targets. AADC detects and repairs these issues.
Fix alignment and spacing
Repair broken box edges
See before/after diff
Copy fixed output directly
Fix a diagram from a file or stdin.
# Fix a diagram fileaadc fix diagram.txt# Pipe from clipboardpbpaste | aadc fix# Fix and copy resultaadc fix diagram.txt | pbcopy# Show what changedaadc fix --diff diagram.txt
--diff to see exactly what AADC changed before accepting the output.AADC fixes common AI-generated diagram issues.
# Before (broken):+--------+ +-------+| Client |-->| Server|+--------+ +-------+|+-------+| DB |+------+# After (fixed):+----------+ +--------+| Client |--->| Server |+----------+ +--------+|+--------+| DB |+--------+
Post-process agent diagram output
Clean diagrams before including in prompts
Fix diagrams in archived conversations
Clean architecture diagrams in memory files