sprawl diff
📌 1. The Target Problem
When working on customized local workspaces, you may accidentally modify rules or miss updates pushed to the central DNA repository, leading to drift in configuration standards.
⚙️ 2. Usage & Options
sprawl diff [workspace_path]
Options & Flags
workspace_path: Optional workspace path (defaults to current folder).
🔍 3. How it Works (Under the Hood)
- Performs hash-based checksum calculations on rules, skills, and files in the active DNA template path.
- Compares local hashes against
~/.sprawl/core/registry rules, printing line-by-line file diffs.
🩺 4. Troubleshooting
- Drift is detected but we want to restore DNA baseline
- Resolution: Run
sprawl syncto force-refresh rules files and overwrite any un-committed local alterations.