Conversation
Summary of ChangesHello @scidomino, 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 ability to operate effectively across different operating systems by introducing platform-aware system prompts. It ensures that agents receive and provide instructions tailored to the specific OS environment, improving the accuracy and usability of shell commands for tasks like file listing and temporary file inspection. Additionally, it refines the guidance for running background processes, promoting a more robust and consistent approach. 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 pull request introduces two key improvements to the system prompts to enhance agent quality, particularly on Windows. Firstly, it makes prompts platform-aware by providing Windows-specific command examples (like dir /s) alongside their Unix-like counterparts (ls -R). Secondly, it updates the instructions for running background processes, guiding the agent to use the more robust is_background parameter instead of the shell's & operator. The changes are well-implemented and thoroughly tested, including new unit tests that mock the operating system platform to ensure correctness. The code quality is high, and I have no further recommendations.
|
Size Change: +246 B (0%) Total Size: 23.7 MB ℹ️ View Unchanged
|
| if (interactive) { | ||
| return ` | ||
| - **Background Processes:** Use background processes (via \`&\`) for commands that are unlikely to stop on their own, e.g. \`node server.js &\`. If unsure, ask the user. | ||
| - **Background Processes:** To run a command in the background, set the \`is_background\` parameter to true. If unsure, ask the user. |
There was a problem hiding this comment.
Fyi @galz10 was it an error that we told the agent to use & instead of is_background?

Summary
Windows Specific Agent Quality & System Prompt
Related Issues
Fixes #17137
How to Validate
Run on windows (and non windows) and ask the agent if it sees os appropriate text.
Pre-Merge Checklist