/code:logic
Deploy multiple specialized logic analyzers in parallel to find bugs, edge cases, race conditions, and type safety issues in your code.
Quick Start
/agileflow:code:logic src/auth/Arguments
| Argument | Description |
|---|---|
[file|directory] | Target file or directory to analyze |
DEPTH=quick|deep | Analysis depth (default: quick) |
FOCUS=edge|invariant|flow|type|race|all | Focus on specific analysis type (default: all) |
How It Works
- Deploys 5 specialized analyzers in parallel:
- Edge case analyzer - Boundary conditions, off-by-one errors, empty inputs
- Flow analyzer - Dead code, unreachable branches, infinite loops
- Invariant analyzer - Pre/post conditions, state consistency
- Race condition analyzer - Async patterns, timing issues, shared state
- Type safety analyzer - Implicit coercion, null propagation
- Each analyzer independently examines the target code
- A consensus coordinator collects all findings and votes on severity
- Final report uses confidence scoring:
- CONFIRMED - 2+ analyzers agree (high confidence)
- LIKELY - 1 analyzer with strong evidence
- INVESTIGATE - 1 analyzer with weak evidence
Examples
# Quick audit of a specific file
/agileflow:code:logic src/auth/token.js DEPTH=quick
# Deep audit focusing on race conditions
/agileflow:code:logic src/server/ DEPTH=deep FOCUS=race
# Full audit of all types
/agileflow:code:logic lib/ DEPTH=deep FOCUS=all