-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathllms.txt
More file actions
63 lines (55 loc) · 2.2 KB
/
llms.txt
File metadata and controls
63 lines (55 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
wt - LLM Quick Context
Audience
- This file is for LLMs and coding agents that index or enter this repository.
- It serves two audiences: (1) users of the wt tool, and (2) contributors changing wt source code.
What wt is
- wt is a Git worktree manager written in Go.
- It creates, checks out, lists, and removes worktrees with predictable paths.
Section A: Using wt (installed tool consumers)
- Use this section if you are helping someone USE wt, not modify this repository.
- Primary commands:
- wt create <branch> [base-branch]
- wt checkout <branch> (alias: wt co)
- wt list (alias: wt ls)
- wt remove <branch> (alias: wt rm)
- wt pr [number|url] (requires gh)
- wt mr [number|url] (requires glab)
- wt info
- wt init
- Typical consumer workflow:
1) wt create feat/short-description
2) Work in the created worktree
3) wt ls to inspect worktrees
4) wt rm <branch> when done
- Consumer checks:
- No Go test/build/e2e steps are required to use an installed wt binary.
Section B: Contributing to wt (project authors/maintainers)
- Use this section only when modifying files in this repository.
- Contributor workflow rule:
- Do not switch branches in the main checkout for task work.
- Create an isolated worktree per task with wt create.
- Contributor validation checks:
- go test ./...
- go build -o bin/wt .
- go run e2e/run.go
Configuration and hooks
- Config file: ~/.config/wt/config.toml (or WT_CONFIG / --config)
- Key settings: root, strategy, pattern, separator
- Env overrides: WORKTREE_ROOT, WORKTREE_STRATEGY, WORKTREE_PATTERN, WORKTREE_SEPARATOR
- Supported hooks: pre/post create, checkout, remove, pr, mr
- Hook env vars: WT_PATH, WT_BRANCH, WT_MAIN, WT_REPO_NAME, WT_REPO_HOST, WT_REPO_OWNER
- Disable hooks: WT_HOOKS_DISABLED=1
Dependencies
- Required: git
- Optional: gh (for wt pr), glab (for wt mr)
- Build from source: Go 1.24+
Canonical docs
- README.md: user-facing command usage, config, examples
- AGENTS.md: agent workflow and guardrails for repo changes
- CONTRIBUTING.md: contribution workflow and CI expectations
Non-interactive execution note
- For agent/CI contexts, prefer explicit args over interactive prompts:
- wt co <branch>
- wt rm <branch>
- wt pr <id>
- wt mr <id>