aws / aws/amazon-q-developer-cli

Allow postToolUse Hook to run after the Agent is finished (instead of after all usages)

Aperta
#3,034 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I've been playing with the postToolUse (introduced in #2875) hook a bit, I think it's a good place for us to automatically run linters/tests, but as it sits, it will run every single time the Agent writes something. As you know, sometimes the Agent writes the whole file in a single shot, sometimes it just adds an import statement. Running linter/test every single time we write one line is going to take longer than what we'd save with a "run linter/test" prompt after it's done.

My proposal would be to allow us to run postToolUse when the Agent is ready to hand over the control to us. This would allow it to do everything it wants, and then we'd run the linter/tests, feeding the output (if wrong) back to the LLM.

Let me know your thoughts on it

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Leggi l’implementazione di postToolUse introdotta in #2875 e traccia quando vengono gestiti gli utilizzi degli strumenti e il completamento dell’Agent. Determina come attivare l’hook quando l’Agent è pronto a restituire il controllo, invece che dopo ogni scrittura; il lavoro è completato quando viene eseguito dopo che l’Agent ha terminato il proprio lavoro e può restituire l’output del linter o dei test all’LLM.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
ai, cli
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.