OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Memory Management & Context Condense for CodeAct Agent

Open xingyaoww opened this issue 1 year ago • 6 comments

What problem or use case are you trying to solve?

Currently, CodeAct is bounded by the context window of a particular LLM. While this provides simplicity, actual long-range tasks require longer interaction (e.g., even more than 500 turns). So, how to effectively condense the context window is the next major point of improvement.

Describe the UX of the solution you'd like

Maintains a fixed context around 32k (which is good enough for most open-source LLMs), and if context go beyond 32k, condense it back to 32k. We probably need to do it a bit conservative: don't condense unless absolutely needed.

The agent should have a way to access their original memory (e.g., by open some files that contains its past interaction in the sandbox).

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

xingyaoww avatar May 12 '24 21:05 xingyaoww

@xingyaoww we moved the memory mgmt stuff into a common folder, so you should be able to get this pretty easily!

rbren avatar May 14 '24 18:05 rbren

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 14 '24 01:06 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 11 '24 01:08 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 16 '24 01:09 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 18 '24 01:10 github-actions[bot]