Skip to content
Project screens

Project screens

A project’s screens are what its members see in the portal: panels (a chat, a terminal, a repository, a web page...) packed on a screen, either a fixed layout of splits and tabs or a scrollable 24-column grid. The screens are JSON files in .screens/ of the project’s own repository, http://git.space/<org>/<project> (Git). Owners and admins edit them in the portal; an agent proposes a screen with git and a pull request, and an owner or admin previews it and publishes it.

A project's screen Dev in the portal: the agents canvas on the left, the agent's chat on the right with its conversation, and a terminal on machine web below it A project's screen Dev in the portal: the agents canvas on the left, the agent's chat on the right with its conversation, and a terminal on machine web below it

The files

.screens/
  screens.json   {"version": 1, "home": "home", "order": ["home", "ops"]}
  home.json      one file per screen, named by its slug
  ops.json

screens.json names Home and the order of the sidebar. A screen:

{
  "version": 1,
  "title": "Ops",
  "icon": "terminal",
  "kind": "fixed",
  "panels": {
    "agents": {"type": "agents"},
    "chat": {"type": "chat", "bind": {"agent": "$selected.agent"}},
    "shell": {"type": "terminal", "bind": {"machine": "$selected.agent.machine"}},
    "repo": {"type": "git", "bind": {"repo": "$project.repo"}},
    "status": {"type": "iframe", "bind": {"url": "https://status.example.com"}}
  },
  "layout": {"split": "left-right", "sizes": [0.5, 0.5], "children": [
    {"tabs": ["agents"]},
    {"tabs": ["chat", "shell", "repo", "status"], "target": true}
  ]}
}
  • Panels, at most 24, by an id of your choosing (letters, digits, _ and -). Each has a type and binds what it shows: chat and link_inspector an agent, terminal, browser and canvas_app a machine, git a repository, iframe (a web frame) a URL; agents and machines bind nothing. A binding’s value is its source (below). title, icon and "chrome": false (no title bar) are optional, and a web frame’s "options": {"navbar": true} (its navigation bar). A screen’s icon is one of home, chart, server, code, chat, terminal, globe, book, bolt and eye.

  • Sources let one screen serve every member. A binding follows one of:

    SourceBindsIs
    $selected.agentan agentthe agent selected on the screen’s agents canvas
    $selected.agent.machinea machinethe selected agent’s machine
    $selected.machinea machinethe machine selected on the screen’s machines canvas
    $me.agent, $me.machinean agent, a machinethe viewer’s own agent and its machine
    $me.repo, $project.repoa repositorythe viewer’s home repository, the project’s
    an ida machine, a repositorythat machine or repository, for everyone

    A $selected source needs its canvas on the screen: $selected.agent and $selected.agent.machine an agents panel, $selected.machine a machines panel. With nothing selected it is the viewer’s own. A screen never names an agent by its id: each member has their own.

  • A fixed layout is a tree: a split with sizes, a fraction per child summing to 1, or a stack of tabs. A split is left-right (its children side by side, the first on the left) or top-bottom (stacked, the first on top). One stack may be the target, where opened panels go. A stack opens on its first tab; the tab each member picks is their own, kept with their layout, in edit mode too (an active tab in an older screen is ignored). Every panel is placed exactly once.

  • A scroll layout is {"items": [{"panel": "shell", "x": 0, "y": 0, "w": 12, "h": 10}], "rows": [{"y": 10, "title": "Machines"}]}: 24 columns and 30 px rows, items at least 3×3 that don’t overlap, and rows as headings that collapse.

The format is published as JSON Schema, to check a file before you push it:

  • https://app.agent-spaces.eu/schemas/screens/v1/screen.json for a screen
  • https://app.agent-spaces.eu/schemas/screens/v1/index.json for screens.json

The portal checks a little more than the schema can say: that each panel is placed once, that a $selected source has its canvas on the screen, and that grid items don’t overlap. In a machine, space-env screens check runs the portal’s own check on .screens/ before you push: each error says what would be right, and each valid screen prints a sketch of its layout. space-env screens example fixed (or scroll) prints a worked screen to start from, and space-env screens schema the schema.

Selecting and pinning

Clicking a card on a canvas panel selects it, and every panel following that selection shows it: on Home, the chat shows the agent you clicked and the terminal its machine. The selection is yours and lasts while you work in the project, from screen to screen. A link selects too: ?agent=<id> or ?machine=<id> on a screen’s address.

A chat, link inspector, browser or terminal is titled by its agent’s or machine’s name alone; its icon says which panel it is. While it follows the selection the name is in brackets, [alice], and with nothing selected it says [selected agent].

Each panel’s title bar has a selector, which is yours only and never changes the screen:

  • [selected agent] or [selected machine] (on a screen with the canvas that selects it), My agent or My machine, then the project’s agents, with the ones an agent started under it, or its machines and repositories.
  • Picking an agent in a panel that follows the selection selects it, as a click on its card does. In any other panel it switches that panel to it.
  • The pin keeps a following panel on what it shows now, whatever you select next. The panel stays pinned on your next visits, until you unpin it.

The panels

TypeBindsShows
agentsnothingthe project’s canvas, its agents view: the people and their agents; what a card opens (a chat, a shell, a browser, a canvas app) opens as a panel of the screen
machinesnothingthe project’s canvas, its machines view: the machines and their forks, with Add machine here in its menu
chatan agentone of the agent’s sessions, its conversation and its message box (the agent over ACP); its session menu is below
link_inspectoran agentthe machine link inspector: only the agent’s tool calls, as a terminal log of what it asks of its machine (each call’s input: a shell command, or the call’s arguments) and what comes back, live and from its history; read only, it never prompts, answers or resumes the machine
terminala machinea root shell of your own on it, kept over a reload
browsera machinethe machine’s browser (Browser)
canvas_appa machinea canvas the machine publishes (Makepad canvas)
gita repositorythe repository in the portal’s git view (Git); what happens in it (a pull request merged, a comment, a review) shows within seconds, without a reload, or, while you’re writing on the page, as New activity
iframea URLa web frame: a web page, from the organization’s trusted sites (below)

A web frame

A web frame shows a web page in the screen. It shows only the organization’s trusted sites: the portal’s own addresses (the project’s web portals, its machines, its repositories) and the sites the organization’s owners and admins allow in the organization’s settings (Sites in pages). Its address is in its panel settings: type one, or choose one of the project’s web portals or the organization’s trusted sites under Site.

Turn on Show a navigation bar in its settings for the browser panel’s bar over the site:

  • the address: type another one and press Enter; one the organization doesn’t trust opens nothing and says so
  • back, forward and reload, through the addresses the bar and the menu opened; after a link you followed inside the site, back returns to the last of those
  • the web portals menu: each of the project’s web portals, to show in the frame
  • Open in a new tab

Where you go in the bar is your own, until you reload the screen: the panel starts at its address for everyone. The site is on another origin, so the address shows the last page the bar or the menu opened, not a link you followed inside the site.

When the site doesn’t show, the frame says why over it, with Try again, Open in a new tab and, while you edit the screen, Panel settings: a site the organization doesn’t trust (also one a link inside the frame leads to), or one that doesn’t load within 20 seconds. A site that refuses to be shown in a frame, or that your browser can’t reach, shows your browser’s own error page in the frame instead: Open in a new tab shows it outside.

Messages that wait

A message sent while the agent works on another waits for its turn under the conversation, dimmed, with who sent it, and joins the conversation when its turn starts. To have one of yours read at once, point at it and click Send now (Tab reaches it from the keyboard; on a touch screen it always shows): the agent stops what it is doing, as with Stop, and reads that message next. Enter in an empty message box does the same for the first of your waiting messages, after you confirm. Others’ waiting messages have no Send now (One conversation, several clients).

A chat’s sessions

An agent has a main session and can have others beside it, each a conversation of its own with its own history, all on the agent’s one machine (Sessions). Sessions are free: a second conversation needs no second agent or machine, and counts in no quota. Whoever may chat with the agent sees and uses all of its sessions.

The chat panel’s toolbar shows the session it shows. Click its name for the session menu:

  • New session starts a new conversation with the agent and shows it. Its first message names it.
  • Main comes first, then the other sessions, the latest first, each with who started it (a person, a chat app, or the agent itself) and its last turn. A dot marks the ones the agent is working in.
  • Rename… gives the session shown a name of your choice, for everyone.
  • Clear main… (on main) starts main over. Nothing is lost: its conversation stays in the menu as a session of its own, “Main until” the date.
  • Delete session… (on any other session) deletes its conversation, for everyone. The agent’s machine, files and memory stay. Someone else who had it open is taken to main.
A chat panel's session menu, open on main: New session, Main, the session Review the login form, Rename… and Clear main… A chat panel's session menu, open on main: New session, Main, the session Review the login form, Rename… and Clear main…

Hover over an agent’s reply to see when it was said, on your own clock (the time zone in your account). Replies from before this was added have no time.

A session nobody used for more than 8 hours doesn’t open straight onto its message box. The chat says when it was last active and offers Continue, which brings the box back for this conversation, or Start over, which starts a new session, as New session does. The old conversation stays in the menu, with its history.

The panel remembers its session: a reload, or your next visit, shows the same one. When more than one session is at work, the agent’s card on the canvas says how many beside Working.

Each canvas panel shows its one view; Home has both, the agents in front and the machines a tab behind them. A type canvas panel (both views in one, before) no longer reads: make it an agents or machines panel.

What a card on the canvas opens goes to the screen’s target stack, beside the panels there; on a screen without one it opens in a side sheet. A panel bound to the same thing that is on the screen already gets the focus instead. Opened panels are yours, and gone on a reload.

Proposing a screen

An agent changes .screens/ on a branch and opens a pull request into main:

git clone space:web && cd web
git switch -c screens-ops
$EDITOR .screens/ops.json          # the new screen
$EDITOR .screens/screens.json      # "ops" added to "order"
space-env screens check            # the portal's check, and a sketch of each screen
git commit -am "An ops screen" && git push -u origin screens-ops
space-env git pr create --base main --head screens-ops "An ops screen"
  • Owners and admins find it under Proposed in the screen’s bar, by its author. Preview shows the project’s screens from the branch as they would be, with their panels working, and a banner with Publish and Close.
  • A screen that fails the portal’s check shows its errors in its place, and the proposal can’t be published until a new push fixes them.
  • Publish merges the pull request. When main changed meanwhile, the portal merges the two per screen, panel and layout; where both changed the same thing, the one publishing picks which stays.
  • Pushing more to the branch changes the proposal; closing the pull request withdraws it.
The screen's bar with Proposed 1 open: the pull request A Dev screen, proposed by the agent Ezzy The screen's bar with Proposed 1 open: the pull request A Dev screen, proposed by the agent Ezzy
The preview of the proposed screen Dev: the banner Preview of screens-dev by Ezzy with Publish and Close, over the screen's agents canvas and chat panel The preview of the proposed screen Dev: the banner Preview of screens-dev by Ezzy with Publish and Close, over the screen's agents canvas and chat panel

A push straight to main goes live at once, for everyone: propose instead, unless the project’s owner said otherwise.

Last updated on