aws / aws/amazon-q-developer-cli
Add transcript export feature
- Lingua principale
- Rust
- Stelle
- 2k
- Fork
- 439
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I find exporting the current session transcript to a persistent file helpful for the following reasons:
1. We are still very early on the wave for adoption; being able to share a human-readable transcript so other colleagues can see both my thought process and the agent's thought process and how we iterate is very helpful
1. `q` CLI errors out quite often (on tool use or file read/write, surprisingly) and the solution is to quit the q session and restart, but this loses context. I tell q to read the transcript on the next session start to resume working
1. I often find value in the intermediate work done, not just the starting input and the ultimate refined output, and this tracks that over time
I found someone's `bash` function for doing this automatically when starting a `q chat` session:
```
function qchat {
local timestamp=$(date +"%Y%m%d_%H%M%S")
local logfile="$HOME/q_chat_logs/q_chat_$timestamp.txt"
mkdir -p $HOME/q_chat_logs
script -q /dev/null $(which q) chat | tee $logfile
echo "Chat session saved to $logfile"
}
```
This failed in `zsh` (returned immediately) due to the `script -q` invocation. I adapted it to `zsh`:
```
function qchat {
local timestamp=$(date +"%Y%m%d_%H%M%S")
local logfile="$HOME/q_chat_logs/q_chat_$timestamp.txt"
mkdir -p $HOME/q_chat_logs
$(which q) chat | tee -a $logfile
echo "Chat session saved to $logfile"
}
```
Making this native functionality of `q` would be very helpful.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando il punto di ingresso di q chat e confrontando l’output attuale della sessione con le soluzioni alternative bash e zsh descritte nell’issue. Il lavoro è completo quando q esporta nativamente la trascrizione della sessione corrente in un file persistente e leggibile dagli esseri umani, senza perdere il contesto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bash, rust, shell, zsh
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100