sprawl graft
📌 1. The Target Problem
Over time, codebases accumulate multiple conflicting rules files (Cursor, Cline, Windsurf) representing different developer settings. AI agents reading these files get confused. Deleting them breaks custom setups, while leaving them wastes token budgets.
⚙️ 2. Usage & Options
sprawl graft
Options & Flags
--verbose: Dump diagnostic file traversal logs during migration.
🔍 3. How it Works (Under the Hood)
- Scans the active directory recursively for files like
.cursorrules,.clinerules, or.windsurfrules. - Harvests their contents, placing them inside
.agents/rules/prefixed withlocal_. - Registers these local files inside the newly generated
sprawl_manifest.ymlmanifest, converting them into version-controlled baseline assets.
🩺 4. Troubleshooting
- Error: Not in a git repository
- Resolution: Sprawl graft operates in existing git workspaces. Ensure you are in the root directory of your git project.