Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/goal-mode/MOD.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The mod registers snake_case and PascalCase aliases so different toolsets can ca

## Turn reminders

While a goal is active, the mod prepends a reminder that includes the goal objective, status, budget, and completion-audit rules. The reminder tells the agent to use `<goal_status>complete</goal_status>` only after the goal is actually achieved.
While a goal is active, the mod adds passive turn context that includes the goal objective, status, budget, and completion-audit rules. The reminder tells the agent to use `<goal_status>complete</goal_status>` only after the goal is actually achieved.

## State

Expand Down
5 changes: 4 additions & 1 deletion packages/goal-mode/mods/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ export default function activate(letta) {
if (!goal || goal.status !== "active") return;
const updatedGoal = setGoal(event.conversationId, updateUsage(goal, ctx));
return {
input: [{ role: "user", content: buildGoalReminder(updatedGoal) }, ...event.input],
queueItems: [
...event.queueItems,
{ kind: "context", content: buildGoalReminder(updatedGoal) },
],
};
}),
);
Expand Down
4 changes: 2 additions & 2 deletions packages/goal-mode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@letta-ai/goal-mode",
"version": "0.1.0",
"version": "0.1.1",
"description": "Letta Code mod package that adds goal mode with goal commands, tools, and turn reminders.",
"author": "kl2806",
"license": "Apache-2.0",
Expand All @@ -26,7 +26,7 @@
"mods": ["./mods/index.ts"],
"capabilities": ["commands", "tools", "events.turns"],
"engines": {
"lettaCodeCli": ">=0.27.14"
"lettaCodeCli": ">=0.30.15"
}
}
}
Loading