News for hackers. Stuff that matters.

badlogic

Re:Pi 1.0 on Friday October 02, 2026 @06:36AM (#49931976)
/settings > tui > regular

it's still there and won't get removed.

Re:Pi 1.0 on Friday October 02, 2026 @06:36AM (#49931969)
Multiple answers. Windows Terminal users constantly had problems because WT is ... not great. Fullscreen mode fixes that. This also applies to some other lesser used terminals.

I wanted the out of the box experience to be smoother for more people, so made it the default. Scrollback mode will stay though for users who prefer it.

Re:Pi 1.0 on Friday October 02, 2026 @06:32AM (#49931942)
scrolback buffer mode is definitely not going away.
Re:Pi Durable on Friday October 02, 2026 @06:10AM (#49931801)
The requestId is an imdempotency key, which is exactly how you get exactly once semantics.
Re:Pi Durable on Friday October 02, 2026 @06:08AM (#49931784)
I do not see any resemblence to Gastown at all? Pi Durable is a library for writing durable agents. You can plug in any sandbox solution you like (aka execution environment in Pi Durable speak).

Within a session, you can give each conversation its own sandbox, based on your application's needs and policies.

Re:Pi Durable on Friday October 02, 2026 @06:05AM (#49931767)
Oh, the tree is still there. It's just flatter :)

In Pinthe coding agent, each transcript entry is parented to another entry. That was actually exceptionally dumb.

If you do /tree in pi, pi needs to flatten that tree into linear, nested conversations.

In Pi Durable, we corrected this mistake. A conversation is a chronological, immutable list of entries. A conversation can be parented to an entry in another conversation, and thus inherits that parent's older conversation entries starting from that entry.

So, exactly the same functionality, just less dumb.

Re:Pi Durable on Thursday October 01, 2026 @05:57PM (#49927546)
You can already (sort of, kind of) do that via a task (please excuse the agent slop, it's midnight and it's been a long day):

``` const SyncToPostgres = defineTask<{ entryId: string }, { phase: "send" }, void>({ kind: "app.sync-postgres", version: 1, initial: () => ({ phase: "send" }), phases: { send: async (task, runtime, context) => { const entry = await runtime.read(/* the entry */); await postgres.upsert("messages", { id: task.input.entryId, ...entry }); // idempotent by id await runtime.commit(() => ({ status: "terminal", outcome: { status: "completed" } }), context); }, }, });

   await root.commit(async (tx) => {
      const id = await tx.entry(AssistantEntry, answer);
      await tx.createTask(SyncToPostgres, { entryId: id }, { ownership: { kind: "conversation" },
 background: true });
   }, context);
```

The commit on the root conversation picks out the last agent answer id from the transcript, and durably schedules a task that then syncs it to postgres. inside the task, you fetch the answer by id and send it over to postgres indempotently.

What's missing here is sugar, basically a hook that runs inside each commit so the outbox write is atomic with the state change, with ordered delivery, and possibly a durable change feed with cursors.

Thanks for the input!

Re:Pi Durable on Thursday October 01, 2026 @05:33PM (#49927329)
Things are still not settled, and while the API looks like store i/o it's actually more similar to Immer's drafts, just with a different encoding, as JSON patch can't deal with the kinds of data we encounter in our workloads, at least not in a way that keeps memory and perf within some bounds.

The good thing is that this more low level API can be easily papered over with a nice sugary thing.

Re:Pi 1.0 on Thursday October 01, 2026 @05:03PM (#49927059)
Cheers, appreciate the answer!
Re:Pi 1.0 on Thursday October 01, 2026 @04:41PM (#49926840)
I've read this a bunch of times around socials now these past days and I'd really like to understand what exactly indicates that the minimal agent TUI days are numbered for Pi?

I did not read this when I added support for AGENTS.md, skills, llama.cpp, extensions, alt TUI mode, mid-convo system messages and tool set changes to preserve KV cache, image model support, and everything else I added since November last year.

Codemode and MCP support are the latest additions. We follow what the models are trained on. E.g. the GPT family of models is actually trained on codemode for parallel tool calls now. The MCP spec has gotten a major update recently that makes it much less bad than it used to be in the past 24 months. Combined with codemode, it is now passable, so it got added to pi.

All of these features are still entirely optional and the only thing I could think of that could be considered "bloat" is the additional few megabytes for the QuickJS WASM blob.

So, I mean this in earenst and absolutely not combative: could you explain what exactly flips the switch between "pi is minimal" and "pi is not minimal"?

Re:How Compaction Works in Pi on Friday August 14, 2026 @05:52AM (#49296605)
pi has /tree, which is basically the same, except in the same session.
Re:DeepSeek Harness on Thursday August 13, 2026 @04:17PM (#49291286)
ah. you can also ask pi to write a ui plugin for you. internals haven't migrated to plugin architecture yet tho.
Re:DeepSeek Harness on Thursday August 13, 2026 @04:16PM (#49291284)
pi also happily shows and stores deepseek CoT traces.
Re:DeepSeek Harness on Thursday August 13, 2026 @01:41PM (#49289407)
just read the paper, and there aee definitely some interesting ideas in it.

a plugin's registrations returning individual cleanup handlers is nice. in pi, you clean up all registrations in one go in the session-shutdown handler.

i also like the use of generator to to clean up partial registrations nicely.

the cross-plugin dependency injection and resolution i'm not so sure about. it comes with a lot of footguns and limitations as pointed out in the paper.

works ok within a single compilation unit, i.e. a plugin with many modules. does not help with typing of cross-plugin dependencies.

most plugins do not have dependencies on each other, so this more complex system doesn't win you much, e.g. with load order and conflicting registrations (i.e. two plugins registering the same tool).

being able to reload a single plugin on change while letting the others not in its dependents list jug along is neat. but that also only works if plugins actually declare dependencies (see last paragraph), and also has a lot of limitations. and the simple case, a plugin with no dependencies or dependents, which i'd say is the 90% case, does 't need that complexity either.

definitely cool stuff tho! remains to be seen how well it works in a real plugin ecosystem.

> they push the boundaries further, to the UI components

can you elaborate on this? pi extensions support contributions to the UI. in pi v1, they are limited to in-process UI. v2 splits server and client, and with that UI.

Re:Pi's Minimalism Is Its Advantage on Wednesday August 05, 2026 @08:21AM (#49181824)
i don't remember endorsing any rust rewrite of pi.
Re:Thoughts on Slowing the Fuck Down on Wednesday March 25, 2026 @07:42PM (#47524841)
i wrote the blog post and i also wrote pi.dev. i haven't written much code myself in the past 12 months. i'm not making coding agents out to be the problem. the entire last section keeps is basically "use a clanker for this and that".

i'm making specific usage pattersn out to be the problem, and explain why those patterns can't work due to the way agents work.

Re:Thoughts on Slowing the Fuck Down on Wednesday March 25, 2026 @07:38PM (#47524811)
you get me
Re:OpenCode – The open source AI coding agent on Saturday March 21, 2026 @11:06AM (#47467700)
you can use subscriptions with pi.
Re:Pi – a minimal terminal coding harness on Wednesday February 25, 2026 @05:48AM (#47149896)
OpenAI officially supports using your subscription with pi. Same for OpenCode and other 3rd party harnesses.
Re:Pi – a minimal terminal coding harness on Tuesday February 24, 2026 @06:11PM (#47144784)
if i ever want a claw, i'd obv. go with this :)
Re:Pi – a minimal terminal coding harness on Tuesday February 24, 2026 @06:03PM (#47144675)
wow, i love this! was about to build this myself, but this looks exactly what i want.
Re:I’m joining OpenAI on Monday February 16, 2026 @02:45AM (#47032095)
i'm not a member of openclaw. i build some oss in parallel, and added 3 or so commits to the openclaw repo. and peter is taking some of the openclaw contributors with him.
Re:I’m joining OpenAI on Sunday February 15, 2026 @07:54PM (#47029549)
don't do this, this is ridiculous. both openclaw and pi are passion projects by two friends who are already well off.
Re:I’m joining OpenAI on Sunday February 15, 2026 @07:09PM (#47029229)
peter's claw is a lot more than just a wrapper around my slop.

i too had plenty of offers, but so far chose not to follow through with any of them, as i like my life as is.

also, peter is a good friend and gives plenty of credit. in fact, less credit would be nice, so i don't have to endure more vibeslopped issues and PRs going forward :)

Re:Claude Opus 4.6 on Thursday February 05, 2026 @08:44PM (#46907956)
OpenCode is not written in Go. It's TS on Bun, with OpenTUI underneath which is written in Zig.
The web package has a minimal example. I'm not a frontend developer, so YMM hugely V.
FWIW, you can use subscriptions with pi. OpenAI has blessed pi allowing users to use their GPT subscriptions. Same holds for other providers, except Flicker Company.

And I'm personally very happy that Peter's project gets all the hype. The pi repo already gets enough vibesloped PRs from openclaw users as is, and its still only 1/100th of what the openclaw repository has to suffer through.

It's not an API drop in replacement, if that's what you mean. But the pi-ai package serves the same purpose as Vercel's AI SDK. https://github.com/badlogic/pi-mono/tree/main/packages/ai
There are lots of ways of doing subagents. It mostly depends on your workflow. That's why pi doesn't ship with anything built in. It's pretty simple to write an extension to do that.

Or you use any of the packages people provide, like this one: https://github.com/nicobailon/pi-subagents

libGDX, now that's a name I haven't heard in a while.

Older »