Feature Request: User-defined path variables / aliases for slash commands and @ references
Feature Request
Kiro CLI has no mechanism for user-defined variables or path aliases.
Commands like /context add, @ file references, and agent resource
paths all require fully spelled-out literal paths.
Use case:
Frequently referenced directories (e.g., ~/.kiro/context/, a shared
docs folder, a monorepo subpath) require typing the full path every time.
A variable system would reduce friction:
$contextdir = ~/.kiro/context
/context add $contextdir/DEVOPS-1234.md
@$contextdir/DEVOPS-5678.md
Suggested scope:
- Define variables in a config file (e.g., ~/.kiro/settings or agent config)
- Expand them in /context add, @ file references, and agent resource paths
- Support ~ expansion in @ references as well (currently not supported)
Thanks for submitting this feature request! 🎉 The idea of supporting user-defined path variables and aliases to streamline slash commands and @ references is a really thoughtful quality-of-life improvement. A maintainer will take a look at this soon — we appreciate you taking the time to lay out the use case and suggested scope so clearly!
We're doing a periodic backlog review and noticed this issue has been inactive for several months. Kiro has shipped a lot of changes since this was filed — we're now on IDE 1.0.309 and CLI 2.18.1 — and without any community uptake, we can't confidently prioritize it.
Closing to keep the backlog focused, but not as a dismissal. If you're still seeing this or others share the same experience, a new issue with your current version and any updated details would help us pick it back up. Issues with 👍 reactions from the community rise to the top fastest.