Loading...
Loading...
Ensure AI agents work in an isolated Git worktree to prevent changes to the main working directory. Use when AI is about to make its first code modification in a session, or when the user requests isolated/safe editing. Triggers include starting to edit files, implementing features, or fixing bugs.
npx skill4agent add nozomi-koborinai/koborin-ai safe-editinggit rev-parse --show-toplevel
git worktree list
git status --porcelain| Task Type | Branch Format | Example |
|---|---|---|
| New feature | | |
| Bug fix | | |
| Refactor | | |
| Docs | | |
gwt.zshrcgwt <branch-name><branch-name>../git-worktrees/<repo-name>-<branch-name>cd ../git-worktrees/<repo-name>-<branch-name>pwd
git branch --show-currentcommit-push-prcd <original-repo-path>
gwtr ../git-worktrees/<repo-name>-<branch-name>| Alias | Command | Purpose |
|---|---|---|
| | Create worktree |
| | List worktrees |
| | Remove worktree |