Originally published at https://www.bampouris.eu/blog/pi-self-documenting/

Meta-lesson: One of Pi's most powerful features is that you can ask it to explain itself. The agent can read its own documentation, investigate its codebase, and help you extend or modify its behavior—all through natural conversation.

The Scenario: Renaming and Enhancing the "Agent" Tool

In this session, I asked Pi to help rename the "subagent" tool to simply "Agent" and then enhance it with model configuration capabilities. What followed was a perfect demonstration of how Pi operates as a self-documenting system.

The Initial Request