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

# 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)
- [AI agent guide — use Arka over MCP](/guides/ai-agents.md)
- [Arka — AI terminal agent documentation](/index.md)
- [Long-term memory with Supermemory sync](/guides/memory.md)
- [Repo map](/guides/repo-map.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.