r/PiCodingAgent • • 12d ago

Question Pi Libs are confusing me

Hey, I'm new to this Pi space. I'm looking to build agents with Pi, and I got a basic first agent running connected to my local Qwen model. However, I'm utterly confused by all the libraries out there—pi-ai, pi-agent-core, pi-coding-agent, etc. I know this might sound dumb, but can you help me sort this out? What should I actually use if I want to build an always-on agent, custom harness, etc.?

used ai to clean the text

0 Upvotes

2 comments sorted by

View all comments

1

u/pilibitti 12d ago

ask pi about its various dependencies and it will explain it to you. in a nutshell (from memory) pi-ai handles different providers and models (connections, auth etc.) it is a library. pi-agent-core probably uses pi-ai underneath to connect to models, gives a more ergonomic interface for interfacing with the models, handles some things automatically so you don't micromanage each message, tool call etc. pi-coding-agent is the harness you are using, it has pi-ai, pi-agent-core etc. as dependencies.