OpenRuna
Sign in

Anthropic / Claude Code — Edit

TOOL

Performs exact string replacements in files. Usage: - You must use your `Read` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. - When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix. The line number prefix format is: spaces + line number + tab. Everything after that tab is the actual file content to match. Never include any part of

View on GitHub

Overview

Free tool — Anthropic / Claude Code — Edit. Performs exact string replacements in files. Usage: - You must use your `Read` tool at least once in the conversation before editing. This tool will error if you attempt an

What this tool does

Looking for a dependable tool? "Anthropic / Claude Code — Edit" gives you a tested starting point instead of a blank prompt box. Performs exact string replacements in files. Usage: - You must use your `Read` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. - When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix. The line number prefix format is: spaces + line number + tab. Everything after that tab is the actual file content to match. Never include any part of It is catalogued next to similar resources on OpenRuna, so the rest of the toolkit you need is close by. Open a new conversation and paste it in, wire it into an agent, or keep it in your team's prompt library.

Use cases

  • Use "Anthropic / Claude Code — Edit" when you need a repeatable tool for professional work without rewriting instructions every time.
  • Hand "Anthropic / Claude Code — Edit" to a new teammate so their tool output matches your team's quality bar from day one.
  • Combine it with related tools and prompts in the same OpenRuna category to build an end-to-end workflow.
  • Reach for it during planning or review sessions when you want consistent, AI-assisted structure.

Example output

Ask the model to apply "Anthropic / Claude Code — Edit" to your scenario and it returns a structured answer — clear sections, actionable steps, and assumptions stated upfront — ready to paste into docs, tickets, or code comments. Expect 2–3 iterations to dial in tone and depth for your context.

Tips by platform

Claude

In Claude, paste the full tool as your first message or add it to Project instructions, then ask Claude to confirm assumptions before it executes. For longer tools, iterate inside the artifact panel.

ChatGPT

ChatGPT responds well when you paste this tool and immediately give one concrete example of your input. Use a reasoning-capable model for multi-step work.

Cursor

Cursor users can store this tool as a project rule so Agent mode applies it automatically. Mention it with @ when you want it scoped to a single task.

Frequently asked questions

What is "Anthropic / Claude Code — Edit"?
It is a tool listed on OpenRuna — Performs exact string replacements in files. Usage: - You must use your `Read` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. - When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix. The line number prefix format is: spaces + line number + tab. Everything after that tab is the actual file content to match. Never include any part of You can copy and adapt it for ChatGPT, Claude, Cursor, or any other AI assistant.
Is "Anthropic / Claude Code — Edit" free to use?
Most OpenRuna resources are open or CC0-licensed. Check the license shown on this page before commercial use; premium collections are clearly marked as such.
How do I get the best results from this tool?
Replace any placeholders, add your project context, and ask the model to confirm its assumptions first. Iterate over 2–3 follow-up turns rather than expecting a perfect first response.
Does "Anthropic / Claude Code — Edit" work with both Claude and ChatGPT?
Yes — it is model-agnostic text, so it runs on Claude, ChatGPT, Gemini, and Cursor. The tips on this page cover each of those assistants specifically.
Where can I find resources related to "Anthropic / Claude Code — Edit"?
Scroll to the Related resources section on this page, or open the matching category hub on OpenRuna to find connected prompts, tools, agents, and datasets in the same topic area.

Related resources