> ## 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).
> Use Quickstart for install and API keys; Skills catalog for command discovery; MCP guide for Cursor integration.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Inspect and remove text

> Inspect exact text matches before editing a file.

Use Arka to inspect exact text matches before editing a file:

```bash theme={null}
arka text inspect README.md "old phrase"
arka text remove README.md "old phrase" --yes
arka text remove README.md "old phrase" --all --yes
```

Removal creates a `.bak` backup by default. Without `--yes`, Arka only previews
the match count and makes no changes. Natural language requests such as
“inspect the text `old phrase` in README.md” are routed when the file and text
are quoted clearly.


## Related topics

- [Prompt optimization](/guides/prompt-optimization.md)
- [Bounded data collection](/guides/data-collection.md)
- [Hardware-aware model selection](/guides/select-model.md)
- [MCP integration for Cursor and Claude](/guides/mcp.md)
- [Voice control with wake word, STT, and TTS](/guides/voice.md)
