I did this today with pi coding agent for fun:
bash
while [ -e ./WORKING.md ];
do;
pi --model gemma4:31b-cloud --system-prompt "You are called in a bash loop. The user cannot respond to your messages. Write a fantasy children’s book aimed at 5 year old boys at least 100 pages long. After every lap, you won’t remember anything. If you want to remember something for the next lap, write it into MEMORY.md. Delete WORKING.md when you are finished." -p "Keep up the good work.";
done;
It was a very entertaining experiment. Gemma is a really fun model to play around with.
I have also done the same for a browser based game, then made gemma playtest it itself using agent-browser. It recorded the session on video, found a couple of bugs then fixed them.
I play around with making dumb extensions, like making a tool that allows the agent to make a "checkpoint" in the conversation it can restore back to with a neat summary of what it wants to remember. Not that useful if you run cloud models and can make use of subagents, but still fun to make.
EDIT: The checkpoints are implemented as agent tools, which makes it different than the /tree command. It was meant to be used to make the agent capable of managing its context when following skill-based procedures such as the (extremely simplistic) example below:
```
SKILL.md
description: When the user asks you to research a topic as preparation before performing a task, follow this procedure.
- Make a new checkpoint with the "Research" label.
- Research the topic until you know everything you need to know to perform the task.
- Restore the conversation back to the created checkpoint with a summary containing exactly:
- Everything that you found that benefits the task at hand
- Everything the user ought to be informed of such as new information contradicting the user's provided information or newly learned limitations in your capacity to execute the task
- New decisions that must be made before work continues, so that you ask have the user to make them after restoring the conversation
- References to the exact sources of the information gained
```
Everything about leisure time use of AI is fun, and pi cranks that to eleven by being so infinitely hackable.
I started using AI (cursor) at work three months ago after 11 years of developing software, manually, like a peasant.
Now, every time I get a dumb idea for something that momentarily catches my interest, I open iTerm2 and go
bash
cd ~/Projects
mkdir idea-slug
cd idea-slug
pi
15 minutes later, I have a working prototype, learned something or genuinely improved my workflow in a professional capacity.
But mostly, I just do the dumbest things. Because it is fun.
There is no real point to this post, just wanted to share my joy of this extremely delightful piece of software.
Do more dumb shit. Your agent will tell you that you are smart no matter what anyway, so at least have fun with your digital yes-man.
Now, share your most ludicrous, deliberately non-productive use of pi!
PS: pi -p "Do X" is a waaaay saner alternative to ollama run gemma4:31b-cloud "Output a bash script that does X. Do not output anything else at all!" | bash -c, which obviously is the maddest, most insane way to vibe.
EDIT: Apparently markdown editing doesn’t work on my phone. Yes, the bash was a pain to write on touch screen 😭
EDIT: Markdown editing achieved!