Skip to content

Git

KryoDesk’s Git features work on the work folder: the project selected in the Agents window. Without one, the first Git command asks for a folder and adds it as a project.

KryoDesk reads the repository itself, but every change runs as one visible line in a terminal tab. The dialog shows the line before Run; passwords, SSH host keys and 2FA are typed in that tab, never in KryoDesk.

Step Detail
git binary First found, never PATH. macOS: /opt/homebrew/bin/git, /usr/local/bin/git, /usr/bin/git. Windows: %ProgramW6432%\Git\cmd\git.exe, %ProgramFiles%\Git\cmd\git.exe, %ProgramFiles(x86)%\Git\cmd\git.exe (Git for Windows for all users), %LOCALAPPDATA%\Programs\Git\cmd\git.exe (per user), %USERPROFILE%\scoop\apps\git\current\cmd\git.exe (Scoop); started without a console window. Missing on Windows: install with winget install --id Git.Git -e. Path and version are shown under each dialog.
Reads Run without a shell: git -c core.fsmonitor=false -C <folder> …, time limit 20 s. Read again on focus, every 5 s and after file changes in the Project window.
Validation Branch and tag names pass git check-ref-format, revisions git rev-parse --verify; names must not start with -; paths must be in the current status; no control characters.
Line cd <repository root> && <git> …, arguments quoted; paths after -- with --literal-pathspecs.
Warnings Shown under the line; a line with warnings asks for confirmation before it runs.

Push dialog with the line it runs

Every dialog has Repository and Branch (with upstream and ahead/behind), Folder… to pick another repository, refresh, Command with Copy, Run and Cancel.

Item Shortcut Line
Commit… ⌘K Opens the Commit window.
Push… ⌘⇧K git push [-u] [--force-with-lease] [--tags] -- <remote> <branch>
Update Project… git pull --rebase or --no-rebase, optional --autostash
Pull… git pull --no-rebase / --rebase / --ff-only
Fetch git fetch [--prune] [--tags] --all or -- <remote>
Merge… git merge [--no-ff | --ff-only | --squash] <branch>
Rebase… git rebase [--autostash] <onto>; warns that history is rewritten
Branches… List of local and remote branches
New Branch… git switch -c <name> [<start>] or git branch <name> [<start>]
New Tag… git tag [-a -m <message>] <name> [<target>], optionally followed by a push of the tag
Reset HEAD… git reset --soft | --mixed | --keep | --hard <target>
New Worktree… git worktree add -b <branch> <path> [<start>]
Worktrees… List; git worktree remove --force, git worktree prune -v
Show Git Log git log --graph --decorate --format=… -n <N> [--all]
Uncommitted Changes ▸ Show Status git status
Uncommitted Changes ▸ Show Diff git diff
Uncommitted Changes ▸ Stash Changes… git stash push [--include-untracked] [--keep-index] -m <message>
Uncommitted Changes ▸ Unstash Changes… git stash pop | apply [--index] <stash>, git stash drop <stash>
Uncommitted Changes ▸ Rollback… git restore --source=HEAD --staged --worktree -- <paths>; new files: git clean -f -- <paths>
Manage Remotes… git remote add | remove | set-url
Clone… git clone [--branch <b>] [--depth <n>] [--recurse-submodules] -- <url> <dir>

New Branch dialog

Reset HEAD dialog with the mixed mode and its warnings

Reset HEAD describes the effect of the mode under the line: Soft keeps index and files (the undone commits’ changes become staged), Mixed resets the index and keeps files, Keep updates files that differ and is refused by git when one of them has local changes, Hard overwrites the index and all tracked files and says how many tracked files with uncommitted changes would be lost. It also notes that commits after the target stay reachable only through the reflog until garbage collection.

Git → Commit… (⌘K) or the Commit tool window (left).

Commit window with a suggested message

Control What it does
Branch line Branch with ahead/behind; click opens the branch popup.
Refresh Reads the status again.
Changes, Unversioned Files Files to commit, with checkboxes per file and per group. A partly ticked box: only some changes of the file are chosen in its diff view; clicking it unticks the file, the next click ticks the whole file (the group box works the same way). Colours: modified blue, added green, untracked red, ignored olive, deleted grey, conflict orange.
Click a file Opens the diff view (below) and ticks the whole file, unless only some of its changes are chosen (then the choice stays).
File menu Show Diff (diff view), git diff in Terminal (git diff HEAD -- <path>), Open in Editor (at the line its diff view last showed), Add to Git (untracked), Rollback….
Amend git commit --amend.
Undo arrow Puts back the message of the last commit started here.
Suggest Asks for a message (below): Pan Spinacz, or Claude Code / Codex from the arrow (right click). The default is the agent of Settings → AI & Agents → Agents when its CLI is installed.
Commit Chosen files: git --literal-pathspecs add -- <paths> && git --literal-pathspecs commit -m <message> -- <paths>; all files: git add -A && git commit -m <message>; Amend without files: git commit --amend --only.
Commit and Push The same, then git push (or git push -u -- <remote> HEAD when the branch has no upstream; origin, else the first remote).
Commit with chosen changes A confirmation lists the line and, per file, the index entry it gets: changes and lines chosen, blob ids before and after, the chosen lines, the exact git hash-object --no-filters -w --stdin and git update-index -z --index-info (all files in one call), and warnings (a mode change or a different newline at the end of the file stays out). After Stage and Commit the index is written and checked (git ls-files -s gives the computed blob ids, git diff --cached --name-only lists only these files; anything else stops before the commit), then the terminal runs git add -- <whole files> && git --no-pager diff --cached --stat --no-ext-diff --no-textconv -- <partial files> && git commit -m <message>. Other files with staged changes that are not chosen are refused (the commit takes the whole index).

Click a file in the Commit window (or Show Diff) to open a Diff tab: the HEAD version on the left, the work tree version on the right.

Diff view with HEAD and the work tree side by side

Control What it does
↑ ↓ Previous / next change (Shift+F7 / F7, ⌥↑ / ⌥↓). At the last change, pressing again opens the next file.
‹ 1/4 files › Previous / next file of the Commit window lists (⌥← / ⌥→).
N differences Number of changed blocks.
Side by side / Unified Two panels with connectors between changed blocks, or one panel with removed and added lines.
Collapse unchanged Folds unchanged runs, keeping 3 lines around each change; click a fold to show it.
Panel header Version (HEAD <commit> / Working tree), path, encoding (? = guessed), line ends, size, file mode; copy button.
Git commands The exact git commands run for the view.
File name, pencil Opens the file in the editor with the caret on the work tree line in the middle of the view.
Checkbox at a change Includes the change in the commit (side by side: on the connector strip; unified: at its first line). In the unified layout the − / + of each line chooses single lines (· = left out). Commit: N of M changes counts them.
Revert arrow at a change Puts the change back to HEAD in the work tree file. The confirmation lists the lines that go and the HEAD lines that come back; the file is written only when it still holds what the diff shows, through a new file that takes the place of the old one with its permissions, ACL and extended attributes; a file with several hard links or another owner is refused. An editor tab with the file open is named in the confirmation.
Index: … What the index holds when it differs from HEAD: the whole change, some changes (their numbers), or another version (mode and blob id).

Changes can be chosen in text files changed in place. New, deleted, renamed, binary, symlinked, UTF-16 and conflicted files, files whose encoding differs between the versions, files with a clean filter, ident or working-tree-encoding attribute (git check-attr), and files whose line ends git converts while HEAD has none or mixed ones, are committed whole; the bar says why. A chosen change is named by its number and a hash of both versions, the index entry and the changes: when the file, its index entry or HEAD changed since the diff was shown, staging and reverting are refused (“file changed since the diff, refresh”). The new index entry is put together from the raw bytes (line ends and encoding stay); changes outside lines (file mode, final line end) go only with the whole file. Choices made in the diff are kept when the diff is read again and the chosen changes are still there (a change found twice: the nearest one; two equally near: dropped). The choice is kept per repository.

Colours: added green, removed red, modified blue; changed words inside a modified line are darker. Above the panels, notes list what the lines do not show: file mode, encoding, line ends, final line end.

Both versions are read without diff drivers, textconv or filters: HEAD with git ls-tree -l -z HEAD -- <path> and git cat-file blob <id>, the work tree file from disk (a symlink shows its target). Only files git knows are read (tracked, or untracked and not ignored); git status is not run, so no clean filter of the repository runs. A version over 4 MB or 200,000 lines, or a binary one (NUL byte), shows its size or reason instead of lines; lines over 10,000 characters are cut in the view. Control and invisible characters (including text direction marks) are shown as symbols.

Suggest runs only when clicked. It sends to the model from assistant settings: git diff --no-color --no-ext-diff --no-textconv --stat --patch HEAD -- <chosen paths> (--staged in a repository without commits), the start of chosen untracked text files (at most 3 KB each), the branch name and recent commit subjects, up to 24 KB of diff in total. The assistant’s API key is sent as for a chat request. With a non-local API URL this leaves the computer. The line under the message names the model, the server and the size and time. External diff tools and textconv filters are disabled so that nothing from the repository runs. For a file with only some changes chosen, only those changes are sent (with 2 lines of context). Secret-looking values (PEM blocks, known token prefixes, AWS key ids, JWTs, password=-like values) are replaced with [redacted] before sending; the count is in the log. The first Suggest with each agent shows where the text goes (the model and URL, Anthropic or OpenAI), its size and the files, and sends only after Send.

Claude Code and Codex get the same text on stdin (never in arguments) and run in an empty temporary folder, not in the repository, with only HOME, the locale, the temporary folder, their sign-in variables (ANTHROPIC_*, CLAUDE_CODE_*, OPENAI_*, CODEX_*, AWS_*, …) and proxy variables:

  • Claude Code: claude -p --output-format text --no-session-persistence --safe-mode --strict-mcp-config --setting-sources user --settings '{"disableAllHooks":true}' --system-prompt <rules> --tools "" (no tools, MCP servers, hooks, CLAUDE.md or plugins; --safe-mode only when the installed version has it).
  • Codex: codex exec --ignore-user-config --ignore-rules --sandbox read-only --skip-git-repo-check --ephemeral --color never -c web_search="disabled" --disable shell_tool --disable unified_exec --disable apps --disable plugins --disable hooks --disable browser_use --disable computer_use --disable image_generation -C <temp> --output-last-message <temp>/reply.txt -. Before it, codex --version, codex exec --help and codex features list are read; a version without one of these options or features is not run.

They use their own login and send the diff to their provider. The agent runs in its own process group, at most 180 s and 1 MiB of output; Stop next to Suggest, or closing the window, ends it. The answer fills the message field without control or invisible characters; it is not committed until you click Commit. The line under the message shows the exact command, exit code, time and the agent’s stderr.

The toolbar shows the project name, the branch, ahead/behind and the number of changed files. Click opens the branch popup.

Branch popup

Part What it does
Search Filters branches and actions. Refresh reads them again.
Pipeline For a project with a GitLab link: the latest pipeline of the branch, its failed jobs with the failure reason, Open in GitLab. Read on focus and every 30 s.
Actions Update Project…, Commit…, Push…, Fetch (--prune), New Branch…, New Worktree…, Checkout Tag or Revision….
Local / Remote / Tags The current branch has a star. Columns: ahead/behind, upstream, upstream gone.

Branch submenu (arrow): Checkout (remote: Checkout (new tracking branch), tag: Checkout (detached HEAD)), New Branch from ‘…’…, Show Diff with Working Tree, Merge ‘…’ into ‘…’, Rebase ‘…’ onto ‘…’, Update (current), Push…, Rename…, Delete / Delete Tag.

The Git tool window: icon at the bottom of the left bar (bottom anchor; drag it to another bar like any tool window). It shows the repository of the work folder. Tabs: Log, Console, and + for another Log tab with its own filters (up to 5).

Part What it does
Branches panel Branch or tag field, HEAD (Current Branch), Local (favorites first, ahead/behind as ↙ incoming ↗ outgoing, 99+ above 99, gone when the upstream was deleted), Remote per remote with / as folders, Tags. Click: select and show its commit in the log; double click: show only its history. Right click: the branch submenu of the branch popup, Add to Favorites, Show Only This in the Log.
Action strip New Branch… (from the selected ref), Checkout / Update… (current branch), Delete, Merge / Rebase / Compare with Working Tree, find, favorite, options (Show Only Favorites, Show Tags, Refresh), expand / collapse all.
Commit list Graph, subject, refs (origin & develop when the local and remote branch point at the same commit; tags with a tag icon), author, date. Loaded in pages of 500 while scrolling; ↑ ↓ Page Up/Down Home End select, ⌘C copies the commit id.
Text or hash git log --grep: fixed string, or POSIX extended regex with .* (⌥X); Cc (⌥C) matches case. 4–64 hex digits also find the commit with that id (marked id). Applied after typing stops or on Enter; history as in the editor’s search.
Branch, User, Date, Paths One branch, tag or HEAD; authors (--author, any of the chosen); since yesterday / 7 / 30 / 365 days or a range YYYY-MM-DD; files or folders (-- <paths> with --literal-pathspecs). × clears all filters.
Options Topological Order (--topo-order), Commit Date, Author Date; Show Graph, First Parent Only, Hide Merge Commits; branches and details panels.
Details panel Changed files of the selected commit as a tree (merge commits: against the first parent); double click opens the diff view with the parent on the left and the commit on the right. Full message, commit id with copy, author and date, committer when different, parents (click selects), refs, Git commands.

With a text, user or date filter the graph is off: the listed commits are not connected. The graph is computed from the first commit to the end of the shown page, so lines continue across pages.

Commit menu (right click):

Item Line
Copy Commit Id Full id to the clipboard.
Checkout Revision git switch --detach <id>
New Branch…, New Tag… The dialogs above with the commit as start point / target.
Compare with Working Tree git diff <id> -- in a terminal tab
Cherry-Pick git cherry-pick [-m 1] <id> (merge commits against the first parent)
Revert Commit git revert --no-edit [-m 1] <id>
Reset ‘…’ to Here git reset --soft | --mixed | --keep | --hard <id>, with the warnings of Reset HEAD
Show History up to Here Filters the log to the commit and its ancestors.

Cherry-pick, revert, reset, merge and delete ask for confirmation with the exact line and its warnings.

Reads run like the other reads (no shell, 20 s limit, core.fsmonitor=false, no lazy fetch of partial clones) with --no-show-signature (no gpg), --no-color and --decorate=full; the changed files with git diff-tree -r -z --name-status -M --no-ext-diff --no-textconv. Commit diffs read both versions by blob id (git ls-tree -l, git cat-file blob), never the work tree. Names, messages and ref names show control and direction characters as symbols.

The git commands of the Log tabs (exact argv, folder, number of commits, time) and every line started from KryoDesk’s Git features (Git menu, Commit window, Git window): terminal (started in the tab named in the entry; output and exit code are there), cancelled (not confirmed) or error (refused by validation, with the reason). Kept in memory, up to 500 entries; Copy all and Clear at the top.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close