New Pi extension for improving your prompts: pi-better.
Type /better in front of your prompt and a forked subagent reads your code in the background, then rewrites the prompt with details you didn't think to ask for. Your agent can use it too when prompting its own subagents via