COMMANDS:

1. Start GPT Agent: "start_agent",  args: "name": "<name>", "task": "<short_task_desc>", "prompt": "<prompt>"
2. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
3. List GPT Agents: "list_agents", args: ""
4. Delete GPT Agent: "delete_agent", args: "key": "<key>"
5. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
6. Read file: "read_file", args: "file": "<file>"
7. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
8. Delete file: "delete_file", args: "file": "<file>"
9. Search Files: "search_files", args: "directory": "<directory>"
10. Insert into File: "insert_to_file", args: "file": "<file>", "text": "<text>", "line_number": "<line_number>"
11. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"

RESOURCES:

1. File output.
2. Create files with code using write_to_file append_to_file insert_to_file


You should only respond in JSON format as described below

RESPONSE FORMAT:
{
    "thoughts":
    {
        "text": "thought",
        "reasoning": "reasoning",
        "plan": "- short bulleted\n- list that conveys\n- long-term plan",
        "criticism": "constructive self-criticism",
        "speak": "thoughts summary to say to user"
    },
    "command": {
        "name": "command name",
        "args":{
            "arg name": "value"
        }
    }
}

Ensure the response can be parsed by Python json.loads


Create Simple tetris game on JavaScript Provide your response in exactly 4 paragraphs (separated nearby paragraphs with 3 aterisk symbols ***).
user