Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Attempt Recovery of Corrupted Digital Files

Overview

Point Claude Code at copies of damaged documents, photos, audio or archives so it can identify each file's real format, describe the damage and try repairs that write only new files into a separate folder.

Problem or Objective

More in Home and Devices

AI Agents and Models

Tools and Integrations

Tools
Claude Code
Prerequisites
Claude Code installed and signed in, backups of the damaged files, and any open-source repair tools you choose to install.

How It Works

Back up the damaged files first and keep the originals somewhere Claude Code is not working. Make a working folder with an input folder holding copies and an empty output folder. Add a deny rule in Claude Code's permission settings so it cannot edit or delete anything in the input folder. Start Claude Code in the working folder and ask it to inspect each file: read the first bytes to find the real format, compare them with what that format should look like, and report whether the file looks truncated, has a broken header or a damaged index. For each file, ask it to propose a repair using open-source tools you already have installed or a short script, and approve each shell command when it asks. Repaired versions go only into the output folder under new names. Open every repaired file in its normal program and keep only those that really work; for anything irreplaceable that cannot be fixed this way, ask a professional recovery service before trying more.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Code.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Code.
  3. Check the prerequisitesClaude Code installed and signed in, backups of the damaged files, and any open-source repair tools you choose to install.
  4. Gather your detailsCollect what the prompt asks for: Folder with copies of damaged files, Kinds of files, Repair tools you already have, Folder for repaired copies.
  5. Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.

Practical Starter Prompt: Diagnose and repair file copies

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
The folder [Folder with copies of damaged files] holds copies of damaged files: [Kinds of files]. Do not modify or delete anything in it. For each file, read its first bytes, tell me its real format, and describe the damage you can see. Then propose one repair approach per file using tools already installed here ([Repair tools you already have]) or a short script, and wait for my approval of each command before running it. Write every repaired file only to [Folder for repaired copies] with "-repaired" added to the name. Finish with a table: file, damage found, repair tried, and whether the result opens.

Run this in Claude Code with a deny rule protecting the input folder and the manual permission mode, so each shell command waits for your approval. Open every repaired file yourself before deleting anything.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The Claude Code docs describe a tool that reads files, edits files and runs commands, with a tiered permission system and deny rules that block a tool. No cited page covers file repair, so whether any given file can be recovered depends on the damage and is untested here.

Limitations and Considerations

Many damaged files cannot be repaired, and a failed attempt on an original can make things worse, so only ever work on copies. In its manual permission mode Claude Code asks before shell commands; keep that mode on and read each command before you approve it. Files you share with the model are sent to the provider, so think twice before using it on private photos or confidential documents. Check that any repair tool Claude suggests comes from its official source before installing it. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)code.claude.com

Related Videos

About anthropics/claude-code

About anthropics/claude-code

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Overview - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC

    What this source supports
    • Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
  2. Configure permissions - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 12:09 UTC

    What this source supports
    • Claude Code uses a tiered permission system to balance power and safety.
    • Deny rules prevent Claude Code from using the specified tool.
Report a problem

More with Claude Code

Planned, not done

Create Custom Store Tools Instead of Paying for Subscriptions

Use Claude Code to write small in-house tools for an online shop, such as a reply helper for support mail or a margin report, as an alternative to paying for separate apps, with testing before you rely on them.

code.claude.comanthropics/claude-code
Reported by source

Answer technical questions by letting async agents run experiments

Simon Willison sends research questions to cloud coding agents such as Claude Code for web and Codex Cloud, which write and run experiments in a dedicated repo and open a PR.

simonwillison.net · 6 Nov 2025anthropics/claude-code, openai/codex
Planned, not done

Structure Repeated Browser Research Into Evidence Tables

Give Claude Code the open-source Browser Use CLI with a local browser, ask the same research questions across a short list of pages, and keep every answer as a sourced table row.

github.comanthropics/claude-code, browser-use/browser-use

View all: Claude Code