Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Feature Request: User-defined path variables / aliases for slash commands and @ references

Open iamhypernaut opened this issue 7 months ago • 2 comments

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)

iamhypernaut avatar Apr 23 '26 16:04 iamhypernaut

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!

github-actions[bot] avatar Apr 23 '26 16:04 github-actions[bot]

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.

AnilMaktala avatar Aug 17 '26 15:08 AnilMaktala