OpenRuna
Sign in

Same.dev — string_replace

TOOL

Performs exact string replacements in files. Use this tool to make small, specific edits to a file. For example, to edit some text, a couple of lines of code, etc. Use edit_file for larger edits. Ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix added by the read_file tool. Only use this tool if you are sure that the old_string is unique in the file, otherwise use the edit_file tool. The edit will FAIL if `old_string` is not unique in the file.

View on GitHub

Overview

Same.dev — string_replace: a free, copy-ready tool on OpenRuna. Performs exact string replacements in files. Use this tool to make small, specific edits to a file. For example, to edit some text, a couple of lines of code, etc. Use ed

What this tool does

Reach for "Same.dev — string_replace" whenever you need a reliable tool for real work across ChatGPT, Claude, Gemini, and Cursor. Performs exact string replacements in files. Use this tool to make small, specific edits to a file. For example, to edit some text, a couple of lines of code, etc. Use edit_file for larger edits. Ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix added by the read_file tool. Only use this tool if you are sure that the old_string is unique in the file, otherwise use the edit_file tool. The edit will FAIL if `old_string` is not unique in the file. On OpenRuna it sits inside a connected graph of related tools, tools, and datasets, so branching into adjacent resources is one click away. Copy it into your assistant of choice and sharpen the result with a couple of follow-up turns.

Use cases

  • Fork it as a baseline and layer in your own project context, constraints, and examples.
  • Keep it in a shared library as the canonical version of this tool for your organisation.
  • 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 "Same.dev — string_replace" 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. A short follow-up turn usually tightens the result to exactly what you need.

Tips by platform

Claude

Claude works best when you paste this tool up front and ask it to outline its plan before writing. Use the artifact panel to refine structured output turn by turn.

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 "Same.dev — string_replace"?
It is a tool listed on OpenRuna — Performs exact string replacements in files. Use this tool to make small, specific edits to a file. For example, to edit some text, a couple of lines of code, etc. Use edit_file for larger edits. Ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix added by the read_file tool. Only use this tool if you are sure that the old_string is unique in the file, otherwise use the edit_file tool. The edit will FAIL if `old_string` is not unique in the file. You can copy and adapt it for ChatGPT, Claude, Cursor, or any other AI assistant.
Is "Same.dev — string_replace" 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 "Same.dev — string_replace" 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 "Same.dev — string_replace"?
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