> ## 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.

# Supermemory 代码 RAG

> 使用 Supermemory 索引代码，实现检索增强的建议。

普通内存保持按需启用且不变。若要显式索引代码以获得检索增强的
建议，请使用：

```bash theme={null}
arka supermemory remember-code src/arka/router.py
arka supermemory remember-code src/arka/router.py --chunk-lines 160
```

Arka 会存储带边界的分块，包含文件路径、语言、行范围、`code`
标签以及项目信任元数据。这样能提升定向检索能力，而不会静默
上传整个仓库。在使用云端模式前请审阅隐私和 API 设置；
`MEMORY=local` 会将分块保留在本地。


## Related topics

- [Arka 故障排查：LLM、路由、语音与 RAG 修复](/cn/reference/troubleshooting.md)
- [AI 智能体指南 — 通过 MCP 使用 Arka](/cn/guides/ai-agents.md)
- [Arka 与其他智能体的对比](/cn/concepts/comparison.md)
- [如何用 Arka 写代码](/cn/guides/code-with-arka.md)
- [命令别名、子命令同义词与技能名](/cn/reference/aliases.md)
