Studio
The Studio lets someone change a web project by talking to an AI agent, and watch the result live: the conversation on the left, the project’s preview on the right. It is optional and off by default. The agent is OpenHands (MIT), used as it is published: Opsifier talks to its agent server, and brings the interface, the projects and their previews.
The server’s administrators reach every project in the Studio, and anyone else the projects shared with them: a designer, for example, with an account of the panel and nothing else on the server. One agent server still works on every project’s folder, so someone a project is shared with could ask it about another project’s files; each project will get an agent of its own.
Set it up
Section titled “Set it up”You need a model the agent can use, an OpenAI-compatible address, such as a model served by vLLM on your own machine, or a provider’s API key, and a GitHub token. Everything else is made from the panel, except one folder on the server.
1. A folder for the projects
Section titled “1. A folder for the projects”Each project the Studio works on is copied into this folder, and the agent and the project’s preview both mount it. On the server, make it and give it to the agent’s user, 10001 in the agent server’s image:
sudo mkdir -p /srv/studio && sudo chown 10001:10001 /srv/studio2. The agent server
Section titled “2. The agent server”In a project of your own, studio for example, create a service agent:
-
Source: the image
ghcr.io/openhands/agent-canvas:1.40.0. When your projects lock their dependencies with Bun, as projects made with Lovable do, give the agent Bun too, with this Dockerfile as the source instead:FROM ghcr.io/openhands/agent-canvas:1.40.0USER rootCOPY --from=oven/bun:1.3 /usr/local/bin/bun /usr/local/bin/bunRUN ln -sf /usr/local/bin/bun /usr/local/bin/bunxUSER openhands -
Storage: a volume mounted at
/home/openhands/.openhands, where the agent server keeps its settings, its key and its conversations, and the server’s folder/srv/studiomounted at/projects. -
Deploy it, then open its address once, from its domain: in its interface, set up the model, and add a secret named
GITHUB_TOKENholding the token of step 3.
With a model on your own server, give it time: in the model’s settings, a timeout of 900 seconds with one retry lets a long answer finish, and stops one that never comes after half an hour at most. The agent server’s own default, 300 seconds tried five times, stops an agent at work on a long conversation after 27 minutes of waiting. Each project’s agent server takes the model’s settings for its next conversation.
The agent server listens on 127.0.0.1:18000 in its container, where the panel reaches it: it needs no domain of its own after this step.
3. The GitHub keys
Section titled “3. The GitHub keys”A fine-grained personal access token reaches the repositories of one owner only: your account, or one organization. Make one for each owner whose repositories the Studio works on. On GitHub, Settings, Developer settings, Fine-grained tokens: choose the owner as Resource owner; under Repository access, the repositories the Studio may work on, or all of them; under Permissions, Contents in read and write.
In the Studio’s settings, under GitHub keys, add each token with its owner, as in github.com/<owner>/<repository>. The panel keeps it sealed and never shows it again; Check asks GitHub whose token it is, when it expires, and how many private repositories of the owner it reads, and the list then shows a token GitHub refused. To let the Studio work on another repository of an owner later, edit that owner’s token on GitHub: it keeps its value, and nothing changes in the panel.
The keys serve projects that have an agent server of their own, with One agent per project on (see One agent per project). For such a project, the Studio uses the key of the owner that holds its repository, to copy it and to pass its agent’s git on to GitHub; agents never see a token. When GitHub refuses the key for a repository, the Studio tries the agent server’s secret GITHUB_TOKEN, and keeps to it for that repository for ten minutes: a key made for a few repositories does not shut out the owner’s others. Without a key for an owner, the agent server’s GITHUB_TOKEN serves. On the shared agent server, the agents push with its GITHUB_TOKEN themselves, so the keys are not used there: a key would sit in the container every project’s agent runs in.
4. Turn the Studio on
Section titled “4. Turn the Studio on”- Open Settings, Studio, and turn it on.
- Choose the agent server’s service. Keep its address,
http://127.0.0.1:18000, and its key file,/home/openhands/.openhands/agent-canvas/api-key.txt; leave the key file empty when the key is in the container’sSESSION_API_KEYvariable. - Set the projects folder to
/projects, the folder as the agent server sees it. - Save, then Check the connection.
5. Add a project
Section titled “5. Add a project”Open Studio in the top bar, then Add a project, and give the repository: its address, such as https://github.com/owner/name, or owner/name, and a branch when it is not the default one. The Studio then:
- copies the repository into the projects folder, from inside the agent server’s container, with the key of the repository’s owner, handed over on standard input, or else the agent server’s
GITHUB_TOKENsecret: the token never leaves that container, and is never written in the copy, whose Git reads it from a credential helper; - makes the project’s preview, a service
<name>-previewin the agent server’s project: the project’s Vite development server on the same folder, with the inspector, limited to 3 GB of memory and 2 CPUs, at an address of the server’s domain for services; - links the two, and opens the project. The preview’s first start installs the project’s dependencies, which takes a minute or two.
When the token does not reach the repository, the Studio says so, and adding it again once the token reaches it carries on from the copy already made. Only projects that use Vite can be added this way for now. Any other set-up can still be linked by hand with Link a project: a service whose container shows the project’s live preview, and the project’s folder as the agent server sees it.
Share a project
Section titled “Share a project”- Invite the person to the panel, from Settings, Accounts, as a member with no project: such an account reaches nothing on the server by itself.
- In the Studio, open the project and use Share this project: tick the accounts that may work on it.
Each account a project is shared with sees it in the Studio, with its conversations, which everyone on the project shares, its live preview, which it may start, and its remarks, for which it may make links for clients. It sees no other project, and no service, log, variable, terminal or setting of the server. An account that reaches no project of the panel opens on the Studio, without the panel’s menu. Untick an account to take the project back.
Put a project on pause
Section titled “Put a project on pause”A project nobody works on for a while can be put on pause, to free what it takes of the server. In the Studio’s list, an administrator clicks the pause button next to the project and confirms. Its preview stops, and so does its own agent server; on the shared agent server, only its preview stops. Nothing starts them again until someone resumes the project: opening it, a message, an update from GitHub or showing a version is refused meanwhile, with studio_project_paused.
- Its conversations stay readable, from the copy the panel keeps; what happened in them is copied before the agent server stops.
- Its links for clients show the page of a site switched off until it is resumed.
- It is refused while its agent is at work, which would stop halfway: put it on pause once it has answered.
The list shows On pause, with who did it and when. Whoever the project is shared with resumes it, with the play button in the list or Resume in the project, where the preview and the message being written say it is on pause: the preview starts again, from what is on GitHub, and its own agent server with it. The Activity says who put it on pause and who resumed it.
Delete a project
Section titled “Delete a project”Next to Open, the Studio’s list gives an administrator a link to the project’s Opsifier project, with its services, logs and deployments. An administrator deletes a project from the same list, with the bin, and types its name to confirm. Its conversations, shares, remarks and client links go, and so does what the Studio made for it: its own agent server, its preview, and the Opsifier project studio-<folder> that held them. Its folder stays on the server, with any work not pushed yet: adding the same repository again picks it up, under the same name. A service the Studio did not make, such as a site linked to it, stays, without the Studio’s sign-in in front of it; only the agent server the Studio put next to it goes. A preview that goes stays behind the sign-in until it is gone, and each service goes through its own destruction, so nothing can be deployed alongside.
Previews behind the panel’s sign-in
Section titled “Previews behind the panel’s sign-in”With Previews behind the panel’s sign-in on, in the Studio’s settings, each preview asks for the panel’s own account instead of the password the server’s gate shares with every site. The server’s administrators and the accounts the project is shared with get in; nobody else does.
- Traefik asks the panel about every request to a preview. With no cookie for that preview, the browser goes through the panel, which knows who is signed in and sends it back with a code good once, for a minute, which becomes a cookie of that preview only, for twelve hours.
- Whether that account may still open the preview is read again at least every half minute: a project taken back, or an account turned off, stops opening it.
- The agent reaches the preview inside the server, by its service’s name, which the sign-in does not stand in front of.
- For the preview to open inside the Studio, the panel and the previews must share a domain, as
panel.example.comand the previews’*.example.comdo: a browser only sends a frame its cookies within one site.
One agent per project
Section titled “One agent per project”With One agent per project on, in the Studio’s settings, each project gets an agent server of its own:
- Its own Opsifier project. A project added to the Studio goes in
studio-<folder>, with two services,previewandagent. Their network keeps them away from every other project’s services: the agent reaches its preview, athttp://preview, and nothing else on the server. - Its own folder. The agent server mounts the project’s folder, and no other folder of the server.
- No GitHub token. The agent’s
git pullandgit pushgo to the panel, at/api/v1/studio/git/<project>.git, with a token that opens that address only. The panel passes them on to the project’s repository with the Studio’s key for its owner, or else theGITHUB_TOKENsecret of the agent server named in the settings, which never leaves it. Each push is recorded as astudio.pushAction. - A copy of the model. The agent server named in the settings becomes the model. Each project’s is built from the same image or Dockerfile, with the same deployment settings, fresh volumes of the same names, 4 GB of memory and 2 CPUs. It gets none of the model’s variables, which may hold secrets, and makes its own key in its key file. The model’s settings, model profiles and agent profile, with the key their stored keys are encrypted with, are copied in before each new conversation whenever they have changed, without the model’s standing instructions (
system_message_suffix,user_message_suffix): written for the model’s own place, they would send a project’s agent to previews and folders it does not have, and the Studio tells each conversation what it needs. Instructions for one project belong in its repository. The first copy restarts the new agent server once so that it reads that key, and the model’s secrets are never copied. Everything in those settings goes to every project, MCP servers and their keys included: keep there only what every project may use. A project’s agent can read a model profile’s API key, since it calls the model with it. - Up while someone works on it. Opening the project, or sending a message, starts its agent server and its preview, deploying them the first time, whoever opens it; reading a conversation does not, and while the agent server sleeps the conversation shows from the panel’s copy (see The conversation). An agent server nobody has sent anything to for 45 minutes, with no conversation at work, is stopped. A first deployment that failed is not tried again by the Studio: an administrator deploys the service again once its logs say why.
Turning it on is refused until the model can be copied: its settings in a volume (the one that holds its key file, or the one at ~/.openhands), its key in a key file, an image or a Dockerfile for its source, a projects folder, and an address for the panel, which each agent reaches it at.
Moving the projects already in the Studio
Section titled “Moving the projects already in the Studio”The projects linked before stay on the shared agent server and wait for their own: a new conversation on one of them is refused until it has it. Give each project its own agent, in the Studio’s settings, gives each one its agent server, by where its service lives:
- A service in an Opsifier project of its own, such as a site with its database: the agent server goes next to it, in that project, whose network is the project’s own already. Nothing of the service moves, is copied or stops; the agent reaches that project’s services, and only them.
- A preview among other projects’ previews, in the agent server’s own project: when it is a Vite project, the Studio makes the project an Opsifier project of its own, with a preview on the same folder and the agent server, and the project’s link, conversations and accounts move there. Nothing is deployed until the project is opened. The old preview is stopped and stays where it was, out of the Studio, for an administrator to remove: still running, it would show the project’s folder without the Studio’s sign-in.
- Anything else in the agent server’s project is not moved, since the Studio does not know how to make it again: move it to an Opsifier project of its own first.
The conversations held by the shared agent server are paused, and can still be read, not continued: a new conversation goes on with the project’s own agent. A project whose folder is not under the projects folder, is not a copy of a GitHub repository, or holds a credential in its git settings (a user or token in a remote’s address, an extra header), cannot have its own agent, and the Studio says why.
How it works
Section titled “How it works”- The panel reaches the agent server from inside its container. For each request it runs a short Python script in the agent server’s container, which calls the server on 127.0.0.1 and returns its answer. The agent server needs no domain, and it shares no network with the panel.
- The panel never holds the agent server’s key. The script reads it inside the container, from
SESSION_API_KEY,OH_SESSION_API_KEYS_0or the key file. A conversation needs the key to look up the agent server’s own secrets, such as a GitHub token: the panel sends a stand-in, and the script puts the key in its place. - A conversation starts the way the agent server’s own interface starts one: with its active agent profile and its instructions, the project’s folder as the workspace, and its secrets looked up by name. The Studio adds what the agent needs to know about the project: its folder, the preview’s addresses, from the agent’s container and for the user, never to start a development server of its own, to pull before a change and push once it works, with the
GITHUB_TOKENsecret or, with one agent per project, through the panel, and to check each change on screen, at a phone’s and at a desktop’s width, before it answers. - The agent server keeps what was said. The panel keeps which conversations belong to which project, and who started each. Taking a project out of the Studio, or deleting its service, forgets them in the panel; the agent server keeps them.
- Opening a project starts its preview when it is stopped, as opening a project in a hosted builder would.
- Opening a project brings in what was pushed to GitHub meanwhile, with one agent per project, from a hosted builder, another person or another agent, before its preview starts and installs its packages. The panel fetches the folder’s branch from the project’s repository and moves the folder forward only when that overwrites nothing made here: a change not saved yet stays, as long as GitHub’s changes leave its files alone, and so does a file kept out of git. When they are in the way, or when changes saved here are not on GitHub yet and GitHub has others, the folder stays as it is and the Studio says so; the agent brings the two together at its next request, since it pulls before every change. While the agent is at work, the folder only looks. A route tree a development server writes again by itself,
src/routeTree.gen.ts, is set back when it is all that stands in the way. When the changes bring new packages, a running preview starts again to install them. Bring in the changes on GitHub, in the preview’s toolbar, asks again; people opening a project at once share one update, and each one that brings changes in is recorded as astudio.syncAction. A project on the shared agent server is left to its agent, which pulls before its changes. - The update runs where the project’s own code runs. The project’s preview runs its code, which can write the folder, its git settings included. So the update runs in the project’s own agent server, whatever the settings say now, which reaches its one repository through the panel and holds no key: whatever the folder’s settings could make git do there, the agent could do itself. It fetches the repository the Studio knows and the folder’s branch, checked, under a name of its own, with hooks and the like turned off, and moves what the agent knows of GitHub only once the folder holds it, so that a push with a lease still sees what it has not. Opening a project wakes its agent server for it.
- Each conversation says which model it works with, and whether what it is sent stays on private addresses, such as a model served on your own machines, or goes to an outside provider. When the agent server has several model profiles, a new conversation can start with any of them.
- Answers are kept small in the container. The script keeps what the Studio shows of each answer before it travels: a page of events where the agent read whole files can weigh megabytes, and comes back as a few dozen kilobytes.
- Images pasted into a message are scaled down in the browser before they are sent, so that a screenshot fits the panel’s request size limit.
Remarks from a client
Section titled “Remarks from a client”A client can look at the preview and leave remarks on it, without an account: the designer sends a link, the client points at an element of a page and writes what should change, and the remark arrives in the Studio, pinned where it was written.
- In the project, use Share with a client in the preview’s toolbar, or Client links in the Remarks tab. Say who the link is for, as « Karim Benali · Acme »: it signs that person’s remarks. Choose how long it opens the preview, seven days, thirty, or until it is taken back, and whether it opens with the remarks tool.
- Copy the link and send it. Its address is shown this once: the panel keeps a hash of its secret, and the address appears nowhere else but in the proxy’s access log, which only the server’s administrators read. Anyone the project is shared with can make one. The preview needs an address of its own: one that is a wildcard or a path can’t have links.
- The client opens it and lands on the preview’s home page, with the remarks tool when the link has it: a pin on each remark of the page, the list of them all, and Add a remark, which outlines what the pointer is on and pins the remark where the click was, with the page, the element and the window’s size. As the remark is started, a screenshot of the window joins it: the page as the client sees it, scrolled where they are, with the element outlined and the pin drawn. The client sees it in the remark’s form, can take it again, take it off, or give an image of their own instead, chosen or pasted.
- In the Studio, Remarks lists them, to do and done, with a badge for the new ones, and pins them on the preview. Clicking a remark shows it on its page; clicking a pin on the preview opens it in the list. A remark that came with a screenshot shows it on its card, at its size on a click. Hand to the agent joins it to the next message, with its element and its screenshot among the message’s images, and marks it in progress once sent. Done marks it dealt with, which its writer sees on the preview. A remark can be deleted, for the Studio and the preview alike.
The address of the preview decides whether the tool shows: ?remarks=1 shows it, ?remarks=0 hides it, for the rest of the visit, and the page’s address goes back to its own. A link made with the tool also leaves a cookie for ten minutes, opsifier_studio_remarks, which the inspector reads as it reads ?remarks=1 and then takes off: a site that sends its home page on to another, a language’s most often, keeps the tool all the same. A link made without the tool opens the site alone, and the client can add ?remarks=1 later. Hide the remarks, in the tool, folds it into a button.
- A link opens the preview through a cookie of that preview only, which lasts until the link expires, a month at most: opening the link again gives a new one. Take back stops it at once for remarks, and within half a minute for the preview behind the panel’s sign-in. What its holder wrote stays, unless the box to delete it with the link is ticked. Opening a link taken back or expired says so, takes its cookie off, and offers the team’s sign-in.
- With the previews behind the panel’s sign-in, a link lets its holder in as an account the project is shared with would be. Someone signed in that way can use the tool too, and signs with their e-mail. With the sign-in off, the preview is open to anyone, as before, and the link only says who writes.
- Whoever a link lets in sees every remark of the project, with who wrote it, and can take back their own while nobody has dealt with it.
- A remark holds at most 2,000 characters. One link, or one account, writes at most 20 a minute and 100 on a project, and a project keeps 500 at most. A remark’s number is never given again, even once the remark is deleted.
- The screenshot is taken in the client’s browser, which draws the page again from what it holds: nothing is asked of them, and nothing leaves their browser but the image, sent with the remark. A browser lets no page take a picture of the screen itself, so a few things can come out otherwise than on screen: a video shows the frame on screen, or its poster when the page may not read it, and what the page loads from another site that does not allow it, such as an embedded player, is left blank. An image or a font not loaded yet is waited for three seconds, and a screenshot that takes more than fifteen is given up: the client can take it again, or send the remark without it. The panel loads what takes it,
/studio-snapshot.js(with modern-screenshot, MIT), from its own address the first time a remark is started. - A screenshot is a JPEG, PNG or WebP image of at most 240,000 characters as a data URL, about 180 KB: the panel checks that its start, its header and its end are those of the type it says, and refuses anything else. It is kept in the panel’s database apart from its remark, and goes with it, whoever deletes it. At its largest, a project’s 500 remarks hold some 90 MB of screenshots. The Studio reads a remark’s screenshot only once its card comes into view.
- Handed to the agent, the screenshot is one of the message’s images, named in the remark’s block as the client’s: the agent treats what it shows as it treats the remark’s text, a request about the site’s look and content, whatever text the image holds. Leaving the remark out of the message takes its screenshot out too.
- What a client writes reaches the agent inside its block only: no
<of theirs reaches it, and the agent is told a remark asks for a change to the site and nothing else. Read a remark before handing it over all the same: it comes from outside the team. - The preview is the project’s development server: whoever opens it can read its code in their browser, as in the Studio. Send a link for what can be shown that way.
- On a server whose role asks for a password before every site, a client needs the previews behind the panel’s sign-in: the shared password is not theirs to have.
The remarks live on the preview’s own address, under /__opsifier/studio/, which the panel adds to the routes of every preview linked to the Studio and answers itself, outside the server’s gate: /__opsifier/studio/link/{token} opens a link, and /__opsifier/studio/remarks lists the remarks (GET), writes one (POST, with path, text, and the inspector’s element, point, viewport and screenshot, a data URL), and DELETE /__opsifier/studio/remarks/{id} takes one back. They answer the page’s own cookies only, and a change only from the preview’s own pages, by its Origin. In the Studio’s frame, the Studio sends the page { type: "remarks", items } and { type: "focus-remark", id }, and the page answers { type: "remark", id } when a pin is clicked.
Pointing at an element of the preview
Section titled “Pointing at an element of the preview”The preview’s toolbar shows the page at a desktop’s, a tablet’s or a phone’s width, and gives the address of the page shown. When the preview’s page loads the Studio’s inspector, Point at an element outlines what the pointer is on, and a click joins that element to the next message: its tag, its text, its classes, a CSS selector, and the React components around it, which a development build of React keeps. The agent is told what the block means.
The inspector is a small script the panel serves at /studio-inspector.js, which other sites may load. The page’s browser loads it from the panel, which it reaches already since it shows the Studio, so a preview never fetches it and always has the panel’s current one. A preview the Studio makes adds it to Vite’s client, which every page of a development server loads; one made by hand can do the same:
// In a Vite config: every page asks the browser to load the inspector from the panel.const loader = `\n{ const script = document.createElement("script"); script.src = "https://panel.example.com/studio-inspector.js"; script.async = true; document.head.appendChild(script); }\n`;export const studioInspector = () => ({ name: "opsifier-studio-inspector", apply: "serve", transform: (code, module) => (/vite\/dist\/client\/client\.mjs/.test(module) ? code + loader : undefined),});The panel writes each preview it made from its current template when it starts, so a project whose preview came from an earlier version builds the new one at its next deployment.
The page and the Studio talk with postMessage. The Studio sends { source: "opsifier-studio", type: "ping" }, { type: "inspect", on } and { type: "edit", on }; the page answers { source: "opsifier-studio-preview", type: "ready", path }, then location, selected with the element, inspect-ended, text-edited with the element and the text before and after, and edit-ended. The page listens to its parent frame only, and the Studio to its preview’s address only.
Changing a text in the preview
Section titled “Changing a text in the preview”Change a text of the page, beside Point at an element, makes the page’s texts editable where they are. A click on a text, a title, a paragraph or a button’s label, lets you write over it; Enter keeps the change, Escape takes it back, and Escape again leaves the mode. Each change joins the next message as a tag, the same text changed twice as one, and the message asks the agent to change it in the code, where it is written, with the element’s page, selector and React components to find it. The page shows the new text at once when the element holds it alone, until the agent’s change reaches the preview.
Only an element that holds text and nothing else can be changed: in a paragraph with a word in bold, the bold word, or the paragraph through Point at an element and a message. To comment an element rather than change its text, point at it and write the message.
The conversation
Section titled “The conversation”- What the agent does shows as it works: what it writes before each step, one line per step, and its plan. Once it has answered, those steps fold into one line, such as « 5 steps · 2 files changed », which opens on a click.
- A message shows as soon as it is sent, or once the files it carries are kept, before the agent server has it.
- Files go with a message. Besides images, a message carries up to five PDF, Word, Excel, PowerPoint, CSV or text files of at most 10 MB each, chosen with the paperclip, pasted, or dropped on the message. The panel keeps each in the project’s folder, under
.git/opsifier-attachments/in a folder of its own with a random name, where git does not track it, and the message tells the agent where it is. The agent reads it there, with Python for the documents, and copies it into the site only when asked. A file’s name keeps only letters, digits, spaces and._()-. A project’s attached files take at most 100 MB in all: past that, ask the agent to delete those it no longer needs. - Which conversation a message goes to is chosen under the message being written, beside the attachments, with the button that starts a new one. While a new conversation waits for its first message, the others stay one choice away there.
- On a wide screen, the conversation folds away with the button at the top of its pane, for the preview to take the whole width; the button at the left of the preview’s toolbar brings it back, and so does pointing at an element. Its border with the preview drags to make it wider or narrower, or moves with the arrow keys once focused; a double click puts it back. The browser keeps both for the next visit.
- A conversation stays readable while its project’s agent server sleeps. The panel keeps a copy of each such conversation’s events, as they are read and, for the five most recent conversations, before the agent server is put to sleep. It keeps the newest 10,000 events of each, in its database and so in its backups, and shows them with a note until a message wakes the agent server; the conversation then goes on from where the copy ends. A conversation nobody has opened since the copy began, and not among the five most recent, shows once the agent server is up again.
- When the model takes too long to answer, even after another try, or the conversation grows longer than the model can read, the agent stops, and the conversation says so in plain words, with the error itself one click away. Its last stop offers a new conversation, where the agent answers faster: the work already done stays in the project, so say there what is left to do.
- Nothing in the conversation is wider than it: long words and addresses wrap, and a code block scrolls within itself.
- On a phone, the Studio shows the conversation or the preview, one at a time at full height. Pointing at an element in the preview brings the conversation back, with the element joined to the next message.
Versions
Section titled “Versions”The agent saves each change it makes as a commit of the project’s branch, with a line that says what changed. Each of its answers that saved one shows it in a card under the answer: what changed, when, and Current version for the project as it is now.
- Preview shows an earlier version in the preview, in place of the current one. The panel checks its commit out in the project’s folder, which the preview’s development server shows at once; the branch, GitHub and the conversations do not change. Everyone who opens the project sees that version, with a note at the top of the preview saying which one and who chose it, until someone goes back; a page already open follows within 30 seconds. Meanwhile no message, conversation or file reaches the agent, which would change the version shown rather than the current one, and the project is not brought up to date with GitHub.
- Back to the current version, in that note or under the message being written, checks the branch out again.
- Restore, under an answer or in the note, asks the agent, in a message of its own, to bring that version back as a new one: it puts the project’s files as they were in that version, checks that the site still builds, saves them as a new version that says which one it restores, and pushes it. Nothing of the history is lost: the version it replaces can be restored in turn. What was being typed stays for the next message. From a conversation kept for reading, the message starts a new conversation.
The panel never loses a change:
- A version is shown, or brought back, only once the agent has answered, and while no change waits to be saved. The file the router’s plugin writes again by itself,
src/routeTree.gen.ts, is the exception: the panel puts it back as its version has it. - What changes in the folder while an earlier version is shown is no one’s work, since no message reaches the agent: a lockfile an install writes again, say. Going back sets it aside in git’s stash, with a line that says so, rather than in the way of the branch; the Activity says when it did.
git stash listin the agent server’s terminal shows it. - A version that would write over files git does not keep, such as the site’s settings in
.env, is not shown. - A project whose own git settings run a command as files are read or written, a filter, is left as it is.
The folder keeps which branch to come back to, in .git/opsifier-studio-version, and the panel follows what the folder shows each time it lists the versions: when the panel restarts while a version is being shown, or when someone goes back by hand, the note follows. The preview keeps the packages it installed as it started: an earlier version that needs others may not load until you go back. The cards show the project’s last 50 versions, and show once its own agent server is up.
Suggestions
Section titled “Suggestions”The agent ends each answer with two or three requests you might send next, which the Studio shows as tags to send in one click. A new conversation offers a few to start with.
Limits
Section titled “Limits”- On a server whose role asks for a password before every site, and with the previews’ sign-in off, a browser asks for that password again for each preview’s address, and it cannot ask inside the Studio’s frame. Open the preview once in its own tab with Open the preview in a new tab, sign in, and reload the Studio, or put the previews behind the panel’s sign-in.
- The agent’s hidden reasoning, the output of its commands and its screenshots stay in the agent server: the Studio shows what it writes, its steps and its plan.
- A version shows under the answer during whose work it was saved, by their times: with two conversations at work on one project at once, a version may show under the other conversation’s answer.
- On the shared agent server, every project’s preview runs its code in the folders the shared agents run git in, in a container that holds the agent server’s GitHub token: projects that should not reach each other, each other’s attached files, or that token need one agent per project.
- With one agent per project, each agent server that runs takes about 700 MB of memory at rest, and its first deployment builds the model’s image again, from the build cache when the server has one.
GET and PUT /api/v1/settings/studio and POST /api/v1/settings/studio/check for the settings, /api/v1/settings/studio/github-keys for its GitHub keys (GET, POST, PUT and DELETE .../{key}, POST .../{key}/check), GET /api/v1/studio for the linked projects, POST /api/v1/studio/projects to add a GitHub project, POST /api/v1/studio/isolate to give every project still on the shared agent server its own, GET /api/v1/studio/preview-signin for the hop of a preview’s sign-in, /api/v1/studio/git/{project}.git for the git of each project’s own agent server, and under /api/v1/projects/{project}/services/{service}/studio: the link (GET, PUT, DELETE), POST .../remove to delete the project with what the Studio made for it, GET and PUT .../members for who it is shared with, POST .../isolate to give it an agent server of its own, POST .../preview/start, POST .../sync to bring its folder up to date with GitHub, POST .../pause and POST .../resume to put it on pause and resume it, POST .../attachments for a file joined to the next message, GET .../versions for its versions, POST .../versions/{sha}/view and POST .../versions/current to show an earlier one in the preview and come back, POST .../conversations to start one, GET .../conversations/{conversation}/events, POST .../messages and POST .../stop for a conversation, GET and POST .../links and DELETE .../links/{link} for the links for clients, and GET .../remarks, PATCH and DELETE .../remarks/{remark} and GET .../remarks/{remark}/screenshot for the remarks. See API.md.