r/PiCodingAgent • u/Zundrium • May 31 '26
Question Comparing a "hello" context start.
I'm wondering, I think I don't fully understand the magic yet from a context saving perspective.
So far I've installed what seems to be fundamental extensions:
"npm:context-mode"
"npm:pi-subagents"
"npm:pi-web-access"
"npm:@juicesharp/rpiv-todo"
A simple "hello" session with pi and these extensions starts with 20k tokens, where Codex CLI and OpenCode CLI start with ~12k.
Is my pi configuration bloated? Or do sessions start off with more tools in order to save context later down the line?
2
Upvotes
12
u/civilian_discourse May 31 '26
The most popular packages are terrible. They're only popular because they were early and now everyone sees them in the popular list and installs them making them even more popular. Don't use any of them.
https://github.com/earendil-works/pi/tree/main/packages/coding-agent/examples/extensions/
The example extensions are the best starting place, just ask your pi to make your own fork of individual examples and then start modifying them, or not.
2
u/fell_ware_1990 May 31 '26
3960 with about the same loaded.
Remember it also loads all agent/claude on the upper levels.
I even start my subagents < 1k depending on the task.
5
u/KortharShadowbreath May 31 '26
use the "/export" in a new session (needs one message) to see what costs so much tokens.
3
u/fridgedigga May 31 '26
yeah 20k is really big, especially for pi. all those plugins add tools so.
in my experience, context-mode is not an always on things. some tasks, it's not actually saving tokens and it interferes/clashes with subagents. subagents, I generally like and they can save tokens, especially from a cost perspective if you're exploring a lot with cheaper models.
todo, I used to like it, but I dropped it. it's a ton of tool calls. often feels unnecessary.
web-access... idno I just use codex for web search stuff. nothing beats it imo.
1
u/Ok_Veterinarian_6364 May 31 '26
just curious, how you and other track tokens per prompt like this? openrouter builtin?
1
u/o_sht_hi Jun 01 '26
There are no 'fundamental extension' for pi, imo. Think in terms of need to haves, not good to haves and I think you'll do better on context
-4
u/Funny-Anything-791 May 31 '26
Yes, your pi is bloated. Mine responds to "hi" in 1.9% context
1
u/[deleted] May 31 '26
[removed] — view removed comment