Pi is just the harness. I think in case of the article that is what they mean when they say agent.
You can write one in 200 lines of code. Just a TUI for an api.