{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "hamedgitty-bloks--rehearse-file-changes-before-applying",
 "repo": "hamedgitty/bloks",
 "repo_url": "https://github.com/hamedgitty/bloks",
 "repo_slug": "hamedgitty-bloks",
 "title": "Rehearse a risky file change before it touches your folder",
 "page_title": "How to rehearse a risky file change before it touches your folder with Bloks",
 "summary": "Let an agent do a task on a copy of your folder, compare attempts, and apply only the one you want.",
 "who": "A person who wants an agent to reorganise or edit files in a working folder but does not want the first attempt to land in the real folder.",
 "problem": "An agent that edits the real folder directly can leave changes you did not expect, and sorting them out afterwards is slow.",
 "outcome": "You see the changes as a card with Apply and Discard, and applying writes only files you have not changed since the rehearsal started.",
 "steps": [
  "Describe the task to the agent in the message box, such as renaming and sorting the files in a folder.",
  "Press the flask beside the microphone so the agent works on an instant copy of its folder.",
  "Pick other agents in the same bar if you want them to rehearse the same task on their own copies.",
  "Compare the attempts side by side in the Rehearsals panel and read each change card.",
  "Press Apply on the attempt you want, or Discard to drop it; then undo from the card if needed."
 ],
 "agent_prompt": "Using the Bloks repo at hamedgitty/bloks, rehearse the task <task-description> on a copy of the folder <target-folder> with the agent in Bloks. Expected output: a change card listing each changed file with its line count and diff, with Apply and Discard buttons. Verify that the real folder <target-folder> is unchanged until you press Apply.",
 "agents": [
  "claude-code",
  "codex",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Rehearsals work on a copy of the folder, so anything the agent does outside that folder is not covered by the rehearsal.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "typescript",
 "requirements": [
  "The Bloks desktop app installed on your machine",
  "At least one provider you can use: a Claude Code, Codex or Gemini CLI you already signed in to, or an API key for a chat engine",
  "A project folder or files the agent is allowed to work in",
  "For the iPhone steps: the Bloks iPhone app and a six digit pairing code from your Mac"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hamedgitty-bloks/rehearse-file-changes-before-applying/",
 "md": "https://dedupedai.com/use-cases/hamedgitty-bloks/rehearse-file-changes-before-applying/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/hamedgitty-bloks--rehearse-file-changes-before-applying.json",
 "api_version": "v1"
}
