aws / aws/amazon-q-developer-cli
Prompt Configuration
- Lenguaje dominante
- Rust
- Estrellas
- 2k
- Forks
- 439
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
# 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
Guía de contribución
Línea de trabajo
El issue no menciona archivos, pruebas ni puntos de entrada. Empieza por localizar la implementación del prompt de Q CLI y la gestión de configuración existente; después, determina cómo encajan entre sí la configuración propuesta, las variables, el formato del terminal, los perfiles y el comportamiento multiplataforma; se considera terminado cuando se cumplen los criterios de aceptación y se documentan con tres ejemplos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100