ArakunDocsDownloadarakun on GitHub

Get started

Start a session

Start your first agent session in Arakun: set it up, add a project, pick an agent, write the task and let Arakun make the worktree and name the branch.

On this page
  1. First launch
  2. Your first session
  3. Pick a focus
  4. Each session gets its own worktree
  5. Branch names from the task
  6. Find your sessions
  7. Start from your issues
  8. While the agent works
  9. Keep secrets out of the chat
  10. When the agent needs a secret
  11. When your prompt holds a secret
  12. When an agent reads a secret file
  13. What agents get from your environment

A session is one agent working on one task, in a git worktree of its own. This page walks through your first one and what happens while it runs.

To ask an agent something without a project, press Ctrl+Shift+J for a new chat. See Start a chat.

#First launch

Before you have a project, Arakun checks the machine for agents and GitHub. Then it walks you through four short steps, next to a small preview of the window that changes as you pick:

  1. The agent new sessions start with.
  2. Your first project.
  3. The color scheme and the sidebar layout.
  4. GitHub, the phone remote and crash reports.

Enter goes to the next step and Esc goes back. Every step can be skipped, and Skip setup leaves at once. To see it again, press Ctrl+K and pick Show onboarding.

You can sign in to an agent before you add a project. The sign-in runs in a terminal of your home folder.

#Your first session

  1. Add a project

    In the project's folder, run:

    sh
    arakun .

    This adds the project, or switches to it. It starts Arakun if it is not running.

    Or press Ctrl+O. It searches the git repositories in your home folder. Paste a clone URL or type a GitHub owner/repo to clone it and add it in one step.

  2. Start a new session

    Press Ctrl+T, or click New session at the top of the sidebar. A composer opens at once.

  3. Pick the agent and the model

    The menu next to the composer lists the models of the agent in use, its reasoning levels and, where the agent has one, a fast mode switch. The strip of agent icons at the bottom shows another agent's models. Pick one of them to switch to that agent. The chip beside the menu sets the agent's mode, such as Plan mode.

  4. Pick a focus

    The focus chip beside the agent says what the session is for. See Pick a focus.

  5. Write the task

    • The empty composer names the agent you're messaging, such as "Message Claude Code". While a turn runs, it says "Queue a follow-up".
    • Enter sends. Shift+Enter adds a line.
    • Up on an empty composer recalls earlier prompts.
    • Paste or drop files to attach them, or press + to pick files in the system's file picker. They wait above the text, images as pictures and other files as chips. A click opens one beside the chat, and the cross takes it out. Images go along as images, other files as @ mentions.
    • An image over 5 MB, or more than 1568 pixels on its long side, goes to the agent as a smaller copy, since the API refuses larger images. The file you attached doesn't change, and its path stays in the prompt. Arakun keeps the copies for a week in cache/images in its data folder.
    • In a Claude Code session, an attached PDF goes to Claude as a document, so Claude reads it directly. It waits above the text as a chip with its name. A PDF over 24 MB is not sent. Other agents get the PDF as an @ mention.

#Pick a focus

The focus chip beside the agent in the composer says what a new session is for: Code, Talk, Research, Write or Plan. Pick it before the first prompt. After that the session keeps it, also when you hand it to another agent. The chip shows the focus unless it is Code.

  • A repository's sessions start as Code, and a space's as Talk. Your pick stays for the environment's next session.
  • Every agent is told what the focus asks of it: Claude Code in its system prompt, the other agents with the first prompt. Workers AI stops calling itself a coding agent.
  • Code adds nothing, so a coding session gets what it always did.
  • Sessions on a server are Code for now.

#Each session gets its own worktree

When you send the first prompt, Arakun gives the session its own git worktree on a new branch, so agents don't step on each other. A prompt written in the main checkout, such as on a project's start screen, starts in a new worktree too.

  • The new branch starts from origin's default branch (usually main), fetched first. Set another Base branch in Settings › Project.
  • Alt+click on New session asks for the branch first.
  • Ctrl+Shift+N makes a new worktree at once. Ctrl+Alt+N asks for the branch and where to start from.
  • Before a repository's first commit there is nothing to branch from, so sessions start in the main checkout.
  • In a space, sessions run in the folder itself, with no worktree or branch.

Every environment has its own sessions, terminals and draft prompt.

#Branch names from the task

A new worktree starts on a random branch name, such as env/brave-otter. After the first prompt, a small model names the branch after the task, such as fix/terminal-tab-name, and Arakun renames it. The folder keeps its name.

By default the agent you sent the prompt to names it, when that agent is Claude Code (with haiku) or Droid. Other agents leave the name alone. Settings › Branches can pick Claude Code or Droid for every environment, or turn naming off.

To rename the branch yourself before it is pushed, run arakun rename <branch> in the environment.

#Find your sessions

On a new install, the sidebar lists every session of every project, under its project. Each row has a mark for its state: a ring while it works, ! when it needs you, a cross when it failed, a check when its checks passed and a faint dot when idle.

Needs you, at the top of the sidebar, also lists the pull requests whose review is asked of you and the projects whose default branch failed its checks. It shows three review requests, then one row that counts the rest and opens the GitHub tab. A review request opens the session already on its branch, or starts one that reviews it. A failed branch opens its run.

#Start from your issues

Under the composer, a project's start screen lists the issues assigned to you, in Linear and in the project's GitHub repository, the most recently changed first. It also lists your open pull requests there that no environment of the project is on. It shows five of each before Show all.

Pick an issue to start a session on its own branch: Linear's name for it, or issue/<number>. The session's Session tab links it to the issue.

Arakun reads GitHub's review requests and assigned issues in the background whenever gh is installed and signed in. Linear issues need a Linear sign-in, in Settings › Linear.

The title bar holds the sessions you pin to it. Drag a row up to the bar, or press Alt+P with the pointer on the row. Settings › Appearance › Tabs and sessions has three presets: Focused (this layout), Classic (every open tab in one row, projects and worktrees in the sidebar) and Everything.

#While the agent works

  • Enter queues your next message. Ctrl+Enter stops the turn and sends it now.
  • Esc stops the turn.
  • A running command shows its time so far, and a subagent how long it has run.
  • When a tool returns an image, such as a browser screenshot from an MCP server, it shows as a thumbnail under the tool row, also while the row is closed. A click opens it full size.

A session of two screens or more shows an outline on its right edge: a long line for each prompt and short lines for what follows it, with a box over the part on screen. The lines fade away from the box toward both ends. Drag the box to scroll, or drag it to the end to follow new output again. Click a turn outside the box to bring its prompt to the top. Point at a turn to see its prompt, number, time, steps and errors.

To hand a running session to another agent, open the model menu, pick that agent in the strip and click Continue with.

#Keep secrets out of the chat

Arakun keeps keys, tokens and passwords away from the model and the transcript where it can.

#When the agent needs a secret

When an agent needs something only you can give, such as a login, an API token, a PIN or a pairing code, it asks with a card in the session instead of a message. The card shows what it is, why the agent needs it and, when there is one, the page to sign in or make it.

  • Its inputs are masked. The eye shows what you typed, and nothing copies out of them.
  • Save or Decline answers. The agent gets a secret-ref: handle per field, never the value, and the transcript records only whether you saved, declined or the request was cancelled.
  • A request is cancelled when you stop the run, send a new message, the turn ends, or 10 minutes pass.
  • Saved values wait in the system keyring for 24 hours or until a handle is used.

Only Arakun's own tool run_with_secrets redeems a handle. It sets the value as an environment variable for one command and masks it in the output. A handle works once, in the project it was made for, and Arakun won't type one into a page or a terminal.

For a command that must read the value itself, such as sudo -S or a pairing CLI, the agent asks for a file instead. The card then says the agent's commands can read it. The value goes to a file only you can read, in secret-files in Arakun's data folder (~/.local/share/arakun), and the file is deleted after 24 hours. secret_to_file moves a secret you pasted in a message to such a file.

Claude Code, Codex and Droid sessions have it through Arakun's MCP server, arakun mcp, which Arakun starts for each session. The phone page, the iOS and Android apps and sessions on a server show the card too.

A password field in an agent's question is masked the same way, with Show to see it. Once you answer, the question shows "Answered" instead of what you typed.

Save a secret for the project

To keep a secret for the project's later sessions, turn on Save for this project on the card and give it a name. The agents of that project can then ask for it again by name instead of asking you.

  • The project's entry in Arakun's state keeps only the name. The value stays in the system keyring.
  • Agents call list_saved_secrets for the names, never the values.
  • use_saved_secret gives an agent a fresh secret-ref: handle, which works once like any other, or a private file with deliver: "file".
  • A card with several fields saves each as "name (field)".

Settings › Project › Saved secrets lists them, masked. Rename, Replace and Remove manage each one, and no screen shows a stored value. Variable sets one as an environment variable, such as STRIPE_KEY, that the project's agents start with, sandboxed or not. Tools that read the variable then work without the value passing through the chat. The agent's commands can read it, as they can a file. It applies to sessions started afterwards.

Answer from a password manager

To keep a key in 1Password instead of in Arakun, choose Password manager instead of Value on the card. Then enter a 1Password reference such as op://vault/item/field. In 1Password, Copy Secret Reference on the field copies it.

  • Arakun reads the value through the 1Password CLI (op) when you press Save.
  • With Save for this project on, the project keeps only the reference. Arakun reads the value again each time an agent needs it.
  • Check reads a reference and says whether that worked, without showing the value.
  • Arakun remembers what it read, and what failed, until it quits, so you unlock 1Password once. Refresh forgets it.
  • A read waits up to 45 seconds for you to unlock 1Password.

In Settings › Project › Saved secrets, Password manager points a saved secret at a reference, and Value puts a value back in the keyring.

#When your prompt holds a secret

When a message you send holds what looks like a key or a token, Arakun holds the send. A notice above the text says that, sent as it is, the secret goes to the model provider and stays in the session. The secret shows as stars until you choose:

  • Save as a secret puts a one-use handle, or the path of a private file, in its place.
  • Send anyway sends it as it is. Arakun doesn't ask again about that value in the session.
  • Cancel goes back to the draft.

A secret you type in a prompt shows as [secret] in session titles, notifications, handoffs to another agent and memory. The model that names the branch doesn't see it either.

#When an agent reads a secret file

With or without the sandbox, and with auto-allow on, an agent asks before it reads a secret file. This covers a read tool, fs/read_text_file, or a command that plainly prints the file, such as cat .env, grep KEY ~/.aws/credentials or node app.js < .env. The card names the file and says why it matters: what the agent reads goes to its model, and shows in the chat and on your phone.

  • Allow secret files this session stops the read tools from asking again in that session. A command still asks.
  • Output from a secret file stays hidden in the chat until you press Show. The phone never gets it.

A secret file is:

  • an env file: .env, .env.*, .envrc, *.env, .dev.vars;
  • a key or key store: *.pem, *.key, *.p12, *.pfx, *.jks, *.keystore, *.ppk, *.kdbx, *.gpg, *.asc, id_rsa and the other id_* keys;
  • a credentials file: .netrc, .npmrc, .pypirc, .git-credentials, .pgpass, .htpasswd, kubeconfig, auth.json, credentials*, a service account's JSON key, .docker/config.json;
  • Terraform state and variables;
  • a data file named for a secret, such as password.json or gh-token.txt;
  • anything under .ssh/, .gnupg/, .aws/, .kube/, .azure/ or .config/gcloud/.

Templates (.env.example, .sample, .template, .dist) are not secret files. Claude Code reads files itself, so Arakun gives it permissions.ask rules for these names on top of your own settings. A rule can't say everything above, so some reads, such as password.json, ask only when Claude Code would ask anyway.

#What agents get from your environment

Every agent, sandboxed or not, starts without the variables of Arakun's environment that look like secrets:

  • names with TOKEN, SECRET, PASSWORD, CREDENTIAL, API_KEY or PRIVATE in them, or ending in KEY;
  • those of other tools, such as GH_*, GITHUB_*, AWS_*, CLOUDFLARE_*, STRIPE_*, HF_*, DOCKER_* and NETRC.

Model providers' keys and settings (ANTHROPIC_*, CLAUDE_*, OPENAI_*, GEMINI_* and the like) and ARAKUN_* stay. So do AWS_* for Bedrock in Claude Code and OpenCode. An agent outside the sandbox also keeps SSH_AUTH_SOCK, DBUS_SESSION_BUS_ADDRESS and DISPLAY, so git push over SSH and sign-ins still work.

Without GH_TOKEN, gh in a session uses the login from gh auth login. To give a project's agents a variable anyway, name it under Pass to agents in Settings › Project, for example GH_TOKEN NPM_TOKEN. Terminals keep the whole environment.

Did this page help?

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