Skip to content

First steps

The first time you run cornercase it shows a short guided tour of its own: a card at the bottom right that points at a part of the window, and moves on when you do what it says. It follows this page. You can skip any step or end the tour, and reopen it any time from Help.

This page takes you through a normal session: opening projects, starting a line of work, splitting a tab and leaving everything running. You only need the mouse; keys always go to the shell in front of you.

Open your terminal in a project and run cornercase:

Terminal window
cd ~/code/web-shop
cornercase

The first time, cornercase starts its background server and opens the folder you started from as your first project, with one tab running your shell:

search projects, workspa…web-shop▾ProjectsBots›web-shop(2)+ New▾Workspaces▾main↓2›bash+ Tab▾feat/dark-mode+4−0+ Tab+ NewIssuesChangesFilesTODOWorktreesRecapMore▴Help
A fresh start in ~/code/web-shop. The feat/dark-mode worktree already existed, so it shows up on its own.

On the left are your projects and the workspaces of the active one, in one column with the projects on top (you can also put them side by side or in one tree); the rest is the pane:

Area What it holds
Top left The search bar: click it to jump to any project, workspace or tab, or to a setting.
Projects Every project you opened, with its number of workspaces, optionally in groups. + New at the end of the list; Worktrees and More ▴ at the bottom, with Help beside it: its menu holds settings, usage and quit, and the update when a new version is out. Once the window has reached another machine, the Worktrees row also names the machine it is on.
Workspaces The workspaces of the active project, each with its tabs. + Tab adds a tab to a workspace, + New starts a new one (new workspace) or a flow (start a flow…), Issues opens the issue browser, Files the files panel, TODO your TODO list.
The pane The active tab: one shell, or several in splits.

The active project and tab are marked with a cyan bar ▌ on the left edge and a highlighted background. Tabs hang from their workspace on thin tree lines.

  1. Click + New under the projects, then open project. A folder picker opens in the folder above your current project.

  2. Type to filter the folders. Folders that are git repositories show their branch on the right.

    Open project›~/code/apmobile-appmainorders-apimainenter goes into mobile-appopencancel
    Typing filters the folders; the best match is selected.
  3. Press Enter to go into the selected folder, then Enter again (or click open) to open the folder you are in.

You can also click a folder to go into it, ← or Backspace to go up, and type ~ or a path to jump straight there. Opening a folder that is already a project just switches to it. All the picker’s tricks are in Projects, workspaces and tabs.

A workspace is a line of work in a project: a feature, a bug, an experiment. Every project starts with one, the project folder itself.

  1. Click + New under the workspaces, then new workspace.

  2. Type a name. When the project folder is the root of a git repository, the name is also a branch and with its own worktree is ticked: the workspace gets its own checkout of the repository, so its files don’t mix with your other work.

    New workspacename›feat/loginin ~/.cornercase/worktrees/web-shop/feat-login[x] with its own worktreecreatecancel
  3. Click create or press Enter. cornercase runs git worktree add and opens a shell in the new checkout.

Untick the box (click it or press Tab) to create a workspace in the project folder itself instead. Worktrees have a page of their own: Git worktrees.

Click + Tab under a workspace to open another shell in its folder. Tabs are named after the program running in them, so a tab where you start nvim is called nvim.

To split a tab, right-click inside a pane:

split rightsplit downsend right-clicks to the paneopen in…close pane
  • split right and split down open a new shell next to the pane, in the same folder.
  • open in… opens the pane’s folder in your file manager or editor.
  • close pane ends the shell in that pane.
  • Drag a divider to resize the panes; double-click it to make them equal again.
  • Drag a pane with the right button onto an edge of another to move it there, or onto its middle to swap the two.
  • Click a pane to make it the active one: inactive panes are dimmed.

Drag over text in a pane to select it. When you release the button, cornercase copies the text to your clipboard and confirms it with a small toast. Programs that use the mouse themselves, such as htop or an editor with mouse support turned on, get the drag instead.

Paste with your terminal’s usual paste keys; the text goes to the program in the active pane.

Hover a project, workspace or tab: its row gets a lighter background and a ⋯ and a × appear at its end. Clicking × closes it and ends the programs inside; ⋯ opens its menu. Closing a project asks first, because it stops every program in it; so does closing a workspace that has its own worktree, because it also deletes the worktree’s folder (never the branch). In the compact layout both are always there, and closing a tab or a workspace asks first too.

To rename something, click the ⋯ at the end of its row, or right-click the row. A project’s menu also moves it into a group.

Click More ▴ at the bottom of the sidebar, then quit, or simply close the terminal window. cornercase detaches, but your shells, editors and agents keep running in the background server.

Run cornercase again, from any terminal, and you are back where you left off. You can even attach from two terminals at once: they show the same session.

Terminal window
cornercase # attach again
cornercase kill-server # stop the server and every shell in it

After kill-server or a reboot, the next cornercase brings back your projects, workspaces, tabs and splits, each pane with a fresh shell in its folder. See Sessions and the server.

search projects, workspa…web-shop▾ProjectsBots›web-shop(3)+ New▾Workspaces▾main›bash+ Tab▾feat/dark-mode+4−0+ Tab▾feat/gift-cards+ TabGet started·1/7+ NewProjectsA project is a folder you work in. Open one with+ New, then open project. If cornercase startedin a folder, that folder is already your firstIssuesChangesproject.FilesTODOWorktreesRecapdocsend tournextMore▴Help
The first step of the tour. A project is already open, so it only explains.

Help, at the right of the More ▴ row, opens a menu:

  • tour shows the guided tour again, where you left it (continue the tour), or from the start once you finished it. Its steps follow this page, then show you your first prompt to an agent, the status icons and the settings that matter most.
  • catalogue… lists short tours of the rest of cornercase: issues to agents, reviewing changes, files and paths, flows, TODO, the queue, search, your phone, Telegram and Discord, accounts, keys, scripts and plugins. A tour you finished gets a ✓, one you started shows how far you got.
  • docs and report a bug copy the address of these docs or of a new GitHub issue.
  • keys menu opens the keys menu, once you set a prefix key.

A step that asks you to do something, such as opening a project or a tab, completes as soon as you do it; skip goes past it. A step about a part of the window opens it for you, such as the TODO panel or a page of Settings, and closes it again when you move on, unless you had it open already; it never replaces a dialog you have open, and never changes a setting. docs on the card copies the page of that tour, and end tour closes it; its progress stays. The card never takes the keys from your shell, and clicks around it reach the window as usual.

In the first-prompt step the card shows an idea for a prompt, which you can click to edit, and a button that starts the agent with it in the current workspace. If the agent asks whether to trust the folder, that answer is yours.

The tour shows by itself only once, on a new install. settings → UI → guided tour turns that off, start the tour opens it, and reset tour progress starts every tour again from its first step. cornercase tour opens it from a shell (see Command line).