Your fork, upstream’s releases, and an agent in between

A few weeks ago, Thariq asked a good question:

feels like there needs to be a new way to distribute opensource software such that people can modify via agents but also get upstream automatically merged in

coding agents can do this but they won’t do it automatically

TH

It’s now easy to fork a piece of software and have an agent change it for you. What happens to your copy when upstream ships a new version?

We’re running into this now mostly because of agents, and I think it tells us a lot about where software is going. A lot of it will be harnesses, the software you run your agents in, built around one problem or one business: running its processes, and finding and building answers to new opportunities. How do you keep something like that current? That’s the question I’ve had to answer for my own harness, GitSpace.

How I got here

I did the thing. I started with Claude Code, then I went to Codex, then I tried OpenCode, and then OMP. I’ve had every opinion about every one of these harnesses.

Then I said, let me make my own multiplexer for OMP. That’s where the craziness started. The first version of GitSpace ran in a terminal, on the terminal interface (TUI) that OpenCode made. TUIs were the hype at the time, and I was definitely in it.

I’ve been running my own harness for a while now, through several versions. What I’ve learned is that the most important thing about a harness is that it can adapt. It has to modify itself while you’re using it, predictably, and keep running.

To do that well you have to think about migrations, infrastructure and the guarantees your software makes: distributed systems under load, the CAP theorem, Byzantine failures. If you don’t want to think about all of that, you have to be very selective about the primitives you build on.

That’s why pi-durable and Cloudflare Artifacts looked like the right place to start. Your agents run in the cloud. Each one is an actor in a Durable Object, and it runs tools against files on whatever machines you attach: your laptop, a cloud environment, whatever. A lot of tools don’t need a machine at all. An agent can look at your service, browse it, search it and edit it without one. On top of that you get a lot of elasticity in how many agents you can run at a time.

Why you’d change your harness while you use it

That’s all generic, so let’s get concrete. Say you use Cursor or Codex. Should you be able to change its internals while it’s running?

If you do your daily work in it and you want to keep getting better at that work, yes. Sooner or later there’s a piece of UX you need, and what you really want is to reshape the harness for the moment you’re in.

It could be a new review need: you have to see a before and after side by side, at volume. It could be a small tweak to where and how an agent asks you questions, and which blocks it uses to ask. Some things you need a high level of control over. Others you can take off the shelf.

These are small improvements, and you want to make them every day. So you need a loop you can work inside, one that updates your harness without restarting any of your other work.

That loop is how I’ve been able to ship more and be more confident in what my agents ship. Every time a new kind of work shows up that I need to review, I change the harness: how it tells agents to write the review, and the code that presents the review to me.

Why an extension isn’t enough

You could build an extension to an existing tool, and often that works. But an extension only lets you compose functionality where someone planned for you to compose it. That might not be where your problem is, and it might not be the thing you need to do next.

Say I want to share one view of a review publicly, with certain people, behind my own OAuth. Now I have to build something custom into the harness.

Or say I want my harness to use cloud browsers, and I want my own browser extension so an agent can use my browser too. There are extensions for that, and there’s MCP. But I also want every capture from that browser to go into a drive, in a note format that GitSpace’s Change Guide understands. Then other people can comment on it, and I see their comments on my work right in my harness.

That’s a custom integration. We’ve been building those.

Take what you want from upstream

This is why Thariq’s question is so interesting.

A traditional Git workflow is mechanical. Upstream ships, you merge it, and you get all of it. Agents let you selectively take influence from an upstream, and I think that matters a lot in this new age of software. Maybe you need to patch a vulnerability. Maybe you only need one part of the other codebase, and you want the rest gone from yours so it can never become a vulnerability. A build step could strip some of that out, but you may not want it in your codebase at all.

So agents give us a new primitive: an agent that looks at an upstream and decides, based on a policy, what to apply to your branch. Once you see that as the unit, you can set up an automation for it.

Two upstreams

OK, so we’ve established that you might want to patch your own harness. What now?

Once the harness is yours, you have to keep it current. In GitSpace, your harness is a project inside the harness. The orchestrator is a project inside the orchestrator.

GitSpace is a platform, and it’s also the software you run on that platform. Every account runs its own copy: its own Worker, its own frontend and its own machine runtime, built from a GitSpace project inside the account. Out of the box that project points at upstream, inKibra/gitspace.sh on develop. Point it at your fork and your fork is what the account builds. The version deployed on your account is yours, and it’s going to be different from other people’s.

So there are two upstreams. You’ll still want what upstream GitSpace ships. And I maintain GitSpace, so I want what pi-durable ships upstream of me, among others.

When we built automations, we asked what the GitSpace way to do this was, and the answer was a little recursive: GitSpace should use GitSpace automations to keep itself up to date. An automation watches for a release and tells an agent, and the agent opens a pull request.

Those pull requests come from a GitHub app built into GitSpace. It isn’t one GitSpace bot shared by every account. Your account has its own bot, so it can be pointed at just your work and answer to just you.

Because the harness adapts, the review does too. Each piece of information that matters in your review shows up in the format that suits it, so you can bring in the upstream changes you care about and understand why upstream made them.

This isn’t only for the harness. You can set up the same automation for your normal projects, right inside GitSpace.

What happens when upstream ships

Here’s how it goes on my account.

  1. Upstream publishes a release. Every GitSpace project starts with one automation, GitSpace releases. It watches the project’s repository for tags matching v*, or the upstream parent when the project builds a fork.
  2. The automation hands the release to the project agent. The agent reads the release notes against what my account runs and what my branch changes, and tells me in a few lines what the release changes for me.
  3. The agent asks one question. On a fork, it offers to merge the release in a workspace and open a pull request.
  4. A workspace merges the tag into my branch, resolves the conflicts, runs the checks and opens the pull request. It has my branch’s history, and the goals and journal entries my agents wrote when they made those changes, so it isn’t resolving conflicts blind.
  5. I review it like any other pull request. Failed checks and my review comments go back to that workspace, and the agent keeps working on it until I’m happy.
  6. After I merge, the project agent asks whether to build my branch and launch it. I can launch it as a trial first, and the Back to default button puts the previous release back.

None of my other agents stop for this. pi-durable commits each agent’s conversation, subagents, queued messages and running tasks before showing them, so nothing important lives only in memory. A release tells every workspace to move to the new code between turns. An idle one moves at once, and a busy one finishes what it’s doing first.

The project agent asks before it merges and asks again before it launches. I can edit the automation to stop asking, but an automation that an agent proposes does nothing until a person turns it on. Releases are pinned to a commit and a hash of every file. Events from people without write access to my repository never reach an agent.

What’s still hard

Textual conflicts are the easy case. If upstream renamed a function I also changed, an agent sorts that out.

The hard case is a release that changes behavior my customization depended on without touching the same lines. That merge goes through cleanly and still breaks me. My checks and the pull request are the defense, and the agent’s note on what the release changes for me is the early warning. I still want a person to say yes.

Make it so

You can take GitSpace and put it into itself. Think of a feature you need, adapt it and bring it forward, while your real work stays on building your business, doing better for a client, reaching for the stars. The harness adapts around you, and upstream is just a good library to read.

That makes “when did you fork?” an interesting question. There could be thousands of versions of GitSpace out there, maybe hundreds of thousands. That means more ideas about how GitSpace should work, and networks that form around those ideas and make them precise. We’re not filing an issue. We just make it so.

GitSpace is in technical preview right now. A lot of the engineers who’ve started using it tell me it’s become the software factory at their jobs, and they’ve built their own integrations from GitSpace into the way they work.