Docs / Sarpius Code

Sarpius Code

Sarpius Code is the in-browser code editor built into Sarpius. It opens a full-screen Monaco workspace over your Project, with every Component as a top-level folder, so you can edit files, switch branches, save local checkpoints, and push to trigger a deploy without ever leaving the platform or setting up a local clone.

What Sarpius Code is

Sarpius Code gives each app a live working clone of its git repository that you edit directly in the browser. It is not a read-only viewer: you create, rename, and delete files, edit them in a full Monaco editor, run git operations (branch, tag, commit, push), and see side-by-side diffs and history, all against the same repository your deploys build from.

The workspace is Project-aware. Opened from a Project, it shows every Component (front-end, back-end, workers) as its own top-level folder in one explorer, each on its own branch. Opened from a single Component (for example the Sarpius Launch instance Code tab), it scopes to just that repository. Either way it is the same editor and the same git model underneath.

  • Activity bar with swappable side views: Explorer, Source Control, Git Graph, and Chat History.
  • A tabbed editor area, with a top-bar branch switcher and tag creator that target the active Component.
  • A status bar that reflects the active file save state (saved, saving, dirty, checkpointed) and how many commits are waiting to push.
  • An optional Assistant dock on the right, toggled with Ctrl+I (Cmd+I on macOS).

Opening the workspace

  1. Open a Project, or a single Component from its Sarpius Launch instance.
  2. Open the Code section: the editor mounts as a full-screen overlay and loads each Component working clone.
  3. Pick a file in the Explorer to open it in a tab. Source files are warmed in the background after first paint, so opening a file is usually instant.
  4. Edit, commit checkpoints as you go, and push when you are ready to deploy.
  5. Press Escape to close the editor and return to the workspace (Escape is ignored while you are typing in an input).
Remarque

Every request from the editor carries your existing platform login. The Sarpius Code service verifies it and checks that you own the app before it touches any clone. Reading the tree and files needs viewer access; any write (edit, commit, branch, tag) needs editor access.

Editing files and saving

As you type, the editor auto-saves your changes to the working clone on disk after a short pause (roughly 800ms of inactivity per file). This write is not a commit and does not push anything; it simply keeps the working tree in step with what you see, so nothing is lost if you switch tabs or close the editor.

Ctrl+S (Cmd+S on macOS) does more than flush the save: it records a local checkpoint. Sarpius Code flushes the active file, then commits everything in that Component with a checkpoint message. There is no push. The status bar briefly reads "Checkpointed" and the Source Control view refreshes. Pressing Ctrl+S with nothing changed does not create an empty commit.

Remarque

Remember the split: save and checkpoint are local and cheap, push is the deliberate action that deploys. You can checkpoint as often as you like while working, then push once when the change is ready to go live.

The Explorer supports the usual file operations: new file, new folder, rename, and delete. Creating a folder also drops a .gitkeep so the empty directory persists in git. Rename applies to files (the workspace has no atomic move for folders); it creates the destination first and only removes the source once the new file is safely written, and it carries any unsaved edits across.

Branches and tags

The top bar shows the active Component branch with a switcher. Use it to check out an existing branch or create a new one; you can also create a branch from a specific commit in the Git Graph view. Tags are created from the tag menu and are pushed when created, which makes them a convenient way to mark a release point.

Attention

Checking out a branch refuses to run against a dirty working tree. If you have uncommitted changes when you switch or create a branch, Sarpius Code offers to commit them to the current branch first, so your work follows you rather than being left behind or lost. Branch and tag names are validated before they reach git.

When you switch branches, the editor reloads the affected Component tree and refreshes any open tabs to the new branch content. Files that no longer exist on the target branch have their tabs closed automatically.

Source control: commit, diff, push

The Source Control view is a per-Component staging and commit surface: stage individual paths or everything, write a message, and commit. Commit never pushes. Each Component tracks its own branch, upstream, and ahead/behind counts, and the status bar surfaces how many commits are waiting to push.

Diffs open side-by-side: HEAD on the left, your working copy (including unsaved edits) on the right, so a diff shows exactly what you are about to commit. From the Git Graph you can open any commit, view its per-file diff, revert it (a new commit that undoes it, no push), or branch from it.

Push is the single deliberate action that sends the current branch to its remote. Because your repository is wired to push-to-deploy, a push is what triggers Sarpius Launch to build and deploy the new code. Pushing is separate from committing precisely so that saving and checkpointing never deploy by accident.

Attention

A push that is not a fast-forward (the remote moved on since you last synced) is rejected rather than force-pushed. Pull first: Sarpius Code fast-forwards only, so if local and remote have both moved it reports the branch as diverged and asks you to resolve it, instead of silently rewriting history.

Live collaboration

When more than one person opens the same workspace, Sarpius Code connects a live collaboration room per open file and broadcasts presence (who is here, by user id and username only, never personal data). If the collaboration connection cannot be established, the editor silently falls back to single-user editing, so opening the workspace is always safe.

Limits and notes

  • Binary files and files above the inline size cap open read-only. They cannot be edited in the browser, which also prevents an accidental save from overwriting the real file with a blank buffer.
  • Very large trees may be truncated in the Explorer; the listing flags when it hit the service entry cap.
  • Folder rename is out of scope of the create-write-delete primitive; rename applies to files. Move a folder by creating the new path and deleting the old one.
  • The editor operates on a working clone. Your changes become part of the repository history only when you commit, and reach the remote (and a deploy) only when you push.
  • Sarpius Code is on the active roadmap and ships slice by slice: the editor, branches and tags, and source control are in place, with deeper collaboration and language features arriving incrementally.

Sarpius est un nom commercial de Synthwave-technologies.nl · KvK 73239038 · n° TVA NL002410192B67 · Apeldoorn, Pays-Bas

(c) 2026 Sarpius. Tous droits réservés.

Hébergé dans l'UE