ArakunDocsDownloadarakun on GitHub

Workspace

Manage projects and worktrees

Add or clone a project or a space, give each session its own worktree, commit from the Workspace panel, and let Arakun archive and clean up what is done.

On this page
  1. Add or clone a project
  2. Add a folder as a space
  3. Start a chat
  4. One session, one worktree
  5. Use the Workspace panel
  6. Write the commit message
  7. Archive what is done
  8. Remove archived sessions
  9. After a merge
  10. Remove old environments

#Add or clone a project

Press Ctrl+O for Add project. It searches the git repositories in your home folder, or browses a path you type, such as ~/code/.

To clone a project and add it in one step, paste one of these:

  • a clone URL, such as https://github.com/o/r or git@host:o/r.git,
  • a gh repo clone o/r or git clone … line,
  • a GitHub o/r.

GitHub repositories are cloned with gh when it is installed, so private ones use its sign-in. The clone goes in the folder that already holds most of your repositories, or ~/code. A folder right under the root, such as /work, holds the clones itself.

With a server connected, the picker also offers to clone the pasted repository on that server, such as Clone owner/app on box. The server clones with its own git and logins, and the new folder opens in its project once the server has it. See Server.

Each project gets an 8×8 pixel-art icon, drawn from its path. Pick Edit icon… in the project's menu to draw it pixel by pixel, shuffle a new one, start from a classic drawing or change its color.

To change the order of your projects, drag one to another place in the sidebar: in the Projects list, by its heading in the session tree, or by its tile when the sidebar is folded. A line shows where it lands. Move up and Move down in the project's menu do the same from the keyboard. Every list of projects shows this order, and a server's projects keep their place when the server connects again.

#Add a folder as a space

A space is a folder for research, writing, planning and other work that is not code. To add one, press Ctrl+O, choose a folder that is not a git repository, then pick Add as a space.

Arakun never asks git about a space, even one inside a repository. Every session runs in the folder itself, with no worktree, branch, Changes panel or pull request, and no project check is offered. Settings › Project shows only what applies to a space: the sandbox, the variables passed to agents and saved secrets.

A space's sessions start with the Talk focus. See Pick a focus.

#Start a chat

To ask an agent something without adding a project, press Ctrl+Shift+J for New chat. It is also the + in the sidebar's Chats tab, in the palette, in File › New Chat and on the welcome screen.

The chat starts a session in Chats, a space Arakun keeps in its own data folder: ~/.local/share/arakun/chats/, or %LOCALAPPDATA%\arakun\chats\ on Windows. Arakun makes Chats the first time. Its sessions start with the Talk focus. If you remove Chats from the sidebar, the next New chat brings it back, with its files still there.

Two tabs head the sidebar: Work lists your projects, and Chats lists your chats. New chat opens the Chats tab. To take the tabs out, use Customize › Sidebar. Chats is then listed with your projects.

#One session, one worktree

In a project that is a git repository, a new session gets its own git worktree on a random branch, made when you send the first prompt. Arakun then renames the branch after the task in that prompt. See Start a session.

ToDo
Start a session in a new worktreeNew session, or Ctrl+T
Pick the branch firstAlt+click New session
Make a worktree at once, on a random branchCtrl+Shift+N
Pick the branch and where to start fromNew environment with options… in the palette, or Ctrl+Alt+N

Ctrl+Shift+N fetches first and branches from origin's default branch, usually main, or from the project's Base branch in Settings › Project. When origin has no such branch, it starts from the local one.

A prompt written in the main checkout, such as on a project's start screen, starts its session in a new worktree too. The main checkout is listed only while it holds older sessions. Open it from the project's right-click menu with Open main checkout.

#Use the Workspace panel

The Workspace panel has these tabs:

  • Sessions: the sessions of the environment.
  • Explorer: its files.
  • Changes: its uncommitted changes.
  • Session: what the session on screen works on: its next step, issue, pull request, artifacts and subagents. Ctrl+Alt+S switches to it and back. See Follow the task in the Session tab.

The Branches tab shows the default branch's history, newest first, with up to three branches as colored lanes beside it. Point at a commit, or move to it with the arrow keys, to see its author and agent, what it changed and its pull request. Click a commit of a branch, or press Enter, to open that branch.

#Write the commit message

In the Commit changes dialog, Write with <agent> writes the message in the style of your last commit subjects. It reads the staged changes, or every change when nothing is staged. You edit the message before you commit.

Only the agent of the environment's latest session gets the diff. When that agent isn't set up, no other agent is asked, and the dialog says why. Closing the dialog while it writes stops the agent.

#Archive what is done

Right-click an environment in the sidebar and pick Archive. Then:

  • its sessions that aren't working stop asking for you and leave the lists,
  • the open review threads of its branch's pull request are resolved on GitHub,
  • that pull request's notifications are marked read.

A session's own right-click menu archives just that session, without touching GitHub. So does the archive button that shows when you point at a session that is not working, the open one included.

To get one back, use the N archived row at the end of the sidebar's list, or search. Pick Restore on its right-click menu, or send it a new prompt.

#Remove archived sessions

Settings › Branches › Remove archived sessions after (Off, 30 days, 90 days or 1 year) removes an archived session once that long has passed since it was archived or last used, whichever is later. Its transcript, its linked note and the images pasted into it are deleted too. It is off by default, so sessions stay until you remove them.

Arakun looks when it starts and then once a day. A session stays when it is working, waiting for you or open in a tab. The files of a session another one continued stay with that one. A server's sessions follow the same setting on the server.

An image pasted into the composer or sent from the phone that no session and no saved draft uses, such as one you took out of a draft, is deleted once it is a week old. Arakun looks for those when it starts and then once a day, whatever this setting says.

#After a merge

Once an environment's pull request is merged, Arakun archives it the same way. It asks gh every few minutes. Turn this off in Settings › Branches › Archive after merge.

#Remove old environments

Settings › Branches › Remove old environments (Off, 7, 14 or 30 days) removes a worktree once its pull request is merged or closed and it sat unused that long. It is off by default.

An environment stays when it has:

  • uncommitted or untracked files,
  • git-ignored files other than build output, such as target/ or node_modules/,
  • a commit that isn't in the pull request,
  • an agent that works or waits for you,
  • an automation that is on and runs in it.

The environment on screen stays too.

While old environments are removed, Settings › Branches › Delete merged branches, on by default, deletes an environment's local branch with its worktree when its pull request was merged. Squash merges are fine: the branch goes only while its last commit is still in the pull request's last commit, checked again right before it is deleted.

A branch with commits that aren't in the pull request stays. So do the default branch, a branch checked out in another worktree, and the branch of a pull request that was closed without a merge. The remote branch on GitHub is left alone. arakun server removes no worktrees, so it deletes no branches.

Did this page help?

Tell us about a mistake on this page, or ask for help with Arakun.