google-gemini / google-gemini/gemini-cli

Task aware compression and memories

Open
#23,323 6 comments 0 reactions 0 assignees View on GitHub
area/agent kind/enhancement priority/p1 status/bot-triaged
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

### What would you like to be added?

When using the new task management system, it would be nice if gemini would manage memory compression in a context-aware way. For example, not compressing the current task, and compression tasks one at a time in a way that highlights the relevance to future tasks rather than pure summaries.

This could go even further with task-based memory extraction/saving, allowing gemini to search past tasks and load the memory of ones similar to what it's currently working on. For example, last week when it was also making changes in this area of the code.

### Why is this needed?

Gemini, like all agents, degrades as the context grows and has trouble "remembering" things from the past sessions. The introduction of tasks could serve as boundaries and metadata to help manage the context.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.