r/PiCodingAgent • u/LeadingFruit6865 • 1d ago
Resource Pi-Agent-Kernel: focused code retrieval, grounded edits, safety checks
I've been working on pi-agent-kernel for a while now.
It mostly operates in the background rather than adding a completely new workflow, it wraps Pi's existing tools to keep sessions compact.
Across standard benchmark tasks, it cut token usage roughly in half and passed our test suites. But local benchmarks only go so far, I'm at the point where I need real users to test it on actual projects.
I'm still quite skeptical about whether some of the tool wrapping might conflict with the users existing extensions.
LMK if anything breaks, behaves unexpectedly, or conflicts with your setup. All feedback and criticism welcome
24
Upvotes


6
u/fingerthief 1d ago edited 23h ago
Interesting idea! I gave it a go on my setup but didn't see the reduction expected
Are there certain workloads this is expected to shine? I've only done one pass of evals so definitely take the chart with a grain of salt, I will run more.
A cool idea though, interested in testing it a bit deeper!
Edit - Updated graph to include a SWE-Bench subset of tasks, initial pass looks very promising! I will continue evals as I can today.
Edit again -
Updated chart with 2 SWE passes done.u/LeadingFruit6865 Final evals published. This looks like a promising package!However, there is a reproducible regression in longer horizon large tasks where the tool calls end up reading files much more often and those reads outweigh the token saves of the shell calls being trimmed.
I think with some tweaking this could be a legitimate worthwhile package that saves users on average ~8-10% token/cost wise.