feat(plugins): add reflexion plugin for self-refinement#65
Conversation
Add reflexion plugin with 3 commands based on academic research: - /reflexion:reflect - Self-refinement with complexity triage - /reflexion:critique - Multi-agent review with 3 judges - /reflexion:memorize - CLAUDE.md context curation Based on Self-Refine and Reflexion papers (8-21% quality improvement). Closes #64
Summary of ChangesHello @amondnet, 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 integrates a powerful new "reflexion" plugin designed to significantly enhance the quality and reliability of large language model outputs. By incorporating structured self-refinement, multi-agent critique, and intelligent memory updates, the plugin aims to reduce errors, improve predictability, and foster continuous learning within the system. It provides a robust framework for iterative improvement, allowing for more precise and context-aware responses. Highlights
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 pull request introduces a new 'reflexion' plugin, which adds powerful self-refinement capabilities based on recent AI research. The implementation is well-documented through a comprehensive README and detailed command definitions in markdown. The prompts for the different commands (reflect, critique, memorize) are thorough and well-structured.
My review focuses on improving the accuracy and clarity of the documentation. I've found a few issues, mainly related to incorrect or inconsistent references to research papers and some copy-paste errors in the README. Correcting these will enhance the quality and credibility of the documentation. Overall, this is a great addition.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
=======================================
Coverage 38.71% 38.71%
=======================================
Files 59 59
Lines 6515 6515
=======================================
Hits 2522 2522
Misses 3993 3993 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add marketplace.json with code-please and reflexion plugin entries - Register context-engineering-kit submodule reference - Update progress tracking for reflexion plugin feature (Phase 6/8) - Update mcp-server-plugin submodule reference Related to #64
- Add trigger phrases to plugin.json description - Add trigger phrases to command descriptions (reflect, critique, memorize) - Add "When to Use" table to README.md Improves plugin discoverability as recommended by plugin-dev skill review.
- Fix swapped descriptions between critique and memorize commands in README - Fix inconsistent Self-Refine arXiv link (use 2303.17651 consistently) - Fix author name inconsistency in marketplace.json (PassionFactory) - Add repository field to plugin.json - Add trailing newline to marketplace.json
- Fix Agentic Context Engineering link (2510.04618 → 2405.04618) in 3 places - Fix Chain-of-Verification link (2305.13888 → 2309.11495) - Fix section numbering in memorize.md (7 → 6) Addresses review comments from gemini-code-assist[bot]
Summary
Add a reflexion plugin that implements self-refinement techniques based on academic research. This plugin introduces feedback and refinement loops to improve output quality.
Features
/reflexion:reflect- Self-refinement with complexity triage (Quick/Standard/Deep paths)/reflexion:critique- Multi-agent review with 3 specialized judges/reflexion:memorize- CLAUDE.md context curation using Agentic Context EngineeringScientific Foundation
Based on peer-reviewed research demonstrating 8-21% improvement in output quality:
Files Changed
Test Plan
/reflexion:reflectcommand execution/reflexion:critiquecommand execution/reflexion:memorizecommand executionCloses #64