Skip to content

Panels

Code, Git & files

The editor, Git and file-explorer panels are the heart of the build loop in Deska. Write code, see your changes, stage and commit, all without leaving the canvas.

Create a worktree

Open the worktree menu from the branch in the top bar and choose New worktree; the toolbar of All worktrees has the same button. The form is a sheet of glass like the list. Describe the work in What are you working on? and Deska names the new branch after it, adding a number when the name is already used. Start from picks where the branch begins, and the project’s default branch (origin/HEAD, else main, else master) comes first and is already chosen: a clean start from its latest commit. When you stand on another branch, it is the next row, marked You are here, and building on it brings along the commits it has. Another branch… opens a searchable list of every local branch plus the branches that exist only on origin. A checkout on no branch, in a project without a default branch, offers The current commit.

Your new branch draws the result as a tree: main, then your branch when you build on it, then the new branch, marked New. Edit beside the tree changes the name, and Use automatic name goes back to the generated one. Uncommitted changes never come along: when you build on your own branch, the form says how many uncommitted files stay in it.

Open with chooses between New terminal and Copy of N panels, which copies the panels of the worktree you are on and keeps their positions; chats, nested canvases and extra tabs stay behind. Run project setup is a switch beside the detected command, such as pnpm install, and setup runs in a new terminal. The info button beside the title explains what a worktree is and shows where the new folder goes: ~/deska/workspaces/<project>/<branch>, with a suffix when that folder is taken. Create and open takes you to the new worktree. No agent starts automatically.

To work on a branch that already exists, choose Open worktree beside New worktree instead. It lists the project’s branches that have no worktree yet, On this computer and On origin; search them, pick one and press Open. The branch gets its own folder in the same place and you land on it with a new terminal. A branch from origin is created here first and keeps origin as its upstream, so pulling and pushing stay on that branch. On another computer the branches are that computer’s, and the worktree is made there.

Pull request at a glance

The Pull request page, formerly Checks, groups the pull request title and branch direction above its check runs. Failures appear first; the merge action and its blocking reason follow the results, with conversation below. Explorer, Source Control and Pull request share the same no-folder card, icon and Open folder action. Empty states keep the next action together with its explanation, and the first lookup shows a loading skeleton. Narrow panels wrap check names and statuses without hiding actions.

Merge lands what you saw

Merge on the Pull request page lands the commit the page showed you when you pressed it. If someone pushed to the pull request after the page read it, from another computer, an agent or a teammate, GitHub refuses the merge and nothing lands. The page says Someone pushed to this pull request where the merge button was, and Reload pull request shows the new commits and their checks before you merge again. Merging a task’s pull request from your phone works the same way. On another computer that runs an older Deska, the page reads the pull request again just before it merges there.

The code editor

The editor panel is built on Monaco, the same editor that powers VS Code, with a file tree on the left and a tab bar across the top. Click a file in the tree to open it; tabs show a dot when there are unsaved changes.

A code editor panel with cart.ts open: the file path in the title bar, the tab and the code
  • Preview vs. pinned tabs: a single click opens a file in a temporary (italic) preview tab; double-click to pin it. The tree keeps the open file selected and scrolls to it as you switch tabs.
  • Drop files on it: drag files from the File Explorer, the tree or your computer onto the tab bar or the code and each one opens as a pinned tab in that editor. A folder does not open; the editor says so. An editor on another computer opens files dragged from that computer's File Explorer, not from this one.
  • Resize the sidebar: drag its right edge to make it wider or narrower. Keep dragging left past the narrowest width and it closes, leaving the whole panel to the code; drag back before you let go and it stays open. Double-click the edge for the default width. The width is the same in every editor panel and Deska remembers it. The sidebar button at the start of the tab bar shows or hides it at that width.
  • Search across the project: the sidebar has two tabs, Files and Search. Press Cmd/CtrlShiftF from inside a file to open Search with your selection (or the word under the cursor) already typed. Results group by file, every match with its line marked and numbered; a click opens the file with the match selected, a double click pins the tab. The three switches next to the field are match case, whole word and regular expression (Cmd/CtrlAltC, Cmd/CtrlAltW, Cmd/CtrlAltR). Include or exclude paths reveals two glob boxes (src/**, *.ts) and a Use ignore files checkbox that honours .gitignore and skips node_modules, dist andbuild. Files with unsaved edits are searched as you see them, not as they are on disk. Arrow keys walk the results, Left folds a file, Enter opens, Escape returns to the field. Find and replace opens the replacement field: every result row then shows the old text struck through and the new text after it, with a Preserve case switch so Needle becomes Thread. Replace one match from its row, a whole file from the file row, or everything with Replace all (Cmd/CtrlEnter in the field), which asks first. Files with unsaved edits are changed in the editor, where you can undo; the rest are written to disk after each match is checked again. In a regular expression, $1 refers to a capture group. Three chips under the field limit the search to what only Deska knows: Changed files (what git says changed), Agent touched (files an agent thread edited) and Open tabs; right-click a folder in the tree and choose Search in Folder to limit it to that folder. Up arrow in the field walks your earlier queries. The notebook’s Explorer page has the same Files and Search tabs. Once a search settles, Ask Dex about these opens Dex with the result list already written and the editor attached as context, so you only add what you want done; Open in a new panel copies the search into a fresh editor panel on the canvas so the list stays next to your work. While a search is open, the file in the editor shows its matches with a light wash and marks in the scrollbar, and F4 / ShiftF4 step to the next or previous match without leaving the buffer. Your switches, patterns and scope are remembered per project; the query itself is not.
  • Find in the tree: the filter box above the tree matches file names and file contents. A content hit shows the matching line with the words you typed marked and its line number; opening it lands the editor on that line. Press the down arrow to walk the hits and Enter to open one. Escape clears the box; press it again on the empty box to return to the editor.
  • Save with Cmd/CtrlS. Saving an untitled buffer prompts for a location. Format on save is on by default and tidies each file as it saves; turn it off in Settings → Panels → Editor, under Saving. Closing an editor with unsaved changes asks first; its Save writes every file with changes in that editor, including tabs you are not looking at, then closes it. If a file cannot be written, the editor stays open with your changes and a bar says why, with Try again.
  • Images, video and audio open as a preview in the editor tab instead of as text. An image fits the panel without being enlarged, over a checkerboard where it is transparent; click it, or press the percent in its footer, to see it pixel for pixel. Zoom with Cmd/Ctrl and the wheel, a pinch, the − and + beside the percent or the keys and -; 1 is 100% and 0 fits it again. A picture larger than its panel pans when you drag it. The wheel zooms the picture only in the window you are working in; over any other window it still zooms the canvas. When the folder holds more pictures, the footer shows Previous, “2 of 5” and Next, and ← and → do the same: the tab shows the next picture of the folder in place, in the explorer’s order, and the folder is read again at each step, also on another computer. A video is not part of the set, so its arrow keys keep seeking.Copy image puts the picture on your clipboard (PNG and JPEG as they are, other formats as PNG); right-click it for the path, or press Cmd/CtrlC once you have clicked it. Video plays with the usual controls and audio in a small player, and the footer shows the dimensions, length and size. An SVG opens as the picture, with Source one click away in the tab bar. Files stream from disk, so a long recording seeks without loading whole; above 2 GB the tab says the file is too big to open. A preview reloads when the file changes on disk, so a screenshot an agent rewrites shows its new version. On a Deska Cloud computer or one running deska-agentd, previews open files up to 100 MB. Local PNG, JPEG, GIF and WebP images also open outside your workspace up to 10 MB, when Deska can read them. Reopen these external previews to see later changes to the file. Archives, fonts and databases show what they are instead of unreadable text, and PDF and Word files open in their own viewer.
  • Reading Markdown: .md and .mdx files open as a rendered page. The switch at the right end of the tab bar picks Source, Split (the source beside the page, scrolling together; double-click a passage to put the cursor on its line) or Preview, and Cmd/CtrlE flips between the page and its source. Each file remembers its own view; choose what opens first in Settings → Panels → Editor, under Markdown opens in. The selected view always shows its name; wider panels label all three views. The page reads the way GitHub shows it: tables keep their column alignment, code is colored in your editor theme with its language and a Copy button, > [!NOTE] and the other alerts become callouts, front matter shows as properties, mermaid blocks draw as diagrams, and images next to the file appear inline (on another computer they stay links you can open). HTML in the file renders through the allowlist GitHub uses, so scripts and styles never run. An On this page outline follows the section you are reading when the panel is wide and sits behind a button when it is narrow; Cmd/CtrlF finds words in the page, ignoring case and accents. A link to another file opens it as a tab, on the heading it points at. Search stays above the page without covering the text, including in narrow panels. Press Escape from any search control to return to reading. Opening the outline focuses the current section; choosing a section returns keyboard focus to the page.
    README.md open as a rendered page, with the Source, Split and Preview switch at the right of the tab bar and the On this page outline
NoteIf a file changes on disk while you have unsaved edits, a banner offers to reload or keep your version, so external changes (like a branch checkout) never silently overwrite your work.

Source control

Source Control lists each file on one line: its status letter (M, U, +, −), its name, its folder and its line counts. Files sit in two groups: Staged, what the next commit takes, and Changes, what it does not yet. Each group has its own action, Unstage all or Stage all. The + and − on a row stage or unstage that file; Discard appears when you point at the row. Click a row to review its diff. A partly staged file shows once, under Changes, with a Partly staged link that opens the part already staged.

Source Control in the notebook: the branch and its sync button, changed files on one line each and the commit box

Switch between Changes and History to give each list the full content area. Switching views preserves your draft. History shows commit titles and dates; expand a commit for its author, full title, hash, references and changed files. Show older commits loads more history.

The row above the files holds the branch and one sync button, for the step that is due: Push 3 when commits wait to go up, Pull 2 when origin has new ones, Publish branch while the branch is not on origin, or a quiet Up to date. A branch that drifted both ways offers Pull first. Fetch, Pull and Push are always in the ⋯ menu beside it, and the circular arrow reads the folder again. With no changes, the panel says so and offers that same step as its main button.

A commit box sits at the bottom, with Generate inside the message field. The line beside the Commit button says what is missing (a message, or files to commit), and the button turns to the accent color once the commit can run. It counts what it will take: Commit · 3 for three staged files, or Commit all · 7 when nothing is staged, which stages every changed file and commits them in one click. Press Cmd/CtrlEnter to commit from the field. Amend last replaces the previous commit instead of adding one and pre-fills its message, and it works with nothing staged when all you want is to reword.

The canvas Git panel is gone: Source Control does its work. A Git panel on a canvas you saved before comes back as Source Control in its place.

NoteBackground fetch keeps your ahead and behind counts honest by running a silent git fetch for the repositories you have open. It runs every 2 minutes by default. Change the interval, or set it to 0 so Deska never contacts a remote on its own, under Settings → Panels → Source control → Remotes.

When Git or the GitHub CLI is missing

Source Control, worktrees and your agents’ commits run on Git. Cloning from GitHub, pushing to it and opening pull requests go through the GitHub CLI (gh). Windows comes with neither, and a Mac gets Git with Apple’s Command Line Tools. When one is missing on the computer in front of you, Deska says which one and installs it for you:

  • A task’s branch shows a quiet GitHub mark when GitHub is not connected. Press it, or the state Dex Tickets and the Pull request page show, and Connect GitHub does the whole job in one press: it installs what is missing, then starts the sign-in and shows the code to take to github.com. Before you press, it says what it will install and how.
  • In Tools & accounts, the GitHub row reads Git is not installed or GitHub is not connected yet, and Set up opens three steps: install Git, install the GitHub CLI, sign in to GitHub. Each step shows the command it runs before you press anything.
  • Source Control on a computer without Git says Git is not installed on this computer and offers Install Git. It turns back into Source Control by itself once Git answers.
  • The setup card in the desk’s corner shows Git is not installed with Set up Git, and Clone from GitHub offers Set up GitHub when the GitHub CLI is missing.

On Windows, Install runs winget install in the background, and Windows may ask for permission first; the step shows its progress, and why when it fails. On a Mac, Install Git opens Apple’s own installer window, and the GitHub CLI installs with Homebrew in the background. Without winget or Homebrew, and on Linux, Deska downloads GitHub’s own build, checks it against the SHA-256 GitHub publishes, and puts it in .deska/gh in your home folder, with no password. One line in your shell’s profile (your Path on Windows) lets your own terminals find it too. Git without winget, and on Linux, still opens its download page (git-scm.com). Every step checks again on its own, so you never restart Deska to see the change, also when you install from a terminal or with Homebrew.

Deska finds Git and the GitHub CLI in their usual install folders even when they are not on your PATH. If a check runs out of time, the row says it could not check and offers Check again, rather than claiming the tool is not installed. A GitHub sign-in you make outside Deska, for example in a terminal, is noticed by Start from and the accounts dialog without reopening anything, and after you sign in a short Connected as @account step confirms it before Deska moves on. GitLab has its own tile there, which signs in through the glab CLI; install glab first, from the guide the tile links to.

NoteDeska installs only on the computer it runs on. Another computer’s GitHub row links to GitHub’s install guide instead, its Pull request page keeps the commands to run in a terminal there, and Deska Cloud boxes come with both tools.

Let Deska write the message

Two of the small chores around a commit can be handed off. A Generate button in the commit box drafts a message from what you have staged, and the new-branch form turns a plain-language description (“fix the flaky upload retry”) into a branch name in your repository’s style.

Both run only when you click them, never in the background, and both leave the result editable, so it is a first draft rather than a decision. The staged diff is read where it lives and only the drafted text comes back.

NoteGenerating text runs on the coding agent Dex answers with: the first agent on this computer in Who answers (Settings, under Dex) that is installed and signed in, on that rung’s model. A provider key stored by an earlier version is the fallback when no agent can answer. It is a paid feature; signed out, the button raises the sign-in takeover and then resumes what you asked for. See Plans & billing.

Commit, push & open a pull request

The Commit button is a split button. Its menu chains the steps you almost always run together, then streams the run back to you step by step so you can see exactly where it got to:

  • Commit & Push, which becomes Commit & Publish branch when the branch has no upstream yet.
  • Commit, Push & Pull request, which runs the same two steps and then creates the request through your forge’s CLI. On a GitLab remote the entry reads Commit, Push & Merge request.

The entry is named in your forge’s own vocabulary. Where Deska cannot act, it stays visible but disabled with the reason attached: no remote at all, a forge Deska does not drive, or the forge CLI not installed. On GitLab the entry notes that Deska cannot create merge requests there. Today GitHub is the forge Deska can complete the flow on, through the gh CLI.

NoteIf a step fails, the run stops there and the remaining steps report as skipped rather than running against a broken state. Nothing is retried behind your back.

The file explorer

The File Explorer panel is a file browser, not a project tree. It opens on the folder your worktree is checked out at and goes anywhere from there: into a folder, back out of it, and above the project, across the whole disk.

  • Double-click a folder to open it. The folder name in the toolbar is a menu of every folder above this one, and the path bar along the bottom walks back out one click at a time.
  • Three views. Icons (with previews for images), a list with sortable Name, Date Modified, Size and Kind columns, and columns for walking several levels at once. Each panel remembers its own.
  • Places down the side. Home, Desktop, Documents, Downloads, Applications, your open projects and any mounted volume. Right-click a folder to add it to Favorites.
  • The keyboard works. Arrows move, Enter opens, Cmd/CtrlUp or AltUp goes to the enclosing folder (so does Backspace on Windows and Linux), Cmd/Ctrl[ and Cmd/Ctrl] or AltLeft and AltRight are back and forward, Cmd/CtrlA selects the files, Cmd/CtrlBackspace asks to delete the selected ones, and typing jumps to a name. A plain Backspace or Delete never deletes a file or closes the panel.
  • It still knows about Git. Inside a repository, file names carry the same status letters (modified, untracked, deleted, conflicted) the rest of Deska uses.
  • Right-click for the full menu: new file or folder, rename, duplicate, copy, paste, delete, open in a terminal, open as a project, or reveal in your system file manager. Hidden files are a toggle in the view options.
NoteOpening a file has not changed: it lands in the notebook, the same as it did from the tree. Browsing a folder never re-homes your project either, so a look around Downloads leaves the workspace where it was.

A typical edit → commit loop

  1. Open a file from the file explorer and make your edits in the editor.
  2. Save with Cmd/CtrlS.
  3. On the notebook’s Source Control page, click the file to review the diff, then stage it.
  4. Write a commit message (or generate one) and press Cmd/CtrlEnter.
  5. Push from the Git header, or use the Commit split button to commit, push and open the pull request in one run.

Diffs

Diffs are read-only and side by side: original on the left, your working copy on the right, additions in green and removals in red. To edit, open the file normally instead of through the diff. Where the diff appears depends on where you clicked:

  • From the file tree inside an editor panel, the diff opens as another tab in that same editor, marked as a diff in the tab strip. Your other tabs stay exactly where they were, and a path is either a normal tab or a diff tab, never both.

From the notebook’s Source Control and Explorer pages, the diff opens as a stop inside that same page rather than a docked editor, so the review stays on the notebook’s own trail.