Worktrees and pull requests
Kangentic uses git worktrees to give each agent an isolated copy of your repository. This lets multiple agents work on different tasks simultaneously without stepping on each other’s changes.
Worktrees
Section titled “Worktrees”What a worktree is, how Kangentic gives each task one, and where the agent’s process runs.
What are Git worktrees?
Section titled “What are Git worktrees?”A git worktree is a linked working copy of your repository that shares the same .git directory. Each worktree can have a different branch checked out, so multiple branches can be worked on at the same time without cloning the repo multiple times.
How Kangentic uses worktrees
Section titled “How Kangentic uses worktrees”When an agent is spawned for a task with worktrees enabled, Kangentic:
- Creates a new branch from the configured base branch (e.g.,
fix-login-a1b2c3d4) - Creates a worktree in
.kangentic/worktrees/{task-number}/inside your project - the directory is named after the task’s ticket number (e.g.,.kangentic/worktrees/42/), chosen once and never renamed. Tasks created before this naming keep their original{slug}-{id}folders, and a task that takes a spare worktree keeps the spare’sspare_{8 hex}folder. Branch names are unrelated to folder names and keep the slug form. - Launches the agent in the worktree directory
The agent makes all its changes in the worktree. The project folder, the checkout you have open in your editor, is never touched.
Since v0.44.0 the worktree’s files are written in one checkout pass instead of two on git 2.35 or newer, which makes creating one about three times faster on Windows.
Post-worktree script
Section titled “Post-worktree script”A project’s Post-worktree script (Settings > Git) runs in each new worktree after it is created, usually to install dependencies. A non-zero exit, or the 10 minute cap, fails the worktree. Other tasks’ git work does not wait for it.
Since v0.52.0 the agent no longer has to wait either. When you move a task into a column that starts an agent, or an MCP tool starts one, the agent starts while the script runs. Hold prompt for script, which shows while a script is set, picks how:
- On, the default. An agent that can take its first prompt typed, which today means Claude Code, starts while the script runs and gets that prompt once the script succeeds. Any other agent starts after the script. A failed script fails the task and moves it back, as it always has.
- Off. Every agent starts on its prompt at once and is told the script is still running. A failed script is reported on the task and to the agent, and the task stays where it is, since the agent may already have edits in the worktree.
On saves the agent’s start-up time, and off saves the whole install. Creating, promoting, or restoring a task still starts its agent after the script. A file the script writes that the agent reads at launch, such as a generated .mcp.json, is not there yet in either mode. List it under Copy files, which runs before the agent starts.
Spare worktrees
Section titled “Spare worktrees”A project with a Post-worktree script keeps one spare worktree with the script already run, since v0.52.0. The next new task that uses the project’s default base and an auto-named branch starts in it, and the script runs once more as a catch-up. On the pnpm workspace the app measured, that start took about 5 seconds in place of a 25 to 30 second install. Kangentic builds the next spare once no script is running, and there is no setting for it.
That task’s folder under .kangentic/worktrees/ is named spare_{8 hex} instead of its number, for as long as the task lives. A spare holds the disk of one install while it waits. When a spare saves no time, as with npm ci, which reinstalls everything on every run, Kangentic stops making spares for that script.
Copy files and linked folders
Section titled “Copy files and linked folders”Two rows under Settings > Git > Worktrees bring in what git does not track: Copy files (git.copyFiles) and, since v0.56.0, Link folders (git.linkFolders). Both run before the agent starts.
Copy files takes files, folders, and glob patterns since v0.56.0, such as .env, config/, or *.local.json. Globs follow the shell: * skips dotfiles, .env* matches them, **/.env matches at any depth, and braces work, so *.{local,dev}.json is one entry. A path that exists under its own name is copied as that path before it is read as a glob, so app/[id]/page.tsx copies that file. An entry missing from the project is skipped. An absolute path, a .., and anything under .git or .kangentic are refused, and no walk goes into node_modules. The whole list is measured before anything is copied. Over 20,000 files or 2 GiB across it, the task’s start fails, naming the entry, and nothing is copied. A folder or glob copies in a separate process, so a large copy does not stall the app. A file whose size and modified time already match is skipped, which keeps a spare worktree from copying a large folder twice.
Link folders shares a heavy folder, such as a build cache or a dataset, through a link instead of a copy: a junction on Windows and a symlink elsewhere, with no admin rights needed. Entries are relative paths at any depth, with no globs. A folder links only when the project has it, git ignores it there, and the worktree has nothing at that path. A folder git does not ignore stays unlinked, because hiding the link from git means an entry in the exclude file the worktree shares with your checkout, and that entry would hide your own untracked files there too. A change made through the link reaches the project and every task, so link a folder only when that sharing is what you want.
Removing a worktree takes its links out first, so a removal never deletes what a link points at. Kangentic records the links it made in each worktree, so an entry you later take out of Settings still has its link cleared from every worktree made before. A link that will not come out keeps the worktree in place rather than risk its target, and so does a record of the links that cannot be read. Since v0.64.0 that includes a worktree’s linked node_modules, since a delete that walked through it would empty your checkout’s own, and removing a project from Kangentic leaves its .kangentic folder on disk while a link under it may still be live.
Where the agent runs
Section titled “Where the agent runs”Each task chooses between two places to run, with a Worktree | Project control beside the Branch field in the New Task dialog and the task detail edit form. Worktree gives the task its own branch and directory as described above. Project runs the agent in the project folder itself: the checkout you have open in your editor, and the one Kangentic runs from. Use it for a quick config change you want landing directly on your working copy while keeping worktrees on for everything else. The choice is a per-task override of the Worktrees setting (git.worktreesEnabled). With that setting off, the control is not offered and every task runs in the project folder, including one created earlier with Worktree picked; a task that already has a worktree keeps it.
Some projects cannot have a worktree at all, and the dialog says so before you create the task rather than silently falling back: the Worktree option is disabled with the reason in its tooltip, and Project reads selected. Choosing Worktree cannot override any of these.
| Reason | Why |
|---|---|
| Not a git repository | There is nothing to branch from |
| No commits yet | A freshly initialized repo has no ref for git worktree add to start from. Worktrees start working on their own after the first commit |
| The project folder is itself a git worktree | Git cannot nest worktrees |
| The agent runs on a remote server | A remote-execution agent works in its server directory, so a local worktree would go unused. This is the one case where the agent is not in the project folder either |
Where an agent works is always visible:
- Before the spawn, the line under the Branch row states the outcome: “Auto-generated branch will be created from
mainin a new worktree” versus “Runs in the project folder onmain”, naming the branch the folder actually has checked out. A pinned base or a custom branch without a worktree reads “xwill be checked out in the project folder”, since that is a real branch switch in the folder you have open. When the project cannot have a worktree the line reads “Runs in the project folder”, or “Runs on the remote server”. - After it, the folder button in the task detail header shows a worktree glyph for a task in its own worktree and a plain git-folder glyph otherwise, and the kebab’s folder item reads Open worktree or Open project folder. Since v0.69.0 the Changes panel’s branch header starts with a Project folder chip for a task in the project folder, so the branch it shows is not mistaken for the task’s own.
One agent at a time in the project folder
Section titled “One agent at a time in the project folder”Tasks running in the project folder all share one checkout, and nothing stops two of them from editing the same tree at once; what Kangentic guards is the branch. If a task would switch branches in a directory where another task’s agent is already live, Kangentic refuses the checkout and tells you which task is holding it and what to do: stop that task, or turn worktrees on so each gets its own copy. A Command Terminal counts as an occupant too, since it runs a real agent at the project root. Queued sessions count as well, because a queued task has already claimed the directory it will start in.
The refusal does not throw the whole operation away. Creating, unarchiving, or promoting a task still succeeds; the card simply arrives without an agent, and the toast says why rather than leaving you to guess. Worktrees are on by default precisely so this case does not come up.
Branches
Section titled “Branches”How a task’s branch is named, which base it starts from, and how it stays current.
Branch naming
Section titled “Branch naming”Auto-generated branch names are the task’s slug and an 8-character ID, whatever the base branch:
<task-slug>-<8-char-id>fix-login-a1b2c3d4prune-stale-worktrees-d4e5f678
The 8-character ID prevents collisions when tasks have similar titles. The base is not part of the name: the task’s worktree records it in its own git config as kangentic.baseBranch, and the task detail window shows it so you can confirm what the worktree branched from without leaving the app.
Before v0.44.0 a task whose base differed from the project default got the base as a namespace prefix (release-1.2/fix-regression-g7h8i9j0). That collided with git’s ref rules whenever the base itself had no slash, failing the create or the push, so the prefix is gone. Branches named the old way are still recognized.
Naming a branch yourself
Section titled “Naming a branch yourself”An agent creating a task over MCP can name the branch explicitly with branchName, which is how it hands work it has already committed to a new task. Git allows a branch in only one working tree at a time, so a task naming a branch that is already checked out somewhere can never build its worktree.
Since v0.36.0, kangentic_create_task checks for that before writing anything and refuses the call, naming the branch and the path holding it. Nothing is created, so you no longer end up with a card that looks healthy but has no worktree and no session. The check fails open: if git cannot be probed, the create goes ahead.
Relatedly, a worktree or checkout failure on any spawn path now raises a notification instead of failing quietly, and a failed move no longer force-deletes an agent-supplied branch while cleaning up. Auto-generated branch leftovers are still cleaned as before.
Base branch
Section titled “Base branch”The branch each worktree is cut from follows a priority order:
- Task’s base branch - per-task override set in the task creation dialog
- Board default -
defaultBaseBranchin the team-sharedkangentic.json, so everyone on a board forks from the same branch git.defaultBaseBranch- project or global setting (default:main)
Spawns and Pull from resolve the same ladder: the task’s own base, then the board default, then git.defaultBaseBranch, and finally main or master, whichever the repository has. A per-task base is the only candidate tried; it is never substituted. There is no per-automation override: before v0.42.0 a create_worktree action could carry its own base branch, but automations never create worktrees, because the move path already does.
A tag, a commit, or a local branch
Section titled “A tag, a commit, or a local branch”Since v0.56.0 a task’s base can be a local branch, a tag, or a commit. The base picker lists origin’s branches, then the local branches origin does not have, marked local, and leaves out the branches Kangentic made for its own tasks. Type any other ref into its search box and a Use row appears. Enter or a click checks it with git, and a ref that names nothing shows git’s own error under the box. A tag that exists only on origin is fetched first. A commit that exists only on origin is not. An expression such as HEAD~1 or origin/main is refused, so type the branch, tag, or SHA itself. Since v0.66.0, in a project folder git refuses because another user owns it, the picker shows git’s own refusal in place of the list, which used to open empty. That text names the git config --global --add safe.directory command to run. Kangentic never writes safe.directory itself.
A tag or a commit does not move, so the worktree is cut from it as it is, and Pull from is off for that task. A tag or commit base in the project folder needs a branch name, since checking either out there would leave the folder on no branch. An agent passes the same refs to kangentic_create_task as baseBranch.
Starting from a fresh base
Section titled “Starting from a fresh base”A task never starts from a base branch that is quietly behind origin (since v0.37.0).
- A new worktree is cut from a fetched
origin/<base>, not from whatever your local ref happened to be at your last pull. Since v0.56.0 the one exception is a local branch with commits origin does not have yet, which is cut from as it is, so unpushed work on the base is not left out. - A task running in the project folder gets the same treatment. A task with worktrees off still checks a branch out in the project folder when it names one: a custom branch name is fetched and checked out, and otherwise its base branch is checked out and fast-forwarded from origin. That fast-forward is non-fatal: local-only commits or a diverged branch keep your local state rather than failing the spawn. A task with neither a custom branch nor a base branch has nothing to check out, so git is left alone.
- A spawn that reuses an existing worktree is measured, not moved. A background probe counts how far behind the base that tree is and marks the card’s spawn-progress labels with
(base 3 behind). It never rewrites your branch and never delays the spawn - a worktree with work in it is not something to fast-forward behind your back. - A failed fetch says so. When the fetch genuinely fails on network or credentials, the remaining spawn labels read
(base fetch failed)and a single toast per project explains it, rather than one per task. A repository with no origin remote stays quiet, since there is nothing to be behind.
Fetching in the background
Section titled “Fetching in the background”Every “behind” number Kangentic shows is measured against remote-tracking refs, and before v0.41.0 those refs were only refreshed when something happened to fetch - opening a Changes panel, or moving a task to Done. A project nobody had touched in a while reported stale counts.
Since v0.41.0 a background sweep runs git fetch --all --prune on the open project’s remotes when the project opens and then again 5 minutes after the project’s last full fetch. Any full fetch resets that clock: opening a Changes panel, the check a move to Done makes, or the sweep itself. Turn it off with Auto-fetch remote in Settings > Git (git.autoFetch, on by default); the on-open fetch still runs either way, and creating a worktree always fetches its base branch first. Before v0.44.0 the setting was an interval (git.autoFetchIntervalMinutes), and the first launch of v0.44.0 converts it. The sweep only fetches: it never pulls, merges, or rebases, so keeping a worktree current stays an explicit action (Pull from). It also runs with credential prompts disabled - a fetch on a timer has no gesture behind it, so an expired credential degrades to “no refresh” rather than popping a dialog. Only the focused project is swept.
The same fetch gets a head start from a drag: picking up a worktree-backed card pre-warms it, so the pending-changes check a drop on Done may need finds the fetch already cached or in flight instead of starting one after the card lands. It shares the sweep’s throttle and its setting, so with auto-fetch off, dragging fetches nothing either.
Pull from the base branch
Section titled “Pull from the base branch”When a card reports it is behind, Pull from in the task detail window’s kebab menu is the one-click fix. The item names the base, as in Pull from main. It fetches the task’s effective base and fast-forwards the worktree. It never merges and never rebases, so it can only ever move a branch that has no work of its own. Before v0.63.0 the item was called Update from base.
It appears for tasks that have a worktree and are not archived, and it is disabled while a session is active - updating a branch underneath a working agent is not something to do by accident. Every outcome reports back as a toast:
| Toast | What it means |
|---|---|
| Pulled from main, Fast-forwarded N commits | The worktree now matches the base |
| Already up to date | Nothing to do |
| Can’t fast-forward | The branch has commits of its own. Rebase or merge inside the session instead |
| Can’t pull from main, uncommitted changes | The worktree is dirty. Commit or stash first, then re-run |
| Couldn’t fetch main | Origin was unreachable, so nothing was changed |
| No origin remote | There is nothing to fetch from |
| Nothing to pull | The base is a tag or a commit, which does not move |
The other direction, committing the task’s work and pushing it, is in the Changes panel since v0.63.0. See Commit, push, and create a pull request.
Worktree lifecycle
Section titled “Worktree lifecycle”| Task Action | Session | Worktree | Branch |
|---|---|---|---|
| Move to active column | Spawns/resumes | Created (if new) | Created (if new) |
| Move to To Do | Killed, history wiped | Removed | Removed when Auto-cleanup is on (the default) |
| Move to Done / Archive | Suspended, history kept | Removed (disk reclaimed) | Kept, so the work stays reachable on its ref |
| Delete task | Killed | Removed | Removed when Auto-cleanup is on (the default) |
Moving a task to Done frees its disk space but keeps everything needed to resume: the branch and the conversation history are preserved, and dragging the task back to an active column recreates the worktree at the same folder and resumes the agent with full context. In the normal case your work is already committed and merged (or pushed), so removing the worktree loses nothing. Since v0.52.0 a Done move sets the worktree aside at once and deletes its files in the background, never while another task’s setup script runs, so the move does not wait on a large delete.
When a move would destroy real work - uncommitted files, or commits that exist only on the local branch about to be deleted - Kangentic shows a confirmation dialog first that red-flags exactly what would be lost. A clean move skips the prompt entirely. A commit counts as lost only when no remote has it and the base holds no copy of its change. A squash merge leaves the branch’s commits on no remote and matches none of them, so the move also asks whether merging the branch into its base would change anything, the same check the Changes panel makes, locally and with no network. Since v0.69.0 a squash-merged branch therefore moves to Done without a warning whether or not the task links its pull request. Before, only a linked pull request that read as merged cleared it. Moving to To Do is a full reset: it is treated as “not started”, so the session history is wiped along with the worktree. Since v0.46.0 a task that did its own work also drops its pull request link, so the next run links its own PR instead of finding the old one again. A PR link you typed onto a task that never started stays.
The Auto-cleanup toggle (Settings > Git, git.autoCleanup) controls whether branches are deleted along with their worktrees. Turn it off to keep every task branch until you delete it yourself.
Moving a task to To Do or Done, or deleting it, also stops what its agent left running in the task’s folder. An agent that backgrounds a dev server leaves it running when the session ends, and on Windows that process then holds the worktree directory as its current directory and blocks the removal. Kangentic stops those processes before the worktree is removed. Pressing Stop, or parking a task in a column that does not spawn, is deliberately not one of those moments: the task is paused rather than finished, so a dev server stays up for manual testing.
Since v0.44.0 every task session’s processes carry the task’s id in their environment, so a dev server the agent detached with nohup or Start-Process is still recognized as the task’s. A process is stopped only when it carries that tag, works inside the task’s worktree or project folder, and nothing under it is shared, so a task that runs in the project folder gets the same cleanup. A window the agent opened, a tmux server, and a tool other work also uses are kept. A server counts as used by other work when, at the moment of the cleanup, another task’s agent or a command in one of your terminals holds a TCP connection to it. An adb server that another task is installing through is the case this was built for. A process that only launched something kept, such as an emulator’s launcher, is kept with it. An idle server that only this task used still stops at Done, and its next client restarts it. Since v0.46.0 a program the agent started in a Windows Terminal tab is stopped too: Windows Terminal draws an invisible window for each tab, and Kangentic used to read that as an app on screen and keep the tab’s shell and everything under it. Since v0.52.0 a stack that was spared only because a process with the task’s own tag works elsewhere, such as a .NET Aspire dashboard running from a package cache, is no longer read as shared, so the cleanup reaches its AppHost. The list says “Part of it runs outside this task’s folders. Stopping it stops that too.”, and another task connected to the stack still protects it. A Claude Code background session started with /bg stops too, when its task or Command Terminal ends and before a resume.
The cleanup reports what it did. When everything stopped, a toast says so and closes on its own, and a click on it lists what was stopped. When something is still running, or could not be stopped, the toast leads with that, stays until you close it, and shows how long ago the cleanup ran. Its Review button lists each process that kept running with the reason (“Other work uses it too. Stopping it can break that work.”) and a Stop button. Stopping one that was holding a Done task’s worktree removes that worktree as soon as the process is gone. A process that exits on its own reads Ended in the list, and a toast with nothing left running closes. A Done move whose worktree removal fails tries again while the app runs: since v0.68.0 at 10 seconds, 1 minute, 5 minutes, and 30 minutes, where before it tried once more at 10 seconds. It stops once the folder is gone, the task leaves Done, the project is deleted or moved, or the app quits, and the next project open tries again. If the app quits or crashes between a task’s move and its cleanup, the first open of the project on the next launch stops what is still running for its archived and To Do tasks. Turn it off with Stop leftover processes in Settings > Behavior; the toast then lists what kept running and stops nothing.
If a removal is still blocked, Kangentic scans for the process holding the directory, reaps it when it is an orphan, and retries once. A holder that is still supervised is named rather than killed, and the error the next worktree on that path raises reads Held by node.exe (pid 12345). Close it and retry. Every removal is time-bounded, so one stuck delete cannot hold the project’s git queue for minutes. Since v0.48.0 a delete of a task or a project waits for a worktree that is still being created, post-worktree script included, before it removes anything, so a delete made mid-setup no longer leaves the worktree and branch behind.
Removing a worktree also cleans up after the agents that ran in it. Several CLIs record folder trust per directory, keyed on the absolute path, and some of them do not inherit trust from a parent folder: Codex writes a trust_level entry into ~/.codex/config.toml, and Gemini, Qwen Code, Grok Build, and Antigravity keep their own trusted-folder stores. Kangentic pre-approves each worktree on spawn so you are never prompted per task, then drops the entry again when the worktree goes, so those five stores track live directories instead of accumulating one dead entry per task forever. Qwen Code joined them in v0.43.0, having been the one trust-writing adapter that wrote an entry and never took it back. Only an entry Kangentic could have written itself is removed, so a trust decision you made at that path, or a refusal, survives it. The cleanup is best-effort throughout: the worktree is already gone by then, and the worst case is a stale entry left behind.
Since v0.63.0 a once-per-launch sweep, a minute after startup, catches the entries a removal never got to, because the app was closed or crashed. It covers Codex’s config.toml and Claude Code’s file, below, and only folders Kangentic made: a task worktree under .kangentic/worktrees/, or a dev preview’s project folder. It drops an entry only when that folder is gone and the project folder holding it still exists, so the worktrees on a drive that is not plugged in keep their trust. A folder a new task recreated in the meantime keeps its entry too.
Claude Code was the one that accumulated before v0.63.0. Its per-directory trust lives under projects in ~/.claude.json (or the .claude.json inside CLAUDE_CONFIG_DIR when that is set), keyed by absolute path the same way. Kangentic pre-accepted it on spawn and never removed it, so the file kept one entry per past worktree, about 6,500 entries and 2.6 MB on the app’s own dogfooding machine, which Claude Code rewrites whole on each save. Now a worktree’s removal drops its whole entry, in this machine’s file and, for a WSL project, in the distro’s, and the launch sweep drops the rest. The conversations under ~/.claude/projects stay. An added account’s .claude.json follows at its next start, since that file is rebuilt from the home’s.
When a worktree folder is gone
Section titled “When a worktree folder is gone”A task keeps its card and its branch when its worktree folder goes. Since v0.55.0 the card reads Worktree missing in place of Paused, and Resume makes the folder again from the branch, at the same path. Before, the next project open deleted the task.
An agent never starts anywhere else. An agent whose folder is gone is refused before it spawns, where it used to land in your home directory, and Folder missing is that refusal for a folder Kangentic cannot make again. A task still waiting in the session queue when its folder goes pauses at its turn, with an “Agent didn’t start” notice. Where no worktree can be made again (worktrees turned off, a project that is not a plain repository, or a remote agent), the task falls back to the project folder, and the folder button in its detail header shows it. It keeps the branch’s last commit, so it can still link its pull request. Before v0.58.0 that fallback ran only when the project opened, so a task whose folder went while the app was running kept the old path, and every Resume was refused. Since v0.58.0 every start makes the same check. A project on an SSH host is the exception: only the host can say its worktree is gone, so the check never runs for one.
Cleanup when a project opens
Section titled “Cleanup when a project opens”Each time a project opens, Kangentic clears what no task names: folders under .kangentic/worktrees/, sessions/, and tasks/ that no row or live session points at and that are past a 10-minute grace. Since v0.55.0 a database has to prove it owns the project folder first. Before, a second instance started from a copied database could read every folder as orphaned and delete real worktrees, session folders, and task attachments.
The proof is a token kept in the project’s database and in .kangentic/project-owner.json, which also names the database that wrote it. With no marker, as on every project from before v0.55.0, a database claims the folder only if it holds a task and either a row names something on disk or the swept folders are empty. An empty database never claims one. A folder whose marker names another database that still exists is left alone: this instance sweeps nothing there, resumes no agent, and restores no Command Terminal when the project opens. You can still start a task there yourself.
What gets cleared is not always deleted. Orphaned worktrees and task folders move to .kangentic/set-aside/ for 14 days, and you can move one back by hand before then. Session folders are deleted. A pass that would clear most of a folder, 5 or more orphans that are over half of it, clears none of it and sends a report of the counts.
Stop script
Section titled “Stop script”A paused task keeps everything its agent started, and a stack can hold far more memory than its agent does. The app measured one parked .NET Aspire stack at 45 processes and 7.8 GB of commit, where pausing an agent frees about 1.15 GB. A Stop script, new in v0.52.0, tells Kangentic how to stop yours. It is a shell command such as npm run stop, set in Settings > Git > Leftover processes and saved to kangentic.json as stopScript, so the team shares it.
It runs in the task’s worktree, or the project folder for a task with none, through cmd.exe on Windows and sh elsewhere, and only when the task left something running:
| Event | Runs the Stop script |
|---|---|
| Idle pause | Yes, unless something outside the task is connected to what it left running |
| Move to Done or To Do, delete, or a move to the backlog | Yes, before Kangentic stops the leftovers, for at most 30 seconds in all |
| Your own Pause, or a move to a column that starts no agent | No. That is the manual-testing case above |
| A settings restart or a handoff | No. The agent comes straight back |
| Quitting the app | No |
After a pause the script runs in the background for up to 2 minutes, and a browser tab open on the dev server counts as someone using the stack. A stop held off that way is tried again later.
Kangentic never starts your stack again. Once the script exits, a held message names what stopped, so the task’s next agent can restart it if it needs to. Since v0.60.0 the message opens with when the stop happened, in UTC (On 2026-01-05 at 09:15 UTC, ...), because it can wait days for the next agent, and an undated note read as news. Since v0.63.0 it says the processes ran “while its agent was paused for being idle”, where it said “while it was paused”, which read as the card’s Automations paused. A script that fails leaves the pause or the cleanup as it was and raises a warning toast, at most one a minute per project, with the task, the exit code, and the script’s last line. With Stop leftover processes off the script does not run, and a task running in a WSL distro never runs it.
Reviewing changes
Section titled “Reviewing changes”The task window’s Changes pane shows the branch’s diff against its base, with a file tree, commit history, and blame; see Reviewing changes. The branch is an ordinary git branch, so plain git works too:
# See what the agent changedgit diff main..fix-login-a1b2c3d4
# Merge when satisfiedgit merge fix-login-a1b2c3d4Working with worktrees manually
Section titled “Working with worktrees manually”Since Kangentic uses standard git worktrees, you can interact with them using normal git commands:
# List all worktreesgit worktree list
# Navigate to a worktree (folders are named after the task number)cd .kangentic/worktrees/42/PR auto-detection
Section titled “PR auto-detection”When an agent runs gh pr create, gh pr view, or gh pr merge (GitHub), or az repos pr create, az repos pr show, or az repos pr update (Azure DevOps), in a task’s session, Kangentic detects the PR URL from the terminal output and links it to the task. You can also link PRs manually with the kangentic_link_pr MCP tool from within an agent session, or by pasting the URL into the PR field of the task detail edit form. Since v0.63.0 the Changes panel’s Create pull request links the PR it makes, or an open one the branch already has (Commit, push, and create a pull request).
Once a PR is linked, the task card shows a clickable PR pill that opens the PR: its number, one glyph for its state, and the state’s tint. Since v0.56.0 the pill draws no word, and its tooltip names the state instead. The same pill appears on Agent Monitor cards. The task window draws none: since v0.57.0 the Changes panel’s Pull request section opens the PR and names its state in a tooltip, where v0.56.0 put the pill in the panel’s header. Kangentic checks every linked PR when you open a project, and then keeps each one current from a queue: an open PR is checked again about 2 minutes after its own last check, one call at a time and at least 10 seconds apart. That caps the cost at 360 calls an hour however many PRs are open; past 12 open PRs, each PR’s interval stretches instead. Any check resets a PR’s clock, including the 30-second re-poll while CI runs, an agent’s gh pr create, and a manual refresh. Turn it off with Auto-refresh PRs in Settings > Git (git.prAutoRefresh, on by default). Before v0.44.0 this was a sweep on a fixed interval (git.prRefreshIntervalMinutes), which the first launch of v0.44.0 converts.
Merge readiness on the badge
Section titled “Merge readiness on the badge”An open PR’s pill answers a second question (since v0.41.0): would clicking Merge succeed right now? When the host can judge it, the pill’s tint and tooltip carry one of these verdicts:
| Verdict | Pill | Meaning |
|---|---|---|
ready |
Green | A merge would succeed right now |
failing |
Red | A check or build failed. New in v0.56.0, split out of blocked, because an agent can fix it. The Changes panel lists the failed checks and can send them to the agent |
conflicts |
Red, with the merge-conflict glyph | The PR conflicts with its base branch, the other thing an agent can fix |
blocked |
Amber | A required review or a branch rule stops it |
queued / running |
Sky, with a slow pulse on its edge | A blocking check has not finished - the merge would not succeed yet, and this says why. On GitHub, queued also covers a required check that has not reported at all, which is how a PR looks for the minute or two before CI creates its runs. That reading needs classic branch protection. A repository on rulesets reads blocked until its checks report |
A PR the host has no verdict for stays plain green open. Draft and closed PRs are grey and merged ones purple, whatever their last verdict. “Mergeable” on its own is not the bar: both hosts report “no conflicts” separately from reviews and required checks, and the pill only reads ready when the whole gate is clear. One verdict departs from that bar on purpose. Since v0.56.0 a GitHub PR whose only failure is a check that is not required reads failing, where it used to read ready. GitHub would merge it, but the check still failed, and red means an agent can fix something.
The verdict is as fresh as the PR’s last check - the background queue, or Refresh pull request in the task’s kebab menu - and the pill’s tooltip says so. A PR that reads queued or running is the exception. Since v0.43.2 Kangentic re-checks it every 30 seconds until its checks settle, so the chip changes within seconds of CI finishing instead of waiting for its next turn in the queue. After 30 minutes in flight the re-check stops and leaves the PR to the queue. It skips drafts, and it is off whenever background refresh is off.
Azure DevOps PRs always have their branch policies (reviewer minimums, required builds, work-item linking) evaluated since v0.44.0, so a clean Azure PR reads ready or blocked the same way a GitHub one does; the Evaluate branch policies switch is gone. Kangentic does not read Azure DevOps bypass permissions yet. On GitHub, Count merge bypass as ready in Settings > Git folds a PR that only your own bypass would merge to ready (on by default, because that is how the default board’s Merge column lands PRs; it never folds past a failing or unreported check). That bypass is branch protection’s and, since v0.54.0, a branch ruleset’s: you must be able to bypass every ruleset that can stop the merge, and a branch with a classic protection rule as well reads only that rule. With the bypass setting on, the verdict is yours: two people watching the same PR can correctly see different pills.
Hosting providers
Section titled “Hosting providers”Two providers resolve PR state (since v0.39.0), each through its own CLI, and which one answers is decided by the repository’s origin remote rather than by trying each in turn:
| Provider | CLI | Notes |
|---|---|---|
| GitHub | gh |
Any host with github in its name, so GitHub Enterprise at github.mycorp.com resolves. An Enterprise host with no github in its name is not claimed and its PRs are not resolved; the error names the unmatched remote |
| Azure DevOps | az with the azure-devops extension |
dev.azure.com and legacy visualstudio.com remotes, over SSH or HTTPS. A pasted .../pullrequest/<id> URL links with its number, so the refresh sweep can confirm it. Azure records a PR’s commits only when it completes, so a commit lookup cannot see an active PR at all; one is usually still found by branch instead (see below) |
A repository neither provider claims never has a link cleared: the resolver reports that it could not check, the task keeps whatever link it has, and the Refresh pull request toast names the actual reason (which CLI is missing, or that no provider owns the remote) instead of telling every user to run gh auth login.
Since v0.36.0 the reconciles Kangentic performs itself are silent: the background sweep, the auto-link when a session goes idle, a PR URL spotted in the scrollback, the re-resolve that follows a link write, and the task detail’s own Refresh pull request item all update the card without raising a toast. The discriminator is provenance, not volume: an agent’s own kangentic_update_task or kangentic_link_pr call is still announced, because that is genuinely news. Landing one PR used to raise three “Task updated by agent” toasts per task, two of which announced a round trip that netted to no change.
When the pushed branch has a different name
Section titled “When the pushed branch has a different name”Kangentic normally looks for a PR under the task’s own branch name, or under the commit it last saw. Neither finds anything when the agent pushed the work under a team-convention name instead: the PR exists, but not on any name the task knows.
Since v0.40.0 there is one more place to look. If a remote branch’s tip is exactly the task’s last-seen commit, Kangentic resolves a PR from that branch too, and records the name on the task. Later refreshes go straight to the recorded name, so the link survives once the task commits past what it pushed and the tip no longer matches. In this shape it is also the only thing that finds an active Azure DevOps PR once the worktree is gone, since Azure answers a commit lookup only for completed PRs and every branch name Kangentic already had on file is the wrong one.
The lookup stays quiet on tasks that do not need it. A worktree still sitting on its base branch’s tip is skipped outright, because every branch on that commit belongs to whatever last landed on the base rather than to the task. Kangentic now records which base each worktree was actually cut from, so that check measures against the real branch on a project that does not build on main.
Since v0.41.0 the pushed name is also captured at the source: when the agent’s own git push names an explicit destination branch, Kangentic records it on the task the moment the push finishes. That is what lets a task running without a worktree link its PR at all - every other anchor comes from a worktree read, and reading the shared checkout instead would hand every concurrent no-worktree task the same branch. Today only Claude Code forwards the full command to the capture; for any other agent, hand the branch to kangentic_link_pr instead.
One guard keeps the inference honest: a PR, or a branch, that another task on the board already holds is refused as an inferred answer. A task fast-forwarded onto a sibling’s branch to build on its work is identical in git to the shape this lookup exists for, and before v0.41.0 it could be stamped with the sibling’s PR. The board can tell the two apart - the sibling linked first - so the inferred lookups check that before they answer. An explicitly entered PR number is never refused, which is how a review task and the authoring task share a PR on purpose.
See also
Section titled “See also”- Creating tasks - choose worktree or project folder, the branch, and the base when you create a task
- Columns - what each move does to the session and its worktree
- Session persistence - what happens to worktrees across crashes and restarts
- Reviewing changes - the diff, commit history, and blame for a task’s branch
Kangentic is free and open source. A star helps other people find it.
Star on GitHub