Tier 0: Hello World Quickstart
Run the simplest autonomous loop.
Prerequisites
- Python 3.8+
- Anthropic API key
Setup
# Clone the repo
git clone https://github.com/fbratten/8me.git
cd 8me
# Install dependency
pip install anthropic
# Set API key
export ANTHROPIC_API_KEY="sk-ant-..."
Run It
cd src/tier0-hello-world
python ralph_hello_world.py
What Happens
- Script reads
tasks.txt - Finds first task not marked
[DONE] - Sends to Claude
- Prints response
- Marks task
[DONE] - Repeats until all done
Sample Output
=== Starting Ralph Hello World Loop ===
Processing task: Write a haiku about programming
Claude's response:
Code flows like water
Through silicon valleys deep
Bugs bloom, then they die
Marked as done. Moving to next task...
...
=== All tasks completed! ===
Try It Yourself
Edit tasks.txt:
Write a limerick about debugging
Explain why the sky is blue
Give me a fun fact about loops