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

# Custom routes सिखाना

> Arka को phrase-to-skill mappings सिखाएँ जो sessions के बीच persist हों — routing mistakes सुधारें, shortcuts जोड़ें, और learned routes manage करें।

Arka **persistent natural-language routes** सीख सकता है: `~/.config/arka/learned_routes.json` में store किए गए phrase → skill mappings। Router learned routes को symbolic rules से पहले, जल्दी check करता है।

## एक route सिखाएँ

```bash theme={null}
arka route_learn learn "deploy staging" "agent_code run deploy.sh"
arka route_learn learn "my dashboard" system_monitor
```

प्राकृतिक भाषा:

```bash theme={null}
arka teach route "deploy staging" to "agent_code run deploy.sh"
arka learn that when I say "morning standup" means stock news
arka remember route "check disk" as disk_breakdown
```

## एक routing mistake सुधारें

एक request गलत route होने के बाद, पिछले trace से fix करें:

```bash theme={null}
arka route_learn learn --from-trace --correct "stock news"
```

यह trace input को उस skill के साथ pair करता है जो आप चाहते थे।

## Routes manage करें

| Command | विवरण |
| - | - |
| `arka route_learn list` | सभी learned routes सूचीबद्ध करें |
| `arka route_learn delete <id-or-phrase>` | एक route हटाएँ |
| `arka route_learn test <phrase>` | Preview करें कि एक phrase क्या चलाएगा |

प्राकृतिक भाषा:

```bash theme={null}
arka list learned routes
```

## Placeholders

Trailing text capture करने के लिए skill line में `{args}` उपयोग करें:

```bash theme={null}
arka route_learn learn "summarize repo" "github_repo activity {args}"
# "summarize repo Sumit884-byte/arka" → github_repo activity Sumit884-byte/arka
```

## Matching कैसे काम करता है

* Exact trigger matches skill line को as-is चलाते हैं।
* Prefix matches बचा हुआ append करते हैं (`"check servers in prod"` → `system_monitor in prod`)।
* लंबे triggers छोटों पर जीतते हैं।

<Tip>
  Learned routes शून्य LLM tokens उपयोग करते हैं। ये team-specific shortcuts और recurring misroutes सुधारने के लिए आदर्श हैं।
</Tip>

## संबंधित

* [Routing concepts](/concepts/routing) — symbolic rules और LLM fallback
* [CLI reference](/hi/guides/cli) — `route_learn` subcommands


## Related topics

- [Arka CLI command और flag reference](/hi/guides/cli.md)
- [AI agent guide — MCP पर Arka उपयोग करें](/hi/guides/ai-agents.md)
- [Arka troubleshooting: LLM, routing, voice, और RAG fixes](/hi/reference/troubleshooting.md)
- [GitHub dataset repos](/hi/guides/github-dataset.md)
- [Skills catalog: 70+ built-in Arka commands](/hi/guides/skills.md)


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