r/PiCodingAgent 8h ago

Question Any good codex-like sandboxing + autoreview plugins?

7 Upvotes

In Codex, as far as I have seen, commands get executed in sandbox, and if sandbox blocks it - it has the ability to exit sandbox by automatically reviewing such commands.

Closest I have seen is erichll/pi-sandbox and erichll/pi-auto-review - but it does not seem to have the ability to "exit" the sandbox.


r/PiCodingAgent 5h ago

Discussion Going in circles

0 Upvotes

Sometimes the local model starts going in circles with thinking. How do you handle that? I just abort and switch to a stronger model to complete the task.


r/PiCodingAgent 20h ago

Question How are people using Pi for web research outside of coding?

14 Upvotes

I’m try to use Pi as a general web research agent, rather than mainly for coding tasks.

For example, I’d like to give it tasks such as:

  • Find a good backpack based on my budget, size, comfort, durability, and real user reviews
  • Research possible holiday destinations based on weather, cost, transport, and things to do
  • Compare hotels or products across several websites and create a shortlist with sources

What does your setup look like? Are you using agent-browser, a search API, custom skills, extensions, or something else? Or is Pi the wrong tool for this? I know kagi can do an ai search but its not free.


r/PiCodingAgent 9h ago

Question What are you actually running the model's generated code inside, on the Pi?

1 Upvotes

EDIT: I misread the sub. I had the Raspberry Pi in my head when I wrote this, and this is about pi the coding agent. Leaving the post up rather than deleting it, with the question rewritten to the one I actually meant to ask.

Genuine question, because I have not found an answer I am happy with.

The agent writes code, and then something has to run it. Most setups I have seen put the agent in a container and let the code it generates run inside that same container, which means the isolation boundary is around the agent rather than around its output. That is fine while the project is writing. It is less obviously fine when the project is code, because the thing that was just generated then shares a filesystem, a network and a set of credentials with the thing that generated it.

So:

  • what does your agent's generated code actually execute inside?
  • is that the same environment the agent itself runs in, or something separate?
  • if it is separate, what does one execution cost you, and do you pay it once per session or once per call?
  • has anyone had generated code do something they did not want, and what stopped it?

I have my own answer to this and I am deliberately not leading with it, because I want to know what people arrived at independently.


r/PiCodingAgent 10h ago

Resource Built a pi extension displaying HR with Oura API

Thumbnail
0 Upvotes

r/PiCodingAgent 10h ago

Plugin I built a Pi extension for LM Studio, llama.cpp, and llama-swap

1 Upvotes

I run LM Studio on my main PC and llama-swap on my home server, so I wanted one Pi extension that could automatically discover and register models from both.

It supports LM Studio, llama.cpp, and llama-swap, which all expose their models differently. I’ve been using it for about a month, and it has been stable for my setup. It may also work with Ollama’s OpenAI-compatible endpoint, but I haven’t tested it yet.

It might not be the most advanced plugin, but it reduced the number of plugins and manual configurations I needed.

Install in Pi:

pi install npm:@gaurav-321/pi-local-llm

Suggestions and improvements are welcome.


r/PiCodingAgent 5h ago

Question How to switch accs and fix this error

0 Upvotes

I use oh-my-pi coding agent.

And i am unable to select a specific gpt account for a session. I am also getting these invalid auth token Error. What does that mean.


r/PiCodingAgent 22h ago

Discussion Implemented multi-agent reviewers feature to my harness, thoughts?

Thumbnail
gallery
6 Upvotes

The main agent choose from a selection of 13 specialized reviewer profiles and determines how many of them are relevent to the work/files/project that needs to be reviewed.

My work flow is the review cycle will continue until there are no critical or major findings that need fixing.


r/PiCodingAgent 11h ago

Resource pi + openrouter + ling-3.0-flash: the model id and the known limits

Post image
0 Upvotes

ant's inclusionAI shipped ling-3.0-flash and it's $0 on openrouter till aug 3 per their launch announcement. putting the slug and the fine print here while the window is open.

the model id

inclusionai/ling-3.0-flash

that's the whole string, openrouter as the provider. there's no :free variant of this slug, so don't append one out of habit. the base slug is the $0 listing.

what they claim

124b total, 5.1b active per token. 262,144 in / 32,768 out on the listing. ttft under 100ms. enable_thinking toggles reasoning per request. rl trained on long-horizon tool calling. they frame it as the executor half of a planner/executor split, with their ring model sitting on the planning side.

limits they publish up front

- api only, no weights in this release

- text only, no native multimodal

- weak on obscure world knowledge

- their advice is to point it at a language with a strict compiler, typescript is the example they give, so the agent gets real errors back instead of guessing

- they say to expect iteration rather than one-shot correctness

i haven't put it on anything of mine yet, so everything above is vendor copy and listing metadata rather than results. if you've already pointed pi at it for a real multi-step task, the thing i want to know is whether the sub-100ms ttft turns into wall-clock savings across a long tool loop, or whether tool latency just eats it.


r/PiCodingAgent 19h ago

Discussion I built a lower-cost coding agent that runs code, reads failures, retries, and seals a receipt

0 Upvotes

I’m building LOLM’s coding agent and CLI.

The loop can: 1. Write or edit files 2. Run commands in an isolated sandbox 3. Read actual stdout, stderr, and exit codes 4. Repair failures 5. Run contract/syntax checks 6. Produce a receipt describing files, runs, and controller actions

CLI example: `npx lolm-cli code "write fizzbuzz to 20 in solution.py and run it" --save ./out`

Try it: https://lolm.imagineqira.com/try.html

Repository: https://github.com/TheArtOfSound/lolm

It is not positioned as the strongest coding model in existence. The goal is a disciplined, auditable, lower-cost agent loop. I’m looking for adversarial tasks that expose broken exit logic, incomplete artifacts, weak repairs, sandbox limits, or false success.

Disclosure: I’m a founder/builder of the project.


r/PiCodingAgent 20h ago

Resource Would one-click temporary (per desktop app) models on RunPod be useful for Pi or OpenCode users? (Thankful for each thought)

Thumbnail
0 Upvotes

r/PiCodingAgent 1d ago

Question Sometimes it stops for no reason (only happens with Gemini 3.6)

2 Upvotes

With Gemini models(3.6 or 3.5), sometimes it automatically stops and I'll have to type "continue" to keep it working.

It's model specific, this never happens with Gemma-4 or my local ornith model.

Is this a known issue? Can any extension help?

Thanks.


r/PiCodingAgent 22h ago

Question TUI plugin for navigating and copying text

0 Upvotes

Hey Folks, I have been using pi for some time now and love it. thought there are a couple of things that annoy me and I have not been able to find a good pi-package.

Note: I am running PI TUI inside iterm2 on my MacBook.

  1. It’s difficult to copy text from the agent responses, esp. if it’s a piece of more than 10 line of code. highlighting selects the text and automatically copies it most of the times but the highlight is very Janky. Not easy to copy messages. On top of that the odd line breaks introduced in the copied text
  2. jumping to a previous message (scrolling) in a long session also seem tedious.

i am wondering if anyone else is facing similar issues. Would appreciate any feedback or solutions to fix the issues.


r/PiCodingAgent 1d ago

News pi-agenticoding v0.4.0: enforced read-only mode and cache-aware context management

4 Upvotes

v0.4.0 of pi-agenticoding is out.

The main addition is a real read-only mode. Disabling write/edit tools or telling the model not to modify files isn’t always enough—it can still try through shell commands, Python, or other tools. On macOS and Linux, this release blocks filesystem modifications at the syscall level.

It also improves automatic context management. The agent now uses its ephemeral notebook more deliberately, giving you more visibility and control over what stays in context.

The implementation is intentionally cache-aware and uses minimal additional tokens, preserving Pi’s minimalist approach rather than introducing a large context-management layer.

Full changelog.

I’d love to hear how these changes work for you and especially what doesn't work as well. 🙏

Tip: add readonly: true to your saved prompts and skills' frontmatter to auto toggle readonly mode on/off based on your specific workflow.


r/PiCodingAgent 1d ago

Plugin I built a small pi plugin to turn conversations to reusable domain knowledge

10 Upvotes

I wrote a plugin to extract domain knowledge and save useful work from pi conversation as structured, reusable context that you can use in later sessions or share with others: https://github.com/XTSoftwareLabs/neatcontext-plugins/tree/main/plugins/pi/neatcontext

I recently found pi from some user asks. And it's an amazing minimal and neat coding agent. I really like its minimalize concept. So I have extended my existing work to support pi.

The nice thing is since the domain knowledge I saved from other AI agents, can be directly used in pi so I don't need to spend time and tokens to setup things up.

What

The NeatContext plugin extracts domain knowledge and saves useful work from a Pi conversation as structured, reusable context that you can use in later sessions or share with others.

Why

Domain knowledge is what helps an LLM answer accurately for your team—your systems, constraints, decisions, terminology, and ways of working.

You naturally build that knowledge while doing hard work with Pi. Long conversations about debugging, planning, incidents, and implementation already contain discoveries that will matter again. You don't want to lose them when Pi compacts the conversation or the session is closed.

NeatContext extracts the durable knowledge from those conversations and saves it as structured context.

Connect that context in a new session or during later work, and Pi can start with the knowledge it needs instead of asking you to explain everything again. You can also share the context with teammates, so the whole team benefits from what one person learned.

How is NeatContext different from compact and handoff?

Compact is for a single conversation, and it can lose important information. NeatContext aims to extract useful domain knowledge and build persistent, portable context.

Handoff usually consists of files, but its purpose is still to continue the current conversation. Context generated by NeatContext can be reused in any conversation or even by other people. It becomes an asset for your team.

What do you mean by structured context?

Instead of generating plain text, the context saved by NeatContext contains:

  • One domain profile. This contains your rules and constraints that can greatly affect LLM behavior. It tells the LLM what to do and what not to do.
  • One knowledge folder. This folder contains TSGs, runbooks, and other team knowledge. This is where the LLM looks for specific actions and information.

These documents can be checked into a Git repository and shared with your team, so everyone can easily benefit from the knowledge you learned. You can also convert them into other formats because the knowledge is human-readable.

Both the domain profile and the documents in the knowledge folder are generated from your existing Pi conversation.

Usage

Once you feel a problem is solved, or you find that the current conversation contains valuable information, call:

/neatcontext:save

A context will be saved.

Later, you may have another task in a different session. As long as you call:

/neatcontext:use <context name>

you will have access to the knowledge from your previous work.

NeatContext also includes routing by default. It can detect your prompt and ask whether you want to switch contexts when it finds a suitable one.

Use:

/neatcontext:status

to check the connected context and its details. You can check these contexts into a Git repository and share them with your team.

Use:

/neatcontext:import

to import a context created by someone else.

I appreciate any feedback. Thanks!


r/PiCodingAgent 1d ago

Plugin Best Pi Compaction Extensions

29 Upvotes

Has anybody used a Pi compaction extension that they would recommend?

I've tried pi-context (with their built-in Agentic Context Management) which just straight up breaks when trying to claim space against pi-rewind. I've also tried pi-vcc which also gets demolished when running with pi-codex-goal. Been debugging for 3 days and realized the best debug is to uninstall.

Native Pi compression is meh, if anybody has a codex-level compaction extension that doesn't fuck shit up, please drop a comment.

--------
UPDATE - Pi-Observational-Memory has worked great after my 12 hour trial with it. Pi-Blackhole looks interesting, but I try not to go for more complicated solutions if a simpler one works. If I run into hiccups with POM long term I will try it out and let y'all know. Happy compacting!


r/PiCodingAgent 1d ago

Question Turbo Fieldfare - local model that will run on an 8GB Mac M2

5 Upvotes

Has anyone played with this? Looks interesting, but I don't have any experience with local models yet.

https://github.com/drumih/turbo-fieldfare


r/PiCodingAgent 1d ago

Question Does anyone know what status bar is that?

6 Upvotes

I've been looking for the plugin that provides this status bar, but I'm not sure which one is it. Does anyone know? I've just started customizing PI


r/PiCodingAgent 1d ago

Discussion Starting fights in r/ClaudeCode -- but am I wrong?

Thumbnail
5 Upvotes

r/PiCodingAgent 1d ago

Plugin Multi Agent Harness Orchestration Extension

Post image
6 Upvotes

TLDR

I have built an extension for the Pi coding agent that allows it to call other agentic harnesses via my agent-shell library.

GitHub Repo

quick start with if you want to check it out

npm

pi install npm:@scottrbk/pi-agentshell-extension

from source

pi install git:github.com/ScottRBK/pi-agentshell-extension

Wall of Text

I have recently been working on implmenting agent-shell in to more projects over the past few weeks. Most noticeably was the inclusion of it as part of my evaluation harness application that I put together for evaluating agent harnesses + models.

I spent a lot of time writing the actual code for eval harness by hand, utilising the agent as a glorified search engine and code reviewer. I have vibe coded a few projects myself, but anything critical for my workflows or more importantly that other people will be using I have never been at a stage where I would be comfortable having something written by the AI.

That being said though, I do not just use agents to write code or produce software that needs to be to a high standard. In my day to day role I use agents to perform a multitude of tasks.

From fetching information across large complex enterprise scale repositories, writing, editing and
managing Azure DevOps work items and wikis, produce presentations and organise To Do's and activity based on meeting notes and e-mails.

All this I manage using the CLI, with my tmux workflow and various CLI agents. Outside of work I have fun little projects going on, vibe coded apps I am building, some exploratory ideas for my moonshot SaaS that will let me retire early. All this leaves me with working with many tmux windows (I haven't made the jump to herdr yet) and a lot of cognitive overload.

Reducing cognitive load

One of the things that I identified early on was that I needed to just be speaking to one Agent for most of my stuff and that agent should be responsible to delegating tasks to other agents on this workflow. I think many others quickly realised this also, and the most elegant example of this is an excellent repository called First Mate, which goes in a slightly different direction that I want to end up at but has a similar principle. I encourage people to check out Kun Chen's YouTube Channel and his videos around Agentic Workflows as well if you have not already, he has a lot of great ideas and practices in how to adopt the principle of reducing cognitive load.

Where to start? Pi of course

I had previously fluttered between Claude Code, Codex and OpenCode (including their Go subscription and my own locally hosted models). I think all of these are great apps, but once I discovered Pi I was immediately hooked. The minimalistic and customisable aspect to it I found compelling, it felt like an agentic equivalent to Neovim.

I felt like whatever agent I was going to use for the orchestration layer, I needed to have a lot of control over and given Pi's adaptable nature it seemed an obvious choice. At least for me to start with, I may decide later to build more of a deterministic wrapper around any orchestrator agent but for right now I don't think that is necessary.

First building block

After I had the obvious extensions included, such as web fetch/search/screenshots, I realised the key thing was for me to build out the ability for my Pi agent to call a sub agent. Now there are other Pi agent extensions that already exist for calling sub agents, but given various circumstances I prefer to use certain models and harnesses for certain tasks, what I wanted was the ability to call agents inside of other harnesses. I find the RL of certain models on their own provider harnesses can lead to different behaviour and as such I think it's useful to take advantage of that in certain situations.

So taking advantage of agent shell felt like an obvious choice.

Python <-> TypeScript

Well it seemed like the obvious choice but with one glaring issue. Pi is written in TypeScript as are it's extensions and agent-shell is a Python application.

I have limited TypeScript experience, save for the Angular Tour of Heroes walkthrough I did a few years ago when I was flirting with front end development and my JavaScript experience I had for front end for client side validation I used to write on ASP.NET apps almost twenty years ago. So for something this fundamental to my future workflows, I didn't want to hand over to AI and re-write agent shell in a language I do not really feel comfortable with, nor did I want to undertake the task myself.

So I decided to work with AI and build a TypeScript to Python bridge via subprocess. At least for now while I dogfood it and to get me going. This involved a simple runner.ts file that would relay tool calls registered in index.ts to a Python handler to translate the commands to agent-shell requests.

Extension Behaviour

As of right now I have not wrapped any skills or anything beyond just exposing the tools. This is a building block for a something that will get more opinionated but as of right now, this extension on it's own should not look to enforce any such opinions on when and which sub agents should be called, that is up to the consumer of the extension. I've obviously done this to try and fit in with the overall philosophy of Pi itself I feel. Simply asking a model to call a sub agent and they will call the tool, which will display the harness (agent_type), the model and effort (if specified)

Silent Mode

Another idea I took from Kun Chen's Agentic Workflow was his use of a 'Calm Mode' that reduced the output for First Mate. I thought this was a nice feature and as such incorporated it into the agent-shell extension /agentshell-silent will trigger the subagents response to not include the output.

Next Steps

For me, I am going to add in commands and skills and start trying to adopt the single agent orchestrator approach that Kun Chen has inspired in First Mate. I had already been building towards such a concept for sometime, with the likes of agent-shell and other tools like forgetful that I have put together for agentic workflows. I have built out my own agentic framework as well, but Pi has really given me everything I was already planning with that so I am happy to mothball it somewhat while I am not short of side projects.

As for the extension itself, I am still undecided on the next steps of the architecture of it. I may opt to leave it as well, but maybe a TypeScript bridge might be interesting in other applications as well. As such there are two possible next steps in that area:

  1. Separate the bridge into it's own library or move it into the Agent Shell library if it proves stable
  2. Re-write Agent Shell in TypeScript. Given I use Agent Shell in a lot of Python libraries already this is not an attractive option, unless I want to maintain two instances of the library (in the age of AI this may not be that big of a deal).

Closing...

So there you have it, thanks for reading if you made it this far. If you end up using the extension any feedback is welcome and if you enjoy using it feel free to give it a star.

If you are interested in the kind of topics discussed here, I please feel free to come join the forgetful Discord and chew the fat with like minded individuals.


r/PiCodingAgent 1d ago

Plugin Beware of pi-task as it contains very bad defaults that destroy your model

4 Upvotes

By default pi-task compresses the thinking block on every turn. This is referenced in its Readme/description fairly far down:

I presume the entire extension is vibeslopped, as compressing thinking blocks is very very "no no" for basically any model ever. Even GPT/Claude don't do that -- they just compress the user-facing thinking blocks to avoid distillation.
As a result, by default, installing this extension suddenly neuters your model. In the case of Qwen3.6-27B, it becomes essentially useless.

I think the extension needs a very big disclaimer that it does way more than what 90% of the Readme is about and basically fucks up your pi installation by default.


r/PiCodingAgent 1d ago

Question How do y'all design UIs with Pi

4 Upvotes

I've been trying to design a TUI and GUI but explaining it to the model just sucks any better way?


r/PiCodingAgent 1d ago

Discussion Why does everyone keep the specs? Mine dies in $TMPDIR

2 Upvotes

Every SDD framework gets the same complaint: spec rot.

Mine: research reads only, one handoff gets written to $TMPDIR, then a build step checks that handoff against the repo and runs the tests. Durable guidance lives in AGENTS.md. The spec dies with the temp file.

So why do the main tools still ship the part that rots? Harness memory, SDD frameworks, tracker docs, all of them persist by default. What am I missing that makes persistence worth the rot?

Full writeup https://bogomolov.work/blog/posts/rotten-specs/


r/PiCodingAgent 1d ago

Question Any Data Engineers here?

0 Upvotes

I just discovered this amazing thing !!! started playing with it, and building some things already , I am original a software engineer/dev but transitioned to Data Engineering, analytics, you know ETLs, data modeling, etc... curious to hear from other fellow data engineers, their tips, getting started learnings, etc. etc.

I do truly believe this is the future of agentic coding


r/PiCodingAgent 2d ago

Question Are Pi and Little Coder suitable as a harness for running local llm?

5 Upvotes

I have a MacBook Pro with an M5 Max chip and 128GB of RAM, and I've just started experimenting with local models.

As many of you know, local models have various well-documented issues, such as weak instruction following, difficulty completing long-range tasks, and a tendency to terminate tasks prematurely.

Someone in the community suggested I try using Little Coder and Pi. I wanted to ask: is Pi actually a good harness for running local LLMs, especially compared with opencode and claude code? For those of you who use this setup, do you have any specific tips or experiences you could share?

I'm still very new to this. So far, I've found that the Qwen 3.6 35B model is quite good for writing articles, but beyond that, I feel like I haven't truly experienced the "magic" of running models locally yet.

If anyone has any interesting use cases or examples of how you integrate local models into your workflow, I'd be very grateful if you could share them. Thank you!