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

# Supermemory code RAG

> Index code for retrieval-augmented advice with Supermemory.

Normal memories remain opt-in and unchanged. To explicitly index code for
retrieval-augmented advice, use:

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

Arka stores bounded chunks with file path, language, line ranges, `code` tags,
and project trust metadata. This improves targeted retrieval without silently
uploading an entire repository. Review your privacy and API settings before
using cloud mode; `MEMORY=local` keeps the chunks local.


## Related topics

- [Troubleshooting Arka: LLM, routing, voice, and RAG fixes](/reference/troubleshooting.md)
- [Arka — AI terminal agent documentation](/index.md)
- [Repo map](/guides/repo-map.md)
- [Long-term memory with Supermemory sync](/guides/memory.md)
- [How to code with Arka](/guides/code-with-arka.md)
