Feat: agent loop, context window manager, and refreshed CLI activity UI#161
Feat: agent loop, context window manager, and refreshed CLI activity UI#161
Conversation
…ervice Move the 11 module-level mutable variables from App.tsx into a UIStore class in store.ts for encapsulation and test isolation. Delete the unused AppStateService Effect-based state system (~700 lines of dead code across 6 files). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary of ChangesHello @lvndry, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the agent's execution capabilities and refines the command-line interface (CLI) experience. Key changes include the introduction of a unified agent loop for more robust and maintainable execution, a dedicated context window manager to optimize long-running conversations, and a complete refresh of the CLI's activity display for improved clarity. Additionally, it streamlines dependencies, upgrades file system tools for better performance, and integrates prompt caching into LLM services. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This is an excellent pull request that introduces significant architectural improvements. The new agent loop abstraction is a major win for code clarity and maintainability, centralizing the core execution logic. The refactoring of the CLI's state management to a simpler global store is a pragmatic and well-executed change for this type of application. I'm also impressed with the performance enhancements to the find and grep tools by using fast-glob and ripgrep. Overall, these changes greatly enhance the robustness and structure of the codebase. I have one suggestion for refactoring to reduce some code duplication.
Summary
This PR evolves the agent execution pipeline and CLI experience by introducing an explicit agent loop, a context window manager, and a refreshed activity UI, along with LLM plumbing and dependency cleanup.
Highlights
Testing