Added create agent script

pull/5216/head
SwiftyOS 2023-09-14 16:35:03 +02:00
parent 840d6f6330
commit 0782aad3bf
1 changed files with 18 additions and 0 deletions

18
create_new_agent.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if [ "$1" == "--help" ]; then
echo "Usage: $0 new_agent_name"
echo "This script needs an agent name (no spaces) and it will create a new agent in the autogpts folder."
exit 0
fi
if [ -z "$1" ]; then
echo "Error: No agent name provided. Run $0 --help for usage."
exit 1
fi
new_name=$1
cp -r autogpts/forge autogpts/$new_name
echo "New agent $new_name created and switched to the new directory in autogpts folder."