feat(tools): add loop-sync CLI for drift detection and configuration …#47
Open
hsms4710-pixel wants to merge 1 commit into
Open
feat(tools): add loop-sync CLI for drift detection and configuration …#47hsms4710-pixel wants to merge 1 commit into
hsms4710-pixel wants to merge 1 commit into
Conversation
…sync - Detect drift between STATE.md ↔ LOOP.md - Check for missing required files (STATE.md, LOOP.md, AGENTS.md) - Scan skills directory for version information - Calculate consistency score (0-100) with health levels - Provide actionable suggestions for fixing issues - Support JSON and human-readable output formats - Include comprehensive test suite This tool helps teams maintain consistent Loop configurations across their repositories and detect configuration drift early. Closes #none (new feature)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces
loop-sync, a new CLI tool that detects drift betweenSTATE.mdandLOOP.mdfiles. This addresses a common pain point in Loop Engineering workflows where state and loop definitions can become out of sync over time.Problem
When maintaining Loop Engineering projects, developers often find:
Solution
loop-syncprovides:Files Added
tools/loop-sync/src/sync.ts- Core sync logic (drift detection, scoring, suggestions)tools/loop-sync/src/cli.ts- CLI interfacetools/loop-sync/test/sync.test.mjs- Comprehensive test suitetools/loop-sync/package.json- Package configurationtools/loop-sync/README.md- Usage documentationFeatures:
Usage:
npx @loop-engineering/cli loop-sync --state STATE.md --loop LOOP.md
npx @loop-engineering/cli loop-sync --state STATE.md --loop LOOP.md --json
Example Output
Analyzing sync status... State: STATE.md Loop: LOOP.md
📊 Consistency Score: 75/100
[INFO] Goal section in STATE.md differs from LOOP.md Suggestion: Run 'loop-sync --fix' to synchronize
✅ Suggestions: 3 actionable items
Testing