feat: add /compact command (#278)

Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2025-12-18 12:47:05 -08:00
committed by GitHub
parent 02aa8c38c6
commit 1087ccc2c2
5 changed files with 153 additions and 7 deletions

View File

@@ -38,6 +38,13 @@ export const commands: Record<string, Command> = {
return "Clearing messages...";
},
},
"/compact": {
desc: "Summarize conversation history (compaction)",
handler: () => {
// Handled specially in App.tsx to access client and agent ID
return "Compacting conversation...";
},
},
"/logout": {
desc: "Clear credentials and exit",
handler: () => {