aws / aws/amazon-q-developer-cli
Prompt Configuration
- 主要言語
- Rust
- スター
- 2k
- フォーク
- 439
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
# Feature Request: Add Custom Q CLI Prompt Configuration
## Description
Add the ability for users to customize their Q CLI prompt through configuration settings. This would allow users to personalize their command-line experience and optimize their workflow by displaying relevant information in their prompt.
This would include, but not be limited to, context usage information (once context usage is exposed to end users).
## Background
Currently, the Q CLI uses a default prompt that cannot be easily customized by users. Many modern shells (bash, zsh, fish) support rich customization options that improve user experience and productivity.
## Proposed Solution
Implement a configuration system that allows users to:
- Define custom prompt formats using variables and formatting options
- Include dynamic information such as:
- Command execution time
- Exit status of previous command
- (Once available) context usage information
- (Nice to have) Set different prompts for different profiles
## User Experience
Users should be able to configure their prompt through:
1. A configuration file (e.g., `~/.amazonq/.promptrc` or other)
2. Environment variables for quick overrides
3. Optional: A simple CLI tool to help build and preview prompts
## Technical Considerations
- Ensure prompt rendering is performant (slow prompts degrade UX)
- Support for color and formatting using standard ANSI escape sequences
- Compatibility with different terminal emulators
- Extensibility to allow for future additions of new variables/information
## Acceptance Criteria
- Users can define custom prompt formats in a configuration file
- Documentation clearly explains available variables and formatting options
- Performance impact is minimal (prompt generation < 50ms)
- Works consistently across supported operating systems and terminals
- Includes at least 3 example prompt configurations for common use cases
コントリビューションガイド
調査の方向性
この issue では、ファイル、テスト、エントリポイントが指定されていません。まず Q CLI プロンプトの実装と既存の設定処理を見つけ、次に、提案されている設定、変数、ターミナルのフォーマット、プロファイル、クロスプラットフォームの動作がどのように組み合わさるかを確認してください。受け入れ条件を満たし、3 つの例で文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100