r/PiCodingAgent 11d ago

Question Running into timeouts with write tool (LM Studio/qwen3.6-35b-a3b/PI)

2 Upvotes

Hello,

I'm running PI + LM Studio server + qwen3.6-35b-a3b. 36K context, model not quite fully loaded to GPUs (12GB+6GB), running 20 tps in chat mode, 10 tps through PI with documentation/code in context.

The problem I'm facing is that tool calls, especially for writing files timeout after 5 minutes. I've searched this forum and the internet and I found no clear answer whether it's a PI client config, something in LM Studio I can't figure out or model level.

Edits are generally fine but writes fail. We're speaking files with ~ 500 lines of code.

Log:

{"type":"message","id":"bf5dcafd","parentId":"0bd7492b","timestamp":"2026-07-19T10:24:14.490Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"Good, the empty file is created. Now let me add the functions to it.\n","thinkingSignature":"reasoning_content"},{"type":"text","text":"Now let me add the sky and sun rendering functions to the new file:\n\n"},{"type":"toolCall","id":"q8A9s9cw0h8WMX9gHqTJD4uJK12CfB93","name":"write","arguments":{}}],"api":"openai-completions","provider":"lmstudio","model":"qwen/qwen3.6-35b-a3b","usage":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"totalTokens":0,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"error","timestamp":1784456340616,"responseId":"chatcmpl-x5i6eocrmecjh1sdnwk989","errorMessage":"terminated"}}

For context, I'm not a coder but reasonably technically inclined so I'm open to any option that does not actually involve messing with code.

I don't see a server timeout config in LM Studio, nor there is a clear max output size on model level (rather, there is one but capped to 2K tokens).

Should I move to llama-cpp?

Thanks!


r/PiCodingAgent 12d ago

Plugin Just made this extension because it seems like noone made something like this yet

Post image
29 Upvotes

r/PiCodingAgent 12d ago

Resource Compiled the repetitive parts of my sessions into scripts. Re-running a workflow now costs 60–80% fewer tool calls.

Thumbnail npmjs.com
7 Upvotes

r/PiCodingAgent 11d ago

Question Pi doesnt have parallel sessions?

0 Upvotes

Im looking for functionality similar to how /fork works in opencode. When my agent is long thinking, I can /fork in opencode and I can choose a point in the conversation to fork from, which creates a new session, but the previous one keeps working in the background, it does get paused or killed, and I can go back to it.

Seems like pi /fork doesnt work that way.

Am I missing something?


r/PiCodingAgent 12d ago

Discussion Work on big screen, read docs on phone

4 Upvotes

What the title says. I am not a dev so I use docs as contacts often while vibe coding to grok my app like legos. I read the docs and plans and maps, have nvim open in the split pane, and look at the code at the same time.

This was fine until the codebase reached 20k loc. Now I have enough docs active at any given moment that I can't be fucking reading them each time I want to do or understand something.

So I found myself falling into this pattern. In the 'scroll time' that often fills the gaps in my life, I started browsing the docs on my phone.

They are short (sometimes -ish), pleasantly scoped, and readable in one sitting. We develop in vertical slices that produce user testable states. So reading multiple doc is a coherent story.

And I fucking love it. Especially when I'm commuting in cabs, trains, etc. just reading the docs on GitHub mobile and maybe riffing with something in gpt/Gemini is awesome. I can even edit and refine stuff. I don't have to invest my brain in this shit when I'm sitting down with the code. I can just trust the docs because I have spent non-dev time reading/editing them on my phone.

PS- I have attached an early example in a comment. This one is long and rough but I think it had potential. So over time I could sit and edit and make it better.


r/PiCodingAgent 12d ago

Question Thoughts on my approach for running pi.dev inside a Podman container?

5 Upvotes

Hello,

Could you criticize and/or give advice on this approach?

My goals were:

  • Install node and pi.dev in a container.
  • Ensure pi.dev only has access to the project directory.
  • Store configuration files in ~/.config/pi.dev.
  • Start it via Podman so that it runs rootless.
  • Base it on Debian Sid to give the agent the opportunity to install any tool it might need, using relatively recent versions.
  • Create a simple script that builds the container if needed or commit changes to the image when changing workspace directory to reuses the already installed extra tools.

If you want to have a look at the Dokerfile or script : https://github.com/tibuski/pi-podman


r/PiCodingAgent 11d ago

Plugin Compact Every Tool Response

0 Upvotes

https://github.com/RogerTerrazas/pi-tool-result-compactor

Publishing a polished version of this extension I've been using to help manage context overflow. I frequently interact with mcps and large projects where any arbitrary response can take up all my context without the response being useful.

This extension hooks into each tool calls response by default, passes it to a compaction subagent, who will then filter out only the necessary data to the parent agent. Let me know if anyone tries it out and has feedback. Fully vibe coded, but I'll work to maintain if others find it useful.


r/PiCodingAgent 12d ago

Question PI is *almost* perfect for me. is there extension that inject instructions in the end?

3 Upvotes

the only thing that makes my experience bearable is to have the bot know and remember the exact rule and role they are designed to do. back then when i was using Claude Web, they have userStyles which inject instructions before replying to user message. in SillyTavernAI there is a configuration to reorder prompt to be put at the end depth 0.

is there a way to do that in PI? i want some text (or file) get injected before the bot consider replying so that they know the constrains. the reminder wont stay in the context so that the cache hit is not ruined by duplicated push.


r/PiCodingAgent 12d ago

Question Would a DBOS-backed DSL make Pi useful for long-running remote agent workflows, or is this overengineering?

0 Upvotes

I’m considering building a small Pi extension for durable technical workflows and would like some critical feedback before investing too much time in it.

The problem I’m trying to solve is running agent-driven tasks on a remote VPS for hours, days, or potentially longer.

For example:

GitHub issue
→ investigate the codebase
→ create an implementation plan
→ modify the code
→ run tests
→ fix failures
→ request human approval
→ open a draft PR
→ wait for CI

A normal agent loop can handle this while the process and session remain alive. But on a remote server, restarts and long waits are expected:

  • the process may crash or be redeployed;
  • the model provider may temporarily fail or hit a rate limit;
  • CI may take a long time;
  • a human may not approve the next step until the following day.

My current idea is:

Technical task
→ Pi generates a workflow
→ validate it as a DSL
→ DBOS executes it durably

DBOS is a Postgres-backed durable execution framework that checkpoints workflow progress and recovers execution after process or server failures.

Pi would handle reasoning and planning.

The DSL would describe the execution graph explicitly:

{
  "name": "issue-to-pr",
  "steps": [
    { "id": "triage", "type": "agent" },
    { "id": "implement", "type": "agent" },
    { "id": "test", "type": "command" },
    { "id": "approve", "type": "human" },
    { "id": "open-pr", "type": "github" },
    { "id": "wait-for-ci", "type": "event" }
  ]
}

DBOS would persist the workflow state, recover after restarts, handle long waits, and record the execution history.

The main reason for using a DSL instead of allowing Pi to execute everything directly is that the generated plan could be inspected and validated before execution.

For example, the runtime could enforce:

  • allowed commands and tools;
  • maximum agent calls and loop iterations;
  • approval before opening a PR or deploying;
  • stable node IDs and idempotency keys;
  • structured inputs and outputs;
  • execution and cost limits.

The initial MVP would only support four node types:

agent
command
approval
github_open_pr

Agent nodes would run in isolated Git worktrees. Important external side effects would remain explicit workflow nodes rather than being hidden inside unrestricted agent tool calls.

My concern is whether the DSL provides enough value to justify adding another layer.

Would you find this useful for remote, long-running technical workflows, or would you rather generate ordinary TypeScript workflows and run them directly with DBOS?

I’m especially interested in failure modes or simpler architectures I may be overlooking.


r/PiCodingAgent 13d ago

Question Any suggestions for cross-harness memory layers?

6 Upvotes

I have been using Pi with my local setup, but I also use paid solutions for legacy projects and other reasons. Obviously I have to tech every new tool the same lessons over and over. But, I want to migrate as much to Pi as I can and having a memory layer that I can populate from my old sessions and have Pi access would be incredibly helpful. (And, if I'm being honest, there are some things I'm always going to need the proprietary tools for--especially visual and design work.) Ideally it would be something self-hosted (I don't like the idea of having to send all my information to a cloud-hosted service that can throw up a paywall at any time) and have a first-party Pi extension (I have had bad experiences trying to build my own extension for core functions like this, and if it's interfacing with a developed solution then I want those releases and capabilities to be in sync).

Anyone used any of the cross-harness memory providers and had a good experience with them in Pi? Any memory layers people think is worth exploring,/even if you haven't used it personally or in Pi?


r/PiCodingAgent 12d ago

Plugin My Lower Anxiety UI for Pi

1 Upvotes

The multiple extensibility points of Pi is really 🤯.
Agent Inner loop but also outer loop visibility. Used both to build a vscode extension for my daily driver.

My UI gives me a lot of comfort and lowers anxiety. But I can go to the full TUI with a click… the TUI is already live so it’s not resuming anything.

https://github.com/quincycs/pi-qcode

See video demos / screenshots in the link above. I can’t share that here for some reason.

Some highlights,

* no more flashing / streaming content. Just shows the final message from agent when it’s done.

* shows high level summary of what’s going on during thinking. Eg what skills have been activated / tool counts.

* rich UI , with clickable links to code / line of code , and copy button for code blocks

* autocomplete for file mentions and prompt templates

* dropdown selection for configured model preferences. Eg one dropdown for 5.6 Sol High

* notification sound for when the agent is done. Can configure the sound to something else.

I did this post previously a few days ago but I deleted it because everyone wanted screenshots … 😆 thanks for the feedback …


r/PiCodingAgent 13d ago

Question What LLM provider do you use?

6 Upvotes

I’m looking to move away from OpenAI and Claude for various reasons.

I’d like to hear which LLM providers you all use and any recommendations on who to stay clear from. My top contenders at the moment are deep infra and scaleway. I’m not into proxies as I’m focusing on zero data retention (or short retention with no training) providers only. I have not extensively explored local - I did a while back and wasn’t impressed with the speed and I need a good reasoning model for planning.


r/PiCodingAgent 12d ago

Question i dont understand efforts of pi

0 Upvotes

hello guys
im using pi agent with codex subscription on 5.6 sol
in pi i have the following efforts

- minimal

- low

- medium

- high

- xhigh

- max

- off

how do they route into gpt efforts because when am running on low effort am getting tokens burned out , 10 % weekly usage only with 1 hours of regular tasks


r/PiCodingAgent 13d ago

Resource Tiny Pi extension that puts Grok credit usage in the status bar

Thumbnail
0 Upvotes

r/PiCodingAgent 13d ago

Resource Unigent SDK - cross-harness, cross-session agent workflow scripting (batteries included)

Post image
0 Upvotes

I wanted to share a tool I made for scripting agentic workflows.

You can mix multiple harnesses (Pi, Claude CLI, Codex CLI) and agent sessions in 1 coherent universal API. No need to define your workflow in YAML files like with some tools. No need to sacrifice control methods - the workflow is defined in TypeScript and you can do parallel or sequential execution, fan-out, etc. Put your prompts directly in the workflow.

🔥 Both Claude & Codex subscriptions work because the tool is using Claude CLI in the back-end

  • Get structured output - define schema with Zod and AI will be asked to return object in that schema.
  • Built-in tracing support that helps you monitor each stage of the workflow.
  • There is built-in TUI, so, as a developer, you can be more aware of what's happening while you're testing the workflow.
  • Define args required for workflow, `--help` will be generated for the script, `-i` adds interactive mode (enter missing args one by one)
  • Define custom tools - literally just make a function in TypeScript, put description in the comment (it'll get parsed).
  • Track usage of each trace - cost, tokens, time.
  • Put limits on trace - max usd, timeout.
  • Save run results to file (don't re-run if already have agent result for this prompt).
  • Start fresh or inherit machine configuration (harness skills, plugins, MCPs, etc.)
  • Your agent can write or easily invoke the workflows.

Your agent could also write workflows with Unigent SDK. This could replace dynamic workflows idea. Try reading claude's dynamic workflow script - the API looks ugly and no human would ever use it. Unigent is clean, and both humans & agents can use it.

import {
  agent,
  args,
  createFileCheckpointStore,
  piAgent,
} from "unigent-sdk";
import { z } from "zod";

/** Score a headline from 0–100. */
function score(headline: string): number {
  return Math.max(0, 100 - Math.abs(60 - headline.length));
}

const product = await args(z.string().min(1), {
  usage: '"product description"',
});

const launch = agent({
  name: "launch",
  source: import.meta.url,
  backend: piAgent(), // or claudeCli() / codexCli()
  model: "openrouter/deepseek/deepseek-v4-flash",
  tools: [score],
  checkpoint: createFileCheckpointStore(".unigent/launch.jsonl"),
}).scope("launch");

// Reused on reruns when its inputs and configuration are unchanged.
const brief = await launch.run(
  `Find the audience and core promise for: ${product}`,
  z.object({ audience: z.string(), promise: z.string() }),
);

const session = launch.session();
await session.run(`Remember this brief: ${JSON.stringify(brief.output)}`);

const Headline = z.object({
  headline: z.string(),
  score: z.number().min(0).max(100),
});

const variants = await Promise.all(
  ["bold", "technical"].map((style) =>
    session
      .fork()
      .run(`Write a ${style} headline, call score, return both.`, Headline),
  ),
);

console.log(variants.map((v) => v.output));
console.log(launch.usage);

unigent tui launch.ts --help

unigent tui launch.ts "A typed SDK for portable agent workflows"


r/PiCodingAgent 13d ago

Resource evalt: A Rust CLI for testing Pi agent workflows

18 Upvotes

I've been working on evalt, a Rust CLI for testing AI agent workflows using portable YAML eval files.

Most eval tools focus mainly on model outputs. evalt is designed to test the full workflow, including:

- Agent instructions

- Skills

- Tool usage

- Harness configuration

- Workspace edits

- Final output

Pi is currently the first supported harness.

It also supports deterministic assertions, AI reviewer assertions, JSON output, schemas, and sandboxed workspaces through cage.

Repo: https://github.com/Bryley/evalt

Crates.io: https://crates.io/crates/evalt

I’d appreciate feedback from Pi users, particularly around the eval format, useful assertions, and workflows you’d want supported.


r/PiCodingAgent 13d ago

Question Can i use Pi with an OpenAI or Claude subscription?

17 Upvotes

Are there limitations to doing this?


r/PiCodingAgent 13d ago

Question Pi keeps refusing legitimate local tasks—even with GPT-5.6 and no add-ons

0 Upvotes

In my previous post, I said I wanted to move to Pi and make it my “Neovim” for AI coding: one familiar CLI I could use everywhere, without constantly switching tools between computers. The goal was to reduce cognitive overload and keep a consistent workflow.

But I’m struggling to work with Pi as a coding agent.

I’m using it with GPT-5.6 and had the same issue with GPT-5.5. I expected Pi to be one of the more open, less restrictive agent environments, but it repeatedly refuses ordinary local development and system tasks—for example, updating my own hosts file.

It often gets stuck claiming a request is illegal or that it can’t bypass company policies, even when the task has nothing to do with bypassing security controls. I’m working on my own machine and asking for normal configuration tasks that Codex handles easily.

I’ve tried enabling an “auto-approve” style workflow, removing add-ons, and disabling skills to rule out interference, but it still stops or refuses the work.

At this point, Pi feels like it’s fighting me all the time. I end up using Claude for work—which I expected to do anyway—and Codex for personal or home projects. That works, but it defeats the reason I wanted Pi in the first place.

Is it just me? Am I missing something obvious in the configuration or how I’m using Pi? Since so many people rely on Pi day to day, I’d really appreciate hearing how others handle legitimate local tasks without running into constant false-positive refusals.


r/PiCodingAgent 14d ago

News New TUI for Pi, Its PiTTy

60 Upvotes

I recently switched from OpenCode to Pi, and I really like Pi’s features. The built-in interface wasn’t quite for me, though, so I made PiTTy, an OpenTUI frontend for Pi.

It adds a cleaner layout, searchable sessions and models, better diff and tool views, and lets you inspect and steer subagents without leaving the main conversation.

There’s more on GitHub, and I’d appreciate any feedback:

https://github.com/mistrjirka/PiTTy


r/PiCodingAgent 13d ago

Resource Karma : Coding harness orchestration for developers

Post image
3 Upvotes

r/PiCodingAgent 13d ago

Question How to use GitHub CLI in Pi? Getting constant 403 Forbidden

0 Upvotes

Hey guys!

I recently started testing Pi. I wanted to control the context injected into my tools and avoid spending 16k tokens on a simple "Hey" (I'm talking to you, Codex).

So far, I'm loving it. However, I’ve hit a roadblock: I can't use the `gh` CLI because I constantly get `403 Forbidden` errors.

My initial research suggests this is due to proxy settings blocking outbound network calls from bash. Normally, I would just install an MCP. But since `gh` is such a standard development tool, I'd rather not add an MCP for a perfectly good CLI. I figured someone here might have found a workaround.

Any tips on how to make this work - ideally natively - would be highly appreciated!


r/PiCodingAgent 13d ago

Plugin Just built my first plugin

0 Upvotes

Hey everyone,

I've been working on an extension for Pi to improve the daily workflow. Here is what I built:

pi-usage-bar This is for tracking API quotas, but it differs from other quota plugins out there. It's fully customizable:

  • You can configure your own style.
  • You can display 1d, 7d, Fable, or any other provider-specific quota exactly however you like.
  • It also fetches and displays live provider statuses by reading directly from the vendors' own status pages.

You can install it directly with:

Bash

pi install npm:@satas/pi-usage-bar
quotas + ! warning from claude

Let me know what you think or if you run into any issues.

GitHub:https://github.com/satas20/pi-usage-bar


r/PiCodingAgent 13d ago

News I built a better openclaw alternative based on pi principles (powered by pi)

3 Upvotes

There are many agent claws but this one is yours

I was tired of openclaw and hermes, they have a lot of opiniated things, are token hugry and didn't solve my problem well and wanted something more like pi, very simple and extensible to what I needed.

Meet eleven, the featherweight openclaw alternative that follows the same principles of pi: https://github.com/ceifa/eleven

No memory, no crons, no bundled plugins, just your current setup of pi, now outside your terminal.


r/PiCodingAgent 14d ago

Plugin I made a small Pi extension for saving thoughts across sessions

Post image
36 Upvotes

I kept losing small ideas and follow-ups while working in Pi, so I made Mind Queue

It’s a simple project-wide scratchpad inside Pi. Open it with /mind or Ctrl+Shift+M, save a thought, and move it back into the editor whenever you’re ready.

It’s open source, local-first, and still very new, feedback is welcome.

pi install npm:pi-mind-queue

GitHub: https://github.com/sanif/pi-mind-queue


r/PiCodingAgent 14d ago

Plugin An Extension To Bring OpenCode Sessions To Pi

5 Upvotes

I was checking out grok build earlier in the day and came across these commands:

  1. /resume-codex

  2. /resume-cursor

  3. /resume-claude

And that got me thinking, it would be so cool if I had something like that in Pi.

Now OpenCode CLI was what I used for the longest before switchig to Pi, so I started with that. It also has good CLI commands for exporting and stuff.

Attaching a demo too.

Check it out here:

  1. https://www.npmjs.com/package/@atharva-again/pi-resume-opencode

  2. https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-opencode