debug
무료Investigate and fix bugs, failing tests, regressions, build failures, or unexpected behavior using boundary localization, evidence, and bounded hypotheses.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Choose, reuse, restore, park, or clean up Git workspaces while preserving work and host ownership. Create isolation only when it resolves a real conflict; inspection does not authorize creation or deletion.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Choose, resume, and retire repository workspaces without losing work or multiplying unnecessary checkouts. Isolation is one tool; an existing suitable workspace is often enough.
Explicit use of this method does not request creation or deletion by itself. Match the actual task:
Small local edits and read-only workers normally stay in the current workspace. Dirty state, duration, risk, and worker count are signals to inspect, not automatic reasons to create. Identify the actual conflict: unrelated edits, simultaneous writers to the same files or index, incompatible baselines, or an experiment that needs independent verification. Different branch names in one checkout do not separate working files or the index.
Before creating, resuming, or planning cleanup, inspect the current repository and its relevant worktrees; do not scan every repository for an ordinary edit.
git worktree list --porcelain (with -z for machine parsing) and available host/task state to find existing task workspaces, locks, and missing registrations. Deep-inspect only candidates relevant to the request.Prefer the host's supported workspace or handoff action for host-managed state. Confirm the actual tool's capabilities; clients may differ in placement, transfer of dirty changes, persistence, and cleanup. Do not manually remove a host-managed worktree behind the host's lifecycle. If the needed host action is unavailable, report that item's limitation and continue independent work.
Before creation, identify the required starting revision and any uncommitted prerequisites. Ordinary git worktree add checks out a revision; it does not copy the source checkout's dirty changes. A host transfer may behave differently. Verify the resulting files and tip before continuing the task. Do not silently commit, stash, reset, or copy private environment data to fill a baseline gap; use an authorized transfer or report the missing prerequisite.
When manual Git handling is appropriate:
.worktrees/ or worktrees/ location, or a suitable sibling/user workspace location outside tracked source..gitignore edit solely for the workflow without applicable authority.Separate worktrees isolate files and indexes, not shared refs, ports, databases, services, or output paths. Allocate or sequence those shared resources deliberately when they are used.
Run only necessary setup: use the lockfile's package manager, reuse valid dependencies/caches, and choose a focused baseline that can expose a pre-existing failure. Record relevant baseline failures before editing. Do not reinstall everything by default.
Give each relevant candidate a useful disposition, not just a path listing:
| Disposition | Required reason |
|---|---|
| Keep / resume | Active task, needed verification environment, waiting integration, or another concrete retention purpose |
| Park | Paused work has a durable recovery anchor and rebuildable or separately preserved local state |
| Remove | Work is integrated into the correct target, or explicitly discarded, and directory/data checks permit removal |
| Unresolved | Ownership, unique data, recovery, integration, or host state still needs evidence or authority |
Age and count can prompt inspection; neither is a deletion rule. A clean status, merged PR, or successful worktree remove is not a complete safety judgment.
For a removal candidate, inspect:
git status --short --untracked-files=all and an ignored-file inventory such as git ls-files --others --ignored --exclude-standard or a scoped directory listing. Inspect paths and purpose without printing secret values. Ordinary non-force removal can delete ignored files. Rebuildable caches differ from unique databases, notes, recordings, and local config; unknown data stays protected.git ls-files -v (-z for machine parsing). Lowercase tags indicate assume-unchanged; S or s indicates skip-worktree. Ordinary status and ignored-file inventories can both miss local edits under these flags, and non-force removal can still discard them. For affected tracked files actually present, compare their content with the index without changing the real index or its flags, accounting for file type and applicable filters; otherwise leave that candidate unresolved. A flag alone proves neither modification nor disposability. Do not automatically clear user flags to simplify inspection. A preserved branch restores committed content, not hidden local edits.Parking does not need an integration claim: a named branch can preserve unmerged work after its checkout is removed. Preserve that ref, state how to recreate a worktree from it, and identify any environment setup needed. A local ref survives directory removal but is not an off-device backup or protection against later ref deletion.
This is the shared worktree cleanup contract, including cleanup reached through finish.
git worktree remove for a manually managed linked worktree. A refusal is evidence to investigate. Do not escalate to force, unlock, branch deletion, filesystem deletion, or data loss to complete an old plan. Those actions need their own evidence and authorization.git worktree prune removes stale administrative records, not existing workspaces. A missing path may be moved or on an unmounted device. Inspect lock reasons and storage availability, consider git worktree repair for a moved tree, and use prune --dry-run to see affected records before seeking or applying exact pruning authority. Never unlock or prune a missing tree just because it looks old.
Use existing task records or host state when a task spans sessions. Record only what cannot be cheaply reconstructed: purpose, workspace/ref, intended integration target, manager, why it remains, and the next resume step. Refresh observable Git facts when needed. Do not add a global worktree database or a mandatory ledger for tiny work.
Report the selected path and branch/tip, relevant baseline/setup, ownership, and next action. For organization, report concrete dispositions and what was actually done. These instructions guide decisions; they do not provide a deterministic cleanup service or guarantee host behavior.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Investigate and fix bugs, failing tests, regressions, build failures, or unexpected behavior using boundary localization, evidence, and bounded hypotheses.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Choose responsibility for substantial work before deep execution: keep one responsibility's coupled parts in a single lane, and hand a bounded or independent lane to a worker when clean context, an unknown cause, independent review, or coordinator attention materially improves the outcome.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Turn a rough feature, product interaction, or architecture idea into a concrete design. Use when meaningful decisions remain open; avoid for already-clear local edits.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Implement a settled request or current execution strategy through connected slices, feed observations into the same task record, and revise affected work when evidence changes.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Finish a development change safely by inspecting the final tree, verifying at the right scope, and performing only the requested Git or PR actions.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Assess, adapt, and apply specified discussions, feedback, findings, or references to existing project work. Preserve coverage, corrections, and selected intent; judge fit and carry adopted effects through the authorized result. Includes technical review feedback; incidental sources or understanding material without a target-work adoption question need no separate incorporation workflow.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.