{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "ephemeral-ai-lab-layerfs--rewind-and-branch-agent-history",
 "repo": "Ephemeral-AI-Lab/layerfs",
 "repo_url": "https://github.com/Ephemeral-AI-Lab/layerfs",
 "repo_slug": "ephemeral-ai-lab-layerfs",
 "title": "Rewind a project to an earlier Commit and branch from it",
 "page_title": "How to rewind a project to an earlier Commit and branch from it with Layerfs",
 "summary": "Keep every agent step as a Commit, then fork a new Branch from any earlier point.",
 "who": "A developer whose agent made a bad change several steps ago and who wants to return to a known good state without losing later work.",
 "problem": "Undoing agent edits by hand is slow and risky, and a plain copy of the project for each step takes a lot of space.",
 "outcome": "The project is restored to a chosen Commit on a new Branch, and the earlier Commits stay in the Store for comparison.",
 "steps": [
  "Set up LayerFS on your project using the LayerFS × DSH guide in dsh/README.md.",
  "Review the Commits on the Branch in the History tab to find the last good state.",
  "Fork a new Branch from that Commit, since any Commit can be forked at any depth.",
  "Have the agent continue its work on the new Branch.",
  "Merge the new Branch into main only after you have checked its result."
 ],
 "agent_prompt": "Using the LayerFS repo at https://github.com/Ephemeral-AI-Lab/layerfs, find the last good Commit on <branch name> and fork a new Branch from it. Report the Commit ID you chose and confirm the original Branch still exists. Verify that the new Branch starts with the files from that Commit.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Rewinding works through Branches and Commits, and nothing is deleted from the Store, but unmounting removes only the Workspace overlay, and the Store has no crash or power-loss durability.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ephemeral-ai-lab-layerfs/rewind-and-branch-agent-history/",
 "md": "https://dedupedai.com/use-cases/ephemeral-ai-lab-layerfs/rewind-and-branch-agent-history/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ephemeral-ai-lab-layerfs--rewind-and-branch-agent-history.json",
 "api_version": "v1"
}
