-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👻 💤 Experiencing a nightmare when agent0 stops exec code successfully of DLG endlessly #174
Comments
Sorry, I didn't understand much. Can you describe your issue clearly with examples? |
`Initializing framework... gpt-4o-mini embeddings: base_url='http://127.0.0.1:11434' model='all-minilm:l12-v2' embed_instruction='passage: ' query_instruction='query: ' mirostat=None mirostat_eta=None mirostat_tau=None num_ctx=None num_gpu=None num_thread=None repeat_last_n=None repeat_penalty=None temperature=0.0 stop=None tfs_z=None top_k=None top_p=None show_progress=False headers=None model_kwargs=None msg_keep_end: 10 ports: {'22/tcp': 50022, '11434/tcp': 11434} User message ('e' to leave):
Agent 0: Generating: Agent 0: Using tool 'call_subordinate': Reset: true Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Define patterns to search forpatterns = [r'sk', r'api', r'key', r'token'] Define folders to excludeexcluded_folders = ['venv', 'lib', 'bin'] Function to check if a folder should be excludeddef is_excluded(folder): Function to scan files for API keysdef scan_for_api_keys(directory): Scan the current directorycurrent_directory = os.getcwd() Prepare the JSON filejson_file_path = 'keys.json' Backup if the file already existsif os.path.exists(json_file_path): Save results to JSON filewith open(json_file_path, 'w') as json_file: Make the JSON file read-onlyos.chmod(json_file_path, 0o444) Starting existing container: agent-zero-exe for safe code execution... During handling of the above exception, another exception occurred: Traceback (most recent call last): SSH Connection attempt 1... Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Define patterns to search forpatterns = [r'sk', r'api', r'key', r'token'] Define folders to excludeexcluded_folders = ['venv', 'lib', 'bin'] Function to check if a folder should be excludeddef is_excluded(folder): Function to scan files for API keysdef scan_for_api_keys(directory): Scan the current directorycurrent_directory = os.getcwd() Prepare the JSON filejson_file_path = 'keys.json' Backup if the file already existsif os.path.exists(json_file_path): Save results to JSON filewith open(json_file_path, 'w') as json_file: Make the JSON file read-onlyos.chmod(json_file_path, 0o444) Agent 1 code execution output: Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Define patterns to search forpatterns = [r'sk', r'api', r'key', r'token'] Define folders to excludeexcluded_folders = ['venv', 'lib', 'bin'] Function to check if a folder should be excludeddef is_excluded(folder): Function to scan files for API keysdef scan_for_api_keys(directory): Scan the current directorycurrent_directory = os.getcwd() Prepare the JSON filejson_file_path = 'keys.json' Backup if the file already existsif os.path.exists(json_file_path): Save results to JSON filewith open(json_file_path, 'w') as json_file: Make the JSON file read-onlyos.chmod(json_file_path, 0o444) Agent 1 code execution output: Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Define patterns to search forpatterns = [r'sk', r'api', r'key', r'token'] Define folders to excludeexcluded_folders = ['venv', 'lib', 'bin'] Function to check if a folder should be excludeddef is_excluded(folder): Function to scan files for API keysdef scan_for_api_keys(directory): print('Starting the API key scan...') Scan the current directorycurrent_directory = os.getcwd() Prepare the JSON filejson_file_path = 'keys.json' Backup if the file already existsif os.path.exists(json_file_path): Save results to JSON filewith open(json_file_path, 'w') as json_file: Make the JSON file read-onlyos.chmod(json_file_path, 0o444) Agent 1 code execution output: Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Print the current directorycurrent_directory = os.getcwd() Check if 'keys.json' existsjson_file_path = 'keys.json' Agent 1 code execution output:
l> # Prepare the JSON file
Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Check if backup file existsbackup_file_path = 'keys_backup.json' Agent 1 code execution output: Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Check if backup file existsbackup_file_path = 'keys_backup.json' Check if keys.json existsjson_file_path = 'keys.json' Agent 1 code execution output: Agent 1: Generating: Agent 1: Using tool 'code_execution_tool': Code: Check for the existence of keys.json and keys_backup.jsonjson_file_path = 'keys.json' Check if keys.json existsif os.path.exists(json_file_path): Check if backup file existsif os.path.exists(backup_file_path): Agent 1 code execution output:
Check for the existence of d-only.(venv) root@8ae53fd318bf:~# python3 -c 'import os
Check for the existence of keys.json and keys_backup.jsonjson_file_path = '"'"'keys.json'"'"' Check if keys.json existsif os.path.exists(json_file_path): Check if backup file existsif os.path.exists(backup_file_path): Agent 1: Generating: Agent 0: Response from tool 'call_subordinate': Agent 0: Generating: Agent 0: reponse: User message (600s timeout, 'w' to wait, 'e' to leave):
Agent 0: Generating: Agent 0: Using tool 'code_execution_tool': Code: cat keys.json Agent 0 code execution output:
User intervention ('e' to leave, empty to continue):
User intervention ('e' to leave, empty to continue): |
basically i encounter 2 issues which are totally no go:
so first i would hardcode NEVER TO SAY TASK DONE unless at least something was checked, not trust agent1 even he will tell agent0 the task is done agent0 wont test (i told him to test i also told every manager to check his subs work once retuned and reassign thesame agent if its still not according to spec) guess what? not happpen either...they dont comm up chain only down chain...at least for me,,,what kind workflow can be realsitic in our world without reporting up chain...? i tried with field, they delete them, i try to make the files read only...they cant access them so the fill the folder with made up files. all i want is a simple task to be completed at agent0, since he cant run more than 10 times code, we start to dlg the task and like building the babel tower...i remain usually with a file with a few lines representing 0.5% the the work actually which was done - overwritten or not saved) and in the end the chunk that got the agent 0 is the only result of this very simple task agent 0 should have been able to accomplish....hint use the find cli cmd or ls -r .... or py code...many solutions...none chosen and the final output is usuless. any help even in the for of advice saying its the worng way to do it, try like this...would be great. i work with ag0 for a months and replace OS manchines updated vers but this err always encoutered in all, agents0 get tired. (many times follow by RED error usually when i leave it over night) |
main issues: when i give ag0 code to write it gets in to syntax issue very fast, and worst of all even if i told ag0 to never overwrite and create backps and versiioning if he assings a new agent while he need to instruct the new agent he summerizes the instruct n neglacts the dont delete the project files order and bunc of may odiiditonal orders he summerizes instead of either asing to file auto and making the next ageint read amd check mark the done tasks and subtask in the passed instruction and todo json file as default to each agent dlg to a sub.
OR fix the issue with agent0 getting suck unable to run code after a while, handle context window finish (gpt4mini read 128k win) we see err agent zero dont down (add a folback or reaset to last 10 heat 100 tail 100 to have context) dont exit the app.
allow a clear way to work without docker, i want to work on a digital ocean vm idcare it will be deastroty i just want to aloow the agent0 full freedom and infinite run run tuntil context window finished or rate limited...fallback plz, use open router, use many funcs toeasy fallback seamleslly from the user
plz take time to review i would be happy to collab reproduce assist and guide
The text was updated successfully, but these errors were encountered: