Skip to main content

General automation driver

Project description

ZAMM

Teach GPT how to do something, and have it do it for you afterwards. This is good for boring but straightforward tasks that you haven't gotten around to writing a proper script to automate.

We are entering a time when our target audiences may include machines as well as humans. As such, this tool will generate tutorials that you can edit to make pleasant for both humans and LLMs alike to read.

This is an experimental tool, and has only been run on WSL Ubuntu so far. It seems to work ok on the specific examples below. YMMV. Please feel free to add issues or PRs.

Quickstart

Teach GPT to do something:

zamm teach

You will be roleplaying the LLM. Sessions are recorded in case a crash happens, or if you want to change something up. On Linux, sessions are saved to ~/.local/share/zamm/sessions/. To continue from a previous session, run:

zamm teach --session-recording <path-to-recording>

Once a session finishes, you can use the newly generated tutorial file to do something. For example, to run the recording I made at zamm/resources/tutorials/hello.md:

zamm execute --task 'Write a script goodbye.sh that prints out "Goodbye world". Execute it.' --documentation zamm/resources/tutorials/hello.md

Note that GPT successfully generalizes from the tutorial to code in a completely different language based just on the difference in filenames. Imagine having to manually add that feature to a script!

Free-styling

You can also simply tell the LLM to do something without teaching it to do so beforehand. However, this is a lot more brittle. An example of a free-style command that works:

zamm execute --task 'Write a script hello.py that prints out "Hello world". Execute it.'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zamm-0.0.1.tar.gz (48.1 kB view hashes)

Uploaded Source

Built Distribution

zamm-0.0.1-py3-none-any.whl (64.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page