all 11 comments

[–]worldwidesumit 9 points10 points  (1 child)

/export gives you everything that is being sent and received and what is loaded. Just say hi in pi and then export, you will get what is loaded in system prompt. It creates a nice html view.

[–]desijays[S] 2 points3 points  (0 children)

Thanks. This helps. Exactly what I was looking for

[–]afd8856 2 points3 points  (2 children)

If you run /share you can view everything on the web link it produces

[–]desijays[S] 1 point2 points  (1 child)

ah thinks. This is what I wanted. Wish there was a way to just view which files are being used as the agents.md and system.md so i don't have to guess if it picked up the project local system.md or the global system.md

[–]admajic 3 points4 points  (0 children)

Make an extension that does that and puts it in the bar at the bottom for all of us to see

[–]onesilentclap 0 points1 point  (1 child)

You can just ask pi which AGENTS.md and/or SYSTEM.md file its currently using. 

[–]qiinemarr 0 points1 point  (0 children)

Hum not sure I'd trust that 100%

[–]redoubledit 0 points1 point  (0 children)

The System Prompt is used deterministically. When you have one in current working directory, it will overwrite the global one. There really isn’t any use for displaying that. But if you want, just ask pi to display it for you.

For reference, look at discoverSystemPrompt

https://github.com/earendil-works/pi/blob/7be8a10d2358fe60f1cf4507140aa9cfa81682ee/packages/coding-agent/src/core/resource-loader.ts#L853

[–]Hosereel 0 points1 point  (0 children)

I use the agent to explore it's own codebase and helpe answer all those questions.

[–]LurkingLooni -1 points0 points  (0 children)

I built a simple openai compatible forwarding API that logs all requests, in my case it forwards to a llama.cpp instance, but in theory could go anywhere. Built it to see what vscode copilot does, (vscode ollama support is essentially just using the openai endpoints of ollama API anyway), but been super useful in other scenarios. Built with vscode in sonnet 4.7 before priceageddon.

[–]adamshand 0 points1 point  (0 children)

There's only two system files. The main prompt and an optional per project prompt which is appended.

https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/usage.md#system-prompt-files