Skip to main content
Arka can learn persistent natural-language routes — phrase → skill mappings stored in ~/.config/arka/learned_routes.json. Learned routes are checked early in the router, before symbolic rules.

Teach a route

Natural language:

Correct a routing mistake

After a request routes incorrectly, fix it from the last trace:
This pairs the trace input with the skill you intended.

Manage routes

Natural language:

Placeholders

Use {args} in the skill line to capture trailing text:

How matching works

  • Exact trigger matches run the skill line as-is.
  • Prefix matches append the remainder ("check servers in prod"system_monitor in prod).
  • Longer triggers win over shorter ones.
Learned routes use zero LLM tokens. They are ideal for team-specific shortcuts and correcting recurring misroutes.