Tell the lead to compact only past half its context window

This commit is contained in:
Ian Gulliver
2026-10-15 18:54:05 -07:00
parent 11051b96c5
commit de394b8c35
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
}),
tool("compact_self",
"Ask byre to compact you when this turn ends: you write a handoff, and a fresh lead session continues from it. Call it at logical points, then end the turn with a short final message.",
"Ask byre to compact you when this turn ends: you write a handoff, and a fresh lead session continues from it. Call it only once your context is past half its window, at a logical point, then end the turn with a short final message.",
`{"type": "object", "properties": {}}`,
func(ctx context.Context, user api.User, raw json.RawMessage) (string, error) {
m.mu.Lock()