Who it is forA team whose agents regularly touch the same generated or config files and keep hitting Conflict errors on merges.
The problemTwo Commits that change the same file are refused with Conflict, which blocks merges on files where any version is acceptable.
The outcomeFiles named in a .lww rule never conflict, and the newest edit is kept, while other files still get the normal conflict check.
What you need first
- A DeepSeek Harness (dsh) setup with the dsh-layerfs plugin, as described in the LayerFS × DSH guide
- A project you want agents to work on
- Read the LayerFS 1.0.0 status note: the Store runs in its Disposable profile with no crash or power-loss durability, so keep a copy of anything you cannot rebuild
Steps
- Find the files that agents keep editing at the same time and that you are happy to overwrite with the newest version.
- Add those files to a .lww conflict rule in the project, following the Core ideas page at Layerfs.ai/docs/core-ideas/.
- Run the parallel agents on separate Branches as usual.
- Merge the Branches and check that the named files hold the newest edit.
- Check that files not named in the rule still stop with Conflict when two Commits change them.
Prompt for your agent
Using the LayerFS repo at https://github.com/Ephemeral-AI-Lab/layerfs, add a .lww rule for <file list> in <project path>, then merge two Branches that both edit those files. Report which edit was kept. Verify that an unnamed file changed on both Branches still produces a Conflict.
Caveat. The README describes .lww only at a high level, so check the Core ideas page for the exact rule syntax before you rely on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Ephemeral-AI-Lab/layerfs and "Let the newest agent edit win on chosen files"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer