AIReady Spoke: Semantic duplicate pattern detection for AI-generated code.
AI models often suffer from "semantic confusion" when multiple variants of the same logic exist in the codebase. The Pattern Detect analyzer helps you identify these duplicates and consolidate them into reusable components.
- Full Support: TypeScript, JavaScript, Python, Java, Go, C#
- Capabilities: Semantic duplicate detection, logic fragmentation, refactoring suggestions.
🎯 USER
│
▼
🎛️ @aiready/cli (orchestrator)
│ │ │ │ │ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
[PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST] [CTR]
│ │ │ │ │ │ │ │ │ │
└─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
│
▼
🏢 @aiready/core
Legend:
PAT = pattern-detect ★ CTX = context-analyzer
CON = consistency AMP = change-amplification
DEP = deps-health DOC = doc-drift
SIG = ai-signal-clarity AGT = agent-grounding
TST = testability CTR = contract-enforcement
★ = YOU ARE HERE
- Semantic Duplication: Detects code blocks that perform the same task with different syntax.
- Context Waste: Identifies how much duplicate code is bloat for AI context windows.
- Refactoring Suggestions: Recommends extraction points for shared utilities.
pnpm add @aiready/pattern-detectaiready scan . --tools pattern-detectMIT