aws / aws/amazon-q-developer-cli

ux: /compact should show before/after context usage

Offen
#1,372 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Rust
Sterne
2k
Forks
439
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

As an extension of #1313 , we should show before and after usage stats, so that we can understand the impact of both compaction and user rules files on the size of the requests they are sending to the model.

eg.
Current context window
Current context window (190k of 200k tokens used)
███████████████████████████████████████████████████████████████████████████████|█ 98.60%

█ Context files: ~30850 tokens (15.42%)
█ Q responses: ~32360 tokens (0.18%)
█ Your prompts: ~492301 tokens (83.00%)

Compacting.....
✔ Conversation history has been compacted successfully!

• The assistant has access to all previous tool executions, code analysis, and discussion details
• The assistant will reference specific information from the summary when relevant

New context window (31200 of 200k tokens used)
████████████|████████████████████████████████████████████████████████████████████ 15.60%

█ Context files: ~30850 tokens (15.42%)
█ Q responses: ~360 tokens (0.18%)
█ Your prompts: ~0 tokens (0.00%

════════════════════════════════════════════════════════════════════════════════
CONVERSATION SUMMARY
════════════════════════════════════════════════════════════════════════════════

lots of text
This summary is stored in memory and available to the assistant.
It contains all important details from previous interactions.
════════════════════════════════════════════════════════════════════════════════

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne bei der Implementierung des Befehls /compact und verfolge, wo dessen Statusausgabe zusammengestellt wird. Vergleiche die im Issue gezeigten Werte für context-usage vorher und nachher, einschließlich Kontextdateien, Antworten und Prompts; abgeschlossen ist die Aufgabe, wenn der Befehl beide Statistikmengen und das Komprimierungsergebnis eindeutig meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.