r/PiCodingAgent • u/AddictedToTech • 18d ago
Plugin pi-merger: extremely simple PR review/merge extension
- Your model says a PR has been created
- You use
CTRL-SHIFT-M - Review the PR
- Type
mto merge
easy peasy.
r/PiCodingAgent • u/AddictedToTech • 18d ago
CTRL-SHIFT-Mm to mergeeasy peasy.
r/PiCodingAgent • u/Goldziher • 18d ago
Hi people,
I'm glad to announce ai-rulez v5. It's a CLI and MCP for managing the instructions, skills, and settings that coding agents use in a repository. It's available through Homebrew, Scoop, npm, PyPI, and Go (see the installation instructions for details). The tool covers the following parts of AI Governance:
I maintain ai-rulez. I tested this with v5.13.2 in a scratch Git repository:
ai-rulez init pi-demo --yes --skip-content, then set presets = ["pi"] in .ai-rulez/config.toml.ai-rulez add command review-docs --description "Review documentation examples" --content "Check the examples against the CLI help.".ai-rulez generate and look for .pi/prompts/review-docs.md. Run ai-rulez generate --check to check for drift.Pi gets a prompt file for this command. If your repo also uses another client, add its preset and generate both native outputs from the same source. The preset matrix lists what the Pi target writes.
I'm happy to hear any comments. If you find the tool useful, star it. It really does help. And of course, I'd love to see people use it and get involved with the project.
r/PiCodingAgent • u/adamshand • 18d ago
Now that you can't change models mid-session anymore, how are you handling this? Do you just use a handoff skill?
UPDATE: I forgot that this was due to me using Codex server compaction. I really like it, basically means I never have to start a new session anymore. But not being able to swap models suuuucks. Hrm ...
r/PiCodingAgent • u/omppulse • 19d ago
I wanted to be able to travel with just my phone, but most of my coding these days happens through Oh My Pi (omp), an open-source terminal coding agent. I didn't really want to carry a laptop around just to keep using it, and leaving a computer running at home for weeks didn't seem like a great solution either.
To be clear, this is for Oh My Pi (the Pi fork), not vanilla Pi, and it's an independent project.
I figured it'd be pretty cool if I could just run the whole thing on my phone instead. That's what I've been building with OMP Pulse. It sets up a small Linux environment on Android and runs the actual omp agent inside it. The repository, files and shell are on the phone, so it can edit code and run tests without needing another computer.
The model still runs through whichever provider you've configured. It's the agent and its working environment running locally, not the model itself.
I've been using it myself for about a couple of months now, fixing things as I run into them. I also have two computers that I regularly use omp on, so I added a way to connect to their existing sessions from the same app. I can check on work, answer questions or send another prompt from my phone.
Some of the smaller things have ended up being just as useful. Being able to use speech to text natively in the app itself, get a notification on my phone when an agent needs something, or quickly check a diff makes a surprising difference to how I use it. Usage, compaction, model switching and omp commands are all available through the phone UI too. I really wanted to make sure that everything I'd typically do on my computer would ultimately be possible from within the app.
I also wanted the agent to do things on my phone while I'm out. Optional phone tools let it read the screen, open apps, tap, type and swipe without wireless ADB. They're disabled by default. There are no app-enforced per-action approval prompts, and the runtime uses proot, which isn't a security sandbox.
It's still early. Android's battery management can be a pain, and some phones can stop the runtime in the background despite battery optimisation exemptions.
Pulse is MIT-licensed and self-hosted. No Pulse account or hosted Pulse relay. Android can run omp standalone; iPhone users can access sessions on their computers through the web app on their mobile devices, which should still feel pretty native and akin to the application anyways (I hope, I don't have an iPhone lol)
Code, installation instructions and APK:
https://github.com/JulianCodespoti/omp-pulse
Super curious to see what people's thoughts are, and it would be great to know if you do use it, what ultimately brings you back to your laptop. I've fleshed out enough that I have little reason at times to use omp outside of my phone, but of course, I've tailored this strongly to my own ways of working, so I would be stoked to get some feedback on this from others!
r/PiCodingAgent • u/FatClemenzas • 19d ago
Hi, guys. I like to use pi inside kitty, but I'm facing an issue in that kitty keeps scrolling-to-very-top inside a pi session, when I scroll a little bit up to read past text while pi is actively working/writing in the tty. The strange part is that I was writing a terminal emulator in python for learning purposes (and trying to get a feature like sidebar/workspaces like cmux) and testing pi inside the toy emulator displayed the same scrolling issue. I asked the agent to debug the issue and the results was that "is nothing exactly wrong with the way pi is clearing/redrawing the scrollback", so this not seems do be a bug in pi. Have you noticed something like this using kitty+pi? Or in other terminals? Which terminals do you usually use?
r/PiCodingAgent • u/Lazy-Fly23 • 19d ago
r/PiCodingAgent • u/OwnTechnology1872 • 19d ago
Hi, guys. A problem when I use pi is that I don't know how to use it deal with complex tasks, especially when myself have no clear plan or solutions.
I find it that my classmates use codex, which seems good at dealing with long tasks since it usually run a long time to finish the question. However, my pi usually run just a few minutes when I ask a question.
I have tried extensions like goal-x, but not very satisfied with it.
Thus, I wanna know how you finish this situation.
Thank you guys.
r/PiCodingAgent • u/PilgrimofHaqq2 • 20d ago
I was running several primary agents in parallel in my harness and the notifications were burying me. Every agent stopped to ask me something: "X or Y?", "tests pass, commit?", "found a side issue, fix now or later?" I'd answer half of those the same way every time. I had become the bottleneck on decisions that didn't need me. my AGENTS.md cover many conventions/rules/standards but its still wasn't enough to cover so many of these questions.
So I restructured my workflow like a team:
How lanes work
lead.md file in the project plus the project's docs, and it has to cite the rule it used. If no rule covers the question, or it's a taste/preference call, it escalates to me.I still have full control
Every lane is a normal chat. I can open any of them, read the whole transcript, and type into it directly if I want to step in. The harness never merges a branch, deletes a branch, or removes a worktree on its own.
My notifications are now mostly things that actually need me. It's still early, and I keep refining what goes into lead.md, since that file decides how much the lead can handle without me.
So far I have noticed I am getting alot more done with less headaches (literally!).
r/PiCodingAgent • u/OwnTechnology1872 • 19d ago
How to make pi read complex pdf with a lot of math?
It always read pdf by pdf2txt which it is not effective.
r/PiCodingAgent • u/PerfectReflection155 • 20d ago
I currently have it set as 150k and I’m using both Pi Blackhole with Observational Memory Enabled as well as the Context Mode extension.
Just wondering if I should lower further to 100k and what’s the norm around here.
r/PiCodingAgent • u/Plusale • 19d ago
r/PiCodingAgent • u/Pbd1194 • 21d ago
I kept switching from Gemini back to Claude mid-session because `edit(oldText, newText)` calls were taking 42s median (172s p95) vs 9s on Opus. In 599 edit calls from my session logs, Gemini averaged 9.3KB of `oldText`/`newText` per call (4x more than Claude) and burned thousands of thinking tokens checking whitespace before streaming JSON-escaped strings.
So I hid `edit` on Gemini turns in pi and wired up `fast_edit(path, instructions)` instead. Gemini stays on high thinking and writes what to change, then DeepSeek (`reasoning_effort="none"`, ~195 tok/s) outputs raw `SPAN: L<start>..L<end>` line replacements against a numbered view of the file.
On a SQL refactor in a 620-line file, edit time dropped from 103s to 29s (23s Gemini + 6s DeepSeek). `oldText not found` retries dropped to zero.
*(Disclaimer: session log analysis and testbench runs were done with `carbon-high`.)*
r/PiCodingAgent • u/nirurin • 20d ago
r/PiCodingAgent • u/lonycowz • 21d ago
My goal is to reduce what AI can do through PI that might be destructive or not wanted. It is not very likely but it is a huge issue if it happens even once. Core concern worked on now was bash tool call commands.
My initial approach with PI's help was extension that more or less did this:
Worked pretty nice at the start but the commands PI cooked up are fairly complex and I was unable to make it write a parser that would correctly identify what is a command and what is not, for example first iteration was using:
.split(/&&|\|\||[;|]\s*|\n/)
Which for example incorrectly tagged this as not classified command:
ls | grep "option1|option2"
And it suggested that "option2" is a command and asked for its classification.
I have iterated over it a bit but i was unable to arrive at a foolproof solution.
Additionally on review agent pointed out to me that since AI is very "goal focused" it might try to engineer around it by for example modifying extension's ALLOW list and executing what it wanted.
Simplest solution was to make this file root:root owned 644 and abandon dynamic updates by extension. Any commands not yet in it would have to be added by me manually as root but that's not the end of the world. And since file is root owned edit tool can't mess with it either.
I could almost live with it if my parser for commands was perfect but its very far from it. And I am not sure if i can arrive at anything good enough for use.
Did anyone have similar issues? How did you approach solving them? Even any ready made extensions solving this problem can be a valid consideration.
Or is the only reliable way to achieve some sort of safety sandboxing it?
If it is of any significance I am using it mostly with locally hosted AI, Qwen3.8 Q3_S shoved into 16GB vram, with llama.cpp as inference engine [rocm + hip build]. PI as harness works really well due to how tiny and lightweight it is and system prompt is small as well, lets me make better use of the limited context I can get ~90-100k tokens.
----------------------------------------------------
Edit:
I got more answers than I expected. Big thank you to everyone who offered their time and knowledge.
In the end I decided to go with Docker Sandboxes.
I don't absolutely need that level of isolation, but its the most convenient one and gives relative peace of mind:
My only issues were documentation being a bit hard to read and understand and PI not being included in sample kits - needed custom shell kit. But after a few days of mingling with PI I knew enough about it to pull it off.
Bubble wrap also seems like a great idea and is a lot more lightweight (admittedly docker sandboxes are really reasonable for a full environment isolation). Will try it out over the next days as it seems like more convenient daily driver.
r/PiCodingAgent • u/paymog • 20d ago
i kept installing pi packages on omp and finding out the hard way that they're broken, so i got curious how common that is. installed the 200 most-downloaded pi packages on omp, each in a clean docker container. first run was on omp 18.12.3 a few weeks ago, re-ran it today on 18.20.0
on 18.20.0, 128 packages gave a clear result: 87 install and load fine (68%) and 41 fail. the other 72 need an api key, a companion package, or a different OS before they'll even start, so i left them untested (no point blaming omp for those)
why stuff breaks:
envApiKeyAuth alone breaks 4)so it's mostly gaps in omp's pi compat layer, not bugs in the packages themselves
the part i found most interesting is the drift between releases. 3 packages started working on 18.20.0 (pi-agent-browser-native, pi-btw, pi-blackhole) and 2 broke (pi-open-tui and pi-plan-mode, both because omp dropped a pi-tui export they import). so any one-time compat list goes stale pretty fast
full results with the error for each failure: https://omppackages.com/report
big caveat: the test only checks that a package installs and loads. it doesn't call any tools, so "works" really means "loads", not "every feature works". every package page has a works/broken button and real reports are way better evidence than my test, so if you've used something on omp please add yours
(also open to feedback, or to shutting this down if someone already built something similar that i couldn't find)
r/PiCodingAgent • u/psychobarge • 21d ago
Ever since plan modes came along and became standard practice, I've used a
"planning agent" → "coding agent" workflow, pretty much, i assume, like everybody.
It has always worked well, and it cut the tokens I spend per feature by a lot. (Thanks @narumitw/pi-plan-mode)
My project has been growing, so recently I split the work up further and started writing specifications using custom skills :
"specification agent" → "planning agent" → "coding agent".
I am quite happy with the results. Code is even more reliable, and my token usage hasn't gone up. If anything, it has gone down.
I turned all of this specification agent part into an extension that bundles my skills and the full workflow.
Here it is if this is something you'd care to try :
- github, https://github.com/psychobarge/pi-spec-mode
- npm, https://www.npmjs.com/package/pi-spec-mod
- Pi package, https://pi.dev/packages/pi-spec-mode
r/PiCodingAgent • u/FanLong3637 • 21d ago
r/PiCodingAgent • u/invin10001 • 21d ago
I've been working on gPTY for a few months now as a side project & wanted to share.
I use OMP & my own usage has been the primary direction for design. It started as a multi-PTY emulator built on Rust; but using Godot as the front-end - a desktop app. A choice that brought costs with it (RAM & power) over standard terminal emulators.
It ships with an "Agent Workspace" profile, basically a layout with one pane that's a terminal where I run OMP. An "Inspector" pane - think of it as a Q&A session outside of your main OMP session (no tools: omp --mode rpc --no-tools --no-session). And a "Reasoning" pane - I like to read the "thinking" process and this pane groups it by turn so I can collapse/expand and read through any.
There are a few other features I'm working on, but these are the OMP specific ones. Open to feedback on design/direction, and if you want to try it out, releases can be downloaded from: https://github.com/godot-pty/gpty
r/PiCodingAgent • u/wwdennis5 • 21d ago
Bash outputs take up significant amounts of my context and naive tools like, tail, head can sometimes miss key components. What are people using to efficiently handle this problem?
r/PiCodingAgent • u/wtfzambo • 22d ago
Speak Like You Eat is a plugin that translates AI garbage into human language that's easier to understand (or at least, it tries to).
Some answers use plain words and still take five paragraphs to get to the point, so I added a new mode:
ELI5 is the default. Switch with ctrl+\, or click the tab in fullscreen. Tabs are Pi-only, I still have to figure out how to port this to OMP.
r/PiCodingAgent • u/RealDistrict2622 • 22d ago
guys you might be interested so idk i made it work with omp but i believe it is pimped version of pi so i believe this sub would be fitting.
here is the link for the repo
have a nice day guys.
r/PiCodingAgent • u/wodaxia • 22d ago
I'm exploring the possibility of using Pi (or the Pi SDK) as a backend to support a multi-tenant application. The architecture would be a browser frontend with backend servers running Pi. Each user would have their own isolated sessions(working directories), and the system needs to support horizontal scale-out.
I know PiAPI SDK supports creating Agent Sessions, but its parameters include things like AgentDir and cwd (local disk directories), which makes true backend scale-out difficult.
I've looked into a few existing projects:
Are there any existing projects that are closer to my use case (multi-tenant, scale-out, backend-hosted Pi)? Any pointers or recommendations would be greatly appreciated!
r/PiCodingAgent • u/Potential_Block4598 • 22d ago
r/PiCodingAgent • u/jandrikus • 22d ago
https://github.com/jandrikus/memshort
I would like to publish "memshort", my take on a "short-term memory" implementation for agents. (A "long-term memory" implementation will follow shortly once I have it publishable). I find it very useful for myself and I thought it would be nice to share it with others.
It is essentially a rolling-window compaction for coding agent sessions in pi, Claude Code, Codex and Hermes. When the context fills up, older messages are replaced by a dated observation log, and the newest messages stay word for word.
Some ideas are borrowed and adjusted. The code was written by the pi coding harness under my direction, and I run it primarily on my own pi sessions. Unfortunately I have no benchmark yet (no time for that). My subjective impression from daily use is that I can stretch sessions for very long without the agent losing the thread.
I'm publishing it because a rolling context window that keeps as much knowledge as possible deserves more people thinking about it, not because this is the final answer. If you have a better design, a case where this loses something important, or a way to measure it, open an issue or share your take. Let's build something better together.
Thanks for taking a look!
r/PiCodingAgent • u/fuzhongkai • 23d ago
Hi everyone!
I'm the developer of TensorSharp, an open-source .NET-based local LLM inference engine.
I've put together a fully working, end-to-end example of running Pi Coding Agent with TensorSharp as its local inference backend, using Qwen3.8 27B.
No cloud inference API, no API subscription, and no external model provider required.
The example covers:
Complete working example:
https://github.com/zhongkaifu/TensorSharp/tree/main/examples/pi-coding-agent
The integration is straightforward:
Pi Coding Agent (CLI / SDK)
|
| OpenAI-compatible API
v
TensorSharp Server (localhost:5000)
|
v
Qwen3.8 27B (GGUF)
|
+-- ggml_metal (Apple Silicon)
+-- DFlash2 speculative decoding
+-- 64K context window
+-- q8_0 KV cache
+-- Prefix/KV cache reusePi handles the agent loop, file operations, shell commands, and code editing.
TensorSharp handles model inference, token generation, speculative decoding, and KV caching.
This separation means Pi can keep using its existing tools while running entirely against a local inference server.
The example was validated on:
The setup requires Apple Silicon with at least 32 GB of unified memory.
The main model uses approximately 10.9 GB, and the draft model uses another 1.1 GB.
The remaining memory is used for the KV cache and Metal buffers.
First, clone the repository:
git clone https://github.com/zhongkaifu/TensorSharp.git
cd TensorSharpInstall the .NET 10 SDK, CMake 3.20+, and Xcode command-line tools if needed.
Build the inference server:
dotnet build TensorSharp.Server.Host \
-c Release \
-p:TensorSharpSkipMlxNative=trueThis builds the native ggml backend with Metal support.
Run:
examples/pi-coding-agent/scripts/start-server.shUnder the hood, this executes:
dotnet TensorSharp.Server.Host/bin/TensorSharp.Server.Host.dll \
--config config/qwen3.8-27b-metal-dflash2.json \
--config examples/pi-coding-agent/tensorsharp-pi.jsonOn first launch, TensorSharp automatically downloads the main model and DFlash2 draft model from pinned Hugging Face revisions and verifies their SHA-256 hashes.
The Pi-specific TensorSharp configuration overlay is:
{
"host": "127.0.0.1",
"port": 5000,
"max-tokens": 16384,
"mmproj": "none",
"kv-cache-dtype": "q8_0",
"environment": {
"MAX_CONTEXT": "65536"
}
}This overlay is applied after the model preset.
The configuration enables:
Verify that the server is running:
curl http://127.0.0.1:5000/v1/modelsExpected model ID:
Qwen3.8-27B-UD-IQ3_XXSInstall the validated version:
npm install -g @earendil-works/pi-coding-agent@1.5.1Check:
pi --versionNote that this example uses the newer @earendil-works/pi-coding-agent package rather than the deprecated @mariozechner/pi-coding-agent package.
Pi supports custom OpenAI-compatible model providers through models.json.
The example includes a ready-to-use configuration at:
examples/pi-coding-agent/pi-agent/models.jsonHere's the complete provider configuration:
{
"$schema": "https://pi.dev/schemas/models.schema.json",
"providers": {
"tensorsharp": {
"name": "TensorSharp (local)",
"baseUrl": "http://127.0.0.1:5000/v1",
"api": "openai-completions",
"apiKey": "none",
"compat": {
"supportsDeveloperRole": true,
"supportsReasoningEffort": false,
"supportsStore": false,
"maxTokensField": "max_completion_tokens",
"thinkingFormat": "qwen-chat-template"
},
"models": [
{
"id": "Qwen3.8-27B-UD-IQ3_XXS",
"name": "Qwen3.8 27B (TensorSharp, DFlash2)",
"reasoning": true,
"input": ["text"],
"contextWindow": 65536,
"maxTokens": 16384,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
]
}
}
}The matching settings.json is:
{
"defaultProvider": "tensorsharp",
"defaultModel": "Qwen3.8-27B-UD-IQ3_XXS",
"defaultThinkingLevel": "medium",
"enableInstallTelemetry": false
}A few important details:
/v1/models.qwen-chat-template allows Pi to control Qwen's thinking mode through chat_template_kwargs.enable_thinking.You don't need to manually install these files if you use the provided launcher.
From the TensorSharp repository root:
examples/pi-coding-agent/scripts/pi.shThe launcher creates a separate Pi configuration directory:
~/.pi/tensorsharp-agent/It copies the provider configuration there on first use, leaving your existing ~/.pi/agent configuration untouched.
For interactive coding:
cd ~/src/my-project
~/work/TensorSharp/examples/pi-coding-agent/scripts/pi.shYou can now ask Pi to inspect your code, run commands, modify files, and fix bugs using your local Qwen model.
For a single non-interactive task:
~/work/TensorSharp/examples/pi-coding-agent/scripts/pi.sh \
-p "Explain what src/stats.js does" < /dev/nullOther useful commands:
# Disable thinking for simpler tasks
pi.sh --thinking off -p "..." < /dev/null
# Stream JSON events without saving a session
pi.sh --mode json --no-session "..." < /dev/null
# Continue the previous session
pi.sh --continueThe launcher also disables Pi's catalog refresh, version checks, and telemetry.
The example also demonstrates running Pi programmatically.
This is useful for building your own local coding automation, CI workflows, or agent applications.
The SDK entry point is:
examples/pi-coding-agent/sdk/run-task.mjsThe core integration looks like this:
import {
createAgentSession,
ModelRuntime,
SessionManager
} from "@earendil-works/pi-coding-agent";
import path from "node:path";
const agentDir = path.join(
process.env.HOME,
".pi/tensorsharp-agent"
);
const projectDir = process.cwd();
const modelRuntime = await ModelRuntime.create({
modelsPath: path.join(agentDir, "models.json"),
authPath: path.join(agentDir, "auth.json")
});
const model = modelRuntime.getModel(
"tensorsharp",
"Qwen3.8-27B-UD-IQ3_XXS"
);
const { session } = await createAgentSession({
cwd: projectDir,
agentDir,
modelRuntime,
model,
thinkingLevel: "medium",
sessionManager: SessionManager.inMemory()
});
session.subscribe((event) => {
if (event.type === "tool_execution_start") {
console.log(
`[tool] ${event.toolName}`,
event.args
);
}
if (
event.type === "message_update" &&
event.assistantMessageEvent.type === "text_delta"
) {
process.stdout.write(
event.assistantMessageEvent.delta
);
}
});
await session.prompt(
"Run npm test, fix the bugs in src/stats.js, " +
"and rerun the tests. Do not modify the tests."
);
console.log(session.getLastAssistantText());
session.dispose();For the complete executable SDK implementation, including setup and token accounting, see:
https://github.com/zhongkaifu/TensorSharp/blob/main/examples/pi-coding-agent/sdk/run-task.mjs
This is the part I found most interesting.
Instead of just asking the model a question, the repository includes a small Node.js project containing three intentional bugs:
median() incorrectly sorts numbers as strings.median() doesn't average the two middle values for even-length arrays.percentile() contains an off-by-one error.Three of the five tests initially fail.
Pi must:
The example tests this twice: once through Pi's CLI and once through its SDK.
With the server already running:
examples/pi-coding-agent/scripts/e2e.shOr let the test script start the server:
START_SERVER=1 \
examples/pi-coding-agent/scripts/e2e.shThe script independently verifies that all five tests pass and that the test file remains byte-for-byte unchanged.
Both runs passed in the documented validation.
Tested November 9, 2026, on an M5 Pro with 48 GB unified memory.
Metric Pi CLI Pi SDK
Final result PASS PASS Tests passing 5/5 5/5 Wall-clock time 88s 83.4s Model requests 10 8 KV/prefix cache reuse 86--99% after first request 87% overall
For the SDK run:
8 model requests in 83.4 seconds
Prompt tokens processed:
48,166
Prompt tokens served from prefix cache:
41,962
Cache reuse:
87%
Generated tokens:
2,117
Final tests:
5 passed, 0 failedAdditional observations:
These are measurements from one small coding task, not a general coding benchmark. Different tasks and model outputs will produce different results.
A coding agent behaves differently from a simple chatbot.
A typical agent loop looks like this:
User request
|
v
Model generates tool call
|
v
Pi executes shell command
|
v
Tool output returned to model
|
v
Model generates another tool call
|
v
Pi edits source code
|
v
Model reviews test results
|
v
Final answerEach model request includes much of the previous conversation:
Without effective KV-cache reuse, the inference engine may need to prefill most of that history again and again.
TensorSharp reuses the matching prefix from the previous request, so subsequent agent rounds only need to process the newly appended tokens.
One subtle issue we fixed was whitespace around Qwen's </think> boundary.
Pi returns the model's streamed reasoning in subsequent requests, including surrounding whitespace. Previously, TensorSharp's cached representation didn't match those returned tokens exactly.
That prevented full conversation-prefix reuse.
After fixing the matching behavior, subsequent rounds could reuse much more of the previous KV state.
In our SDK test, 41,962 of 48,166 prompt tokens were served from the prefix cache.
For multi-step coding agents, this can make a substantial difference in latency.
TensorSharp also supports NVIDIA GPUs.
For Qwen3.8 27B, the repository includes an NInfer NVFP4 preset using the direct CUDA engine.
You can select it with:
TENSORSHARP_PRESET=config/qwen3.8-27b-ninfer.json \
examples/pi-coding-agent/scripts/start-server.shHowever, the complete Pi integration and measurements described here were validated on Apple Silicon.
The NVIDIA preset has not yet been validated with this Pi workflow, including the q8_0 KV configuration.
Everything is open source:
TensorSharp repository:
https://github.com/zhongkaifu/TensorSharp
Complete Pi integration example:
https://github.com/zhongkaifu/TensorSharp/tree/main/examples/pi-coding-agent
The example includes the server configuration, Pi provider settings, launch scripts, SDK implementation, sample project, and automated end-to-end tests.
I'd love to hear from other Pi users:
Are you running Pi with local models? Which models and inference backends have worked best for multi-step coding tasks?
I'm particularly interested in comparisons involving long agent sessions, repeated tool calls, context growth, and KV-cache reuse.
Feedback, issues, and contributions are very welcome!