Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/cli/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export function sessionStartContext(raw: string, deps: HookDeps = {}): string {
const short = x.sessionId.slice(0, 8);
lines.push(`- "${x.name ?? short}" (session ${short}) — resume: \`agentctl resume ${short}\``);
}
lines.push(
'This list is a snapshot from when this session started; reminders get cleared from other sessions.' +
' Before mentioning any of them again later, run `agentctl annotations --due` and mention only what it still lists.',
);
}

lines.push(
Expand Down
1 change: 1 addition & 0 deletions tests/cli/hook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('sessionStartContext', () => {
expect(out).toContain('1 other session(s)');
expect(out).toContain('the other one');
expect(out).toContain('`agentctl resume bbbb`');
expect(out).toContain('agentctl annotations --due');
});

it('always ends with the tool list so the model knows the commands', () => {
Expand Down
Loading