feat: agent-aware rename via command-io hints [LET-7755] (#1250)

This commit is contained in:
Devansh Jain
2026-03-03 16:12:53 -08:00
committed by GitHub
parent 28ba2e7e1f
commit fd59b8c46b
4 changed files with 33 additions and 4 deletions

View File

@@ -308,13 +308,20 @@ async function buildCommandIoReminder(
</user-command>`;
});
const agentHints = recent
.filter((entry) => entry.agentHint)
.map((entry) => `- ${entry.agentHint}`);
const droppedLine =
dropped > 0 ? `\nOmitted ${dropped} older command event(s).` : "";
const hintsBlock =
agentHints.length > 0 ? `\n\n${agentHints.join("\n")}` : "";
return `${SYSTEM_REMINDER_OPEN}
The following slash commands were executed in the Letta Code harness since your last user message.
Treat these as execution context from the CLI, not new user requests.${droppedLine}
${commandBlocks.join("\n")}
${commandBlocks.join("\n")}${hintsBlock}
${SYSTEM_REMINDER_CLOSE}
`;