gpt-engineer
gpt-engineer copied to clipboard
Improve `--sysinfo` by providing version data and env variables insights
Feature description
Enhance the --sysinfo option to include additional useful and relevant information:
- Indicate the version of gpt-engineer that is running, and specify whether it is a released version or a development version (installed via pip or from GitHub repo).
- Include the output of which environment variables are set, ensuring that API key values and other sensitive data are masked. The focus is to verify that these variables are correctly set without exposing their values.
Motivation/Application
This feature is useful for several reasons:
- Version tracking - Knowing the exact version of gpt-engineer in use helps us diagnose issues more effectively, distinguishing between potential bugs in released versions and bugs in the dev version.
- Environment configuration insight - Including environment variables in the sysinfo output will provide valuable context about the user's setup, aiding in the debugging process while maintaining security by masking sensitive information.
- Security compliance - Masking API keys and other sensitive information in environment variables ensures no sensitive data is inadvertently exposed, maintaining user trust and compliance with security best practices.
Enhancing the --sysinfo option with these capabilities can streamline the debugging process, improve security, and provide clearer insights into user environments. This will enable us to resolve issues more quickly and achieve greater stability in our software.
I'm labeling this as a good first issue, too!
@viborc LGTM!
@Vikranth3140 or @satya-nutella, each of you have previously been involved in the gpte --sysinfo option. @Vikranth3140 wrote the current implementation. We'd welcome PRs from either of you and, obviously, new contributors!
@captivus Sure, I will work on this issue and update soon.
Hi! I'm interested in contributing to this issue. I see @Vikranth3140 has already indicated interest and there's a PR open. If this is still available or if there are other related improvements needed, I'd be happy to help!