> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Surgical editing

> Edit करने से पहले search करें और ambiguous बदलावों को अस्वीकार करें।

Edit करने से पहले search करें और ambiguous बदलावों को अस्वीकार करें:

```bash theme={null}
arka surgical-edit find src/app.py "target function"
arka surgical-edit edit src/app.py "old text" "new text" --yes
arka surgical-edit edit src/app.py "old text" "new text" --all --yes
```

Arka पहले matching lines print करता है, डिफ़ॉल्ट रूप से एक unique match की आवश्यकता होती है, एक `.bak` backup बनाता है, और जब keyword गायब या ambiguous हो तो कोई बदलाव नहीं करता। प्राकृतिक भाषा अनुरोध तब समर्थित होते हैं जब फ़ाइल और old/new text स्पष्ट रूप से quote किए गए हों।


## Related topics

- [Arka के साथ कोड कैसे लिखें](/hi/guides/code-with-arka.md)
- [Arka अन्य agents की तुलना में कैसा है](/hi/concepts/comparison.md)
- [Arka को Cloud और Web Platforms पर Deploy करें](/hi/guides/deploy.md)
