Alice  by greshake

Agentic tool giving ChatGPT terminal access

created 2 years ago
373 stars

Top 77.1% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a framework for enabling large language models like ChatGPT to interact with a real terminal, allowing them to execute commands, manipulate files, and perform system-level tasks. It targets researchers and power users interested in exploring the capabilities and safety implications of AI agents with direct system access. The primary benefit is demonstrating a proof-of-concept for AI-driven terminal operations, offering a glimpse into future AI-powered system management.

How It Works

The core approach involves extensive prompt engineering, using "magic strings" and a control loop to convince the LLM it has access to a terminal. At each step, the model generates terminal commands based on the user's prompt. These commands are executed, and their output (stdout/stderr) is fed back to the LLM, enabling it to correct errors, refine its actions, or provide a natural language summary. This iterative feedback loop allows the AI to perform multi-step tasks, albeit with current limitations.

Quick Start & Requirements

This project does not run out of the box. It requires a custom setup involving an OpenAI API (currently not publicly released or documented for this purpose) or a reversed API implementation, which may violate OpenAI's Terms of Service.

Highlighted Details

  • Demonstrates AI's ability to generate and execute terminal commands for tasks like file manipulation and system queries.
  • Utilizes prompt injection techniques to overcome LLM limitations and perceived lack of system access.
  • Includes a control loop for iterative command execution and feedback processing.
  • Raises awareness and discussion around AI safety and the implications of AI agents with system privileges.

Maintenance & Community

This appears to be a personal experimentation project by a single developer. There are no explicit mentions of community channels, roadmaps, or ongoing maintenance efforts.

Licensing & Compatibility

The repository does not specify a license. The README implies potential violation of OpenAI's Terms of Service for usage.

Limitations & Caveats

The project is experimental and not production-ready. ChatGPT frequently confabulates terminal output, adds unnecessary explanations to commands, and struggles with complex, multi-step tasks. The LLM also often insists it lacks computer access, requiring significant prompt engineering to mitigate.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems) and Pliny the Liberator Pliny the Liberator(Founder of Pliny).

L1B3RT4S by elder-plinius

1.0%
10k
AI jailbreak prompts
created 1 year ago
updated 1 week ago
Feedback? Help us improve.