branch
/branch
Rozgałęzia działający przebieg agenta badawczego w punkcie kontrolnym, z własnym stanem i worktree, bez zakłócania głównej linii.
- Autor
- queelius ↗
- Repozytorium
- claude-anvil ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Rozgałęzia działający przebieg agenta badawczego w punkcie kontrolnym, z własnym stanem i worktree, bez zakłócania głównej linii.
Argumenty
/branch <branch-name> [focus] [budget: N cycles, H hours]
Oryginalny opis (EN)
Fork an in-flight research-agent run at its current checkpoint into a named branch with its own state, log, attempts, and git worktree, sharing the parent's goal and findings read-only. Use to pursue a competing strategy without disturbing the main line; a main-line synthesis compares branches.
Jak działa
- Step 1: Parse Arguments
- Step 2: Verify the Run and the Name
- Step 3: Check Code Isolation
- Step 4: Launch the Researcher in Branch Mode
- Step 5: Inform the User
Podgląd SKILL.md
---
name: branch
description: >-
Fork an in-flight research-agent run at its current checkpoint into a named
branch with its own state, log, attempts, and git worktree, sharing the
parent's goal and findings read-only. Use to pursue a competing strategy
without disturbing the main line; a main-line synthesis compares branches.
argument-hint: "<branch-name> [focus] [budget: N cycles, H hours]"
---
# Branch a Research Run
Fork the run per: $ARGUMENTS
## Step 1: Parse Arguments
1. **Branch name** (required): kebab-case identifier, e.g. `induction-proof`, `adversarial-search`. Derive one from the stated strategy if the user did not name it, and confirm it.
2. **Branch focus** (optional): one or two sentences on what this branch should pursue differently from the main line.
3. **Budget** (optional): a cycle cap and/or hours for this branch.
## Step 2: Verify the Run and the Name
- `.research/goal.md` must exist (Read tool); if not, there is nothing to branch: suggest `/research-agent:research`.
- `.research/branches/<name>/` must NOT already exist (Glob tool). If it does, offer `/research-agent:resume <name>` or a different name.
## Step 3: Check Code Isolation
A branch edits and evaluates project code in its own git worktree so it cannot disturb the main line's eval.
- Bash: `git -C <working directory> rev-parse --is-inside-work-tree`. If this is not a git repo, worktree isolation is unavailable: tell the user the branch will keep all code changes inside its own attempts/ directories, and launch without `isolation`.
- If it is a git repo, check `git status --porcelain`. The worktree starts from HEAD, so uncommitted changes (including main-line work in progress) will not be in it. If the output is non-empty, tell the user and ask whether to proceed or commit first (AskUserQuestion).
## Step 4: Launch the Researcher in Branch Mode
Spawn the researcher (Agent tool, `subagent_type: research-agent:researcher`, and `isolation: "worktree"` when Step 3 found a git repo) with:
<mode>branch</mode>
<branch>{kebab-case name}</branch>
<branch-focus>
{the focus, or "explore an alternative approach to the goal"}
</branch-focus>
<budget max_cycles="{N}" max_hours="{H}"/> (only when given)
<working_directory>
{absolute path to current working directory, NOT the worktree}
</working_directory>
## Step 5: Inform the User
> Branch `{name}` forked from the current checkpoint. Its state lives under `.research/branches/{name}/`; its code changes live in its own git worktree, committed once per cycle. The goal and the parent's confirmed findings are shared read-only.
>
> - `/research-agent:status` shows all branches alongside the main line
> - `/research-agent:resume {name}` continues this branch later (in the same worktree)
> - `/research-agent:synthesize {name}` concludes just this branch; a main-line `/research-agent:synthesize` compares all branches
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · queelius/claude-anvil | 90 | MIT |
| kbluck/agent-resources | 100 | MIT |
| egregore-labs/egregore | 100 | MIT |
| WaterplanAI/agentic-config | 100 | MIT |
| egregore-labs/egregore | 86 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 3b51ed7f1eb3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100fork-worktree
Tworzy nową gałąź autonomii z osobnym worktree, co ułatwia równoległe przepływy pracy agentów. - 100worktree-main-sync
Tworzy worktree i synchronizuje je z najnowszą gałęzią main z repozytorium zdalnego, także gdy jest za origin. - 100worktree-merge
Scala gałąź worktree z inną gałęzią przez git merge, domyślnie z --no-ff, na przykład przed jednym wspólnym PR. - 100local-branches-status
Raportuje stan wszystkich lokalnych gałęzi git: synchronizację ze zdalnymi, różnice względem main, ścieżkę worktree, datę ostatniej aktywności i opis zawartości. - 100worktree-per-agent
Izoluje pracę agenta w osobnym worktree od domyślnej gałęzi, by zmiany agentów nie trafiały w ten sam katalog. - 100speclink-worktree-merge
Scala zatwierdzoną zmianę z gałęzi worktree do głównej gałęzi i po scaleniu sprząta worktree.