thread: redesign sidebar │ /new-worktree name:redesign ▼ ┌────────────────────────────┐ work in worktree │ thread: ⬦ redesign │──────▶ commits accumulate │ branch: opencode/kimaki- │ │ redesign │ └────┬───────────────────────┘ │ /merge-worktree ▼ rebase onto target branch ├──▶ rebase: keep commits ──▶ fast-forward target ──▶ done └──▶ squash: one commit ──▶ fast-forward target ──▶ done
/new-worktree. Both options are optional:name: lowercase letters, digits, and hyphens, at most 64 characters. Without a name, Kimaki uses session-<random>.base-branch: the git ref to start from. The default is the project's current HEAD, so you can branch from unpushed commits.opencode/kimaki-<name> in a new folder under worktrees/ in the Kimaki data directory (default ~/.kimaki/worktrees/). The new thread is named ⬦ <name>.Send a message to start working.git worktree add, Kimaki prepares the folder:.gitmodules, it runs git submodule update --init --recursive.pnpm install --frozen-lockfile, bun install --frozen-lockfile, yarn install --frozen-lockfile, or npm ci./worktrees, then the Enable auto-worktrees button.kimaki channel worktrees on --channel <channel-id>.kimaki --worktrees to make it the default for channels that have no setting./merge-worktree in the worktree thread. Commit your changes first.strategy: Rebase (the default) keeps every commit. Squash makes one commit named Merge worktree <branch>.target-branch: the local branch to merge into. The default is the branch checked out in the project folder.Merged N commits into <branch> (<sha>). It merges into your local branch only. It does not push.HEAD. The worktree branch is kept too.git rebase --continue, then run /merge-worktree again./worktrees to see every linked worktree of the channel's project, 5 per page. Worktrees made by Kimaki, by OpenCode, or by hand all show up. The same message shows whether automatic worktrees are on, with a button to change it./cwd to pick another one./cwd shows the session's working directory. /cwd path:<dir> moves the session to a project subfolder or a linked worktree. The path is relative to the current working directory.1234567kimaki worktree list kimaki worktree create redesign --base-branch main kimaki worktree merge <directory> --strategy squash --target-branch main kimaki worktree remove <directory> kimaki send --channel <channel-id> --prompt 'redesign the sidebar' --worktree redesign kimaki send --channel <channel-id> --prompt 'continue here' --cwd <worktree-directory> kimaki session cwd <directory>