Skip to content
Arpit Jalan
Go back

Tinkering with Pi

Most days I use term-llm as my agent harness, which connects the model to my tools and keeps track of the conversation. I find OpenClaw and Hermes Agent heavier than I need for day-to-day work. Usually I just want to open a browser tab and read a diff alongside the conversation, and that’s what I enjoy about term-llm’s web UI.

I’ve also been trying different models in the same session with Pi, a coding agent that runs in the terminal. I like switching between them with /model. Say I give one model the config for a Linux service that keeps restarting. I read its explanation and then switch models to ask, “What would you look for in the journal to check that?” The second model sees the first answer, so it knows which explanation I am asking about.

But if I want an independent answer, I can branch the conversation from just before the first model replied. It reminds me of learning my way around Linux with AI, and if the models disagree about why the service keeps restarting, I have something specific to check in the journal.

Switching models gave me an idea for using that second opinion in code review. I would like to build a small Pi command called /second-look that takes a diff and asks a model I pick for one question worth checking before I commit. Pi’s extensions are written in TypeScript, so I could ask Pi to write the extension and read through the code myself before typing /reload to try it in the same conversation.

I am also curious about building a small browser version with Pi Durable. Its @earendil-works/pi-durable library can save conversations and task checkpoints in SQLite. I would pick the models and tools myself and keep the page simple, with the diff on one side and the conversation on the other.

If I build it, my first test would be to stop the server after one model has reviewed the diff, while the second review is still pending. I want to find out whether restarting the server and opening the same database lets me pick up where I left off.


Share this post on:

Previous Post
A terminal theme for term-llm’s web UI
Next Post
Finding my way around ZenNotes