Skip to content

Clear context after completing a workflow #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 8, 2025
Merged

Clear context after completing a workflow #117

merged 8 commits into from
May 8, 2025

Conversation

jakemac53
Copy link
Contributor

This significantly reduces token usage by continuously cleaning up history after each task.

The model decides when it is done and outputs the text 'workflow completed' which summarizes what was done, and only this summary is then retained in the context.

  • Also includes some unrelated cleanups that Gemini did, although I cleaned up a lot of those there were some worth keeping.

Copy link

github-actions bot commented May 7, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

Copy link

auto-submit bot commented May 8, 2025

autosubmit label was removed for dart-lang/ai/117, because - The status or check suite build (stable) has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jakemac53 jakemac53 merged commit d0eb3ee into main May 8, 2025
34 of 35 checks passed
@jakemac53 jakemac53 deleted the clear-context branch May 8, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants