Where the idea came from
This post is a suggestion, not a plan. I do not work on iterate, and I have not built any of this. Basically, I think an iterate app would be cool, and this is an idea the iterate team could pick up.
The idea started with the Omnigent app, which opens coding agents’ sessions on a phone.
Meanwhile, my iterate mind has started to host apps of its own. Part one showed that a whole app is a folder and one case in worker.ts. For instance, the mind’s blog is already its own small site with a web app manifest, so a phone can install it.
In my own words at the time: “I was just thinking about the malleability of iterate and how you could have a mobile app that hosts multiple apps modelled after the omnigent app.” Thus, I would like the same for every app a mind hosts, in one iterate app.
The idea at a glance
| Part | What it is |
|---|---|
| The shell | The suggested iterate phone app, which opens the apps a mind hosts as tiles. |
| An app | A site the mind serves, such as the blog or a private app. The planned Requests app could join them once built. |
| A pin | An app a person chose to keep in their shell. |
| A grant | Permission for one person to open one app. |
| The front door | The place where a request enters an app, and where a grant is checked. |
In short, the shell shows what a person may open, and the front door decides it.
Pins and grants
The first half of the idea was about choice: people “set a list of them within their mobile app”. Each person signs in as themselves, ideally with a passkey of their own, and pins the apps they care about. Additionally, the list could span several minds, so one shell could hold apps from my mind and from someone else’s.
The second half came a little later: “Maybe too members can access specific apps only based on the apps they’ve been granted access to.” Thus, a pin is a person’s choice, whereas a grant is the owner’s.
However, the word “member” needs care here. In iterate, a member reaches the whole mind, and part two showed that an agent can do what a member can. For this reason, even people I trust should not become members. In the shell, they would be people with grants: each sees and opens only the apps granted to them. Put simply, a grant makes the Requests design’s per-app list general.
Check at the front door
The most important design point is where a grant is checked. My answer is the front door, where a request enters an app, rather than inside each app’s code.
The reason is that an app’s code changes. Part one showed that an app is private because of one line in its case:
case "my-app":
return app.open?.(request) || this.auth.require(request) || app.fetch(request, this);
That line works; however, it lives in the mind’s own repository, and an agent can commit to that repository. Consequently, a bug, or an agent rewriting an app, could drop the check and leak access. A check that sits in front of every app, and that no app’s code can skip, holds even when an app is wrong.
In the same light, the shell only reflects the grants. Hiding a tile is not security, because anyone can type an app’s address into a browser. Thus, the shell asks which apps a person may open and draws those tiles, and the front door turns away everything else.
Who may change a grant
A grant is only as strong as the rule for changing it. If an agent can add a grant, it can grant itself, or anyone, access to any app.
For this reason, changing a grant should wait for the owner’s passkey. A mind already has approval rules that can make a call wait for a member’s passkey; however, a new mind starts with no rules. Thus, the guard only holds once the mind’s approval rules are locked, so that an agent can neither change a grant nor loosen the rule that guards it.
A simple version today
A simple version needs no app store. In fact, a mind could already serve a simple version of this itself, as an installable web app, the same way the blog installs from its manifest. In other words, the shell would be one more app on the mind, with the tiles drawn from the person’s grants and pins.
However, a native iterate app would do better at the things a web app does less well: notifications and widgets. That part would be for the iterate team to decide.
Open questions
- One sign-in. Can a person sign in once and open every granted app, across several minds, without signing in to each?
- Notifications. How does an app tell a person that something changed, and who decides which apps may notify them?
- Routing. Can iterate’s own routing check a person’s access per app, so that the front door is the platform’s and not a
casein a mind’s code? This is the question that decides whether the design holds.
If the iterate team picks this up, these questions are where I would start.
References
- What is a mind? Taking iterate apart: the door, and how an app is guarded today.
- Inside a mind: agents, Cloudflare and trust: members, people who are not members, approval rules and the Requests app.
- iterate/core: the platform’s source.