AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Allow users to Disable Commands via the .env

Open ntindle opened this issue 2 years ago • 4 comments

Background

This depends on #3663. There exist many requests to disable plugins selectively.

Changes

Adds a .env.template config to selectively disable any of the built-in commands.

Documentation

Added to .env.template. Will make a PR for docs as well

Test Plan

Manual Testing

PR Quality Checklist

  • [x] My pull request is atomic and focuses on a single change.
  • [x] I have thoroughly tested my changes with multiple different prompts.
  • [x] I have considered potential risks and mitigations for my changes.
  • [x] I have documented my changes clearly and comprehensively.
  • [x] I have not snuck in any "extra" small tweaks changes

ntindle avatar May 02 '23 05:05 ntindle

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2023 11:52pm

vercel[bot] avatar May 02 '23 05:05 vercel[bot]

I am not sure if the .env is the right place for this, assuming that sub-agents may also need to be constrained accordingly ?

Boostrix avatar May 02 '23 08:05 Boostrix

Totally same page but one change per PR and this is trying to get it out the door rather than make it perfect up front. Once the command registry is moved into the agent (or a manager of it) this will largely move elsewhere

ntindle avatar May 02 '23 15:05 ntindle

Will this allow to disable the creation of python "helper" scripts? if so, it's related with issue https://github.com/Significant-Gravitas/Auto-GPT/issues/3428

Kenshiro-28 avatar May 02 '23 16:05 Kenshiro-28

Codecov Report

Patch coverage: 20.00% and project coverage change: +0.11 :tada:

Comparison is base (d744280) 60.81% compared to head (3314378) 60.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3667      +/-   ##
==========================================
+ Coverage   60.81%   60.92%   +0.11%     
==========================================
  Files          72       72              
  Lines        3297     3294       -3     
  Branches      538      541       +3     
==========================================
+ Hits         2005     2007       +2     
+ Misses       1156     1150       -6     
- Partials      136      137       +1     
Impacted Files Coverage Δ
autogpt/main.py 0.00% <0.00%> (ø)
autogpt/config/config.py 75.60% <50.00%> (-0.65%) :arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar May 03 '23 23:05 codecov[bot]